.reservations-page {
    --res-ink: #20282d;
    --res-muted: #515d65;
    --res-red: #dc0018;
    --res-tint: #f2f5f6;
}

.reservations-page header .navbar { padding-bottom: 36px; }
.reservations-page .nav-link[aria-current="page"] { color: var(--res-red) !important; }
.res-main { overflow: clip; color: var(--res-ink); }
.res-main * { box-sizing: border-box; }
.res-main h1, .res-main h2, .res-main h3 { font-family: "Space Grotesk", sans-serif; color: var(--res-ink); font-weight: 600; }
.res-main h1 { font-size: clamp(2.8rem, 4.6vw, 4.4rem); line-height: 1.05; letter-spacing: -.045em; margin: 0 0 28px; max-width: 9em; }
.res-main h2 { font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 24px; }
.res-main h3 { font-size: 1.35rem; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 14px; }
.res-main p, .res-main li { font-family: "Lato", sans-serif; font-size: 1.125rem; line-height: 1.65; font-weight: 400; color: var(--res-muted); }
.res-main p { margin: 0 0 20px; }
.res-main a { text-decoration: none; }
.res-main a:focus-visible, .res-lightbox button:focus-visible { outline: 3px solid #0876a8; outline-offset: 5px; }
.res-main .res-eyebrow { font-size: .875rem; line-height: 1.5; font-weight: 700; color: #b30019; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.res-main .res-small { font-size: 1rem; line-height: 1.6; }
.res-hero { padding: 32px 0 64px; }
.res-hero-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.res-main .res-intro { font-size: 1.25rem; line-height: 1.6; max-width: 33em; }
.res-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin: 32px 0 22px; }
.res-main .res-button { display: inline-flex; justify-content: center; align-items: center; padding: 16px 23px; border: 1px solid transparent; border-radius: 5px; font-size: 1rem; line-height: 1.5; font-weight: 700; text-align: center; transition: background-color .2s; }
.res-main .res-button-primary { color: #fff; background: var(--res-red); }
.res-main .res-button-primary:hover { background: #9a0011; }
.res-main .res-text-link { display: inline-block; color: #b30019; font-size: 1rem; line-height: 1.6; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.res-main .res-text-link:hover { color: #810011; }
.res-main .res-text-link, .res-main .res-proof-link { text-decoration: underline !important; }
.res-hero-visual { background: #f3f2ef; border-radius: 10px; padding: 24px; min-width: 0; }
.res-figure { margin: 0; min-width: 0; }
.res-figure figcaption { font-family: "Lato", sans-serif; font-size: .8125rem; font-weight: 400; line-height: 1.5; color: #616b73; margin-top: 10px; }
/* Crop rectangles use pixels from the unchanged 2760 × 3012 originals. */
.res-screen {
    --screen-padding: clamp(12px, 2vw, 24px);
    --crop-x: 0;
    --crop-y: 0;
    --crop-width: 2760;
    --crop-height: 3012;
    display: block;
    overflow: hidden;
    padding: var(--screen-padding) var(--screen-padding) 0;
    border: 1px solid #dce2e5;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 6px 20px #172b3a0c;
}
.res-screen-stage { display: block; margin-bottom: var(--screen-padding); }
.res-screen-viewport { display: block; position: relative; overflow: hidden; width: 100%; aspect-ratio: var(--crop-width) / var(--crop-height); }
.res-screen img {
    display: block;
    position: absolute;
    width: calc(100% * 2760 / var(--crop-width));
    max-width: none;
    height: auto;
    margin: 0;
    left: calc(-100% * var(--crop-x) / var(--crop-width));
    top: calc(-100% * var(--crop-y) / var(--crop-height));
}
/* Month: date controls and all seven columns, including the final row. */
.res-screen-month { --crop-x: 196; --crop-y: 1044; --crop-width: 1900; --crop-height: 1120; }
/* Week: retain the complete time axis and all seven days. */
.res-screen-week { --crop-x: 196; --crop-y: 1044; --crop-width: 1900; --crop-height: 1820; }
/* Occupancy: include the booking and the complete maintenance dialog. */
.res-screen-occupancy { --crop-x: 196; --crop-y: 900; --crop-width: 2452; --crop-height: 1730; }
/* Rules: recurrence and dates, ending before the source's clipped Saturday row. */
.res-screen-rules { --crop-x: 190; --crop-y: 1360; --crop-width: 1200; --crop-height: 1450; max-width: 32rem; margin-inline: 0; }
.res-enlarge { display: flex; align-items: center; width: fit-content; margin-left: auto; padding: 10px 0; color: #26333c; background: transparent; }
.res-screen:hover .res-enlarge { color: #b30019; background: transparent; }
.res-use-cases { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-block: 1px solid #dce2e5; padding: 26px 0; }
.res-use-cases > span { font-size: .875rem; color: var(--res-muted); }
.res-use-cases ul { display: flex; flex-wrap: wrap; gap: 16px 32px; list-style: none; margin: 0; padding: 0; }
.res-use-cases li { font-size: 1rem; font-weight: 700; color: var(--res-ink); }
.res-section { padding: 96px 0; scroll-margin-top: 24px; }
.res-section-tint { background: var(--res-tint); }
.res-section-heading { max-width: 760px; margin-bottom: 48px; }
.res-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.res-benefits article + article { border-left: 1px solid #dce2e5; padding-left: 40px; }
.res-benefits p { margin-bottom: 0; }
.res-icon { display: block; width: 36px; height: 36px; color: #b30019; margin-bottom: 24px; }
.res-feature-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.res-feature-reverse { grid-template-columns: minmax(0, 32rem) minmax(0, 1fr); gap: 48px; }
.res-feature-reverse .res-feature-copy { order: 2; }
.res-feature-reverse > .res-figure { order: 1; }
.res-checklist { padding: 0; list-style: none; margin: 28px 0; }
.res-checklist li { position: relative; padding-left: 28px; margin-bottom: 14px; }
.res-checklist li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 7px; height: 12px; border: solid #b30019; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.res-gallery { min-width: 0; }
/* Reserve the tallest crop and caption, independently of the selected view. */
.res-gallery .res-screen-stage { display: grid; align-content: center; aspect-ratio: 1900 / 1820; }
.res-gallery figcaption { display: grid; }
.res-gallery [data-res-caption] { grid-area: 1 / 1; font: inherit; color: inherit; }
.res-gallery [data-res-caption][aria-hidden="true"] { visibility: hidden; }
.res-view-switch { display: grid; gap: 16px; margin-top: 32px; }
.res-view-switch a { display: flex; align-items: flex-start; gap: 24px; padding: 21px 24px; border: 1px solid transparent; border-radius: 10px; color: var(--res-ink); transition: border-color .2s, background-color .2s; }
.res-view-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; height: 48px; border-radius: 10px; color: var(--res-red); background: #e9ecef; transition: color .2s, background-color .2s; }
.res-view-copy { min-width: 0; }
.res-view-title { display: block; margin: 4px 0 12px; font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.res-view-description { display: block; font-family: "Lato", sans-serif; font-size: 1rem; line-height: 1.6; color: var(--res-muted); }
.res-view-switch a[aria-current="true"], .res-view-switch a:hover, .res-view-switch a:focus-visible { border-color: var(--res-red); background: #fff; }
.res-view-switch a[aria-current="true"] .res-view-icon, .res-view-switch a:hover .res-view-icon, .res-view-switch a:focus-visible .res-view-icon { color: #fff; background: var(--res-red); }
.res-callout { border-left: 3px solid var(--res-red); padding: 4px 0 4px 24px; margin-top: 32px; }
.res-callout h3 { font-size: 1.125rem; }
.res-callout p { font-size: 1rem; margin: 0; }
.res-process-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.res-process-copy p { margin-bottom: 0; }
.res-process-copy h3 { font-size: 1.65rem; }
.res-audience { display: inline-block; margin-bottom: 16px; font-size: .875rem; font-weight: 700; color: #b30019; }
.res-documentation { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #dce2e5; margin-top: 48px; padding-top: 28px; }
.res-documentation p { margin: 0; }
.res-closing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.res-closing-grid h2 { max-width: 32ch; font-size: clamp(1.75rem, 2.5vw, 2.125rem); margin-bottom: 16px; }
.res-proof-copy { max-width: 760px; }
.res-main .res-proof-link { display: block; width: fit-content; margin-top: 18px; font-size: 1rem; color: var(--res-muted); text-decoration: underline; text-underline-offset: 4px; }
.res-contact { padding-left: 32px; border-left: 1px solid #dce2e5; }
.res-contact-inner { display: grid; grid-template-columns: 1fr; gap: 24px; }
.res-contact p { max-width: 38em; margin-bottom: 0; }
.res-contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.res-contact-actions .res-text-link { color: var(--res-muted); font-weight: 400; }
.res-contact-actions .res-text-link:hover { color: #b30019; }

.res-lightbox { width: min(1200px, 96vw); max-width: 96vw; max-height: 94vh; margin: auto; padding: 0; border: none; border-radius: 8px; color: #20282d; background: #f2f5f6; }
.res-lightbox::backdrop { background: #101c27d9; }
.res-lightbox[open] { display: flex; flex-direction: column; }
.res-lightbox-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; background: #fff; border-bottom: 1px solid #dce2e5; }
.res-lightbox-header h2 { font-family: "Lato", sans-serif; font-size: 1rem; line-height: 1.5; margin: 0; }
.res-lightbox-close { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #c7cfd4; border-radius: 4px; padding: 8px 12px; font-size: .875rem; color: #20282d; }
.res-lightbox-close span { font-size: 1.5rem; line-height: 1; }
.res-lightbox-content { overflow: auto; overscroll-behavior: contain; }
/* Keep the original top and sides; crop only the bottom window edge and shadow. */
.res-lightbox-image { position: relative; overflow: hidden; aspect-ratio: 2760 / 2820; }
.res-lightbox-image img { display: block; position: absolute; top: 0; left: 0; width: 100%; height: auto; }
html.res-lightbox-open { overflow: hidden; }

@media (max-width: 1199px) {
    .res-hero-grid { gap: 32px; }
    .res-feature-grid { gap: 48px; }
    .res-benefits { gap: 32px; }
    .res-benefits article + article { padding-left: 28px; }
    .res-use-cases ul { gap: 16px 24px; }
}

@media (max-width: 991px) {
    .res-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .res-main h1 { max-width: 12em; }
    .res-hero-visual { max-width: 680px; width: 100%; }
    .res-section { padding: 72px 0; }
    .res-use-cases { align-items: flex-start; flex-direction: column; gap: 16px; }
    .res-feature-grid { grid-template-columns: 1fr; gap: 36px; }
    .res-feature-reverse .res-feature-copy, .res-feature-reverse > .res-figure { order: initial; }
    .res-benefits { gap: 24px; }
    .res-benefits article + article { padding-left: 24px; }
    .res-process-grid { gap: 32px; }
    .res-closing-grid { grid-template-columns: 1fr; gap: 40px; }
    .res-contact { padding-left: 0; padding-top: 40px; border-left: 0; border-top: 1px solid #dce2e5; }
}

@media (max-width: 767px) {
    .res-main .container { padding-left: 24px; padding-right: 24px; }
    .reservations-page header .navbar { padding-bottom: 16px; }
    .res-hero { padding-top: 24px; padding-bottom: 40px; }
    .res-hero-visual { padding: 16px; }
    .res-main .res-intro { font-size: 1.125rem; }
    .res-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
    .res-use-cases ul { gap: 12px 24px; }
    .res-use-cases li { font-size: .875rem; }
    .res-section { padding: 56px 0; }
    .res-section-heading { margin-bottom: 36px; }
    .res-benefits, .res-process-grid { grid-template-columns: 1fr; gap: 36px; }
    .res-benefits article + article { border-left: 0; border-top: 1px solid #dce2e5; padding-left: 0; padding-top: 28px; }
    .res-icon { margin-bottom: 16px; }
    .res-view-switch { gap: 12px; }
    .res-view-switch a { gap: 16px; padding: 18px 16px; }
    .res-closing-grid { gap: 32px; }
    .res-contact { padding-top: 32px; }
    .res-lightbox-header { padding: 12px; gap: 12px; }
    .res-lightbox-close { flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .res-main .res-button, .res-view-switch a, .res-view-icon { transition: none; }
}
