:root {
    --paper: #fffaf4;
    --paper-soft: rgba(255, 250, 244, .94);
    --paper-glass: rgba(255, 250, 244, .88);
    --ink: #090705;
    --muted: #6d6257;
    --line: rgba(9, 7, 5, .28);
    --white: #ffffff;
    --wine: #7d1118;
    --pine: #123c36;
    --topbar: 44px;
    --bottombar: 40px;
    --sans: "Optima", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --serif: "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--ink);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    letter-spacing: 0;
}

button {
    cursor: pointer;
}

figure {
    margin: 0;
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: var(--paper);
    transition: opacity .45s ease, visibility .45s ease;
}

.loader span {
    font-family: var(--serif);
    font-size: 27px;
    animation: pulseName 2s ease-in-out infinite;
}

body.loaded .loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes pulseName {
    50% {
        opacity: .28;
        transform: scale(.98);
    }
}

.costes-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--topbar);
    display: grid;
    grid-template-columns: minmax(420px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
}

.header-left {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
}

.nav-trigger,
.book-trigger,
.menu-close,
.costes-logo,
.footer-title,
.footer-next,
.breadcrumbs button,
.slide-arrow {
    border: 0;
    background: transparent;
    color: var(--ink);
}

.nav-trigger {
    flex: 0 0 74px;
    width: 74px;
    height: 100%;
    border-right: 1px solid var(--ink);
    text-transform: uppercase;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
    gap: 12px;
    padding: 0 14px;
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

.breadcrumbs button,
.breadcrumbs span {
    flex: 0 0 auto;
}

.breadcrumbs [data-current-crumb] {
    min-width: 0;
    overflow: hidden;
    color: var(--wine);
    text-overflow: ellipsis;
}

.costes-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    font-family: var(--serif);
    font-size: 23px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-tools {
    justify-self: end;
    height: 100%;
    display: flex;
    align-items: center;
}

.languages {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-right: 1px solid var(--ink);
    font-size: 12px;
    white-space: nowrap;
}

.languages span {
    color: var(--wine);
}

.book-trigger {
    width: 78px;
    height: 100%;
    text-transform: uppercase;
}

.scene-stage {
    position: fixed;
    top: var(--topbar);
    right: 0;
    bottom: var(--bottombar);
    left: 0;
    overflow: hidden;
    background: var(--ink);
}

.scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.012);
    transition: opacity .58s ease, transform .86s ease, visibility .58s ease;
}

.scene.active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scene::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .34);
    pointer-events: none;
}

.room-scene::before {
    background: rgba(0, 0, 0, .18);
}

.scene-kicker {
    position: absolute;
    z-index: 4;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 17px;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}

.scene-label,
.panel-kicker {
    margin: 0 0 14px;
    color: var(--wine);
    font-size: 13px;
    text-transform: uppercase;
}

.home-copy {
    position: absolute;
    z-index: 3;
    left: 80px;
    bottom: 88px;
    width: 620px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}

.home-copy::before {
    content: "";
    display: block;
    width: 76px;
    height: 1px;
    margin-bottom: 20px;
    background: rgba(244, 223, 189, .78);
}

.home-copy .scene-label {
    color: var(--white);
}

.home-copy h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: 70px;
    font-weight: 400;
    line-height: .95;
    text-transform: uppercase;
}

.home-copy p {
    margin: 22px 0 32px;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.35;
}

.home-copy button,
.scene-panel button,
.book-panel form button {
    min-width: 168px;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid var(--ink);
    background: var(--paper-soft);
    color: var(--ink);
    font-size: 12px;
    text-transform: uppercase;
}

.home-copy button:hover,
.scene-panel button:hover,
.book-panel form button:hover,
.room-command button:hover {
    background: var(--ink);
    color: var(--paper);
}

.story-card {
    position: absolute;
    z-index: 4;
    top: 42px;
    right: 42px;
    width: 480px;
    min-height: 304px;
    padding: 30px 28px 24px;
    background: var(--paper-soft);
    color: var(--ink);
    text-shadow: none;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.story-card.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

.story-card button,
.menu-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 22px;
    line-height: 26px;
}

.story-card h2 {
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
}

.story-card p {
    margin: 0 0 18px;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.45;
}

.costes-menu {
    position: fixed;
    z-index: 90;
    top: var(--topbar);
    right: 0;
    bottom: var(--bottombar);
    left: 0;
    display: none;
    padding: 42px 18px;
    overflow-y: auto;
    background: rgba(0, 0, 0, .58);
    border-bottom: 1px solid var(--ink);
}

.costes-menu.open {
    display: block;
}

.menu-inner {
    position: relative;
    width: 640px;
    max-width: 100%;
    margin: 0 auto;
}

.menu-primary,
.menu-rooms {
    display: grid;
    gap: 2px;
}

.menu-primary button,
.menu-rooms button {
    display: block;
    min-height: 54px;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    text-align: center;
    text-transform: uppercase;
}

.menu-primary button {
    font-size: 17px;
}

.menu-rooms {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 8px;
}

.menu-rooms button {
    min-height: 42px;
    font-size: 12px;
}

.book-panel {
    position: fixed;
    z-index: 95;
    top: var(--topbar);
    right: 0;
    bottom: var(--bottombar);
    width: 470px;
    max-width: 100%;
    padding: 46px 28px;
    overflow-y: auto;
    background: var(--paper);
    color: var(--ink);
    border-left: 1px solid var(--ink);
    transform: translateX(100%);
    transition: transform .35s ease;
}

.book-panel.open {
    transform: translateX(0);
}

.book-panel h2 {
    margin: 0 0 24px;
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 400;
}

.book-panel form {
    display: grid;
    gap: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.book-panel label {
    display: grid;
    gap: 7px;
    font-size: 12px;
    text-transform: uppercase;
}

.book-panel input,
.book-panel textarea,
.book-panel select {
    width: 100%;
    min-height: 42px;
    padding: 10px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-size: 14px;
}

.book-panel textarea {
    resize: vertical;
}

.booking-notice {
    padding: 13px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13px;
}

.booking-notice.error {
    border-color: var(--wine);
    color: var(--wine);
}

.heritage-panel,
.scene-panel {
    position: absolute;
    z-index: 3;
    max-height: calc(100% - 52px);
    overflow: auto;
    background: var(--paper-soft);
    color: var(--ink);
}

.heritage-panel {
    left: 48px;
    bottom: 48px;
    width: 520px;
    padding: 34px;
}

.heritage-panel h2,
.scene-panel h2,
.rooms-title h1 {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.04;
}

.heritage-panel p,
.scene-panel p,
.rooms-title p {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.5;
}

.fact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 22px;
    background: var(--ink);
}

