/* Modern Theme CSS */

/* Enhanced animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Enhanced card styles */
.card-modern {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-600) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced buttons */
.btn-modern {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(91, 130, 255, 0.3);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 130, 255, 0.4);
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:active {
    transform: translateY(0);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 0px, rgba(229, 229, 229, 0.8) 40px, #f0f0f0 80px);
    background-size: 600px;
    animation: shimmer 1.6s linear infinite;
}

/* Enhanced form styles */
.form-modern {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.input-modern {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
}

.input-modern:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(91, 130, 255, 0.1);
    background: white;
}

/* Progress indicators */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Enhanced tooltips */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* Enhanced stats animations */
.stat-counter {
    font-variant-numeric: tabular-nums;
}

/* Search enhancements */
.search-suggestions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Interactive map enhancements */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar for region list */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(229, 231, 235, 0.3);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced 3D hover effects */
.card-hover-3d {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(20px);
}

/* Bookmark button animations */
.bookmark-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bookmark-btn:hover {
    transform: scale(1.1);
}

.bookmark-btn.bookmarked i {
    color: #ef4444;
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0%, 50%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(1.2);
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .card-modern {
        border-radius: 16px;
    }
    
    .btn-modern {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .form-modern {
        padding: 20px;
        border-radius: 12px;
    }

    .gradient-text {
        background-size: 200% 100%;
        animation: textShine 3s ease-in-out infinite;
    }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .float {
        animation: none;
    }
    
    .gradient-bg {
        animation: none;
        background: linear-gradient(-45deg, var(--primary-500), var(--accent-500));
    }
}

/* Focus indicators */
.focus-ring {
    transition: box-shadow 0.15s ease-in-out;
}

.focus-ring:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 130, 255, 0.5);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-modern {
        border: 2px solid;
        background: white;
    }
    
    .btn-modern {
        border: 2px solid;
    }
    
    .gradient-text {
        background: none;
        -webkit-text-fill-color: inherit;
        color: var(--primary-600);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --neutral-50: #0a0a0a;
        --neutral-100: #171717;
        --neutral-200: #262626;
        --neutral-300: #404040;
        --neutral-400: #525252;
        --neutral-500: #737373;
        --neutral-600: #a3a3a3;
        --neutral-700: #d4d4d4;
        --neutral-800: #e5e5e5;
        --neutral-900: #f5f5f5;
        --neutral-950: #fafafa;
    }
    
    .card-modern {
        background: rgba(23, 23, 23, 0.8);
        border-color: rgba(64, 64, 64, 0.3);
    }
    
    .card-modern:hover {
        background: rgba(23, 23, 23, 0.95);
    }
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Enhanced scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Additional utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced interaction states */
.interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.interactive:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism variants */
.glass-subtle {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =================================
   ANALYTICS DASHBOARD STYLES
   ================================= */

/* Analytics Hero Section */
.analytics-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-background .animated-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(91, 130, 255, 0.1) 0%,
        rgba(217, 70, 239, 0.1) 25%,
        rgba(34, 197, 94, 0.1) 50%,
        rgba(245, 158, 11, 0.1) 75%,
        rgba(91, 130, 255, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(91, 130, 255, 0.1), rgba(217, 70, 239, 0.1));
    animation: float 20s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.floating-circle.circle-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-circle.circle-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.floating-circle.circle-3 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 50%;
    animation-delay: -14s;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(91, 130, 255, 0.2), rgba(217, 70, 239, 0.2));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    animation: heroIconFloat 6s ease-in-out infinite;
}

.hero-icon i {
    font-size: 2rem;
    color: #5b82ff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 1rem;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #5b82ff, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.quick-stats-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin: 0 auto;
    max-width: 500px;
    animation: statsFloat 8s ease-in-out infinite;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #5b82ff;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 2rem;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Analytics Dashboard Section */
.analytics-dashboard-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.analytics-dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* Modern Stat Cards */
.modern-stat-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.modern-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.modern-stat-card:hover::before {
    left: 100%;
}

.modern-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(91, 130, 255, 0.3);
}

.stat-card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 130, 255, 0.02), rgba(217, 70, 239, 0.02));
    border-radius: 1.5rem;
}

.stat-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stat-icon-container {
    margin-bottom: 1rem;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    font-size: 1.25rem;
    color: white;
    animation: iconPulse 4s ease-in-out infinite;
}

