/* EarthEye Weather Map - Minimal Scoping Approach */

/* Only scope the container and problematic global styles */
.eartheye-weather-map {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    line-height: 1.6;
    /* Don't reset margins/padding globally - let Leaflet work normally */
}

/* Original styles - mostly unchanged from your working version */
.eartheye-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.eartheye-header-section .eartheye-container,
.eartheye-footer-section .eartheye-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.eartheye-header-section {
    padding: 40px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.eartheye-header-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #4a90e2, #7b68ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eartheye-header-section p {
    font-size: 1.2rem;
    color: #b8c6db;
    max-width: 800px;
    margin: 0 auto 20px;
}

.eartheye-feature-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.eartheye-feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.eartheye-side-content {
    margin: 40px 0;
}

.eartheye-map-container {
    position: relative;
    height: 700px;
    margin: 40px 0;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#eartheye-map {
    height: 100%;
    width: 100%;
}

.eartheye-search-box {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    padding: 12px 16px;
    border-radius: 25px;
    border: none;
    color: white;
    width: 280px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.eartheye-search-box::placeholder {
    color: #aaa;
}

.eartheye-search-box:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.eartheye-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 15px;
    min-width: 250px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.eartheye-controls h4 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eartheye-status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.eartheye-status-icon.success {
    background: #10b981;
    color: white;
}

.eartheye-status-icon.error {
    background: #ef4444;
    color: white;
}

.eartheye-date-slider {
    width: 100%;
    margin: 15px 0;
    accent-color: #4a90e2;
}

.eartheye-date-display {
    text-align: center;
    font-size: 16px;
    color: #4a90e2;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 8px;
}

.eartheye-temp-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    padding: 15px;
    border-radius: 15px;
    min-width: 200px;
    display: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.eartheye-temp-info.show { 
    display: block; 
}

.eartheye-temp-value {
    font-size: 24px;
    color: #4a90e2;
    margin-bottom: 5px;
    font-weight: bold;
}

.eartheye-legend {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.eartheye-color-bar {
    width: 200px;
    height: 15px;
    background: linear-gradient(to right, #1e40af, #3b82f6, #60a5fa, #fbbf24, #f59e0b, #ef4444);
    margin: 8px 0;
    border-radius: 8px;
}

.eartheye-legend-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.eartheye-temp-overlay {
    pointer-events: none;
}

.eartheye-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: rgba(0,0,0,0.9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.eartheye-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(30,30,30,0.8);
    font-size: 14px;
}

.eartheye-status.success { 
    background: rgba(16,185,129,0.3); 
    color: #10b981; 
}

.eartheye-status.error { 
    background: rgba(239,68,68,0.3); 
    color: #ef4444; 
}

.eartheye-city-tooltip {
    background: rgba(0,0,0,0.8) !important;
    border: 1px solid #444 !important;
    color: white !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

.eartheye-info-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.eartheye-info-panel h3 {
    color: #4a90e2;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.eartheye-info-panel p {
    color: #b8c6db;
    margin-bottom: 15px;
}

.eartheye-info-panel ul {
    color: #b8c6db;
    padding-left: 20px;
}

.eartheye-info-panel li {
    margin-bottom: 8px;
}

.eartheye-footer-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.eartheye-footer-section h3 {
    color: #4a90e2;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.eartheye-footer-section p {
    color: #b8c6db;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Responsive design */
@media (max-width: 1200px) {
    .eartheye-map-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .eartheye-header-section h1 {
        font-size: 2rem;
    }
    
    .eartheye-feature-list {
        flex-direction: column;
        align-items: center;
    }
    
    .eartheye-controls {
        position: relative;
        width: 100%;
        margin-top: 20px;
    }
    
    .eartheye-search-box {
        position: relative;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .eartheye-map-container {
        height: 400px;
        margin: 20px 0;
    }
}
