/* =====================================
GLOBAL RESET
===================================== */

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

body {
    font-family: 'Poppins', sans-serif;
    color: #222;
    background: #fff;
    line-height: 1.6;
}

/* =====================================
DESTINATION SEARCH
===================================== */

.destination-search-section {
    padding: 52px 24px 36px;
    border-bottom: 1px solid #e7e1d4;
    background: linear-gradient(135deg, #fcfbf6, #f8f7f2);
}

.destination-search-wrap {
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
}

.destination-search-wrap > .section-tag {
    margin-bottom: 8px;
}

.destination-search-wrap h1 {
    margin: 0 0 8px;
    color: #1b1b18;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.destination-search-wrap > p:not(.section-tag):not(.destination-search-count):not(.destination-search-empty) {
    margin: 0 auto;
    color: #6d6a62;
    font-size: 16px;
}

.destination-search {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 980px;
    margin: 26px auto 0;
    padding: 6px 8px 6px 20px;
    border: 1px solid #e7e1d4;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(30, 25, 10, .05);
    text-align: left;
}

.destination-search-field,
.destination-category-field {
    display: flex;
    min-width: 0;
    align-items: center;
}

.destination-search-field {
    flex: 1;
    gap: 10px;
}

.destination-category-field {
    padding-left: 18px;
    border-left: 1px solid #e7e1d4;
}

.destination-search-field svg {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: #6d6a62;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.destination-search input,
.destination-search select {
    width: 100%;
    padding: 12px 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1b1b18;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
}

.destination-search select {
    min-width: 190px;
    cursor: pointer;
}

.destination-search input::placeholder {
    color: #6d6a62;
}

.destination-search-btn {
    flex: none;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    transition: background .2s;
}

.destination-search-btn:hover {
    background: #1e5631;
}

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

.destination-search-count {
    min-height: 24px;
    margin: 14px 0 0;
    color: #6d6a62;
    font-size: 14px;
}

.destination-search-empty {
    margin: 22px 0 0;
    color: #6d6a62;
}

.destination-search-empty button {
    padding: 0;
    border: 0;
    background: none;
    color: #1e5631;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.destination-card[hidden],
.destination-section[hidden] {
    display: none !important;
}

/* =====================================
SECTION BASE
===================================== */

.destination-section {
    padding: 120px 8%;
    text-align: center;
}

.destination-section.light {
    background: #f9f9f9;
}

.section-tag {
    color: #d4a017;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 15px;
}

.section-subtitle {
    max-width: 750px;
    margin: 0 auto;
    color: #666;
    font-size: 16px;
}

/* =====================================
GRID
===================================== */

.destination-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    grid-auto-rows: 490px;
    gap: 28px;
}

/* =====================================
CARD (FIXED + PREMIUM FEEL)
===================================== */

.destination-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    border: 1px solid #e7e1d4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(20, 54, 31, .07);
    text-align: left;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.destination-card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 86, 49, .24);
    box-shadow: 0 18px 38px rgba(20, 54, 31, .14);
}

.destination-card img {
    width: 100%;
    height: 220px;
    flex: 0 0 220px;
    object-fit: cover;
    transition: transform .5s ease;
}

.destination-card:hover img {
    transform: scale(1.045);
}

.destination-info {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 22px;
}

.destination-info span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e6efe8;
    color: #1e5631;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.2;
}

.destination-info h3 {
    display: -webkit-box;
    min-height: 60px;
    margin: 10px 0 6px;
    overflow: hidden;
    color: #1b1b18;
    font-family: "Playfair Display", serif;
    font-size: 23px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.destination-info p {
    flex: 1;
    min-height: 50px;
    margin: 0;
    overflow: hidden;
    color: #6d6a62;
    font-size: 15px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* BUTTON */

.destination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 18px;
    border: 1px solid #1e5631;
    border-radius: 999px;
    background: #1e5631;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.destination-btn:hover {
    transform: translateY(-2px);
    border-color: #163f24;
    background: #163f24;
}

.destination-card:focus-within {
    outline: 3px solid #d4a017;
    outline-offset: 3px;
}

/* =====================================
STATS (FIXED ALIGNMENT)
===================================== */

.destination-stats {
    background: #1e5631;
    color: white;
    padding: 80px 8%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    text-align: center;
    gap: 30px;
}

.destination-stats h3 {
    font-size: 40px;
    color: #d4a017;
}

.destination-stats p {
    opacity: 0.9;
}

/* =====================================
CTA (PREMIUM LOOK)
===================================== */

.cta {
    padding: 140px 8%;
    text-align: center;
    color: white;

    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url('../images/contact.jpg');

    background-size: cover;
    background-position: center;
}

.cta-content {
    max-width: 800px;
    margin: auto;
    animation: fadeUp 1s ease;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 52px);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-btn {
    display: inline-block;
    background: #d4a017;
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #b8860b;
    transform: translateY(-3px);
}

/* =====================================
FOOTER
===================================== */

.footer {
    background: linear-gradient(135deg, #184728, #1e5631);
    color: white;
    padding: 80px 8% 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-box h3 {
    color: #d4a017;
    margin-bottom: 10px;
}

.footer-box a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin: 6px 0;
    transition: 0.3s;
}

.footer-box a:hover {
    color: #d4a017;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 13px;
}

/* =====================================
ANIMATION
===================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================
RESPONSIVE
===================================== */

@media (max-width: 768px) {
    .destination-search-section {
        padding: 36px 20px 24px;
    }

    .destination-search {
        flex-wrap: wrap;
        gap: 0;
        padding: 10px 14px;
        border-radius: 20px;
    }

    .destination-search-field {
        flex-basis: 100%;
        padding: 0 2px 8px;
    }

    .destination-category-field {
        flex: 1 1 100%;
        padding: 0;
        border: 0;
    }

    .destination-search select {
        width: 100%;
        min-width: 0;
        padding-left: 4px;
    }

    .destination-search-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .destination-section {
        padding: 80px 20px;
    }

    .cta {
        padding: 100px 20px;
    }
}
