:root {
    --bg-surface: rgba(20, 20, 20, 0.85);
    --bg-surface-hover: rgba(40, 40, 40, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #009688; /* Teal */
    --accent-hover: #00796b;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 12px;
    --spacing: 16px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* UI Sidebar */
.ui-sidebar {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 360px;
    max-height: calc(100vh - 40px);
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow);
    z-index: 10;
    overflow-y: auto;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.branding {
    display: flex;
    align-items: center;
    gap: 8px;
}

h1 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.badge {
    font-size: 10px;
    background: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input, select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

input:focus, select:focus {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
}

small {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

small a {
    color: var(--accent);
    text-decoration: none;
}

/* Custom Geocoder Styling Override */
.mapboxgl-ctrl-geocoder {
    width: 100% !important;
    max-width: none !important;
    background: rgba(0, 0, 0, 0.3) !important;
    color: white !important;
    box-shadow: none !important;
    border: 1px solid var(--border);
    border-radius: 8px !important;
}

.mapboxgl-ctrl-geocoder--input {
    color: white !important;
}

.mapboxgl-ctrl-geocoder--icon {
    fill: var(--text-secondary) !important;
}

/* Duration Toggles */
.toggle-group {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.duration-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.duration-btn:hover {
    color: white;
}

.duration-btn.active {
    background: var(--accent);
    color: white;
}

.spacer {
    flex: 1;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn .icon {
    font-size: 12px;
}

.btn.primary {
    background: white;
    color: black;
}

.btn.primary:hover {
    background: #e0e0e0;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--border);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.status {
    font-size: 12px;
    padding: 10px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    text-align: center;
}

.status.hidden {
    display: none;
}

.status.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Marker Styles */
.custom-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.marker-pin {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.marker-label {
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* Ad Placeholders */
.banner-ad-placeholder {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.banner-ad-placeholder span {
    color: var(--text-secondary);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Sidebar Ad */
.ad-sidebar {
    width: 100%;
    height: 100px;
    margin-top: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05); /* Match previous sidebar ad style */
}

/* Footer Ad - Full Width */
.ad-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    border-radius: 0; /* Remove radius for full width */
    border-top: 1px solid var(--border);
    border-left: none;
    border-right: none;
    border-bottom: none;
}
