/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background-color: #ffffff;
    line-height: 1.6;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 8%;

    background-color: #ffffff;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

    position: sticky;
    top: 0;

    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #146c43;
}

.nav-menu {
    display: flex;
    align-items: center;

    list-style: none;

    gap: 28px;
}

.nav-menu a {
    text-decoration: none;

    color: #333333;

    font-size: 15px;
    font-weight: 500;

    transition: 0.3s;
}

.nav-menu a:hover {
    color: #198754;
}


/* =========================================
   HERO
========================================= */

/* =========================================
   HERO HOMEPAGE
========================================= */

.hero {
    min-height: 520px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            rgba(9, 45, 31, 0.58),
            rgba(9, 45, 31, 0.58)
        ),
        url("../assets/images/defaults/home.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}

/* =========================================
   HERO HOMEPAGE
========================================= */

.hero {
    min-height: 620px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(7, 33, 24, 0.58) 0%,
            rgba(7, 33, 24, 0.38) 42%,
            rgba(7, 33, 24, 0.18) 100%
        ),
        url("../assets/images/defaults/nature.jpg");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    position: relative;
}


.hero-content {
    position: relative;
    z-index: 2;

    max-width: 760px;

    margin-left: 110px;
    margin-right: 20px;

    padding-top: 30px;
    padding-bottom: 30px;
}


.hero-subtitle {
    color: rgba(255, 255, 255, 0.96);

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;

    margin-bottom: 18px;
}


.hero h1 {
    color: #ffffff;

    font-size: 64px;
    line-height: 1.05;
    font-weight: 800;

    margin-bottom: 28px;

    text-shadow:
        0 3px 14px rgba(0, 0, 0, 0.35);
}


.hero p {
    color: rgba(255, 255, 255, 0.95);

    font-size: 20px;
    line-height: 1.7;

    max-width: 700px;

    margin-bottom: 34px;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.25);
}


/* =========================================
   SEARCH
========================================= */

.search-container {
    margin-top: 32px;

    display: flex;

    max-width: 600px;

    padding: 7px;

    background-color: white;

    border-radius: 10px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
}

.search-container input {
    flex: 1;

    border: none;
    outline: none;

    padding: 15px;

    font-size: 16px;

    border-radius: 8px;
}

.search-container button {
    border: none;

    background-color: #198754;

    color: white;

    padding: 0 30px;

    border-radius: 7px;

    font-size: 15px;

    cursor: pointer;

    transition: 0.3s;
}

.search-container button:hover {
    background-color: #146c43;
}


/* =========================================
   DESTINATION SECTION
========================================= */

.destination-section {
    width: 100%;
    padding: 90px 7%;
    background-color: #f8faf9;
}


/* =========================================
   TITLE
========================================= */

.section-title {
    max-width: 750px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-title > p {
    color: #198754;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 38px;
    margin-bottom: 14px;
    color: #1f2d26;
}

.section-title span {
    color: #666;
}


/* =========================================
   DESTINATION GRID
========================================= */

.destination-container {
    width: 100%;
    max-width: 1450px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px, 1fr)
        );

    gap: 28px;
}


/* =========================================
   DESTINATION CARD
========================================= */

.destination-card {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background-color: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 6px 22px
        rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.14);
}


/* =========================================
   CARD IMAGE
========================================= */

.card-image {
    width: 100%;
    height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            #176b48,
            #58a47b
        );

    color: white;

    font-size: 22px;
    font-weight: 700;

    text-align: center;
}


/* =========================================
   CARD CONTENT
========================================= */

.card-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 24px;
}

.location {
    margin-bottom: 7px;

    color: #198754 !important;

    font-size: 13px;
    font-weight: 600;
}

.card-content h3 {
    margin-bottom: 12px;

    font-size: 21px;
    line-height: 1.4;

    color: #1e2b24;
}

.card-content p {
    width: 100%;

    margin-bottom: 12px;

    color: #606b65;

    font-size: 14px;
    line-height: 1.7;

    word-break: normal;
    overflow-wrap: break-word;
}

.destination-stats {
    font-weight: 600;
    color: #444 !important;
}


/* =========================================
   BUTTON DETAIL
========================================= */

