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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.6 !important;
    color: #1a202c !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    min-height: 100vh !important;
}

/* Hero Section */
.israel-hero-section {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: white !important;
    padding: 3rem 1rem 2rem !important;
    text-align: center !important;
    position: relative !important;
    border-bottom: 1px solid #0284c7 !important;
    overflow: hidden !important;
}

.israel-hero-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') !important;
    opacity: 0.3 !important;
}

.israel-hero-content {
    max-width: 900px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.israel-hero-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.israel-hero-subtitle {
    font-size: 1.2rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 600px !important;
    margin: 0 auto 2rem !important;
}

.israel-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
}

.israel-stat-card {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 1.5rem 1rem !important;
    text-align: center !important;
    backdrop-filter: blur(10px) !important;
}

.israel-stat-number {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: white !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}

.israel-stat-label {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 0.5rem !important;
}

/* Main Container */
.israel-main-container {
    max-width: 1200px !important;
    margin: -2rem auto 0 !important;
    padding: 0 1rem !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Loading State */
.israel-loading {
    text-align: center !important;
    padding: 2rem 1rem !important;
    background: white !important;
    border-radius: 12px !important;
    margin-bottom: 2rem !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.israel-loading h3 {
    margin-bottom: 1rem !important;
    color: #0ea5e9 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.israel-loading-spinner {
    width: 30px !important;
    height: 30px !important;
    border: 3px solid #e2e8f0 !important;
    border-top: 3px solid #0ea5e9 !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin: 0 auto 1rem !important;
}

@keyframes spin {
    0% { transform: rotate(0deg) !important; }
    100% { transform: rotate(360deg) !important; }
}

/* Accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Filters Section */
.israel-filters {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.israel-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.israel-filter-group {
    display: flex;
    flex-direction: column;
}

.israel-filter-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.israel-filter-select,
.israel-search-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.israel-filter-select:focus,
.israel-search-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Beach Stations Grid */
.israel-beaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Map Container */
#mapContainer {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

#beachMap {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* Map Toggle Button */
.israel-map-toggle {
    background: #0ea5e9 !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 2rem !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2) !important;
}

.israel-map-toggle:hover {
    background: #0284c7 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3) !important;
}

/* Beach Station Card */
.israel-beach-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.israel-beach-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
}

.israel-card-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.israel-beach-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.israel-beach-location {
    font-size: 0.875rem;
    opacity: 0.9;
    color: white;
    margin-bottom: 0.5rem;
}

.israel-beach-settlement {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.israel-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.israel-beach-info {
    display: grid;
    gap: 1rem;
    flex: 1;
}

.israel-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.israel-info-icon {
    width: 20px;
    height: 20px;
    color: #0ea5e9;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.israel-info-content {
    flex: 1;
}

.israel-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.israel-info-value {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

/* Safety Status Badges */
.israel-safety-badge {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.israel-safety-safe {
    background: #10b981;
    color: white;
}

.israel-safety-prohibited {
    background: #ef4444;
    color: white;
}

.israel-safety-unknown {
    background: #f59e0b;
    color: white;
}

/* Action Buttons */
.israel-beach-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.israel-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #0ea5e9;
    color: #0ea5e9;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.israel-action-button.primary {
    background: #0ea5e9;
    color: white !important;
}

.israel-action-button:hover {
    background: #0ea5e9;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.israel-action-button.primary:hover {
    background: #0284c7;
}

/* No results state */
.israel-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.israel-no-results h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 1rem;
}

.israel-no-results p {
    color: #718096;
    margin-bottom: 2rem;
}

/* Error state */
.israel-error {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #fed7d7;
}

.israel-error h2 {
    color: #e53e3e;
    margin-bottom: 1rem;
    font-weight: 600;
}

.israel-error p {
    color: #718096;
    margin-bottom: 2rem;
}

.israel-retry-button {
    background: #0ea5e9 !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 2rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.israel-retry-button:hover {
    background: #0284c7 !important;
}

/* Leaflet popup styles */
.beach-marker-popup .leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15) !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
}

.beach-marker-popup .leaflet-popup-content {
    margin: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.beach-marker-popup .leaflet-popup-tip {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
}

.beach-marker-popup .leaflet-popup-close-button {
    color: white !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 8px !important;
    background: transparent !important;
    border: none !important;
}

.beach-marker-popup .leaflet-popup-close-button:hover {
    background: rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .israel-hero-section {
        padding: 2rem 1rem 1.5rem !important;
    }
    
    .israel-hero-title {
        font-size: 2.2rem !important;
    }
    
    .israel-hero-subtitle {
        font-size: 1rem !important;
    }
    
    .israel-hero-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
    
    .israel-main-container {
        margin-top: -1rem !important;
        padding: 0 0.75rem !important;
    }
    
    .israel-stat-card {
        padding: 1rem 0.75rem !important;
    }
    
    .israel-stat-number {
        font-size: 1.5rem !important;
    }

    .israel-beaches-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .israel-card-body {
        padding: 1.5rem;
    }
    
    .israel-card-header {
        padding: 1.5rem;
    }
    
    .israel-beach-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .israel-filters {
        padding: 1.5rem;
    }
    
    .israel-filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #beachMap {
        height: 400px !important;
    }
    
    #mapContainer {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .israel-map-toggle {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
}

@media (max-width: 480px) {
    .israel-hero-section {
        padding: 1.5rem 1rem !important;
    }
    
    .israel-hero-title {
        font-size: 1.8rem !important;
    }
    
    .israel-hero-stats {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .israel-stat-card {
        padding: 0.75rem 0.5rem !important;
    }

    .israel-beaches-grid {
        grid-template-columns: 1fr;
    }
    
    .israel-beach-actions {
        grid-template-columns: 1fr;
    }

    #beachMap {
        height: 350px !important;
    }
    
    #mapContainer {
        padding: 0.75rem !important;
        border-radius: 15px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .israel-map-toggle {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Mobile popup improvements */
    .beach-marker-popup .leaflet-popup-content-wrapper {
        border-radius: 8px !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
    }
    
    .beach-marker-popup .leaflet-popup-content {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    .beach-marker-popup .leaflet-popup-close-button {
        font-size: 16px !important;
        padding: 6px !important;
    }
}
