:root {
    --green: #176b4b;
    --green-dark: #104b36;
    --green-light: #e9f5ee;
    --text: #1e2b25;
    --muted: #68756d;
    --border: #e2e9e4;
    --background: #f6f8f5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: white;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   NAVIGATION
========================= */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    border-bottom: 1px solid var(--border);
    background: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
}

.brand strong {
    color: var(--green);
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--green);
    color: white;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

nav a:hover {
    color: var(--green);
}

/* =========================
   HERO SECTION
========================= */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 70px 10%;
    background: linear-gradient(
        110deg,
        #f7faf7,
        #e8f3e9
    );
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--green);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--green);
}

.hero-description {
    max-width: 480px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 17px;
}

.primary-button {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 9px;
    background: var(--green);
    color: white;
    font-weight: bold;
    transition: background 0.2s;
}

.primary-button:hover {
    background: var(--green-dark);
}

.hero-illustration {
    display: grid;
    grid-template-columns: repeat(2, 110px);
    justify-content: center;
    gap: 15px;
    padding: 35px;
    border-radius: 25px;
    background: white;
    box-shadow: 0 15px 40px #214a3020;
    transform: rotate(-3deg);
}

.food-emoji {
    display: grid;
    place-items: center;
    height: 110px;
    border-radius: 18px;
    background: var(--green-light);
    font-size: 48px;
}

/* =========================
   STATISTICS
========================= */

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 30px 9%;
}

.stat-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
}

.stat-card p {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 14px;
}

.stat-card h2 {
    color: var(--green);
    font-size: 30px;
}

/* =========================
   SECTION HEADINGS
========================= */

.explore-section {
    padding: 70px 9%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 25px;
}

.section-heading h2,
.about-section h2 {
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-description {
    max-width: 380px;
    color: var(--muted);
    font-size: 14px;
}

/* =========================
   MAP TOOLBAR
========================= */

.map-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

#search-input,
#category-filter,
#reset-filters {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    font: inherit;
    font-size: 14px;
}

#search-input {
    flex: 1;
    min-width: 0;
}

#category-filter {
    min-width: 180px;
}

#reset-filters {
    cursor: pointer;
    font-weight: bold;
}

#reset-filters:hover {
    background: var(--background);
}

/* =========================
   MAP AND LOCATION PANEL
========================= */

.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
}

.map-container {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
}

#map {
    width: 100%;
    height: 490px;
    background: #e9eee9;
}

.location-panel {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.location-panel h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

#result-count {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 12px;
}

#location-list {
    max-height: 300px;
    overflow-y: auto;
}

.location-item {
    display: block;
    width: 100%;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.location-item strong {
    display: block;
    font-size: 13px;
}

.location-item span {
    color: var(--muted);
    font-size: 11px;
}

.location-item:hover strong {
    color: var(--green);
}

.map-legend {
    margin-top: 20px;
}

.map-legend h4 {
    margin-bottom: 8px;
    font-size: 13px;
}

.map-legend p {
    margin: 5px 0;
    color: var(--muted);
    font-size: 12px;
}

.data-note {
    margin-top: 15px;
    color: var(--muted);
    font-size: 12px;
}

/* =========================
   FOOD SAFETY GUIDE
========================= */

.guide-section {
    padding: 70px 9%;
    background: var(--background);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.tip-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
}

.tip-card h3 {
    margin-bottom: 12px;
    font-size: 17px;
}

.tip-card p {
    color: var(--muted);
    font-size: 13px;
}

/* =========================
   ABOUT SECTION
========================= */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 70px 9%;
}

.about-section p {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 14px;
}

.about-section a {
    color: var(--green);
    font-weight: bold;
}

/* =========================
   FOOTER
========================= */

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 9%;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 900px) {
    .hero {
        padding: 55px 6%;
    }

    .stats-section,
    .explore-section,
    .guide-section,
    .about-section {
        padding-left: 6%;
        padding-right: 6%;
    }

    .map-layout {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        padding: 18px 5%;
    }

    nav {
        width: 100%;
        gap: 18px;
        overflow-x: auto;
    }

    nav a {
        white-space: nowrap;
        font-size: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 45px 7%;
    }

    .hero-illustration {
        grid-template-columns: repeat(2, 80px);
        padding: 20px;
    }

    .food-emoji {
        height: 80px;
        font-size: 36px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 20px 5%;
    }

    .stat-card {
        padding: 15px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .map-toolbar {
        flex-wrap: wrap;
    }

    #search-input {
        flex-basis: 100%;
    }

    #category-filter {
        flex: 1;
        min-width: 0;
    }

    #map {
        height: 390px;
    }

    .tips-grid {
        gap: 10px;
    }

    .tip-card {
        padding: 16px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    footer {
        flex-direction: column;
        padding: 22px 5%;
    }
}