.detail-button {
    margin-top: auto;

    align-self: flex-start;

    padding: 11px 20px;

    border: none;
    border-radius: 7px;

    background-color: #198754;

    color: white;

    font-size: 14px;

    cursor: pointer;
}

.detail-button:hover {
    background-color: #146c43;
}


/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 900px) {

    .destination-container {
        grid-template-columns:
            repeat(
                auto-fit,
                minmax(280px, 1fr)
            );
    }

}


/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 600px) {

    .destination-section {
        padding: 60px 5%;
    }

    .destination-container {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   HOME INTERACTIVE MAP
========================================= */

.home-map-section {
    padding: 90px 7%;

    background-color: #ffffff;
}


.home-map-heading {
    max-width: 1450px;

    margin: 0 auto 30px;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 30px;
}


.home-map-heading > div:first-child {
    max-width: 750px;
}


.home-map-label {
    margin-bottom: 10px;

    color: #198754;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;
}


.home-map-heading h2 {
    margin-bottom: 14px;

    color: #1f2d26;

    font-size: 38px;
}


.home-map-heading p {
    color: #66716b;

    line-height: 1.7;
}


/* =========================================
   MAP STAT
========================================= */

.home-map-stat {
    min-width: 125px;

    padding: 15px 20px;

    background-color: #edf7f1;

    border-radius: 12px;

    text-align: center;
}


.home-map-stat strong {
    display: block;

    color: #177249;

    font-size: 29px;
}


.home-map-stat span {
    color: #66736c;

    font-size: 12px;
}


/* =========================================
   MAP CONTROLS
========================================= */

.home-map-controls {
    max-width: 1450px;

    margin: 0 auto 18px;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 20px;
}


.home-map-controls > div {
    width: 300px;

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.home-map-controls label {
    color: #536159;

    font-size: 13px;

    font-weight: 600;
}


.home-map-controls select {
    min-height: 44px;

    padding: 9px 12px;

    border:
        1px solid #d9e2dd;

    border-radius: 7px;

    background-color: white;

    font-size: 14px;
}


.full-map-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    padding: 10px 20px;

    border-radius: 7px;

    background-color: #198754;

    color: white;

    text-decoration: none;

    font-size: 14px;
}


.full-map-button:hover {
    background-color: #146c43;
}


/* =========================================
   MAP
========================================= */

.home-map-wrapper {
    position: relative;

    max-width: 1450px;

    margin: auto;
}


.home-map {
    width: 100%;

    height: 500px;

    border-radius: 16px;

    overflow: hidden;

    border:
        1px solid #dce5e0;

    box-shadow:
        0 7px 25px
        rgba(
            0,
            0,
            0,
            0.08
        );
}


/* =========================================
   MAP LEGEND
========================================= */

.home-map-legend {
    position: absolute;

    right: 20px;

    bottom: 20px;

    z-index: 500;

    min-width: 140px;

    padding: 14px;

    background:
        rgba(
            255,
            255,
            255,
            0.95
        );

    border-radius: 9px;

    box-shadow:
        0 3px 14px
        rgba(
            0,
            0,
            0,
            0.15
        );
}


.home-map-legend strong {
    display: block;

    margin-bottom: 8px;

    color: #26352d;

    font-size: 12px;
}


.home-map-legend span {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 6px;

    color: #59665f;

    font-size: 11px;
}


.map-dot {
    width: 10px;

    height: 10px;

    display: inline-block;

    border-radius: 50%;
}


.map-dot.low {
    background-color: #2d9d60;
}


.map-dot.medium {
    background-color: #e1a52b;
}


.map-dot.high {
    background-color: #d75145;
}


.map-dot.unknown {
    background-color: #7b8580;
}


/* =========================================
   HOME MAP POPUP
========================================= */

.home-popup {
    min-width: 200px;
}


.home-popup h3 {
    margin-bottom: 6px;

    color: #203028;

    font-size: 15px;
}


.home-popup p {
    margin-bottom: 4px;

    color: #59665f;

    font-size: 12px;
}


.home-popup-button {
    width: 100%;

    margin-top: 9px;

    padding: 8px 10px;

    border: none;

    border-radius: 6px;

    background-color: #198754;

    color: white;

    cursor: pointer;
}


/* =========================================
   RESPONSIVE HOME MAP
========================================= */

@media (max-width: 750px) {

    .home-map-heading {
        flex-direction: column;

        align-items: flex-start;
    }


    .home-map-controls {
        flex-direction: column;

        align-items: stretch;
    }


    .home-map-controls > div {
        width: 100%;
    }


    .home-map {
        height: 390px;
    }


    .home-map-legend {
        position: static;

        margin-top: 12px;

        box-shadow: none;

        border:
            1px solid #dce5e0;
    }

}

/* =========================================
   SMART RECOMMENDATION
========================================= */

.smart-recommendation-section {
    padding: 90px 7%;

    background:
        linear-gradient(
            135deg,
            #eef7f2,
            #f8fbf9
        );
}


.smart-recommendation-header {
    max-width: 850px;

    margin:
        0 auto
        40px;

    text-align: center;
}


.smart-label {
    margin-bottom: 9px;

    color: #198754;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;
}


.smart-recommendation-header h2 {
    margin-bottom: 15px;

    color: #1e3026;

    font-size: 39px;

    line-height: 1.3;
}


.smart-recommendation-header > p:last-child {
    color: #627069;

    line-height: 1.8;
}


/* =========================================
   INPUT PANEL
========================================= */

.recommendation-panel {
    max-width: 1300px;

    margin:
        0 auto
        28px;

    padding: 25px;

    display: grid;

    grid-template-columns:
        2fr
        1.4fr
        1fr
        1fr;

    gap: 15px;

    background-color: white;

    border-radius: 14px;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.06);
}


.recommendation-field {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.recommendation-field label {
    color: #526159;

    font-size: 12px;

    font-weight: 600;
}


.recommendation-field select {
    width: 100%;

    min-height: 46px;

    padding: 9px 11px;

    border:
        1px solid #d7e1db;

    border-radius: 7px;

    background-color: white;

    font-size: 14px;
}


.recommendation-action {
    justify-content: flex-end;
}


.recommendation-action button {
    min-height: 46px;

    padding: 10px 17px;

    border: none;

    border-radius: 7px;

    background-color: #198754;

    color: white;

    cursor: pointer;

    font-weight: 600;
}


.recommendation-action button:hover {
    background-color: #146c43;
}


/* =========================================
   CURRENT DESTINATION
========================================= */

.current-destination-summary {
    max-width: 1300px;

    margin:
        0 auto
        30px;

    padding: 20px 22px;

    background-color: white;

    border-left:
        4px solid #198754;

    border-radius: 9px;

    box-shadow:
        0 4px 16px
        rgba(0, 0, 0, 0.05);
}


.current-destination-summary h4 {
    margin-bottom: 8px;

    color: #203128;

    font-size: 18px;
}


.current-destination-summary p {
    color: #637068;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================
   RESULT HEADER
========================================= */

.recommendation-result-header {
    max-width: 1300px;

    margin:
        45px auto
        20px;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 20px;
}


.recommendation-result-header h3 {
    color: #203128;

    font-size: 27px;
}


#recommendationResultCount {
    color: #637068;

    font-size: 13px;
}


/* =========================================
   RESULT GRID
========================================= */

.smart-recommendation-grid {
    max-width: 1300px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                280px,
                1fr
            )
        );

    gap: 20px;
}


