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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

header p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

header .disclaimer {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    font-style: italic;
}

.controls {
    background: white;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.city-input {
    padding: 0.5rem 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    width: 180px;
    transition: border-color 0.2s;
}

.city-input:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    padding: 0.5rem 1.5rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #2980b9;
}

.btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

#status {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    display: none;
}

#status.error {
    display: block;
    color: #e74c3c;
    background: #fdeaea;
}

#status.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #2980b9;
    background: #eaf2f8;
}

#status.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #2980b9;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#status.success {
    display: block;
    color: #27ae60;
    background: #eafaf1;
}

#map {
    height: calc(100vh - 140px);
    width: 100%;
}

#globe {
    height: calc(100vh - 140px);
    width: 100%;
    background: #000011;
}

.view-toggle {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #3498db;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: white;
    color: #3498db;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn:hover {
    background: #eaf2f8;
}

.toggle-btn.active {
    background: #3498db;
    color: white;
}

.leaflet-popup-content {
    font-size: 14px;
    font-weight: 500;
}

.nearest-place-marker {
    background: transparent;
}

.nearest-marker-dot {
    width: 16px;
    height: 16px;
    background: #9b59b6;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .controls {
        flex-direction: column;
    }

    .city-input, .btn {
        width: 100%;
    }
}