.fact-grid span {
    padding: 12px;
    background: var(--paper);
    color: var(--pine);
    font-size: 12px;
    text-transform: uppercase;
}

.heritage-photo {
    position: absolute;
    z-index: 3;
    right: 48px;
    top: 78px;
    width: 330px;
    height: 440px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--paper);
}

.rooms-directory {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: grid;
    grid-template-columns: 390px 560px;
    gap: 22px;
    width: 972px;
    max-width: calc(100% - 72px);
    transform: translate(-50%, -50%);
}

.rooms-title,
.rooms-list {
    background: var(--paper-soft);
    color: var(--ink);
}

.rooms-title {
    padding: 34px;
}

.rooms-title .scene-label {
    color: var(--wine);
}

.rooms-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    max-height: calc(100vh - var(--topbar) - var(--bottombar) - 110px);
    overflow: auto;
    background: var(--ink);
}

.rooms-list button {
    display: grid;
    grid-template-rows: auto auto;
    align-items: center;
    min-height: 70px;
    padding: 14px 18px;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    text-align: left;
}

.rooms-list strong {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
}

.rooms-list small {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.slide-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 52px;
    height: 76px;
    transform: translateY(-50%);
    color: var(--paper);
    font-family: var(--serif);
    font-size: 44px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

.slide-arrow:hover {
    color: var(--white);
}

.slide-prev {
    left: 18px;
}

.slide-next {
    right: 18px;
}

.slide-counter {
    position: absolute;
    z-index: 4;
    right: 24px;
    bottom: 56px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    text-transform: uppercase;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

.room-image-bank {
    display: none;
}

.home-slide-bank {
    display: none;
}

.home-image-layer,
.scene-fade-layer,
.scene-media-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 1.35s ease, transform 8s linear;
    pointer-events: none;
}

.home-image-layer.active,
.scene-fade-layer.active,
.scene-media-layer.active {
    opacity: 1;
    transform: scale(1);
}

.scene-media-layer iframe,
.scene-media-layer video {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 124%;
    height: 124%;
    border: 0;
    object-fit: cover;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.home-video-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity .8s ease, transform 7s linear;
    pointer-events: none;
}

.home-youtube-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 1.1s ease, transform 7.5s linear;
    pointer-events: none;
}

.home-youtube-slide iframe {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 124%;
    height: 124%;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.scene-home.media-video-active .home-video-slide,
.scene-home.media-youtube-active .home-youtube-slide {
    opacity: 1;
    transform: scale(1);
}

.scene-home.media-video-active .home-image-layer,
.scene-home.media-youtube-active .home-image-layer {
    opacity: 0;
}

.category-intro-copy,
.category-copy {
    position: absolute;
    z-index: 3;
    color: var(--white);
    text-shadow: 0 2px 24px rgba(0, 0, 0, .48);
}

.category-intro-copy {
    left: 50%;
    top: 49%;
    width: 680px;
    max-width: calc(100% - 72px);
    text-align: center;
    transform: translate(-50%, -50%);
}

.category-copy {
    left: 76px;
    bottom: 106px;
    width: 570px;
    max-width: calc(100% - 620px);
}

.category-intro-copy .scene-label,
.category-copy .scene-label {
    color: var(--white);
}

.category-intro-copy h1,
.category-copy h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: 72px;
    font-weight: 400;
    line-height: .94;
    text-transform: uppercase;
}

.category-copy h1 {
    font-size: 60px;
}

.category-intro-copy p,
.category-copy p {
    margin: 18px auto 0;
    font-family: var(--serif);
    font-size: 21px;
    line-height: 1.36;
}

.category-copy p {
    margin-right: 0;
    margin-left: 0;
}

.room-command {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 12px;
    width: 480px;
    max-width: calc(100% - 28px);
    background: rgba(255, 250, 244, .9);
    color: var(--ink);
    border: 1px solid rgba(9, 7, 5, .22);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    transform: translateX(-50%);
    transition: width .28s ease;
}

.room-command-head {
    display: grid;
    grid-template-columns: 1fr 42px;
    height: 32px;
    border-bottom: 1px solid var(--ink);
}

.room-command-head span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 0 12px;
    font-size: 12px;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-command-head button {
    border: 0;
    border-left: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-size: 24px;
}

.room-command-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 46px;
}

.room-command-actions button {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-transform: uppercase;
    transition: color .28s ease, background .28s ease;
    overflow: hidden;
}

.room-command-actions button::before {
    content: "";
    position: absolute;
    inset: auto 18px 8px;
    height: 1px;
    background: var(--wine);
    opacity: 0;
    transform: scaleX(.3);
    transition: opacity .28s ease, transform .32s ease;
}

.room-command-actions button:hover,
.room-command-actions button:focus-visible,
.room-command-head button:hover,
.room-command-head button:focus-visible {
    background: #120d09;
    color: #f4dfbd;
}

.room-command-actions button:hover::before,
.room-command-actions button:focus-visible::before {
    opacity: 1;
    transform: scaleX(1);
}

.room-command-actions button + button {
    border-left: 1px solid var(--ink);
}

.room-command-actions span {
    display: inline-block;
    min-width: 18px;
    margin-left: 18px;
    font-size: 20px;
    line-height: 1;
}

.room-detail-sheet {
    position: absolute;
    right: 0;
    bottom: 80px;
    left: 0;
    display: none;
    height: auto;
    overflow: hidden;
    background: rgba(255, 250, 244, .96);
    border: 1px solid var(--ink);
    border-top: 1px solid var(--ink);
    opacity: 0;
    transform: translateY(76px);
    box-shadow: 0 -18px 46px rgba(0, 0, 0, .22);
    will-change: opacity, transform;
    transition: opacity .78s cubic-bezier(.16, 1, .3, 1), transform .92s cubic-bezier(.16, 1, .3, 1), padding .7s ease;
}

.room-command.details-open {
    width: 500px;
}

.room-command.details-open .room-detail-sheet {
    display: block;
    max-height: 430px;
    overflow: auto;
    padding: 34px 28px 38px;
}

