
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --primary: #123d31;
    --primary-dark: #09271f;
    --gold: #c6a568;
    --gold-light: #e7d5ad;
    --text: #24362e;
    --muted: #7b8580;
    --border: #e8e7e0;
    --white: #ffffff;
    --background: #f6f5f1;
    --success: #26754e;
    --danger: #b42318;
    --radius: 20px;
    --shadow: 0 12px 35px rgba(22, 48, 37, 0.07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-wrapper {
    min-height: 100vh;
}

/* =========================
   PREMIUM HERO HEADER
========================= */

.page-header {
    position: relative;
    overflow: hidden;
    padding: 76px 25px 100px;
    color: var(--white);
    background:
        radial-gradient(
            ellipse at 90% 5%,
            rgba(198, 165, 104, 0.20),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 0% 100%,
            rgba(66, 110, 87, 0.25),
            transparent 45%
        ),
        linear-gradient(125deg, #0b2820 0%, #194536 58%, #285743 100%);
}

.page-header::before {
    position: absolute;
    top: -100px;
    right: -80px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(229, 211, 168, 0.15);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.page-header::after {
    position: absolute;
    top: -50px;
    right: -30px;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(229, 211, 168, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.header-content,
.main-content {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.header-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.page-header h1 {
    max-width: 750px;
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.7px;
}

.page-header p {
    max-width: 570px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.9;
}

/* =========================
   MAIN CONTENT
========================= */

.main-content {
    position: relative;
    padding: 0 25px 65px;
}

/* =========================
   SEARCH PANEL
========================= */

.search-panel {
    position: relative;
    z-index: 2;
    margin-top: -48px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 48px rgba(18, 44, 32, 0.10);
}

.section-heading {
    margin-bottom: 23px;
}

.section-heading h2,
.results-heading h2 {
    margin: 0;
    color: var(--primary-dark);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.4;
}

.section-heading p,
.results-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
}

.form-field {
    min-width: 0;
}

.form-field label {
    display: block;
    margin-bottom: 9px;
    color: #36463d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.form-field input,
.form-field select {
    width: 100%;
    min-height: 51px;
    padding: 12px 14px;
    border: 1px solid #e1e4dd;
    border-radius: 11px;
    outline: none;
    background: #fbfbf8;
    color: var(--text);
    font-size: 12px;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.form-field input:hover,
.form-field select:hover {
    border-color: #c7cfc6;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--gold);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(198, 165, 104, 0.13);
}

.search-button {
    display: inline-flex;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 13px 25px;
    border: 1px solid var(--primary);
    border-radius: 11px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.search-button::after {
    content: "→";
    font-size: 17px;
    transition: transform 0.25s;
}

.search-button:hover {
    transform: translateY(-2px);
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

.search-button:hover::after {
    transform: translateX(3px);
}

/* =========================
   RESULTS HEADING
========================= */

.results-section {
    margin-top: 48px;
}

.results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 27px;
}

.results-heading h2 {
    font-size: 30px;
}

.date-separator {
    padding: 0 7px;
    color: var(--gold);
    font-weight: 700;
}

.results-count {
    display: flex;
    min-width: 150px;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    border: 1px solid #e9e2d3;
    border-radius: 14px;
    background: #fffdf8;
}

.results-count strong {
    color: var(--primary);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.2;
}

.results-count span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

/* =========================
   ROOM GRID
========================= */

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 26px;
}

.room-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e9e8e1;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 5px 20px rgba(24, 48, 37, 0.035);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(24, 48, 37, 0.11);
}

/* =========================
   ROOM IMAGE / FALLBACK
========================= */

.room-image-placeholder {
    position: relative;
    display: flex;
    min-height: 255px;
    align-items: flex-end;
    overflow: hidden;
    padding: 25px;
    background:
        radial-gradient(
            ellipse at 80% 15%,
            rgba(229, 211, 168, 0.30),
            transparent 38%
        ),
        linear-gradient(135deg, #647d6c, #173d32);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Optional decorative rings when no photo exists */

.room-image-placeholder::before {
    position: absolute;
    top: 15%;
    right: -35px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    transition: transform 0.5s ease;
}

.room-image-placeholder::after {
    position: absolute;
    top: 25%;
    right: 15px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.room-card:hover .room-image-placeholder::before {
    transform: scale(1.10);
}

/* Different elegant fallback colours */

.room-card:nth-child(3n + 2) .room-image-placeholder {
    background:
        radial-gradient(
            ellipse at 80% 15%,
            rgba(229, 211, 168, 0.32),
            transparent 38%
        ),
        linear-gradient(135deg, #8b806c, #4b4938);
}

.room-card:nth-child(3n) .room-image-placeholder {
    background:
        radial-gradient(
            ellipse at 80% 15%,
            rgba(229, 211, 168, 0.32),
            transparent 38%
        ),
        linear-gradient(135deg, #71858a, #2b484b);
}

/* PHP can set an inline background-image when an image is available.
   Add .has-room-image to the container when doing so. */

.room-image-placeholder.has-room-image::before,
.room-image-placeholder.has-room-image::after {
    display: none;
}

.image-overlay {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 26, 19, 0.02) 0%,
        rgba(8, 26, 19, 0.12) 38%,
        rgba(8, 26, 19, 0.86) 100%
    );
    pointer-events: none;
}

.room-category-label {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    max-width: calc(100% - 75px);
    padding: 7px 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;
    background: rgba(16, 39, 29, 0.65);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.image-title {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.image-title span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
    letter-spacing: 1.2px;
}

.image-title h3 {
    margin: 5px 0 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.25;
}

/* =========================
   ROOM CARD DETAILS
========================= */

.room-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.room-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.room-type-label,
.price-label {
    color: #92988e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.room-card-top h3 {
    margin: 5px 0 0;
    color: var(--primary-dark);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.availability-badge {
    flex-shrink: 0;
    padding: 6px 10px;
    border: 1px solid #d8eadb;
    border-radius: 7px;
    background: #f0f8f0;
    color: var(--success);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.room-info {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 20px;
    padding-bottom: 19px;
    border-bottom: 1px solid #efeee8;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #737d75;
    font-size: 11px;
}

.info-icon {
    color: var(--gold);
    font-size: 17px;
}

/* =========================
   PRICE
========================= */

.price-section {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.price-details {
    min-width: 0;
}

.room-price {
    margin-top: 5px;
    color: var(--primary);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 31px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.room-price span {
    color: #858b83;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
}

.price-estimate {
    margin: 7px 0 0;
    color: #858b83;
    font-size: 11px;
}

.price-estimate strong {
    color: #34473c;
    font-weight: 700;
}

.price-warning {
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid #f0d5d2;
    border-radius: 9px;
    background: #fff5f4;
    color: var(--danger);
    font-size: 11px;
}

/* =========================
   BOOK BUTTON
========================= */

.book-button {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    padding: 13px 17px;
    margin-top: 23px;
    border: 1px solid var(--primary);
    border-radius: 11px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.book-button:hover {
    transform: translateY(-1px);
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

.book-button span {
    color: var(--gold-light);
    font-size: 20px;
    line-height: 1;
    transition: transform 0.25s;
}

.book-button:hover span {
    transform: translateX(4px);
}

/* =========================
   EMPTY STATE
========================= */

.empty-state {
    padding: 65px 24px;
    border: 1px dashed #d6d9ce;
    border-radius: var(--radius);
    background: #ffffff;
    text-align: center;
}

.empty-icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6e0d1;
    border-radius: 50%;
    background: #faf7ef;
    color: var(--primary);
    font-size: 32px;
}

.empty-state h3 {
    margin: 17px 0 6px;
    color: var(--primary-dark);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 25px;
    font-weight: 600;
}

.empty-state p {
    max-width: 460px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 12px;
}

/* =========================
   ERROR MESSAGES
========================= */

.message {
    margin-top: 24px;
    padding: 15px 18px;
    border-radius: 11px;
    font-size: 12px;
}

.message p {
    margin: 4px 0;
}

.message-error {
    border: 1px solid #f0ceca;
    background: #fff4f2;
    color: var(--danger);
}

/* =========================
   FOOTER
========================= */

.page-footer {
    padding: 27px 20px;
    border-top: 1px solid #e8e7e0;
    background: #ffffff;
    color: #899087;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.2px;
}

.page-footer p {
    margin: 0;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {
    .room-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-button {
        width: 100%;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 620px) {
    .page-header {
        padding: 48px 19px 76px;
    }

    .page-header h1 {
        font-size: 37px;
    }

    .page-header p {
        font-size: 12px;
    }

    .main-content {
        padding: 0 14px 38px;
    }

    .search-panel {
        margin-top: -34px;
        padding: 21px 17px;
        border-radius: 15px;
    }

    .section-heading h2,
    .results-heading h2 {
        font-size: 23px;
    }

    .search-form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-field input {
        min-height: 49px;
    }

    .search-button {
        min-height: 49px;
    }

    .results-section {
        margin-top: 34px;
    }

    .results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .results-count {
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
    }

    .room-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .room-image-placeholder {
        min-height: 230px;
    }

    .room-card-body {
        padding: 20px;
    }

    .room-card-top h3 {
        font-size: 21px;
    }

    .room-price {
        font-size: 29px;
    }

    .empty-state {
        padding: 45px 18px;
    }
}

/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
