:root {
    --stay-page-gutter: clamp(24px, 2.5vw, 48px);
    --stay-bg: #f7f4ee;
    --stay-paper: #fffdf9;
    --stay-ink: #211711;
    --stay-muted: #6b625d;
    --stay-line: rgba(33, 23, 17, 0.12);
    --stay-clay: #bf6430;
    --stay-clay-dark: #8f451f;
    --stay-teal: #1f6f78;
    --stay-green: #176f4a;
}

* {
    box-sizing: border-box;
}

body.accommodation-page {
    min-height: 100vh;
    margin: 0;
    background: var(--stay-bg);
    color: var(--stay-ink);
    font-family: 'Poppins', Arial, sans-serif;
}

body.booking-modal-open {
    overflow: hidden;
}

html[data-language="ar"] body.accommodation-page,
html[data-language="ar"] body.accommodation-page *:not(.material-icons) {
    font-family: var(--font-ar);
}

html[data-language="ar"] .accommodation-page {
    direction: rtl;
}

html[data-language="ar"] .booking-hero::after {
    display: none;
}

.accommodation-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: ltr;
    min-height: 78px;
    padding: 18px var(--stay-page-gutter);
    background: transparent;
    pointer-events: none;
}

.accommodation-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--stay-clay-dark);
    box-shadow: 0 10px 26px rgba(33, 23, 17, 0.12);
    pointer-events: auto;
    direction: ltr;
}

.accommodation-brand .ar {
    direction: rtl;
    line-height: 1;
}

.accommodation-brand img {
    width: 31px;
    height: 31px;
    object-fit: contain;
}

.booking-hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    padding: calc(78px + clamp(22px, 5vw, 64px)) var(--stay-page-gutter) clamp(112px, 16vh, 178px);
    overflow: hidden;
    color: var(--stay-ink);
    background: #eef5ff;
}

.accommodation-page .language-selector {
    left: auto;
    right: var(--stay-page-gutter);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(33, 23, 17, 0.12);
}

.booking-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.booking-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.eyebrow {
    margin: 0 0 10px;
    color: #a7e1dd;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    color: var(--stay-ink);
    font-size: clamp(1.25rem, 3.5vw, 2.9rem);
    line-height: 0.95;
}

.booking-search-shell {
    position: absolute;
    left: 50%;
    bottom: clamp(88px, 10vh, 124px);
    z-index: 2;
    transform: translateX(-50%);
    margin: 0;
    scroll-margin-top: 92px;
    width: calc(100% - (var(--stay-page-gutter) * 2));
    max-width: 1760px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 22px 54px rgba(33, 23, 17, 0.14);
    padding: 14px;
}

.booking-search {
    display: grid;
    grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(130px, 0.8fr)) auto;
    gap: 10px;
    align-items: end;
}

.booking-search label,
.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--stay-muted);
    font-size: 12px;
    font-weight: 800;
}

.booking-search input,
.booking-search select,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--stay-line);
    border-radius: 8px;
    background: #fff;
    color: var(--stay-ink);
    padding: 10px 12px;
    font: inherit;
}

.search-btn,
.book-btn {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--stay-ink);
    color: #fff;
    padding: 12px 18px;
    font: inherit;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 170ms ease, background 170ms ease;
}

.search-btn:hover,
.book-btn:hover {
    transform: translateY(-1px);
    background: var(--stay-clay-dark);
}

.booking-layout {
    width: calc(100% - (var(--stay-page-gutter) * 2));
    max-width: 1760px;
    margin: 24px auto 110px;
    display: grid;
    grid-template-columns: clamp(340px, 20vw, 390px) minmax(0, 1fr);
    gap: 24px;
}

.accommodation-page:not(.has-searched) .booking-layout {
    display: none;
}

.accommodation-page.has-searched .booking-hero {
    min-height: clamp(460px, 58vh, 620px);
    padding-bottom: clamp(96px, 13vh, 142px);
}

.accommodation-page.has-searched .booking-search-shell {
    bottom: 24px;
}

.filter-panel {
    align-self: start;
    position: sticky;
    top: 16px;
    display: grid;
    gap: 14px;
    border: 1px solid var(--stay-line);
    border-radius: 8px;
    background: var(--stay-paper);
    padding: 16px;
    box-shadow: 0 18px 46px rgba(92, 58, 31, 0.08);
}