.room-detail-sheet h2 {
    margin: 0 0 18px;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.08;
    text-align: center;
}

.room-detail-sheet p {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.45;
}

.room-detail-sheet dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.room-detail-sheet div {
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

.room-detail-sheet dt {
    color: var(--wine);
    font-size: 11px;
    text-transform: uppercase;
}

.room-detail-sheet dd {
    margin: 5px 0 0;
    font-family: var(--serif);
    font-size: 15px;
}

.category-room-links {
    display: grid;
    gap: 1px;
    margin-top: 22px;
    padding: 0;
    border: 0;
    background: var(--ink);
}

.room-detail-sheet .category-room-links {
    padding: 0;
    border: 0;
}

.category-room-links button {
    display: grid;
    gap: 5px;
    min-height: 58px;
    padding: 13px 15px;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    text-align: left;
}

.category-room-links button:hover {
    background: var(--ink);
    color: var(--paper);
}

.category-room-links strong {
    min-width: 0;
    overflow: hidden;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-room-links small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-room-links button:hover small {
    color: rgba(255, 250, 244, .75);
}

.scene-rooms::before {
    background: rgba(0, 0, 0, .16);
}

.rooms-mosaic {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 2px;
    background: var(--paper);
}

.rooms-mosaic.is-shuffling .room-tile {
    opacity: .52;
    transform: scale(.985);
}

.room-tile {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 0;
    background-color: var(--ink);
    background-size: cover;
    background-position: center;
    color: var(--ink);
    transform: translateZ(0);
    transition: opacity .55s ease, transform .55s ease;
}

.room-tile-large-tall {
    grid-column: span 2;
    grid-row: span 2;
}

.room-tile-wide {
    grid-column: span 2;
}

.room-tile::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: inherit;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 1.2s ease, filter .7s ease;
}

.room-tile:hover::before,
.room-tile:focus-visible::before {
    filter: brightness(.86);
    transform: scale(1.055);
}

.room-tile-video,
.room-tile-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.room-tile-video {
    z-index: 1;
    opacity: 0;
    background: var(--ink);
    transition: opacity .22s ease;
}

.room-tile-video iframe {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 124%;
    height: 124%;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.room-tile-video video {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 124%;
    height: 124%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.room-tile.video-ready:hover .room-tile-video,
.room-tile.video-ready:focus-visible .room-tile-video,
.room-tile.video-on .room-tile-video {
    opacity: .92;
}

.room-tile-shade {
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .06), rgba(0, 0, 0, .18));
}

.room-tile-copy {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 20px;
    display: grid;
    gap: 4px;
    width: 288px;
    max-width: calc(100% - 34px);
    min-height: 58px;
    padding: 12px 18px 11px;
    background: rgba(255, 250, 244, .9);
    color: var(--ink);
    border: 1px solid rgba(9, 7, 5, .16);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    text-align: center;
    transform: translateX(-50%);
    transition: transform .45s ease, background .45s ease, color .45s ease;
}

.room-tile:hover .room-tile-copy,
.room-tile:focus-visible .room-tile-copy {
    background: #120d09;
    color: #f4dfbd;
    transform: translate(-50%, -8px);
}

.room-tile-copy strong {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.12;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-tile-copy small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-tile:hover .room-tile-copy small,
.room-tile:focus-visible .room-tile-copy small {
    color: rgba(244, 223, 189, .75);
}

.scene-panel {
    width: 500px;
    padding: 34px;
}

.left-panel {
    left: 46px;
    bottom: 46px;
}

.right-panel {
    right: 46px;
    bottom: 46px;
}

.center-panel {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.panel-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 22px;
}

.panel-thumbs figure {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--ink);
    background-size: cover;
    background-position: center;
}

.service-list {
    display: grid;
    gap: 0;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--serif);
    font-size: 17px;
}

.service-list li {
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.ritual-board {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 46px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 1040px;
    max-width: calc(100% - 72px);
    transform: translateX(-50%);
}

.ritual-board article {
    min-height: 230px;
    padding: 28px;
    background: var(--paper-soft);
    color: var(--ink);
}

.ritual-board span {
    color: var(--wine);
    font-family: var(--serif);
    font-size: 26px;
}

.ritual-board p {
    margin: 14px 0 0;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.5;
}

.split-small {
    height: 150px;
    margin-top: 22px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--ink);
}

.costes-footer {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--bottombar);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: var(--paper);
    border-top: 1px solid var(--ink);
}

.radio-button {
    width: 46px;
    height: 100%;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--ink);
    background: transparent;
}

.radio-button span {
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 13px solid var(--ink);
}

.footer-room-nav,
.footer-arrow {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    text-transform: uppercase;
}

.footer-room-nav {
    justify-content: center;
    gap: 56px;
    min-width: 0;
    overflow: hidden;
}

