/* =========================================
   1. CORE STYLES & TYPOGRAPHY
   ========================================= */
:root {
    --primary-color: #1a3c34; /* KAZA-Grün */
    --accent-color: #cfa348;  /* KAZA-Gold */
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --search-border: #4a5d23;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

h1, h2, h3 { color: var(--primary-color); }

/* =========================================
   2. NAVIGATION & HEADER
   ========================================= */
header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.logo { font-weight: 800; font-size: 1.6rem; letter-spacing: 1px; }
.logo a { color: white; text-decoration: none; }
.logo span { color: var(--accent-color); }

.nav-menu { 
    list-style: none; 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
    margin: 0; 
    padding: 0; 
}

.nav-menu a { 
    color: white; 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.3s; 
}

.nav-menu a:hover { color: var(--accent-color); }

.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    z-index: 1001;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-top: 3px solid var(--accent-color);
    border-radius: 0 0 4px 4px;
    top: 100%;
    left: 0;
}

.dropdown-content li a { 
    color: var(--primary-color) !important; 
    padding: 12px 20px; 
    display: block; 
    font-size: 0.9rem; 
    text-align: left;
}

.dropdown-content li a:hover { 
    background-color: #f1f1f1; 
    color: var(--accent-color) !important; 
}

.dropdown:hover .dropdown-content { display: block; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

/* =========================================
   3. LAYOUT COMPONENTS
   ========================================= */
.section-padding { padding: 4rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.content-wrapper { max-width: 900px; margin: 0 auto; }

.hero {
    background: linear-gradient(rgba(26,60,52,0.85), rgba(26,60,52,0.85)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 1.5rem;
}

.hero h1 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.quick-facts { 
    background: #fdf6e7; 
    border-left: 5px solid var(--accent-color); 
    padding: 1.5rem; 
    margin: 2rem 0; 
    border-radius: 4px; 
}

/* =========================================
   4. MAP, SEARCH & LEGEND (KAZA-DESIGN)
   ========================================= */
.map-section {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.map-section h2 {
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.map-section p {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.map-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- DAS MINIMALE SUCHFELD --- */
#search-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto 30px auto;
    position: relative;
    z-index: 1002;
}

#search-container .leaflet-control-search {
    width: 100% !important;
    border: 2px solid var(--search-border) !important;
    border-radius: 8px !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    float: none !important;
    overflow: hidden;
    display: block !important;
}

#search-container .search-input {
    width: 100% !important;
    height: 44px !important;
    border: none !important;
    outline: none !important;
    padding: 0 20px !important;
    font-size: 16px !important;
    background: white !important;
    box-sizing: border-box !important;
}

/* Lupe und Icons komplett entfernen */
#search-container .search-button,
#search-container .search-cancel,
#search-container .search-button::before,
#search-container .search-button::after {
    display: none !important;
}

#search-container .search-tooltip {
    width: 100% !important;
    background: white !important;
    border: 2px solid var(--search-border) !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    top: 44px !important;
    left: -2px !important;
    text-align: left;
    z-index: 2000 !important;
}

/* --- MAP WRAPPER --- */
.map-wrapper {
    height: 600px;
    width: 100%;
    max-width: 1000px; 
    margin: 0 auto; 
    position: relative;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    overflow: hidden;
    z-index: 1;
}

#map { height: 100%; width: 100%; }

/* --- INTERAKTIVE LEGENDE (AUF DER KARTE) --- */
.leaflet-control-layers {
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    border: 2px solid var(--search-border) !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Erzwingt Untereinander-Anordnung der Checkboxen */
.leaflet-control-layers-overlays {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
}

.leaflet-control-layers-overlays label {
    display: flex !important;
    align-items: center !important;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.leaflet-control-layers-overlays input {
    margin-right: 10px;
}

/* --- LEGENDE SYMBOLE --- */
.legend-box, .legend-dot, .legend-line {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    vertical-align: middle;
}

/* National Parks: Kasten mit dunkelgrünem Rand & hellgrüner Füllung */
.park-box {
    background-color: #CACDBA; 
    border: 2px solid #4A5D23; 
    border-radius: 2px;
}

/* Border Crossings: Oranger Punkt */
.border-dot {
    background-color: #e67e22;
    border-radius: 50%;
    border: 1px solid white;
    width: 14px;
    height: 14px;
}

/* KAZA Boundaries: Linie in Boundary-Grün */
.boundary-line {
    height: 4px;
    background-color: #4a5d23;
    margin-top: 2px;
}
/* --- Spezifische Punkte für die Park-Detailseiten --- */

/* Gates: Orange */
.gate-dot {
    background-color: #e67e22;
    border-radius: 50%;
    border: 1px solid white;
}

/* Lodges Inside: Rot */
.lodge-in-dot {
    background-color: #c0392b;
    border-radius: 50%;
    border: 1px solid white;
}

/* Lodges Outside: Lila */
.lodge-out-dot {
    background-color: #8e44ad;
    border-radius: 50%;
    border: 1px solid white;
}

/* Points of Interest: Grün */
.poi-dot {
    background-color: #27ae60;
    border-radius: 50%;
    border: 1px solid white;
}

/* Waterholes: Blau */
.water-dot {
    background-color: #2980b9;;
    border-radius: 50%;
    border: 1px solid white;
}


/* --- TEXTE NACH DER KARTE --- */
.map-caption {
    margin-top: 25px;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.map-usage-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* =========================================
   5. DESTINATION CARDS (DEIN ORIGINAL)
   ========================================= */
.silo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin: 3rem 0; }

.destination-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card-header {
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px 12px 0 0;
}

.card-flag {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 3px solid white;
    position: absolute;
    top: 30px;
    left: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.card-body { padding: 35px 1.5rem 1.5rem; }
.card-body h3 { margin: 0 0 0.5rem; font-size: 1.4rem; color: var(--primary-color); }
.card-highlight { font-weight: bold; margin-bottom: 0.5rem; }

/* =========================================
   6. BUTTONS & PROMO
   ========================================= */
.cta-button {
    background-color: var(--accent-color);
    color: white !important;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.visa-promo-section {
    background-color: #fdfaf3;
    padding: 3rem 1.5rem;
    margin: 4rem auto;
    border-radius: 12px;
    max-width: 1100px;
    border: 1px solid #e9dcc0;
    text-align: center;
}

/* =========================================
   7. FOOTER
   ========================================= */
.main-footer { background: var(--primary-color); color: white; padding: 40px 20px; text-align: center; margin-top: 4rem; }

/* =========================================
   8. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .nav-toggle-label { display: block; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; background: var(--primary-color);
        width: 100%; flex-direction: column; display: none; padding: 1.5rem;
    }
    .nav-toggle:checked ~ .nav-menu { display: flex; }
    .hero h1 { font-size: 2.2rem; }
    .map-wrapper { height: 400px; }
}