:root {
    --bg: #f8f5ee;
    --surface: #fffdfa;
    --cream: #ede8de;
    --forest: #24372f;
    --text: #283a33;
    --muted: #6a7169;
    --line: #ddd8cd;
    --accent: #ad4d35;
    --accent-soft: #c85a32;
    --on-dark: #fffdfa;
    --on-dark-muted: #c7cec5;
    --max: 1280px;
    --pad: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

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

ul {
    list-style: none;
}

button,
input,
select {
    font: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ============ Page hero ============ */

.page-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    color: var(--on-dark);
    display: flex;
    align-items: center;
}

.page-hero-media {
    position: absolute;
    inset: 0;
    background: url('../img/rooms-hero.jpg') center / cover no-repeat;
    transform: scale(1.01);
}

.page-hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 31, 25, 0.88) 0%, rgba(20, 31, 25, 0.62) 42%, rgba(20, 31, 25, 0.28) 100%),
        rgba(36, 55, 47, 0.35);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    max-width: none;
    min-height: 0;
    margin: 0 0 26px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 253, 250, 0.7);
}

.breadcrumb a:hover {
    color: var(--on-dark);
}

.breadcrumb span[aria-hidden] {
    opacity: 0.45;
}

.page-eyebrow,
.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.page-eyebrow {
    color: #e9bda9;
}

.page-hero h1 {
    max-width: 760px;
    margin: 14px 0 18px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 68px;
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.page-hero-description {
    max-width: 560px;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 253, 250, 0.82);
}

/* ============ Booking search ============ */

.stay-search,
.room-list,
.compare,
.stay-info,
.booking-cta {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

.stay-search {
    padding-top: 56px;
}

.section-heading h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 600;
}

.section-heading p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.search-card {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr 0.9fr auto;
    gap: 18px;
    align-items: end;
    margin-top: 28px;
    padding: 24px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(40, 58, 51, 0.06);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.field-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.field-control {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.field-control:focus-within {
    border-color: var(--accent);
}

.field-control svg {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.field-control input,
.field-control select {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
}

.field-control input::placeholder {
    color: var(--muted);
}

.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 22px;
    background: var(--accent);
    color: var(--on-dark);
    border: 0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-button:hover {
    background: #943f2a;
}

/* ============ Rooms ============ */

.room-list {
    padding-top: 84px;
}

.room-list-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
}

.room-list-heading h2 {
    max-width: 580px;
    margin-top: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 600;
}

.room-list-heading > p {
    max-width: 380px;
    padding-bottom: 4px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.room-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(40, 58, 51, 0.04);
}

.room-media {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.room-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-media img {
    transform: scale(1.04);
}

.room-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 10px;
    background: rgba(36, 55, 47, 0.92);
    color: var(--on-dark);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.room-badge-accent {
    background: var(--accent);
}

.room-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px;
}

.room-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 600;
}

.room-description {
    margin: 8px 0 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
}

.room-amenities li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.room-amenities svg {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.room-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.room-rate {
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
}

.room-rate span {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.room-rate small {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

.room-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.room-link .arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.room-link .arrow::before {
    border-color: currentColor;
}

.room-link:hover .arrow {
    transform: translateX(3px);
}

/* ============ Compare ============ */

.compare {
    padding-top: 24px;
    padding-bottom: 84px;
}

.compare-card {
    padding: 32px 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.compare-heading h2 {
    margin-top: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 600;
}

.compare-heading p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.compare-table-wrap {
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.compare-table th,
.compare-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.compare-table thead th {
    background: var(--cream);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.compare-table thead th:first-child {
    width: 24%;
}

.compare-table tbody th {
    font-weight: 500;
    color: var(--muted);
    background: #fbf8f2;
}

.compare-table tbody td {
    color: var(--text);
    font-weight: 500;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.compare-table tbody tr:hover td,
.compare-table tbody tr:hover th {
    background: #f7f3ea;
}

.compare-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
}

/* ============ Stay information ============ */

.stay-info {
    padding-bottom: 84px;
}

.stay-info-heading h2 {
    margin-top: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.info-card {
    padding: 28px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.info-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    background: var(--cream);
    color: var(--accent);
    border-radius: 50%;
}

.info-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
    font-weight: 600;
}

.info-card p {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--muted);
}

/* ============ Booking CTA ============ */

.booking-cta {
    padding-bottom: 84px;
}

.booking-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 36px 40px;
    background: var(--cream);
    border-radius: 8px;
}

.booking-cta-inner h2 {
    margin-top: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    line-height: 1.12;
    font-weight: 600;
}

.booking-cta-inner p {
    max-width: 560px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 26px;
    background: var(--accent);
    color: var(--on-dark);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: #943f2a;
}

/* ============ Desktop proportions ============ */

@media (min-width: 901px) {
    .room-card {
        min-height: 673px;
    }

    .compare-card {
        min-height: 388px;
    }

    .info-card {
        min-height: 205px;
    }

    .booking-cta-inner {
        min-height: 208px;
    }
}

/* ============ Responsive ============ */

@media (max-width: 1200px) {
    :root {
        --pad: 48px;
    }

}

@media (max-width: 1024px) {
    .page-hero h1 {
        font-size: 58px;
    }

    .search-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-button {
        grid-column: 1 / -1;
    }

    .room-list-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .room-list-heading > p {
        max-width: 560px;
        padding-bottom: 0;
    }

    .room-body {
        padding: 22px;
    }

    .room-amenities {
        gap: 8px 12px;
    }
}

@media (max-width: 900px) {
    .room-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .room-media {
        height: 320px;
    }
}

@media (max-width: 760px) {
    :root {
        --pad: 24px;
    }

    .page-hero {
        height: 440px;
    }

    .page-hero-veil {
        background:
            linear-gradient(90deg, rgba(20, 31, 25, 0.86) 0%, rgba(20, 31, 25, 0.55) 100%),
            rgba(36, 55, 47, 0.35);
    }

    .page-hero h1 {
        font-size: 46px;
    }

    .page-hero-description {
        font-size: 14.5px;
    }

    .breadcrumb {
        margin-bottom: 20px;
    }

    .stay-search {
        padding-top: 48px;
    }

    .section-heading h2,
    .room-list-heading h2,
    .stay-info-heading h2 {
        font-size: 32px;
    }

    .search-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .search-button {
        grid-column: auto;
    }

    .room-list {
        padding-top: 64px;
    }

    .compare {
        padding-bottom: 64px;
    }

    .compare-card {
        padding: 24px 20px;
    }

    .stay-info {
        padding-bottom: 64px;
    }

    .booking-cta {
        padding-bottom: 64px;
    }

    .booking-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 28px 24px;
    }

    .booking-cta-inner h2 {
        font-size: 30px;
    }

}

@media (max-width: 560px) {
    .page-hero {
        height: 400px;
    }

    .page-hero h1 {
        font-size: 38px;
    }

    .page-eyebrow {
        font-size: 10px;
    }

    .room-media {
        height: 240px;
    }

    .room-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .room-link {
        padding-bottom: 0;
    }
}