.footer-room-nav button {
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-room-nav button.active {
    color: var(--wine);
}

.footer-arrow {
    justify-content: center;
    width: 46px;
    padding: 0;
    border: 0;
    background: transparent;
}

.footer-prev {
    border-right: 1px solid var(--ink);
}

.footer-next {
    border-left: 1px solid var(--ink);
}

.footer-arrow span {
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.footer-prev span {
    border-right: 13px solid var(--ink);
}

.footer-next span {
    border-left: 13px solid var(--ink);
}

body.menu-open .scene-stage,
body.booking-open .scene-stage {
    pointer-events: none;
}

/* L'Union signature layer: keeps the cinematic flow, removes the direct Costes copy feeling. */
.costes-header {
    height: 46px;
    background: rgba(255, 250, 244, .96);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(9, 7, 5, .72);
}

.nav-trigger {
    position: relative;
    font-size: 12px;
}

.nav-trigger::after {
    content: "";
    position: absolute;
    right: 15px;
    bottom: 12px;
    left: 15px;
    height: 1px;
    background: var(--wine);
    transform: scaleX(.35);
    transform-origin: left;
    transition: transform .35s ease;
}

.nav-trigger:hover::after {
    transform: scaleX(1);
}

.costes-logo {
    font-size: 24px;
    letter-spacing: .04em;
}

.book-trigger {
    color: #000;
    transition: background .3s ease, color .3s ease;
}

.book-trigger:hover {
    color: var(--paper);
}

.scene {
    filter: saturate(.96);
    transform: scale(1.018) translateY(10px);
    transition: opacity .78s cubic-bezier(.2, .72, .16, 1), transform 1.05s cubic-bezier(.2, .72, .16, 1), visibility .78s ease, filter 1.05s ease;
}

.scene.active {
    filter: saturate(1);
    transform: scale(1) translateY(0);
}

.scene.is-leaving {
    opacity: 0;
    transform: scale(1.035) translateY(-10px);
}

.scene::before {
    background: radial-gradient(circle at 28% 28%, rgba(255, 248, 230, .08), transparent 28%), linear-gradient(120deg, rgba(4, 3, 2, .48), rgba(4, 3, 2, .17) 45%, rgba(4, 3, 2, .44));
}

.room-scene::before {
    background: linear-gradient(90deg, rgba(4, 3, 2, .42), rgba(4, 3, 2, .12) 42%, rgba(4, 3, 2, .32));
}

.scene-kicker {
    top: 22px;
    letter-spacing: .08em;
}

.home-copy {
    left: 72px;
    bottom: 82px;
    width: 700px;
}

.home-copy h1 {
    font-size: 64px;
    text-transform: none;
}

.home-copy button,
.scene-panel button,
.book-panel form button {
    border-color: rgba(255, 250, 244, .72);
    background: rgba(255, 250, 244, .86);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
    transition: transform .28s ease, background .28s ease, color .28s ease, box-shadow .28s ease;
}

.home-copy button:hover,
.scene-panel button:hover,
.book-panel form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
}

.costes-menu {
    display: block;
    padding: 0;
    background: rgba(8, 6, 4, .82);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .42s ease, transform .55s cubic-bezier(.16, 1, .3, 1), visibility .42s ease;
}

.costes-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-inner {
    width: 100%;
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(360px, 1fr);
    gap: 0;
    margin: 0;
}

.menu-inner::before {
    content: "L'Union Han";
    display: flex;
    align-items: flex-end;
    padding: 48px 46px;
    background: linear-gradient(to top, rgba(8, 6, 4, .76), rgba(8, 6, 4, .12)), url("../images/facade-street.jpg") center/cover;
    color: rgba(255, 250, 244, .9);
    font-family: var(--serif);
    font-size: 46px;
    line-height: 1;
}

.menu-primary {
    counter-reset: menuItem;
    align-content: center;
    gap: 0;
    padding: 54px 7vw;
    background: rgba(255, 250, 244, .95);
}

.menu-primary button {
    counter-increment: menuItem;
    position: relative;
    min-height: 66px;
    padding: 0 0 0 54px;
    border-bottom: 1px solid rgba(9, 7, 5, .13);
    background: transparent;
    text-align: left;
    font-family: var(--serif);
    font-size: 31px;
    text-transform: none;
    transition: color .28s ease, padding .34s ease, background .28s ease;
}

.menu-primary button::before {
    content: "0" counter(menuItem);
    position: absolute;
    left: 0;
    top: 50%;
    color: var(--wine);
    font-family: var(--sans);
    font-size: 11px;
    transform: translateY(-50%);
}

.menu-primary button:hover,
.menu-primary button:focus-visible {
    padding-left: 68px;
    background: rgba(125, 17, 24, .055);
    color: var(--wine);
}

.menu-close {
    z-index: 2;
}

.rooms-mosaic {
    gap: 10px;
    padding: 18px;
    background: #100b08;
}

.rooms-mosaic.is-shuffling .room-tile {
    opacity: .7;
    transform: scale(.975) translateY(8px);
}

.room-tile {
    border-radius: 4px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .26);
    transition: opacity .65s ease, transform .7s cubic-bezier(.16, 1, .3, 1), box-shadow .45s ease;
}

.room-tile:hover,
.room-tile:focus-visible {
    z-index: 4;
    box-shadow: 0 24px 58px rgba(0, 0, 0, .34);
    transform: translateY(-4px);
}

.room-tile::before {
    transition: transform 1.8s cubic-bezier(.16, 1, .3, 1), filter .8s ease;
}

.room-tile-copy {
    left: 22px;
    right: 22px;
    bottom: 18px;
    width: auto;
    max-width: none;
    min-height: 62px;
    padding: 13px 16px;
    background: rgba(255, 250, 244, .86);
    text-align: left;
    transform: none;
}

.room-tile-copy::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 12px;
    width: 34px;
    height: 1px;
    background: var(--wine);
}

.room-tile-copy strong {
    padding-top: 9px;
    font-family: var(--serif);
    font-size: 18px;
    text-transform: none;
}

.room-tile:hover .room-tile-copy,
.room-tile:focus-visible .room-tile-copy {
    background: rgba(18, 13, 9, .9);
    transform: translateY(-8px);
}

.category-copy {
    left: 70px;
    bottom: 120px;
    max-width: 560px;
}

.category-copy h1,
.category-intro-copy h1 {
    text-transform: none;
}

.slide-arrow {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 250, 244, .48);
    border-radius: 50%;
    background: rgba(9, 7, 5, .22);
    color: var(--paper);
    font-size: 0;
    backdrop-filter: blur(7px);
    transition: background .3s ease, transform .3s ease, border-color .3s ease;
}

.slide-arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;
}

.slide-prev::before {
    transform: translate(-35%, -50%) rotate(-45deg);
}

.slide-next::before {
    transform: translate(-65%, -50%) rotate(135deg);
}

.slide-arrow:hover {
    background: rgba(255, 250, 244, .92);
    border-color: rgba(255, 250, 244, .92);
    color: var(--ink);
    transform: translateY(-50%) scale(1.04);
}

.room-command {
    right: 54px;
    left: auto;
    bottom: 28px;
    width: 430px;
    background: rgba(255, 250, 244, .88);
    border-color: rgba(255, 250, 244, .42);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .26);
    transform: none;
    backdrop-filter: blur(12px);
}

.room-command-head {
    height: 38px;
    border-bottom-color: rgba(9, 7, 5, .22);
}

.room-command-head span {
    justify-content: flex-start;
    padding-left: 18px;
    font-family: var(--serif);
    font-size: 17px;
    text-transform: none;
}

.room-command-actions {
    height: 50px;
}

.room-detail-sheet {
    bottom: 92px;
    background: rgba(255, 250, 244, .97);
    border-color: rgba(9, 7, 5, .18);
    transform: translateY(92px);
}

.room-command.details-open {
    width: 520px;
}

.room-detail-sheet h2 {
    text-align: left;
}

