* { 
        margin: 0; 
        padding: 0; 
        box-sizing: border-box; 
    }
    
    html, body { 
        width: 100%; 
        height: 100%; 
        overflow: hidden; 
        position: fixed; 
    }
    
    body { 
        font-family: 'Inter', sans-serif; 
        background: #f3f4f6;
    }


    #app-container { 
        width: 100vw; 
        height: 100vh;
        position: fixed; 
        top: 0; 
        left: 0; 
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    #map { 
        width: 100%; 
        height: calc(100vh - 50px);
        flex: 1;
        position: relative;
    }
    
    #control-panel {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1000;
        order: 1;
    }
    
    #app-container footer { 
        width: 100%; 
        height: 50px;
        background: white;
        border-top: 2px solid #e5e7eb;
        z-index: 10000;
        box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
        order: 2;
    }
    
    @media (max-width: 767px) {
        #map {
            height: calc(100vh - 50px) !important;
        }
    }


    /* Leaflet controls positioning */
    .leaflet-bottom,
    .leaflet-bottom.leaflet-left,
    .leaflet-bottom.leaflet-right {
        position: absolute !important;
        bottom: 52px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .leaflet-control-container .leaflet-bottom .leaflet-control {
        margin-bottom: 2px !important;
    }
    
    .leaflet-control-attribution {
        display: none !important;
    }
    
    /* Circle marker */
    .circle-marker {
        fill-opacity: 0.2;
        stroke-opacity: 0.6;
    }


    /* Radio buttons */
    .radio-btn input:checked + span { 
        border-color: #2563eb; 
        background-color: #eff6ff; 
        color: #2563eb; 
        font-weight: 600; 
    }
    
    /* Notification toast */
    .notification { 
        position: fixed; 
        top: 20px; 
        right: 20px; 
        z-index: 9999; 
        padding: 16px; 
        border-radius: 8px; 
        box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
        animation: slideIn 0.3s; 
    }
    
    .notification.success { 
        background: #10b981; 
        color: white; 
    }
    
    .notification.error { 
        background: #ef4444; 
        color: white; 
    }
    
    /* Panel animation */
    .panel-hidden { 
        transform: translateX(-420px); 
    }
    
    /* History items */
    .history-item {
        padding: 12px;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        transition: all 0.2s;
    }
    
    .history-item:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
    }


    @keyframes slideIn { 
        from { transform: translateX(400px); opacity: 0; } 
        to { transform: translateX(0); opacity: 1; } 
    }
    
    @keyframes fadeIn { 
        from { opacity: 0; transform: scale(0.95); } 
        to { opacity: 1; transform: scale(1); } 
    }
    
    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    
    .animate-fadeIn { 
        animation: fadeIn 0.3s ease-out; 
    }
    
    .animate-spin {
        animation: spin 1s linear infinite;
    }


    .adsense-container {
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: opacity 0.3s ease;
    }
    
    .adsense-container:hover {
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    }
    
    .adsense-header {
        padding: 8px 12px;
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        text-align: center;
    }
    
    .adsense-content {
        padding: 10px;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
    }
    
    /* Desktop Sidebar Right */
    #adsense-sidebar {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 300px;
        height: 600px;
        z-index: 500;
        display: none;
    }
    
    /* Desktop Between Panel and Map */
    #adsense-between {
        position: fixed;
        top: 20px;
        left: 420px;
        width: 300px;
        height: 250px;
        z-index: 500;
        display: none;
    }
    
    /* Footer Banner */
    #adsense-footer-banner {
        position: fixed;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 320px;
        height: 100px;
        z-index: 999;
        max-width: calc(100vw - 40px);
    }
    
    /* Responsive Design */
    @media (min-width: 1024px) {
        #adsense-sidebar {
            display: block;
        }
    }
    
    @media (min-width: 1200px) {
        #adsense-between {
            display: block;
        }
    }
    
    @media (max-width: 768px) {
        #adsense-footer-banner {
            width: calc(100vw - 20px);
            height: 80px;
            bottom: 70px;
        }
        
        .adsense-content {
            min-height: 60px;
            padding: 5px;
        }
    }
    
    /* Hide ads on very small screens */
    @media (max-width: 480px) {
        #adsense-footer-banner {
            display: none;
        }
    }
    
    /* AdSense loading state */
    .adsense-loading {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }
    
    @keyframes loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }