
@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 {
    --green: #1e5548;
    --light-green: #e7f0eb;
    --gold: #d6a75b;
    --dark: #202923;
    --muted: #737b75;
    --cream: #faf9f5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
    background: var(--cream);
    line-height: 1.6;
}

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

button, input, select {
    font: inherit;
}

button {
    cursor: pointer;
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 7%;
    background: white;
}

.logo {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span, h1 span, h2 span {
    color: var(--gold);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #525b54;
    font-size: 14px;
}

nav a:hover {
    color: var(--green);
}

.nav-btn, .search-btn {
    background: var(--green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 21px;
    font-weight: 600;
    transition: background .2s, transform .2s;
}

.nav-btn:hover, .search-btn:hover {
    background: #143e34;
    transform: translateY(-1px);
}

.hero {
    min-height: 570px;
    padding: 90px 7% 115px;
    color: white;
    background:
        linear-gradient(90deg, rgba(13, 35, 29, .90),
        rgba(13, 35, 29, .43)),
        url("https://images.unsplash.com/photo-1571896349842-33c89424de2d?auto=format&fit=crop&w=2000&q=85")
        center 55% / cover;
    position: relative;
}

.hero-content {
    max-width: 680px;
}

.tagline {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
}

h1, h2 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.15;
}

h1 {
    font-size: clamp(42px, 5vw, 68px);
    margin-bottom: 20px;
}

.hero-content > p:last-child {
    max-width: 480px;
    color: #e7e9e4;
    font-size: 16px;
}

.search-box {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr .85fr auto;
    gap: 14px;
    align-items: end;
    padding: 23px;
    background: white;
    color: var(--dark);
    border-radius: 14px;
    position: absolute;
    bottom: -54px;
    left: 7%;
    right: 7%;
    box-shadow: 0 12px 35px #14251b1a;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
}

.field input, .field select {
    width: 100%;
    min-width: 0;
    border: 1px solid #e0e4df;
    background: #fff;
    padding: 11px 8px;
    border-radius: 6px;
    color: var(--dark);
    font-size: 13px;
}

.hotels-section {
    padding: 125px 7% 85px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

h2 {
    font-size: clamp(30px, 3.5vw, 42px);
}

.section-heading > p {
    color: var(--muted);
    font-size: 13px;
}

.hotel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.hotel-card {
    overflow: hidden;
    border-radius: 13px;
    background: white;
    border: 1px solid #eeeee8;
    transition: transform .25s, box-shadow .25s;
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px #14251b12;
}

.hotel-card img {
    display: block;
    width: 100%;
    height: 225px;
    object-fit: cover;
}

.hotel-info {
    padding: 20px;
}

.hotel-location {
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
}

.hotel-info h3 {
    font-size: 20px;
    margin: 8px 0;
}

.hotel-info > p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.hotel-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid #eeeeea;
}

.hotel-bottom strong {
    font-size: 19px;
}

.hotel-bottom small {
    color: var(--muted);
}

.hotel-bottom > span {
    color: #a97920;
    font-weight: 700;
    font-size: 14px;
}

.book-btn {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--green);
    background: white;
    color: var(--green);
    border-radius: 7px;
    font-weight: 700;
}

.book-btn:hover {
    background: var(--green);
    color: white;
}

.about-section {
    text-align: center;
    padding: 70px 20px 85px;
    background: var(--light-green);
}

.about-section > p:last-child {
    max-width: 580px;
    margin: 18px auto 0;
    color: #626e65;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 27px 7%;
    background: white;
}

footer p {
    color: var(--muted);
    font-size: 12px;
}

dialog {
    width: min(440px, calc(100% - 32px));
    margin: auto;
    border: none;
    border-radius: 16px;
    padding: 30px;
    color: var(--dark);
    box-shadow: 0 20px 70px #0003;
}

dialog::backdrop {
    background: #14251b99;
}

dialog h2 {
    font-size: 30px;
    margin-bottom: 18px;
}

.close-btn {
    float: right;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
}

#bookingSummary p {
    margin: 9px 0;
}

.notice {
    margin: 18px 0;
    color: var(--muted);
    font-size: 12px;
}

#confirmBooking {
    width: 100%;
}

#noResults {
    padding: 35px 0;
    color: var(--muted);
}

@media (max-width: 1000px) {
    .search-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: static;
        margin-top: 35px;
    }

    .hero {
        padding-bottom: 50px;
    }

    .hotels-section {
        padding-top: 70px;
    }

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

@media (max-width: 650px) {
    .navbar {
        flex-wrap: wrap;
        padding: 16px 5%;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .nav-btn {
        font-size: 12px;
        padding: 9px 12px;
    }

    .hero {
        padding: 65px 5% 35px;
    }

    .search-box {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .hotels-section {
        padding: 55px 5%;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .hotel-grid {
        grid-template-columns: 1fr;
    }

    .hotel-card img {
        height: 230px;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px 5%;
    }
}