.restaurant-panel {
    left: 56px;
    bottom: 52px;
    width: 560px;
    background: rgba(255, 250, 244, .91);
    backdrop-filter: blur(10px);
}

.restaurant-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 24px 0;
    background: rgba(9, 7, 5, .18);
}

.restaurant-notes span {
    display: grid;
    gap: 4px;
    padding: 14px 12px;
    background: rgba(255, 250, 244, .78);
    font-size: 11px;
    text-transform: uppercase;
}

.restaurant-notes strong {
    color: var(--wine);
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    text-transform: none;
}

.restaurant-strip {
    position: absolute;
    z-index: 3;
    right: 54px;
    top: 78px;
    display: grid;
    gap: 10px;
    width: 230px;
}

.restaurant-strip span {
    padding: 14px 18px;
    background: rgba(9, 7, 5, .56);
    color: rgba(255, 250, 244, .92);
    border-left: 2px solid rgba(244, 223, 189, .64);
    backdrop-filter: blur(8px);
    font-family: var(--serif);
    font-size: 21px;
}

.panel-thumbs figure {
    border: 0;
    border-radius: 4px;
    filter: saturate(.92);
}

.admin-body {
    min-height: 100%;
    overflow: auto;
    background: #f8f1ea;
    color: var(--ink);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
}

.admin-sidebar {
    padding: 28px;
    background: var(--ink);
    color: #fff;
}

.admin-sidebar strong {
    display: block;
    margin-bottom: 34px;
}

.admin-sidebar a {
    display: block;
    padding: 13px 0;
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    color: #fff;
}

.admin-main {
    padding: 34px;
}

.admin-card {
    margin-bottom: 22px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
}

