: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: "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    --serif: 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 .42s ease, transform .65s ease, visibility .42s ease, background-image .25s ease;
}

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

.scene::before {
    content: "";
    position: absolute;
    inset: 0;
    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 .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;
}

.room-command {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 12px;
    width: 480px;
    max-width: calc(100% - 28px);
    background: var(--paper-glass);
    color: var(--ink);
    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 {
    border: 0;
    background: transparent;
    color: var(--ink);
    text-transform: uppercase;
}

.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 {
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--ink);
    opacity: 0;
    transform: translateY(16px);
    transition: max-height .36s ease, opacity .28s ease, transform .36s ease, padding .36s ease;
}

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

.room-command.details-open .room-detail-sheet {
    max-height: 430px;
    overflow: auto;
    padding: 34px 28px 38px;
    opacity: 1;
    transform: translateY(0);
}

.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;
}

.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-title,
.footer-next {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    text-transform: uppercase;
}

.footer-title {
    justify-self: start;
    width: 100%;
    text-align: left;
}

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

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

.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;
    }

    .slide-arrow {
        top: auto;
        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 {
        max-height: 470px;
        padding: 24px 22px 28px;
    }

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

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

    .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;
    }

    .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;
    }

    .footer-title,
    .footer-next {
        padding: 0 10px;
        font-size: 12px;
    }
}
