:root {
    --site-gutter: clamp(20px, 4vw, 48px);
    --section-y: clamp(72px, 9vw, 128px);
    --mobile-title: clamp(38px, 10vw, 56px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body.public-page {
    overflow-x: hidden;
}

body.public-page img,
body.public-page video {
    max-width: 100%;
}

body.public-page :is(h1, h2, h3, p, a, span) {
    overflow-wrap: anywhere;
}

body.public-page main,
body.public-page section,
body.public-page header,
body.public-page footer,
body.public-page nav {
    max-width: 100%;
}

body.public-page nav > div,
body.public-page nav .section-shell {
    width: min(100%, 1536px);
    margin-inline: auto;
}

.cursor-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    border: 1px solid rgba(112, 120, 125, 0.25);
    background: rgba(255, 255, 255, 0.88);
    color: #24657e;
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    z-index: 70;
}

.cursor-mobile-toggle:hover {
    color: #735c00;
    border-color: rgba(115, 92, 0, 0.25);
}

.cursor-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    justify-content: flex-end;
    background: rgba(250, 249, 248, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.2, 0, 0.2, 1);
}

.cursor-mobile-overlay.is-open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.cursor-mobile-panel {
    width: min(92vw, 430px);
    min-height: 100dvh;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: -20px 0 40px rgba(26, 28, 28, 0.08);
    padding: 24px 20px 32px;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.2, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cursor-mobile-overlay.is-open .cursor-mobile-panel {
    transform: translateX(0);
}

.cursor-mobile-close {
    width: 48px;
    height: 48px;
    margin-left: auto;
    border-radius: 9999px;
    border: 1px solid rgba(112, 120, 125, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #24657e;
}

.cursor-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 48px;
}

.cursor-mobile-link {
    font-family: "Noto Serif", serif;
    font-size: clamp(2rem, 7vw, 2.9rem);
    line-height: 1;
    color: #1a1c1c;
}

.cursor-mobile-link.is-cta {
    margin-top: 18px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 9999px;
    background: #24657e;
    color: #ffffff;
    font-family: "Manrope", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

@media (hover: none) {
    body.public-page .group:hover img,
    body.public-page .group:hover video,
    body.public-page .card-hover-effect:hover,
    body.public-page [data-reveal]:hover {
        transform: none !important;
    }
}

.page-room-detail .room-detail-media {
    aspect-ratio: 4 / 5;
    width: 100%;
    height: auto;
    max-height: clamp(420px, 85vh, 720px);
}

.page-room-detail .room-detail-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .page-room-detail .room-detail-media {
        aspect-ratio: 3 / 4;
        max-height: clamp(480px, 80vh, 720px);
    }
}

@media (min-width: 1024px) {
    .page-room-detail .room-detail-media {
        aspect-ratio: auto;
        height: clamp(520px, 78vh, 760px);
        max-height: calc(100vh - 9rem);
        position: sticky;
        top: 7rem;
    }
}

@media (min-width: 1536px) {
    .page-room-detail .room-detail-media {
        height: clamp(560px, 72vh, 720px);
    }
}

@media (max-width: 1200px) {
    body.public-page nav > div,
    body.public-page nav .section-shell {
        padding-inline: 32px !important;
    }

    body.public-page footer [class*="px-16"],
    body.public-page footer [class*="px-12"] {
        padding-inline: 32px !important;
    }

    .page-home .gallery-masonry {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    body.public-page nav > div,
    body.public-page nav .section-shell {
        padding-inline: 24px !important;
        gap: 16px;
    }

    body.public-page main > section,
    body.public-page main > header,
    body.public-page > section:not(nav):not(footer),
    body.public-page footer {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .page-home .editorial-grid,
    .page-about main > section:nth-of-type(2),
    .page-about main > section:nth-of-type(5) > div > div,
    .page-contact main > div,
    .page-gallery main > section > div,
    .page-room-detail section > div[class*="grid-cols-1 lg:grid-cols-12"],
    .page-room-detail .grid.grid-cols-1.lg\:grid-cols-12,
    .page-rooms header > div,
    .page-rooms section > div.flex.flex-col.md\:flex-row {
        gap: 32px !important;
    }

    .page-home .gallery-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.public-page nav [data-desktop-nav] {
        display: none !important;
        position: absolute !important;
        left: -9999px !important;
    }

    body.public-page nav [data-nav-cta] {
        display: none !important;
        position: absolute !important;
        left: -9999px !important;
    }

    body.public-page nav > div > .cursor-mobile-toggle {
        display: inline-flex !important;
    }

    .page-home .section-shell,
    .page-home nav .section-shell {
        padding-inline: 24px !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-y: 72px;
    }

    body.public-page nav > div,
    body.public-page nav .section-shell {
        padding-inline: 20px !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    body.public-page main {
        padding-top: 0;
    }

    body.public-page main > section,
    body.public-page main > header,
    body.public-page > section:not(nav):not(footer),
    body.public-page footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.public-page :is(h1, h2) {
        text-wrap: balance;
    }

    body.public-page h1[class*="text-5xl"],
    body.public-page h1[class*="text-7xl"],
    body.public-page h1[class*="text-8xl"] {
        font-size: var(--mobile-title) !important;
        line-height: 1.06 !important;
        letter-spacing: -0.03em !important;
    }

    body.public-page h2[class*="text-4xl"],
    body.public-page h2[class*="text-5xl"],
    body.public-page h2[class*="text-6xl"] {
        font-size: clamp(30px, 8vw, 44px) !important;
        line-height: 1.1 !important;
    }

    body.public-page p[class*="text-lg"],
    .page-about p,
    .page-contact p,
    .page-room-detail p,
    .page-gallery p {
        font-size: 16px !important;
        line-height: 1.75 !important;
    }

    body.public-page a[class*="rounded-full"],
    body.public-page button[class*="rounded-full"] {
        min-height: 52px;
    }

    .page-home .hero-home,
    .page-about section.relative.h-screen,
    .page-experiences section.relative.h-screen,
    .page-room-detail header.relative.h-screen,
    .page-contact section.relative.h-\[716px\] {
        min-height: 85svh !important;
        height: auto !important;
    }

    .page-home .hero-home-content {
        align-items: center !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    .page-home .hero-home a,
    .page-room-detail header a[class*="rounded-full"],
    .page-gallery a[class*="rounded-full"],
    .page-contact button[class*="rounded-full"] {
        width: 100%;
        justify-content: center;
    }

    .page-home .editorial-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .page-home .gallery-masonry {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
    }

    .page-home .gallery-tile {
        grid-column: auto !important;
        grid-row: auto !important;
        aspect-ratio: 4 / 5;
    }

    .page-about main > section:nth-of-type(2) {
        flex-direction: column !important;
        gap: 24px !important;
        padding-top: var(--section-y) !important;
        padding-bottom: var(--section-y) !important;
    }

    .page-about main > section:nth-of-type(2) > div:first-child {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .page-about main > section:nth-of-type(2) > div:first-child > div:last-child {
        position: static !important;
        inset: auto !important;
        max-width: none !important;
        padding: 24px !important;
        margin: 0 !important;
    }

    .page-about main > section:nth-of-type(3) .grid.grid-cols-2 {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .page-about main > section:nth-of-type(4),
    .page-about main > section:nth-of-type(5),
    .page-contact main,
    .page-contact section,
    .page-gallery main > section,
    .page-experiences main > section,
    .page-room-detail section,
    .page-rooms main > header,
    .page-rooms main > section {
        padding-top: var(--section-y) !important;
        padding-bottom: var(--section-y) !important;
    }

    .page-rooms header,
    .page-rooms section,
    .page-gallery main > section > div,
    .page-contact main,
    .page-experiences main,
    .page-about main > section > div,
    .page-room-detail section > div {
        max-width: 100% !important;
    }

    .page-rooms .overlap-card {
        width: 100% !important;
        margin: 16px 0 0 !important;
        padding: 24px !important;
        border-radius: 24px !important;
    }

    .page-rooms .room-info-grid {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .page-experiences #experiences > section:last-of-type > div:last-child {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: 82vw;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px !important;
        padding-bottom: 8px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .page-experiences #experiences > section:last-of-type > div:last-child > div {
        min-width: 82vw;
        scroll-snap-align: start;
    }

    .page-experiences #experiences > section:last-of-type > div:last-child::-webkit-scrollbar {
        display: none;
    }

    .page-experiences #experiences > section:last-of-type > div:last-child > div h3 {
        font-size: 1.5rem !important;
    }

    .page-contact .editorial-grid,
    .page-contact main > div,
    .page-gallery main > section .grid,
    .page-room-detail section .grid.grid-cols-1.md\:grid-cols-4,
    .page-room-detail section .grid.grid-cols-1.md\:grid-cols-3,
    .page-room-detail section .grid.grid-cols-2,
    .page-room-detail section .grid.grid-cols-1.lg\:grid-cols-12 {
        grid-template-columns: 1fr !important;
        height: auto !important;
        gap: 20px !important;
    }

    .page-room-detail header .parallax-bg img,
    .page-about .parallax-bg img,
    .page-experiences .parallax-bg img,
    .page-contact .parallax-bg img {
        object-position: center center;
    }

    .page-room-detail header > div:last-child,
    .page-about section.relative.h-screen > div:last-child,
    .page-experiences section.relative.h-screen > div:last-child,
    .page-contact section.relative.h-\[716px\] > div:last-child {
        padding-inline: 20px !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .page-room-detail section.py-24.bg-surface-container-low .grid.grid-cols-1.md\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    .page-room-detail section.relative.py-32.px-8 {
        padding-top: var(--section-y) !important;
        padding-bottom: var(--section-y) !important;
    }

    .page-room-detail section.relative.py-32.px-8 > div.relative.z-10 {
        padding: 24px !important;
        border-radius: 32px !important;
    }

    .page-room-detail section.relative.py-32.px-8 > div.relative.z-10 > div.flex.flex-col.md\:flex-row {
        border-radius: 24px !important;
    }

    .page-gallery footer > div,
    .page-contact footer > div,
    .page-about footer > div,
    .page-experiences footer > div,
    .page-room-detail footer > div,
    .page-rooms footer > div,
    .page-home footer > div {
        gap: 24px !important;
    }
}

@media (max-width: 480px) {
    .cursor-mobile-panel {
        width: 100vw;
    }

    body.public-page nav > div,
    body.public-page nav .section-shell,
    body.public-page main > section,
    body.public-page main > header,
    body.public-page > section:not(nav):not(footer),
    body.public-page footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.public-page h1[class*="text-5xl"],
    body.public-page h1[class*="text-7xl"],
    body.public-page h1[class*="text-8xl"] {
        font-size: clamp(2.1rem, 10vw, 3rem) !important;
    }

    body.public-page h2[class*="text-4xl"],
    body.public-page h2[class*="text-5xl"],
    body.public-page h2[class*="text-6xl"] {
        font-size: clamp(1.85rem, 8.5vw, 2.5rem) !important;
    }

    .page-about main > section:nth-of-type(3) .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .page-contact section.relative.h-\[716px\] > div:last-child {
        padding-bottom: 56px !important;
    }

    .page-contact .absolute.-bottom-6.-left-6,
    .page-contact .absolute.bottom-0.right-0,
    .page-room-detail .absolute.-bottom-12.-left-12 {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 16px !important;
    }

    .page-room-detail section.py-24.px-8 .grid.grid-cols-2 {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
}

@media (max-width: 360px) {
    body.public-page nav > div,
    body.public-page nav .section-shell,
    body.public-page main > section,
    body.public-page main > header,
    body.public-page > section:not(nav):not(footer),
    body.public-page footer {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .cursor-mobile-link {
        font-size: 1.85rem;
    }

    body.public-page a[class*="rounded-full"],
    body.public-page button[class*="rounded-full"] {
        padding-inline: 20px !important;
    }
}

/* =========================================================
   FOOTER — mobile sizing fix
   The shared `_footer.html` ships with py-16 / gap-12 / mt-16
   which collapses to ~1000px height on phones. These rules
   tighten everything proportionally without changing the look.
   ========================================================= */

@media (max-width: 1024px) {
    body.public-page footer {
        padding-top: 56px !important;
        padding-bottom: 40px !important;
    }

    body.public-page footer > div:first-child {
        gap: 32px !important;
    }

    body.public-page footer > div:last-child {
        margin-top: 40px !important;
        padding-top: 24px !important;
    }
}

@media (max-width: 768px) {
    body.public-page footer {
        padding-top: 40px !important;
        padding-bottom: 28px !important;
    }

    body.public-page footer > div:first-child {
        gap: 28px !important;
    }

    body.public-page footer > div:first-child > div {
        gap: 0.5rem !important;
    }

    body.public-page footer > div:first-child > div > .space-y-6 > * + *,
    body.public-page footer > div:first-child > div .space-y-4 > * + *,
    body.public-page footer > div:first-child > div .space-y-2 > * + * {
        margin-top: 0.4rem !important;
    }

    body.public-page footer h5 {
        font-size: 0.7rem !important;
        margin-bottom: 0.25rem !important;
    }

    body.public-page footer p,
    body.public-page footer address,
    body.public-page footer ul li a {
        font-size: 0.85rem !important;
        line-height: 1.55 !important;
    }

    body.public-page footer > div:last-child {
        margin-top: 28px !important;
        padding-top: 18px !important;
    }

    body.public-page footer > div:last-child p {
        font-size: 0.65rem !important;
        letter-spacing: 0.18em !important;
    }
}

@media (max-width: 480px) {
    body.public-page footer {
        padding-top: 32px !important;
        padding-bottom: 24px !important;
    }

    body.public-page footer > div:first-child {
        gap: 22px !important;
    }

    body.public-page footer > div:last-child {
        margin-top: 22px !important;
        padding-top: 14px !important;
    }
}

/* =========================================================
   GENERAL — guard against horizontal overflow + readable
   typography on the smallest phones across all public pages
   ========================================================= */

body.public-page main > section,
body.public-page main > header {
    overflow-x: clip;
}

@media (max-width: 480px) {
    body.public-page :is(h1, h2, h3) {
        word-break: break-word;
    }

    body.public-page main > section {
        padding-top: 56px !important;
        padding-bottom: 56px !important;
    }
}