.recommendation-placeholder {
    grid-column:
        1 / -1;

    padding: 50px;

    text-align: center;

    background-color: white;

    border-radius: 12px;

    color: #6a756f;
}


/* =========================================
   RECOMMENDATION CARD
========================================= */

.smart-result-card {
    display: flex;

    flex-direction: column;

    min-width: 0;

    padding: 22px;

    background-color: white;

    border-radius: 13px;

    box-shadow:
        0 5px 19px
        rgba(
            0,
            0,
            0,
            0.07
        );

    transition:
        transform 0.25s;
}


.smart-result-card:hover {
    transform:
        translateY(-4px);
}


.smart-result-rank {
    margin-bottom: 8px;

    color: #198754;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


.smart-result-card h4 {
    margin-bottom: 7px;

    color: #203028;

    font-size: 19px;

    line-height: 1.4;
}


.smart-result-region {
    margin-bottom: 14px;

    color: #198754;

    font-size: 12px;

    font-weight: 600;
}


/* =========================================
   SCORE
========================================= */

.smart-score-container {
    margin-bottom: 17px;

    padding: 12px;

    background-color: #f1f7f3;

    border-radius: 8px;
}


.smart-score-header {
    display: flex;

    justify-content:
        space-between;

    margin-bottom: 7px;

    font-size: 12px;

    color: #59665f;
}


.smart-score-header strong {
    color: #177249;
}


.smart-score-track {
    height: 8px;

    overflow: hidden;

    background-color: #dfe9e3;

    border-radius: 10px;
}


.smart-score-bar {
    height: 100%;

    background-color: #198754;

    border-radius: 10px;
}


/* =========================================
   METRICS
========================================= */

.smart-result-metrics {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 8px;

    margin-bottom: 16px;
}


.smart-metric {
    padding: 9px;

    background-color: #f6f8f7;

    border-radius: 7px;

    color: #5b6861;

    font-size: 11px;
}


.smart-reason {
    flex: 1;

    margin-bottom: 17px;

    color: #66736c;

    font-size: 12px;

    line-height: 1.6;
}


.smart-result-button {
    align-self: flex-start;

    padding: 10px 16px;

    border: none;

    border-radius: 7px;

    background-color: #198754;

    color: white;

    cursor: pointer;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .recommendation-panel {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

}


@media (max-width: 650px) {

    .smart-recommendation-section {
        padding: 65px 5%;
    }


    .smart-recommendation-header h2 {
        font-size: 31px;
    }


    .recommendation-panel {
        grid-template-columns:
            1fr;
    }


    .smart-result-metrics {
        grid-template-columns:
            1fr;
    }


    .recommendation-result-header {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

}

/* =========================================
   SMART TOURISM IMAGES
========================================= */

.destination-card-image,
.catalog-card-image,
.place-card-image,
.smart-result-image {

    width: 100%;

    height: 200px;

    overflow: hidden;

    background-color: #e8efeb;
}


.destination-card-image img,
.catalog-card-image img,
.place-card-image img,
.smart-result-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}


.destination-card:hover
.destination-card-image img,

.catalog-card:hover
.catalog-card-image img,

.place-card:hover
.place-card-image img,

.smart-result-card:hover
.smart-result-image img {

    transform:
        scale(1.05);
}

/* =========================================
   SMART RECOMMENDATION SECTION
========================================= */

.smart-recommendation-section {
    padding: 80px 8%;

    background:
        linear-gradient(
            180deg,
            #f7fbf8 0%,
            #eef7f1 100%
        );

    text-align: center;
}


.smart-recommendation-section
.section-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #198754;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.smart-recommendation-section h2 {
    margin-bottom: 16px;

    color: #18392c;

    font-size: 38px;
    font-weight: 800;

    line-height: 1.2;
}


.smart-recommendation-section
.section-description {
    max-width: 760px;

    margin:
        0 auto
        30px;

    color: #66736c;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   RECOMMENDATION BUTTON
========================================= */

.smart-recommendation-section button {
    padding: 14px 30px;

    border: none;

    border-radius: 10px;

    background-color: #198754;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;

    box-shadow:
        0 8px 20px
        rgba(25, 135, 84, 0.20);
}


.smart-recommendation-section button:hover {
    background-color: #146c43;

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 24px
        rgba(25, 135, 84, 0.28);
}


/* =========================================
   FOOTER
========================================= */

footer {
    background-color: #123c2e;

    color: #ffffff;

    padding:
        50px 8%
        25px;

    text-align: center;
}


footer h3 {
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 24px;
    font-weight: 700;
}


footer p {
    margin:
        0 auto
        12px;

    max-width: 700px;

    color:
        rgba(
            255,
            255,
            255,
            0.82
        );

    font-size: 15px;

    line-height: 1.7;
}


footer p:last-child {
    margin-top: 25px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.15
        );

    font-size: 13px;
}