:root {
    --brand: #2f855a;
    --brand-dark: #276749;
    --brand-light: #e6f4ec;
    --ink: #1a2e2a;
    --muted: #5b6e68;
    --surface: #ffffff;
    --bg: #f7faf8;
    --border: #e3ece6;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(26, 46, 42, 0.07);
}

body {
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .container { padding-top: 0.65rem; padding-bottom: 0.65rem; }

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 3px 10px rgba(47, 133, 90, 0.35);
}
.brand-text {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.1;
}
.brand-text small {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
}

.main-nav { display: flex; gap: 0.3rem; }
.main-nav .nav-link {
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.main-nav .nav-link:hover { background: var(--brand-light); color: var(--brand-dark); }
.main-nav .nav-link.active { background: var(--brand); color: #fff; }

@media (max-width: 576px) {
    .brand-text small { display: none; }
    .main-nav { gap: 0.15rem; }
    .main-nav .nav-link { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
}

/* Hero */
.hero {
    padding: 4.5rem 0 3.5rem;
    background:
        radial-gradient(1000px 400px at 90% -10%, rgba(47, 133, 90, 0.10), transparent 60%),
        linear-gradient(180deg, #f2f9f5 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}
.hero-badge {
    display: inline-block;
    background: var(--brand-light);
    border: 1px solid #cfe9dc;
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}
.hero-title {
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 46rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 40rem;
    margin-bottom: 1.6rem;
}
.hero-actions { margin-bottom: 2.4rem; }
.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.hero-stats .stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
}
.hero-stats .stat span { color: var(--muted); font-size: 0.92rem; }

/* Sections */
.map-section, .page-intro, .list-section, .map-page { padding: 2.8rem 0 1rem; }
.map-section-hero { padding: 2rem 0 0; }
.section-head { margin-bottom: 1.3rem; }
.section-head h1, .section-head h2 {
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); margin-bottom: 0; }

/* Map */
#map {
    height: 68vh;
    min-height: 420px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 0;
}
.map-section-hero #map { height: calc(100vh - 130px); min-height: 500px; }

.ol-popup {
    position: absolute;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    min-width: 220px;
    bottom: 12px;
    left: -50px;
    line-height: 1.4;
}
.ol-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 48px;
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}
.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 4px;
    right: 8px;
    color: #999;
    font-weight: 700;
    line-height: 1;
}
.ol-popup-closer::after { content: "✕"; }
.ol-popup-closer:hover { color: #555; }

/* Buttons */
.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    font-weight: 700;
    border-radius: 999px;
}

/* Table card */
.table-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.table-card thead th {
    background: #f2f9f5;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1rem;
}
.table-card tbody td { padding: 0.8rem 1rem; border-color: var(--border); }
.table-card .badge { font-weight: 600; }

/* Footer */
.site-footer {
    margin-top: 3.5rem;
    padding: 1.8rem 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.92rem;
}

/* Photo grid */
.photo-group-title {
    margin: 2rem 0 1rem;
    font-size: 1.35rem;
    color: var(--primary, #1a2e2a);
}
.photo-group-title:first-child { margin-top: 0; }
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.photo-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--surface);
    aspect-ratio: 4 / 3;
    transition: transform 0.15s, box-shadow 0.15s;
}
.photo-item:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26, 46, 42, 0.14); }
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 0.6rem 0.5rem;
    background: linear-gradient(transparent, rgba(26, 46, 42, 0.72));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Contacts */
.table-card dt { font-weight: 700; color: var(--brand-dark); }