.stat-icon.bg-primary-gradient {
    background: linear-gradient(135deg, #5b82ff, #3b82f6);
}

.stat-icon.bg-accent-gradient {
    background: linear-gradient(135deg, #d946ef, #ec4899);
}

.stat-icon.bg-success-gradient {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.stat-icon.bg-warning-gradient {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-details {
    flex: 1;
}

.stat-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Modern Chart Cards */
.modern-chart-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(91, 130, 255, 0.3);
}

.chart-card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 130, 255, 0.02), rgba(217, 70, 239, 0.02));
}

.chart-card-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem 0;
}

.chart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(91, 130, 255, 0.1);
    font-size: 1rem;
}

.chart-title {
    flex: 1;
}

.chart-title h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.chart-title p {
    font-size: 0.875rem;
    color: #64748b;
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
}

.chart-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(91, 130, 255, 0.1);
    border: none;
    color: #5b82ff;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-action-btn:hover {
    background: rgba(91, 130, 255, 0.2);
    transform: scale(1.1);
}

.chart-content {
    position: relative;
    z-index: 2;
    padding: 1rem 1.5rem 1.5rem;
}

/* Modern Map Section */
.modern-map-section {
    margin-bottom: 3rem;
}

.map-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 130, 255, 0.02), rgba(217, 70, 239, 0.02));
}

.map-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.map-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.map-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #5b82ff, #3b82f6);
    color: white;
    font-size: 1.25rem;
}

.map-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.map-info p {
    font-size: 0.875rem;
    color: #64748b;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
}

.map-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(91, 130, 255, 0.1);
    border: 1px solid rgba(91, 130, 255, 0.2);
    color: #5b82ff;
    cursor: pointer;
    transition: all 0.2s;
}

.map-control-btn:hover,
.map-control-btn.active {
    background: #5b82ff;
    color: white;
    transform: scale(1.05);
}

.map-container {
    position: relative;
    height: 500px;
}

.modern-map {
    width: 100%;
    height: 100%;
    border-radius: 0 0 1.5rem 1.5rem;
}

.map-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    pointer-events: none;
}

.map-legend {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.legend-marker.high-rating {
    background-color: #22c55e;
}

.legend-marker.good-rating {
    background-color: #f59e0b;
}

.legend-marker.avg-rating {
    background-color: #64748b;
}

/* Custom Map Popup Styles */
.modern-popup-container .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.modern-popup-container .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.modern-popup {
    padding: 1rem;
    max-width: 250px;
}

.popup-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.popup-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.popup-rating .rating-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-left: 0.25rem;
}

.popup-content {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 0.75rem;
}

.popup-address {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.popup-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #5b82ff, #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.popup-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 130, 255, 0.4);
}