.filter-heading {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.filter-heading h2,
.results-heading h2 {
    margin: 0;
    color: var(--stay-clay);
    font-size: 24px;
}

.clear-btn {
    min-height: 34px;
    border: 1px solid var(--stay-line);
    border-radius: 8px;
    background: #fff;
    color: var(--stay-clay-dark);
    padding: 7px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.amenity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.amenity-chip,
.stay-amenities span,
.stay-badges span {
    border: 1px solid var(--stay-line);
    border-radius: 999px;
    background: #fff;
    color: var(--stay-muted);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

.amenity-chip {
    cursor: pointer;
}

.amenity-chip.is-active {
    border-color: var(--stay-teal);
    background: var(--stay-teal);
    color: #fff;
}

.results-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
    margin-bottom: 12px;
}

.results-heading p {
    margin: 5px 0 0;
    color: var(--stay-muted);
    font-weight: 700;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: rgba(31, 111, 120, 0.1);
    color: var(--stay-teal);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.trust-row .material-icons,
.stay-meta .material-icons {
    font-size: 17px;
}

.stay-list {
    display: grid;
    gap: 14px;
}

.stay-card {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) 172px;
    gap: 20px;
    border: 1px solid var(--stay-line);
    border-radius: 8px;
    background: var(--stay-paper);
    padding: 12px;
    box-shadow: 0 16px 44px rgba(92, 58, 31, 0.07);
}

.stay-photo {
    position: relative;
    min-height: 196px;
    aspect-ratio: 340 / 196;
    overflow: hidden;
    border-radius: 8px;
    background: #e7ded4;
}

.stay-photo img {
    width: 100%;
    height: 100%;
    min-height: 196px;
    object-fit: cover;
    display: block;
    transition: transform 260ms ease;
}

.stay-card:hover .stay-photo img {
    transform: scale(1.035);
}

.stay-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stay-badges span {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 253, 249, 0.93);
    color: var(--stay-green);
}

.stay-body {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.stay-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.stay-location {
    margin-bottom: 4px;
    color: var(--stay-teal);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stay-card h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.05;
}

.stay-rating {
    min-width: 72px;
    align-self: start;
    display: grid;
    justify-items: center;
    gap: 5px;
}

.stay-score {
    min-width: 72px;
    min-height: 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #0f5563;
    color: #fff;
    padding: 8px;
}

.stay-score strong {
    font-size: 18px;
}

.stay-rating > span {
    color: var(--stay-muted);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.stay-summary {
    margin: 0;
    color: var(--stay-muted);
    line-height: 1.58;
}

.stay-meta,
.stay-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stay-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--stay-muted);
    font-size: 12px;
    font-weight: 800;
}

.stay-booking {
    border-left: 1px solid var(--stay-line);
    padding-left: 18px;
    display: grid;
    align-content: end;
    justify-items: stretch;
    gap: 7px;
    text-align: right;
}

.stay-booking span,
.stay-booking small {
    color: var(--stay-muted);
    font-size: 12px;
    font-weight: 800;
}

.stay-booking strong {
    color: var(--stay-clay-dark);
    font-size: 26px;
    line-height: 1;
}

.contact-link {
    min-height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--stay-line);
    border-radius: 8px;
    background: #fff;
    color: var(--stay-clay-dark);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.stay-booking .book-btn,
.stay-booking .contact-link {
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
}

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.booking-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(33, 23, 17, 0.44);
    backdrop-filter: blur(8px);
}

.booking-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: var(--stay-paper);
    box-shadow: 0 28px 80px rgba(33, 23, 17, 0.24);
    padding: 24px;
    transform: translateY(10px) scale(0.98);
    transition: transform 180ms ease;
}

.booking-modal.is-open .booking-dialog {
    transform: translateY(0) scale(1);
}

.booking-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--stay-line);
    border-radius: 999px;
    background: #fff;
    color: var(--stay-clay-dark);
    cursor: pointer;
}

.booking-close .material-icons {
    font-size: 19px;
}

.booking-dialog h2 {
    margin: 0 48px 6px 0;
    color: var(--stay-clay);
}

.booking-dialog-note,
.booking-feedback {
    color: var(--stay-muted);
    line-height: 1.55;
}

.stay-booking-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.booking-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stay-booking-form label {
    display: grid;
    gap: 6px;
    color: var(--stay-muted);
    font-size: 12px;
    font-weight: 800;
}

.stay-booking-form input,
.stay-booking-form textarea {
    width: 100%;
    border: 1px solid var(--stay-line);
    border-radius: 8px;
    background: #fff;
    color: var(--stay-ink);
    padding: 10px 12px;
    font: inherit;
}

.booking-feedback {
    min-height: 20px;
    margin: 0;
    font-size: 13px;
    font-weight: 800;
}

.accommodation-empty {
    min-height: 280px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed var(--stay-line);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.66);
    color: var(--stay-muted);
    text-align: center;
    padding: 24px;
}

.accommodation-empty .material-icons {
    color: var(--stay-clay);
    font-size: 40px;
}

.accommodation-empty strong {
    color: var(--stay-ink);
    font-size: 20px;
}

.accommodation-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(184, 132, 77, 0.08);
    backdrop-filter: blur(20px);
}

.accommodation-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    color: #b8844d;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    padding: 8px 12px;
}

.accommodation-nav a:hover {
    background: rgba(184, 132, 77, 0.1);
}

.accommodation-nav a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #b8844d, #8b6f47);
}

.nav-separator {
    width: 1px;
    height: 20px;
    background: rgba(184, 132, 77, 0.2);
}

@media (max-width: 1040px) {
    .booking-search,
    .booking-layout,
    .stay-card {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
    }

    .stay-booking {
        border-left: 0;
        border-top: 1px solid var(--stay-line);
        padding: 12px 0 0;
        text-align: left;
        justify-items: start;
    }
}

@media (max-width: 680px) {
    .booking-hero {
        min-height: 100svh;
        padding: 96px var(--stay-page-gutter) 190px;
    }

    .booking-search-shell {
        bottom: 86px;
        padding: 10px;
    }

    .accommodation-page.has-searched .booking-hero {
        min-height: 680px;
        padding-bottom: 390px;
    }

    .accommodation-page.has-searched .booking-search-shell {
        bottom: 86px;
    }

    .results-heading {
        display: grid;
        align-items: start;
    }

    .trust-row {
        justify-content: flex-start;
    }

    .accommodation-nav {
        left: 50%;
        max-width: calc(100vw - 20px);
        overflow-x: auto;
    }

    .accommodation-nav a {
        white-space: nowrap;
    }

    .booking-two-col {
        grid-template-columns: 1fr;
    }
}