.admin-card h1,
.admin-card h2 {
    margin-top: 0;
    font-family: var(--serif);
    font-weight: 400;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-form .wide,
.admin-form button {
    grid-column: 1 / -1;
}

.admin-form label {
    display: grid;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    min-height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    background: #fffaf6;
    color: var(--ink);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    font-size: 12px;
    text-transform: uppercase;
}

.admin-button {
    min-height: 44px;
    border: 1px solid var(--wine);
    background: var(--wine);
    color: #fff;
    text-transform: uppercase;
}

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-login .admin-card {
    width: 420px;
    max-width: 100%;
}

@media (max-width: 1120px) {
    .costes-header {
        grid-template-columns: minmax(270px, 1fr) auto minmax(160px, 1fr);
    }

    .breadcrumbs {
        gap: 8px;
    }

    .home-copy {
        left: 42px;
        width: 520px;
    }

    .story-card {
        width: 420px;
    }

    .rooms-directory {
        grid-template-columns: 330px 1fr;
    }
}

@media (max-width: 900px) {
    :root {
        --topbar: 46px;
        --bottombar: 42px;
    }

    .costes-header {
        grid-template-columns: 74px minmax(0, 1fr) 74px;
    }

    .header-left {
        min-width: 0;
    }

    .nav-trigger,
    .book-trigger {
        width: 74px;
        font-size: 12px;
    }

    .breadcrumbs {
        display: none;
    }

    .costes-logo {
        min-width: 0;
        padding: 0 8px;
        overflow: hidden;
        font-size: 17px;
        text-overflow: ellipsis;
    }

    .languages {
        display: none;
    }

    .book-trigger {
        border-left: 1px solid var(--ink);
    }

    .scene-kicker {
        top: 13px;
        max-width: calc(100% - 36px);
        overflow: hidden;
        font-size: 13px;
        text-overflow: ellipsis;
    }

    .story-card {
        top: 52px;
        right: 14px;
        left: 14px;
        width: auto;
        min-height: 0;
        max-height: 300px;
        padding: 25px 20px 18px;
        overflow: auto;
    }

    .story-card p {
        font-size: 14px;
    }

    .home-copy {
        left: 20px;
        right: 20px;
        bottom: 42px;
        width: auto;
    }

    .home-copy h1 {
        font-size: 38px;
    }

    .home-copy p {
        margin: 16px 0 20px;
        font-size: 18px;
    }

    .heritage-panel,
    .scene-panel {
        right: 14px;
        left: 14px;
        bottom: 14px;
        width: auto;
        max-height: 58%;
        padding: 22px;
        overflow: auto;
    }

    .heritage-panel h2,
    .scene-panel h2,
    .rooms-title h1 {
        font-size: 31px;
    }

    .heritage-panel p,
    .scene-panel p,
    .rooms-title p {
        font-size: 15px;
    }

    .heritage-photo {
        top: 52px;
        right: 14px;
        width: 170px;
        height: 210px;
    }

    .rooms-directory {
        left: 14px;
        right: 14px;
        top: 58px;
        bottom: 14px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: auto;
        max-width: none;
        transform: none;
    }

    .rooms-title {
        padding: 20px;
    }

    .rooms-list {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .rooms-list button {
        min-height: 58px;
    }

    .rooms-mosaic {
        top: 0;
        bottom: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: 238px;
        overflow-y: auto;
        padding-bottom: 14px;
    }

    .room-tile-large-tall,
    .room-tile-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .room-tile-copy {
        bottom: 14px;
        width: 154px;
        min-height: 54px;
        padding: 11px 12px 10px;
    }

    .room-tile-copy strong {
        font-size: 12px;
        white-space: normal;
    }

    .room-tile-copy small {
        font-size: 10px;
        white-space: normal;
    }

    .category-intro-copy {
        right: 20px;
        left: 20px;
        top: auto;
        bottom: 98px;
        width: auto;
        max-width: none;
        text-align: left;
        transform: none;
    }

    .category-copy {
        right: 20px;
        left: 20px;
        bottom: 100px;
        width: auto;
        max-width: none;
    }

    .category-intro-copy h1,
    .category-copy h1 {
        font-size: 42px;
    }

    .category-intro-copy p,
    .category-copy p {
        margin-top: 13px;
        font-size: 17px;
    }

    .slide-arrow {
        top: 50%;
        bottom: 118px;
        width: 42px;
        height: 52px;
        font-size: 34px;
    }

    .slide-prev {
        left: 8px;
    }

    .slide-next {
        right: 8px;
    }

    .slide-counter {
        display: none;
    }

    .room-command {
        bottom: 10px;
        width: 360px;
    }

    .room-command.details-open {
        width: calc(100% - 28px);
    }

    .room-command.details-open .room-detail-sheet {
        display: block;
        max-height: 470px;
        padding: 24px 22px 28px;
    }

    .room-detail-sheet h2 {
        font-size: 25px;
    }

    .room-detail-sheet p {
        font-size: 15px;
    }

    .category-room-links button {
        min-height: 54px;
    }

    .category-room-links strong {
        font-size: 18px;
    }

    .ritual-board {
        left: 14px;
        right: 14px;
        top: 58px;
        bottom: 14px;
        grid-template-columns: 1fr;
        width: auto;
        max-width: none;
        overflow: auto;
        transform: none;
    }

    .ritual-board article {
        min-height: 150px;
        padding: 22px;
    }

    .panel-thumbs {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .scene-contact .center-panel {
        top: 58px;
        right: 14px;
        bottom: 14px;
        left: 14px;
        display: flex;
        width: auto;
        max-height: none;
        flex-direction: column;
        justify-content: center;
        transform: none;
    }

    .scene-contact .center-panel h2 {
        overflow-wrap: break-word;
    }

    .form-row,
    .fact-grid,
    .admin-shell,
    .admin-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .menu-primary button {
        min-height: 48px;
        font-size: 15px;
    }

    .menu-rooms {
        grid-template-columns: 1fr;
    }

    .home-copy h1 {
        font-size: 34px;
    }

    .home-copy button,
    .scene-panel button,
    .book-panel form button {
        min-width: 130px;
    }

    .room-command {
        width: calc(100% - 28px);
    }

    .room-command-head span {
        font-size: 11px;
    }

    .room-command-actions span {
        margin-left: 8px;
    }

    .category-intro-copy h1,
    .category-copy h1 {
        font-size: 36px;
    }

    .category-room-links small {
        white-space: normal;
    }

    .rooms-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 244px;
    }

    .room-tile-copy {
        width: 240px;
    }

    .footer-room-nav {
        padding: 0 10px;
        font-size: 12px;
    }

    .footer-room-nav {
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
    }

    .footer-room-nav button {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .menu-inner {
        display: block;
        min-height: 100%;
    }

    .menu-inner::before {
        min-height: 150px;
        padding: 26px 22px;
        font-size: 34px;
    }

    .menu-primary {
        padding: 18px 22px 28px;
    }

    .menu-primary button {
        min-height: 52px;
        padding-left: 42px;
        font-size: 23px;
    }

    .menu-primary button:hover,
    .menu-primary button:focus-visible {
        padding-left: 50px;
    }

    .home-copy {
        left: 22px;
        right: 22px;
        bottom: 50px;
        width: auto;
    }

    .home-copy h1 {
        font-size: 39px;
    }

    .rooms-mosaic {
        gap: 8px;
        padding: 10px;
    }

    .room-tile-copy {
        right: 14px;
        left: 14px;
        width: auto;
    }

    .room-command,
    .room-command.details-open {
        right: 14px;
        left: 14px;
        width: auto;
        transform: none;
    }

    .restaurant-panel {
        right: 14px;
        left: 14px;
        bottom: 14px;
        width: auto;
    }

    .restaurant-strip {
        right: 14px;
        top: 58px;
        width: 190px;
    }

    .restaurant-strip span {
        padding: 10px 13px;
        font-size: 16px;
    }

    .slide-arrow {
        width: 48px;
        height: 48px;
        font-size: 0;
    }
}

/* Signature 02: full-bleed editorial hotel interface. */
.scene-stage {
    top: 0;
    bottom: 0;
}

.costes-header {
    top: 14px;
    right: 18px;
    left: 18px;
    height: 54px;
    grid-template-columns: minmax(260px, 1fr) auto minmax(190px, 1fr);
    overflow: hidden;
    background: rgba(255, 250, 244, .74);
    border: 1px solid rgba(255, 250, 244, .46);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.costes-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255, 250, 244, .5), rgba(255, 250, 244, .86), rgba(255, 250, 244, .5));
    backdrop-filter: blur(14px);
}

.nav-trigger,
.languages,
.book-trigger {
    border-color: rgba(9, 7, 5, .22);
}

.nav-trigger {
    flex-basis: 88px;
    width: 88px;
}

.book-trigger {
    width: 92px;
}

.costes-logo {
    font-size: 22px;
}

.breadcrumbs {
    font-size: 11px;
}

.scene-kicker {
    top: 86px;
    left: 32px;
    transform: none;
    padding: 8px 12px;
    background: rgba(9, 7, 5, .3);
    border-left: 2px solid rgba(244, 223, 189, .72);
    backdrop-filter: blur(8px);
    font-size: 12px;
}

.scene::before {
    background: radial-gradient(circle at 74% 30%, rgba(244, 223, 189, .12), transparent 28%), linear-gradient(110deg, rgba(7, 5, 4, .58), rgba(7, 5, 4, .16) 46%, rgba(7, 5, 4, .46));
}

.home-copy {
    left: 7vw;
    bottom: 112px;
    width: min(720px, 58vw);
}

.home-copy h1 {
    font-size: 76px;
    line-height: .9;
}

.home-copy p {
    max-width: 500px;
}

.home-copy button,
.scene-panel button,
.book-panel form button {
    border: 0;
    border-radius: 8px;
    background: rgba(255, 250, 244, .88);
}

.costes-footer {
    right: 22px;
    bottom: 16px;
    left: 22px;
    height: 52px;
    overflow: hidden;
    background: rgba(9, 7, 5, .68);
    border: 1px solid rgba(255, 250, 244, .24);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .26);
    backdrop-filter: blur(12px);
}

.footer-room-nav {
    gap: 26px;
}

.footer-room-nav button {
    color: rgba(255, 250, 244, .78);
    font-size: 12px;
}

.footer-room-nav button.active {
    color: #f4dfbd;
}

.footer-arrow {
    width: 58px;
}

.footer-prev,
.footer-next {
    border-color: rgba(255, 250, 244, .22);
}

.footer-prev span {
    border-right-color: #f4dfbd;
}

.footer-next span {
    border-left-color: #f4dfbd;
}

.costes-menu {
    top: 0;
    bottom: 0;
    background: rgba(8, 6, 4, .72);
    backdrop-filter: blur(12px);
}

.menu-inner {
    min-height: 100vh;
    padding: 16px;
    grid-template-columns: minmax(330px, .78fr) minmax(390px, 1fr);
}

