:root {
    --bg: #050505;
    --panel: #101010;
    --card: #ffffff;
    --text: #f5f5f5;
    --muted: #bdbdbd;
    --accent: #c1121f;
    --accent-2: #ef233c;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    --radius: 14px;
}
* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    height: 100%;
    font-family: "Poppins", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}
body {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 390px;
    max-width: 100%;
    background: linear-gradient(180deg, #090909 0%, #111111 100%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    z-index: 1000;
}
.sidebar-header {
    padding: 24px 22px 18px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(10px);
    z-index: 3;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
    font-weight: 700;
    margin-bottom: 10px;
}
.sidebar-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.1;
    color: #fff;
}
.sidebar-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.search-box {
    margin-top: 18px;
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #171717;
    color: #fff;
    outline: none;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.search-box input:focus {
    border-color: rgba(239, 35, 60, 0.75);
    box-shadow: 0 0 0 3px rgba(239, 35, 60, 0.15);
}
.toolbar {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.toolbar button,
.nav-button {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}
.toolbar button.secondary,
.nav-button.secondary {
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.toolbar button:hover,
.nav-button:hover {
    transform: translateY(-1px);
    background: var(--accent-2);
}
.toolbar button.secondary:hover,
.nav-button.secondary:hover {
    background: #2a2a2a;
}
.breadcrumb {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}
.results-meta {
    padding: 16px 22px 0;
    font-size: 13px;
    color: var(--muted);
}
.list {
    padding: 16px 18px 22px;
    overflow-y: auto;
    flex: 1;
}
.card {
    background: var(--card);
    color: #111;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}
.card.country {
    background: linear-gradient(135deg, #ffffff 0%, #f2f2f2 100%);
}
.card.state {
    border-left: 5px solid var(--accent);
}
.card-title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.25;
    color: #111;
}
.card-subtitle {
    margin: 0 0 10px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(193, 18, 31, 0.1);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.detail {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.55;
    color: #333;
    word-break: break-word;
}
.detail strong {
    color: #000;
}
.detail a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.detail a:hover {
    text-decoration: underline;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
}
.link-btn.secondary {
    background: #f3f3f3;
    color: #111 !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.empty-state {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 18px;
    color: var(--muted);
    font-size: 14px;
}
#map {
    flex: 1;
    min-height: 100vh;
}
.leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.popup-title {
    margin: 0 0 6px;
    font-size: 16px;
    color: #111;
}
.popup-line {
    margin: 4px 0;
    color: #333;
    font-size: 13px;
    line-height: 1.45;
}
.custom-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-2);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.2);
}
@media (max-width: 960px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        max-height: 54vh;
    }
    #map {
        min-height: 46vh;
    }
}
.img-sidebar {
    width: 300px;
    margin: 25px 0 0 25px;
}
.btn-home {
    width: 100%;
    padding: 15px;
    border: 1px solid #fff;
    font-size: 15px;
    color: #fff;
    border-radius: 15px;
    text-decoration: none;
     margin: 25px 0 0 25px;
}