.popup-stats {
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 0.5rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.stat-item i {
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    flex: 1;
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    min-width: 2rem;
    text-align: center;
}

.popup-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.popup-type {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Popup stats styles */
.popup-stats {
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 0.5rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.stat-item i {
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    flex: 1;
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    min-width: 2rem;
    text-align: center;
}

/* Popup metrics styles */
.popup-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.popup-type {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Animations */
@keyframes heroIconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes statsFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .analytics-hero-section {
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .quick-stats-banner {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-divider {
        width: 2rem;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    }
    
    .modern-stat-card,
    .modern-chart-card {
        padding: 1rem;
    }
    
    .chart-card-header {
        padding: 1rem 1rem 0;
    }
    
    .map-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .map-container {
        height: 300px;
    }
    
    .map-overlay {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* =================================
   SCHOOLS LISTING PAGE STYLES
   ================================= */

/* Schools Hero Section */
.schools-hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.schools-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.schools-hero-section .animated-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(91, 130, 255, 0.1) 0%,
        rgba(217, 70, 239, 0.1) 25%,
        rgba(34, 197, 94, 0.1) 50%,
        rgba(245, 158, 11, 0.1) 75%,
        rgba(91, 130, 255, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.schools-hero-section .floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.schools-hero-section .floating-shape {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    animation: float 8s ease-in-out infinite;
}

.schools-hero-section .floating-shape.shape-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.schools-hero-section .floating-shape.shape-2 {
    top: 30%;
    right: 15%;
    animation-delay: -3s;
}

.schools-hero-section .floating-shape.shape-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: -6s;
}

.schools-hero-section .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.schools-hero-section .hero-badge {
    display: inline-block;
    margin-bottom: 2rem;
}

.schools-hero-section .hero-badge-text {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.schools-hero-section .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.schools-hero-section .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.schools-hero-section .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.schools-hero-section .hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.schools-hero-section .hero-btn-primary {
    background: linear-gradient(135deg, #5b82ff, #3b82f6);
    color: white;
    box-shadow: 0 8px 25px rgba(91, 130, 255, 0.3);
}

.schools-hero-section .hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(91, 130, 255, 0.4);
}

.schools-hero-section .hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.schools-hero-section .hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.schools-hero-section .hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin: 0 auto;
    max-width: 500px;
}

.schools-hero-section .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.schools-hero-section .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #5b82ff;
    line-height: 1;
}

.schools-hero-section .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: 0.25rem;
}

.schools-hero-section .stat-divider {
    width: 1px;
    height: 2rem;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Modern Filter Card */
.modern-filter-card {
    position: relative;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.filter-card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 130, 255, 0.02), rgba(217, 70, 239, 0.02));
}

.filter-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.filter-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #5b82ff, #3b82f6);
    border-radius: 1rem;
    color: white;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.filter-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.filter-title p {
    font-size: 0.875rem;
    color: #64748b;
}

.modern-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.filter-label i {
    width: 1.25rem;
    margin-right: 0.5rem;
    color: #5b82ff;
}

.filter-input-wrapper,
.filter-select-wrapper {
    position: relative;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    transition: all 0.2s;
    appearance: none;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #5b82ff;
    box-shadow: 0 0 0 3px rgba(91, 130, 255, 0.1);
}

.input-icon,
.select-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.filter-btn-primary {
    background: linear-gradient(135deg, #5b82ff, #3b82f6);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 130, 255, 0.3);
}

.filter-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 130, 255, 0.4);
}

.filter-btn-secondary {
    background: rgba(91, 130, 255, 0.1);
    color: #5b82ff;
    border: 1px solid rgba(91, 130, 255, 0.2);
    text-align: center;
}

.filter-btn-secondary:hover {
    background: rgba(91, 130, 255, 0.2);
}

/* Modern Compare Section */
.modern-compare-section {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.compare-section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.05));
    border-radius: 1.5rem;
}

.compare-section-content {
    position: relative;
    z-index: 2;
}

.compare-icon-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 1rem;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.compare-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.compare-section-description {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.compare-section-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.compare-section-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.compare-section-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modern Results Header */
.modern-results-header {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.results-header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 130, 255, 0.02), rgba(217, 70, 239, 0.02));
}

.results-header-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-info {
    flex: 1;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.results-count {
    color: #64748b;
    font-size: 1rem;
}

.count-highlight {
    font-weight: 700;
    color: #5b82ff;
}

.active-filters {
    margin-top: 1rem;
}

.filters-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(91, 130, 255, 0.1);
    color: #5b82ff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(91, 130, 255, 0.2);
}

.filter-tag i {
    width: 0.75rem;
    margin-right: 0.25rem;
}

.filter-remove {
    margin-left: 0.5rem;
    color: #5b82ff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.filter-remove:hover {
    color: #3b82f6;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.sort-select-wrapper {
    position: relative;
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    appearance: none;
    min-width: 180px;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #5b82ff;
    box-shadow: 0 0 0 3px rgba(91, 130, 255, 0.1);
}

.sort-icon {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* View Toggle */
.view-toggle-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.view-toggle {
    display: inline-flex;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.view-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    color: #6b7280;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #f9fafb;
}

.view-btn-active {
    background: linear-gradient(135deg, #5b82ff, #3b82f6);
    color: white;
}

.view-btn-active:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .results-header-content {
        flex-direction: column;
    }
    
    .sort-control {
        justify-content: flex-start;
    }
    /* Hide filter sidebar on mobile by default */
    #filterSidebar, .filter-sidebar {
        display: none;
    }
    /* Show when open class is added */
    #filterSidebar.open, .filter-sidebar.open {
        display: block;
    }
}

@media (max-width: 768px) {
    .schools-hero-section .hero-title {
        font-size: 2.5rem;
    }
    
    .schools-hero-section .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .schools-hero-section .hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .schools-hero-section .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .schools-hero-section .stat-divider {
        width: 2rem;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    }
    
    .modern-filter-card {
        position: static;
        margin-bottom: 2rem;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .compare-bar-content .flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .schools-hero-section .hero-title {
        font-size: 2rem;
    }
    
    .schools-hero-section .hero-subtitle {
        font-size: 1rem;
    }
    
    .filter-card-content {
        padding: 1.5rem;
    }
    
    .results-header-content {
        padding: 1.5rem;
    }
    
    .view-toggle-container {
        justify-content: center;
    }
}

/* =============================================
   SCHOOL PAGES STYLES
   ============================================= */

/* School Detail & View Pages */
.school-detail-hero {
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    position: relative;
    overflow: hidden;
}

.school-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.school-rating-stars svg {
    transition: all 0.3s ease;
}

.school-rating-stars:hover svg {
    transform: scale(1.1);
}

/* Enhanced Gallery Modal */
.gallery-modal {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.8);
}