.menu-inner::before {
    border-radius: 8px 0 0 8px;
}

.menu-primary {
    border-radius: 0 8px 8px 0;
}

.menu-close {
    top: 28px;
    right: 28px;
}

.rooms-mosaic {
    inset: 86px 18px 84px;
    grid-template-columns: 1.15fr .85fr 1fr 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    background: transparent;
}

.room-tile {
    border-radius: 8px;
}

.room-tile-large-tall {
    grid-column: span 2;
    grid-row: span 2;
}

.room-tile-wide {
    grid-column: span 2;
}

.room-tile-copy {
    right: 18px;
    left: 18px;
    bottom: 18px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}

.category-copy {
    left: 7vw;
    bottom: 128px;
}

.category-copy h1 {
    font-size: 68px;
    line-height: .92;
}

.room-scene .room-command {
    right: auto;
    left: 54px;
    bottom: 86px;
}

.category-scene .room-command {
    right: 54px;
    bottom: 86px;
}

.room-command {
    border: 1px solid rgba(255, 250, 244, .38);
    border-radius: 8px;
    overflow: visible;
}

.room-command-head {
    border-radius: 8px 8px 0 0;
}

.room-command-actions button:first-child {
    border-radius: 0 0 0 8px;
}

.room-command-actions button:last-child {
    border-radius: 0 0 8px 0;
}

.room-detail-sheet {
    border: 0;
    border-radius: 8px;
}

.slide-arrow {
    top: auto;
    bottom: 94px;
}

.slide-prev {
    left: auto;
    right: 104px;
}

.slide-next {
    right: 32px;
}

