:root {
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --accent-color: #00ffff;
    /* Neon Cyan */
    --accent-dim: rgba(0, 255, 255, 0.2);
    --font-mono: 'Courier New', Courier, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent scroll */
}

header {
    padding: 10px 15px;
    border-bottom: 1px solid var(--accent-color);
    background-color: #111;
    z-index: 10;
}

.brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.tagline {
    font-size: 0.7rem;
    color: #888;
    margin-top: 5px;
}

#map {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    background-color: #222;
}

.controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: #ffffff;
    /* Light Theme */
    border-top: 1px solid #ccc;
    z-index: 20;
    color: #333;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.label {
    color: #000;
    font-weight: bold;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 15px 0 25px 0;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--accent-color);
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    height: 32px;
    width: 32px;
    border: 3px solid var(--accent-color);
    background: #000;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin-top: -14px;
    border-radius: 50%;
}

input[type=range]::-moz-range-thumb {
    height: 32px;
    width: 32px;
    border: 3px solid var(--accent-color);
    background: #000;
    cursor: pointer;
    border-radius: 50%;
}

.info-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

#find-me-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 24px;
    font-family: var(--font-mono);
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.2s;
    border-radius: 4px;
}

#find-me-btn:hover {
    background: var(--accent-dim);
}

.data-readout {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
}

/* Data Row Styles */
.row {
    margin-bottom: 2px;
}

.row.accent {
    color: #444;
    font-weight: bold;
}

/* Ad Container */
#ad-container {
    height: 100px;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    flex-shrink: 0;
    color: #333;
}

.ad-placeholder {
    color: #444;
    border: 1px dashed #444;
    padding: 10px;
}

.privacy-link {
    margin-top: 5px;
    font-size: 0.6rem;
}

.privacy-link a {
    color: #666;
    text-decoration: none;
}

/* Leaflet Control Overrides */
.leaflet-control-layers {
    background: #000 !important;
    border: 1px solid var(--accent-color) !important;
    color: var(--accent-color) !important;
    font-family: var(--font-mono) !important;
    font-size: 1.0rem !important;
    border-radius: 4px !important;
    padding: 8px !important;
}

.leaflet-control-layers-toggle {
    filter: invert(1);
}

/* Search Input Styles */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#location-input {
    flex: 1;
    background: #fff;
    border: 1px solid #ccc;
    color: #000;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 1rem;
    border-radius: 4px;
}

#location-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

#search-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 0 20px;
    font-family: var(--font-mono);
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}