.gallery-modal img {
    max-height: 80vh;
    width: auto;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.gallery-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumbnail:hover::after {
    opacity: 1;
}

/* School Search Results */
.school-item {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.school-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.school-item:hover::before {
    transform: scaleX(1);
}

.school-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.school-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced Map Styles */
.custom-marker-container {
    animation: markerBounce 2s ease-in-out infinite;
}

@keyframes markerBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
}

/* Social Media Links */
.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 1rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Filter Sections */
.filter-section {
    position: relative;
}

.filter-section label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 0.75rem;
}

.filter-section label i {
    width: 20px;
    text-align: center;
}

.filter-section input,
.filter-section select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: 0.75rem;
    background: white;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.filter-section input:focus,
.filter-section select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(91, 130, 255, 0.1);
    transform: translateY(-2px);
}

.filter-section input:hover,
.filter-section select:hover {
    border-color: var(--primary-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* View Toggle Buttons */
.view-toggle {
    display: inline-flex;
    background: white;
    border-radius: 1rem;
    padding: 0.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--neutral-200);
}

.view-toggle button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-toggle button.active {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: 0 4px 12px rgba(91, 130, 255, 0.3);
}

.view-toggle button:not(.active) {
    color: var(--neutral-600);
}

.view-toggle button:not(.active):hover {
    background: var(--neutral-50);
    color: var(--neutral-800);
}

/* Enhanced Loading States */
.school-loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--neutral-200);
    border-radius: 50%;
    border-top-color: var(--primary-500);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error States */
.school-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.school-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .school-item {
        flex-direction: column;
    }
    
    .social-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .view-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .filter-section input,
    .filter-section select {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
}

/* Print Styles for School Pages */
@media print {
    .school-detail-hero {
        background: white !important;
        color: black !important;
        padding: 1rem !important;
    }
    
    .glass-card {
        background: white !important;
        border: 1px solid #ddd !important;
    }
    
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    .social-link {
        display: none !important;
    }
    
    .gallery-thumbnail {
        page-break-inside: avoid;
    }
}

/* Enhanced stats animations */
.stat-counter {
    font-variant-numeric: tabular-nums;
}

/* Search enhancements */
.search-suggestions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Interactive map enhancements */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar for region list */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(229, 231, 235, 0.3);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced 3D hover effects */
.card-hover-3d {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(20px);
}

/* Bookmark button animations */
.bookmark-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bookmark-btn:hover {
    transform: scale(1.1);
}

.bookmark-btn.bookmarked i {
    color: #ef4444;
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0%, 50%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(1.2);
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .card-modern {
        border-radius: 16px;
    }
    
    .btn-modern {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .form-modern {
        padding: 20px;
        border-radius: 12px;
    }

    .gradient-text {
        background-size: 200% 100%;
        animation: textShine 3s ease-in-out infinite;
    }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .float {
        animation: none;
    }
    
    .gradient-bg {
        animation: none;
        background: linear-gradient(-45deg, var(--primary-500), var(--accent-500));
    }
}

/* Focus indicators */
.focus-ring {
    transition: box-shadow 0.15s ease-in-out;
}

.focus-ring:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 130, 255, 0.5);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-modern {
        border: 2px solid;
        background: white;
    }
    
    .btn-modern {
        border: 2px solid;
    }
    
    .gradient-text {
        background: none;
        -webkit-text-fill-color: inherit;
        color: var(--primary-600);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --neutral-50: #0a0a0a;
        --neutral-100: #171717;
        --neutral-200: #262626;
        --neutral-300: #404040;
        --neutral-400: #525252;
        --neutral-500: #737373;
        --neutral-600: #a3a3a3;
        --neutral-700: #d4d4d4;
        --neutral-800: #e5e5e5;
        --neutral-900: #f5f5f5;
        --neutral-950: #fafafa;
    }
    
    .card-modern {
        background: rgba(23, 23, 23, 0.8);
        border-color: rgba(64, 64, 64, 0.3);
    }
    
    .card-modern:hover {
        background: rgba(23, 23, 23, 0.95);
    }
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Enhanced scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Additional utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced interaction states */
.interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.interactive:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism variants */
.glass-subtle {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =================================
   ANALYTICS DASHBOARD STYLES
   ================================= */

/* Analytics Hero Section */
.analytics-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-background .animated-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(