.slide-counter {
    right: 32px;
    bottom: 166px;
    padding: 7px 10px;
    background: rgba(9, 7, 5, .34);
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.heritage-panel,
.scene-panel {
    border-radius: 8px;
    border: 1px solid rgba(255, 250, 244, .34);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.heritage-panel {
    left: 7vw;
    bottom: 112px;
}

.heritage-photo {
    right: 7vw;
    top: 120px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.restaurant-panel {
    left: 7vw;
    bottom: 104px;
    width: 600px;
}

.restaurant-strip {
    right: 7vw;
    top: 126px;
}

.restaurant-strip span {
    border-left: 0;
    border-radius: 8px;
}

.ritual-board {
    bottom: 106px;
}

.ritual-board article {
    border-radius: 8px;
}

.center-panel {
    top: 52%;
}

@media (max-width: 900px) {
    .scene-stage {
        top: 0;
        bottom: 0;
    }

    .costes-header {
        top: 8px;
        right: 8px;
        left: 8px;
        height: 50px;
        grid-template-columns: 70px minmax(0, 1fr) 70px;
    }

    .nav-trigger,
    .book-trigger {
        width: 70px;
    }

    .scene-kicker {
        top: 70px;
        left: 14px;
        max-width: calc(100% - 28px);
    }

    .home-copy {
        right: 22px;
        left: 22px;
        bottom: 86px;
        width: auto;
    }

    .home-copy h1 {
        font-size: 42px;
    }

    .costes-footer {
        right: 8px;
        bottom: 8px;
        left: 8px;
        height: 48px;
    }

    .footer-arrow {
        width: 48px;
    }

    .rooms-mosaic {
        inset: 70px 8px 64px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 240px;
        gap: 8px;
        overflow-y: auto;
    }

    .room-tile-large-tall,
    .room-tile-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .room-scene .room-command,
    .category-scene .room-command,
    .room-command,
    .room-command.details-open {
        right: 12px;
        bottom: 66px;
        left: 12px;
        width: auto;
    }

    .slide-arrow {
        bottom: 150px;
    }

    .slide-prev {
        right: 74px;
        left: auto;
    }

    .slide-next {
        right: 18px;
    }

    .category-copy {
        right: 22px;
        left: 22px;
        bottom: 270px;
    }

    .category-copy h1 {
        font-size: 40px;
    }

    .restaurant-panel,
    .heritage-panel,
    .scene-panel {
        right: 14px;
        left: 14px;
        bottom: 70px;
        width: auto;
        max-height: 55%;
    }

    .restaurant-strip {
        display: none;
    }

    .menu-inner {
        display: block;
        padding: 8px;
    }

    .menu-inner::before {
        border-radius: 8px 8px 0 0;
    }

    .menu-primary {
        border-radius: 0 0 8px 8px;
    }
}

/* Mobile rooms become an immersive vertical deck, not a compressed desktop grid. */
@media (max-width: 900px) {
    .scene-rooms::before {
        background: linear-gradient(180deg, rgba(5, 4, 3, .55), rgba(5, 4, 3, .08) 30%, rgba(5, 4, 3, .72));
    }

    .scene-rooms .scene-kicker {
        top: 72px;
        left: 18px;
        padding: 9px 13px;
        background: rgba(255, 250, 244, .82);
        color: var(--ink);
        border: 0;
        border-radius: 999px;
        box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
        text-shadow: none;
    }

    .rooms-mosaic {
        counter-reset: roomCard;
        inset: 0;
        display: block;
        padding: 128px 12px 82px;
        overflow-x: hidden;
        overflow-y: auto;
        background: linear-gradient(180deg, #120d09 0%, #241711 42%, #0d0907 100%);
        scroll-padding-top: 120px;
        scroll-snap-type: y proximity;
        -webkit-overflow-scrolling: touch;
    }

    .rooms-mosaic::before {
        content: "Suites selected for slow mornings, brass light and restored Istanbul texture.";
        display: block;
        max-width: 320px;
        margin: 0 8px 18px;
        color: rgba(255, 250, 244, .82);
        font-family: var(--serif);
        font-size: 18px;
        line-height: 1.28;
    }

    .room-tile,
    .room-tile-large-tall,
    .room-tile-wide {
        counter-increment: roomCard;
        display: block;
        width: 100%;
        height: min(62vh, 520px);
        min-height: 370px;
        margin: 0 0 16px;
        border-radius: 18px;
        box-shadow: 0 28px 70px rgba(0, 0, 0, .42);
        scroll-snap-align: start;
        transform: translateZ(0);
    }

    .room-tile:nth-child(2n) {
        height: min(58vh, 490px);
    }

    .room-tile:nth-child(3n) {
        height: min(66vh, 550px);
    }

    .room-tile::before {
        inset: 0;
        filter: saturate(.98) contrast(1.02);
        transform: scale(1.02);
    }

    .room-tile::after {
        content: "0" counter(roomCard);
        position: absolute;
        z-index: 4;
        top: 18px;
        right: 18px;
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        background: rgba(255, 250, 244, .82);
        color: var(--ink);
        border-radius: 50%;
        box-shadow: 0 14px 32px rgba(0, 0, 0, .2);
        font-family: var(--serif);
        font-size: 17px;
    }

    .room-tile-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .1) 38%, rgba(0, 0, 0, .72));
    }

    .room-tile-video {
        border-radius: 18px;
        overflow: hidden;
    }

    .room-tile.video-on .room-tile-video,
    .room-tile.video-ready:focus-visible .room-tile-video {
        opacity: .84;
    }

    .room-tile-copy {
        right: 14px;
        bottom: 14px;
        left: 14px;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 4px 14px;
        min-height: 104px;
        padding: 22px 20px 18px;
        background: rgba(255, 250, 244, .9);
        border-radius: 14px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
        transform: none;
    }

    .room-tile-copy::before {
        left: 20px;
        top: 17px;
        width: 46px;
    }

    .room-tile-copy::after {
        content: "";
        align-self: center;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(9, 7, 5, .3);
        border-radius: 50%;
        background: linear-gradient(135deg, transparent 45%, rgba(9, 7, 5, .78) 46%, rgba(9, 7, 5, .78) 50%, transparent 51%);
    }

    .room-tile-copy strong {
        grid-column: 1;
        padding-top: 18px;
        font-size: 25px;
        line-height: .98;
        white-space: normal;
    }

    .room-tile-copy small {
        grid-column: 1;
        color: rgba(9, 7, 5, .62);
        font-size: 11px;
        white-space: normal;
    }

    .room-tile:hover,
    .room-tile:focus-visible,
    .room-tile.video-on {
        box-shadow: 0 34px 78px rgba(0, 0, 0, .5);
        transform: translateY(-2px);
    }

    .room-tile:hover .room-tile-copy,
    .room-tile:focus-visible .room-tile-copy,
    .room-tile.video-on .room-tile-copy {
        background: rgba(255, 250, 244, .94);
        color: var(--ink);
        transform: none;
    }

    .room-tile:hover .room-tile-copy small,
    .room-tile:focus-visible .room-tile-copy small,
    .room-tile.video-on .room-tile-copy small {
        color: rgba(9, 7, 5, .62);
    }

    .costes-footer {
        background: rgba(13, 9, 7, .76);
    }
}

@media (max-width: 430px) {
    .rooms-mosaic {
        padding-right: 10px;
        padding-left: 10px;
    }

    .room-tile,
    .room-tile:nth-child(2n),
    .room-tile:nth-child(3n) {
        height: min(64vh, 500px);
        min-height: 360px;
    }

    .room-tile-copy {
        min-height: 100px;
        padding: 21px 18px 17px;
    }

    .room-tile-copy strong {
        font-size: 23px;
    }
}

/* Rooms visibility guard: the desktop mosaic has 10 rooms with mixed spans, so it needs four rows. */
@media (min-width: 901px) {
    .rooms-mosaic {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
        overflow: hidden;
    }

    .room-tile-large-tall {
        grid-column: span 2;
        grid-row: span 2;
    }

    .room-tile-wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* Rooms gallery 02: clean editorial collection, stable on every refresh. */
@media (min-width: 901px) {
    .scene-rooms .scene-kicker {
        top: 82px;
        left: 34px;
    }

    .rooms-mosaic {
        inset: 122px 30px 86px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        gap: 14px;
        padding: 0;
        overflow: hidden;
        background: transparent;
    }

    .room-tile,
    .room-tile-large-tall,
    .room-tile-wide {
        grid-column: auto;
        grid-row: auto;
        min-height: 0;
        border-radius: 12px;
        box-shadow: 0 24px 62px rgba(0, 0, 0, .28);
        transform: translateZ(0);
    }

    .room-tile:nth-child(1),
    .room-tile:nth-child(6) {
        border-radius: 22px 12px 12px 12px;
    }

    .room-tile:nth-child(5),
    .room-tile:nth-child(10) {
        border-radius: 12px 22px 12px 12px;
    }

    .room-tile::before {
        transform: scale(1.03);
    }

    .room-tile:hover,
    .room-tile:focus-visible {
        box-shadow: 0 28px 72px rgba(0, 0, 0, .38);
        transform: translateY(-5px);
    }

    .room-tile-copy {
        right: 12px;
        bottom: 12px;
        left: 12px;
        min-height: 74px;
        padding: 18px 15px 13px;
        border-radius: 10px;
        background: rgba(255, 250, 244, .9);
    }

    .room-tile-copy strong {
        font-size: 17px;
        line-height: 1.04;
        white-space: normal;
    }

    .room-tile-copy small {
        font-size: 10px;
        white-space: normal;
    }
}

@media (max-width: 900px) {
    .rooms-mosaic {
        padding: 122px 14px 84px;
        background: linear-gradient(180deg, #0e0a08 0%, #241610 48%, #0e0a08 100%);
        scroll-snap-type: y proximity;
    }

    .rooms-mosaic::before {
        max-width: 330px;
        margin: 0 4px 16px;
        color: rgba(255, 250, 244, .78);
        font-size: 16px;
    }

    .room-tile,
    .room-tile:nth-child(2n),
    .room-tile:nth-child(3n),
    .room-tile-large-tall,
    .room-tile-wide {
        height: 292px;
        min-height: 292px;
        margin-bottom: 12px;
        border-radius: 14px;
        box-shadow: 0 22px 54px rgba(0, 0, 0, .34);
        scroll-snap-align: start;
    }

    .room-tile:nth-child(4n + 1) {
        height: 342px;
        min-height: 342px;
    }

    .room-tile:nth-child(4n + 3) {
        height: 322px;
        min-height: 322px;
    }

    .room-tile::after {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .room-tile-video {
        border-radius: 14px;
    }

    .room-tile-copy {
        right: 12px;
        bottom: 12px;
        left: 12px;
        min-height: 88px;
        padding: 19px 16px 15px;
        border-radius: 12px;
    }

    .room-tile-copy strong {
        font-size: 21px;
        line-height: 1.02;
    }

    .room-tile-copy small {
        font-size: 10px;
    }
}
