/* Base & Layout & Map Overrides */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
    --bg-dark: #1a1d23;
    --bg-panel: #22262e;
    --bg-input: #2a2f38;
    --border: #363c47;
    --text-primary: #f0f2f5;
    --text-secondary: #8b919a;
    --accent: #00b4d8;
    --accent-hover: #0096c7;
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #f87171;

    --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
}

/* GPU Acceleration Hints */
.leaflet-layer,
.leaflet-pane {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.app {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.sidebar {
    width: 400px;
    min-width: 400px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-container {
    flex: 1;
    position: relative;
    background: #a8d4e6;
}
#main {
    width: 100%;
    height: 100%;
    display: flex;
}

.arrow-icon {
    background: transparent !important;
    border: none !important;
}

.custom-label {
    background: transparent !important;
    border: none !important;
}
/* Location Search */
.location-search {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background: var(--bg-input);
}

.result-name {
    font-weight: 500;
    color: var(--text-primary);
}

.result-country {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
