* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #294a3b;
    --cream: #f7f6f1;
    --brown: #a16f4d;
    --dark: #202923;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR */

header {
    height: 80px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--cream);
}

.logo {
    font-weight: 700;
    font-size: 21px;
    letter-spacing: 1px;
}

.logo span,
footer h2 span {
    color: var(--brown);
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    font-size: 13px;
    font-weight: 600;
}

nav a:hover {
    color: var(--brown);
}

.nav-btn {
    background: var(--green);
    color: white;
    padding: 13px 20px;
    font-size: 12px;
}

.menu-toggle {
    display: none;
}

/* HERO */

.hero {
    height: 680px;
    background:
        linear-gradient(90deg, rgba(10,25,20,.78), rgba(10,25,20,.15)),
        url("https://images.unsplash.com/photo-1516483638261-f4dbaf036963?auto=format&fit=crop&w=2000&q=85");

    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 12%;
    color: white;
}

.subtitle {
    color: #b78c68;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(60px, 8vw, 100px);
    line-height: 1;
    margin-bottom: 25px;
}

.hero h1 i,
h2 i {
    font-weight: 500;
}

.hero-description {
    max-width: 420px;
    line-height: 1.8;
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.main-btn {
    display: inline-block;
    background: white;
    color: var(--dark);
    padding: 17px 25px;
    font-size: 12px;
    font-weight: 700;
}

/* SEARCH */

.search-section {
    width: 85%;
    margin: -35px auto 0;
    position: relative;
}

#searchForm {
    background: white;
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 25px;
    align-items: center;
    box-shadow: 0 10px 35px #00000010;
}

.search-box label {
    display: block;
    font-size: 9px;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.search-box input,
.search-box select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    width: 100%;
    color: var(--dark);
}

.search-btn {
    background: var(--green);
    color: white;
    border: none;
    padding: 17px 25px;
    cursor: pointer;
}

/* DESTINATIONS */

.destinations {
    padding: 110px 9%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 45px;
    gap: 30px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 55px;
    line-height: 1.1;
}

.section-description {
    max-width: 350px;
    font-size: 13px;
    color: #777;
    line-height: 1.9;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filter {
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 10px 20px;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 11px;
}

.filter.active,
.filter:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.results-count {
    font-size: 11px;
    color: #777;
    margin-bottom: 15px;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 22px;
}

.destination-card {
    min-width: 0;
}

.destination-card[hidden] {
    display: none;
}

.card-image {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform .3s;
}

.card-image:hover {
    transform: scale(1.01);
}

.amalfi {
    background-image: url("https://images.unsplash.com/photo-1533587851505-d119e13fa0d7?auto=format&fit=crop&w=900&q=80");
}

.kyoto {
    background-image: url("https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?auto=format&fit=crop&w=900&q=80");
}

.alps {
    background-image: url("https://images.unsplash.com/photo-1531366936337-7c912a4589a7?auto=format&fit=crop&w=900&q=80");
}

.marrakech {
    background-image: url("https://images.unsplash.com/photo-1539020140153-e479b8c22e70?auto=format&fit=crop&w=900&q=80");
}

.bali {
    background-image: url("https://images.unsplash.com/photo-1537996194471-e657df975ab4?auto=format&fit=crop&w=900&q=80");
}

.newyork {
    background-image: url("https://images.unsplash.com/photo-1518391846015-55a9cc003b25?auto=format&fit=crop&w=900&q=80");
}

.tag {
    position: absolute;
    top: 18px;
    left: 18px;
    color: white;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.save-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 21px;
    cursor: pointer;
    color: var(--green);
}

.save-btn.saved {
    color: #c34e4e;
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 17px;
}

.card-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    margin-bottom: 5px;
}

.card-info p {
    color: #888;
    font-size: 11px;
}

.card-info > span {
    color: var(--brown);
    font-size: 20px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ddd;
    padding-top: 12px;
    margin-top: 15px;
    font-size: 10px;
    color: #888;
    gap: 8px;
}

.card-bottom strong {
    color: var(--green);
}

#emptyState {
    text-align: center;
    padding: 40px;
    color: #777;
}

/* EXPERIENCE */

.experience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--green);
    color: white;
}

.experience-image {
    min-height: 470px;
    background: url("https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=1200&q=85") center/cover;
}

.experience-content {
    padding: 80px 12%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.experience-content h2 {
    font-size: 50px;
}

.experience-content > p:not(.subtitle) {
    color: #ccc;
    font-size: 13px;
    line-height: 1.9;
    margin: 25px 0;
}

.text-link {
    color: #e9c8a8;
    font-size: 12px;
    font-weight: 600;
}

/* ABOUT */

.about {
    text-align: center;
    padding: 100px 10%;
}

.about h2 {
    max-width: 800px;
    margin: auto;
    font-size: 45px;
}

.about > p:last-child {
    margin-top: 25px;
    color: #888;
    font-size: 13px;
}

/* FOOTER */

footer {
    background: #202c25;
    color: white;
    text-align: center;
    padding: 45px 20px;
}

footer h2 {
    font-size: 27px;
}

footer p {
    color: #aaa;
    font-size: 11px;
    margin-top: 15px;
}

/* RESPONSIVE */

@media(max-width: 850px) {
    header {
        padding: 0 5%;
    }

    nav {
        gap: 15px;
    }

    .destination-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-content {
        padding: 50px 8%;
    }
}

@media(max-width: 600px) {
    header {
        height: 70px;
    }

    .menu-toggle {
        display: block;
        border: none;
        background: none;
        font-size: 25px;
        cursor: pointer;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--cream);
        flex-direction: column;
        padding: 25px;
        z-index: 10;
    }

    nav.open {
        display: flex;
    }

    .nav-btn {
        display: none;
    }

    .hero {
        height: 580px;
        padding: 0 8%;
    }

    .hero h1 {
        font-size: 65px;
    }

    .search-section {
        width: 90%;
    }

    #searchForm {
        grid-template-columns: 1fr;
    }

    .destinations {
        padding: 80px 6%;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        font-size: 42px;
    }

    .section-description {
        margin-top: 20px;
    }

    .destination-grid {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 280px;
    }

    .experience {
        grid-template-columns: 1fr;
    }

    .experience-image {
        min-height: 280px;
    }

    .experience-content h2 {
        font-size: 40px;
    }

    .about h2 {
        font-size: 32px;
    }
}