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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
}

#map {
    height: calc(100vh - 70px);
    width: 100%;
    transition: width 0.3s ease;
    margin-top: 70px;
}

.map-with-panel {
    width: 60% !important;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-bottom: 3px solid #dc2626;
    z-index: 2000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand::before {
    content: "🗺️";
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-text {
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-btn::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.6s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9) 0%, rgba(185, 28, 28, 0.9) 100%);
    border-color: #fca5a5;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.nav-btn:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

.nav-btn.active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #fca5a5;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Mobile responsive navbar */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: 70px;
        padding: 10px 0;
    }
    
    .navbar-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
    }
    
    .navbar-brand::before {
        font-size: 1.5rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .navbar-buttons {
        gap: 10px;
        justify-content: center;
    }
    
    .nav-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    #map {
        margin-top: 90px;
        height: calc(100vh - 90px);
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 12px 15px;
    }
    
    .navbar-buttons {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 8px;
        width: 100%;
    }
    
    .nav-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    #map {
        margin-top: 110px;
        height: calc(100vh - 110px);
    }
}

/* ALIN Foundation Splash Screen */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #b91c1c 0%, #374151 50%, #b91c1c 100%);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: splashFadeIn 1s ease-out;
}

.splash-container {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.logo-section {
    margin-bottom: 60px;
    animation: logoAppear 1.5s ease-out;
}

.alin-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

.foundation-name {
    font-size: 2rem;
    font-weight: 600;
    color: #f9fafb;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.motto-section {
    margin-bottom: 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motto-text {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    display: flex;
    align-items: baseline;
}

.motto-text span {
    display: inline-block;
    transition: all 0.5s ease;
}

.check {
    color: #f9fafb;
    margin: 0 4px 0 0;
    animation: mottoAppear 0.8s ease-out 1s both;
    order: 1;
}

.your {
    color: #f9fafb;
    margin: 0 4px;
    animation: mottoAppear 0.8s ease-out 1s both;
    order: 2;
}

.digital {
    color: #60a5fa;
    font-weight: 800;
    opacity: 0;
    width: 0;
    margin: 0;
    overflow: hidden;
    transform: scale(0.9);
    animation: digitalInsert 1.8s ease-in-out 2.5s forwards;
    order: 3;
}

.privilege {
    color: #f9fafb;
    margin: 0 0 0 4px;
    animation: mottoAppear 0.8s ease-out 1s both;
    order: 4;
}

.splash-footer {
    animation: footerAppear 1s ease-out 1.5s both;
}

.splash-footer p {
    font-size: 1.2rem;
    color: #d1d5db;
    margin: 0;
    font-style: italic;
}

@keyframes splashFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes logoAppear {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes mottoAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes digitalInsert {
    0% {
        opacity: 0;
        width: 0;
        margin: 0;
        transform: scale(0.9);
    }
    20% {
        opacity: 0.3;
        width: 0;
        margin: 0;
        transform: scale(0.9);
    }
    40% {
        opacity: 0.7;
        width: auto;
        margin: 0 2px;
        transform: scale(0.95);
    }
    70% {
        opacity: 1;
        width: auto;
        margin: 0 3px;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        width: auto;
        margin: 0 4px;
        transform: scale(1);
    }
}

@keyframes footerAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splashFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* National Statistics Overlay */
.stats-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(55, 65, 81, 0.85) 100%);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: overlayFadeIn 1s ease-out;
}

.stats-container {
    max-width: 900px;
    padding: 40px;
    text-align: center;
}

.stats-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-subtitle {
    font-size: 1.2rem;
    color: #d1d5db;
    margin-bottom: 40px;
    font-weight: 300;
}

.national-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardSlideUp 0.8s ease-out;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #f9fafb;
}

.stat-detail {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 300;
}

.transition-text {
    margin-top: 50px;
    padding: 25px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.transition-text p {
    margin: 8px 0;
    font-size: 1.1rem;
}

.transition-text p:first-child {
    color: #fbbf24;
    font-style: italic;
}

.transition-text strong {
    color: #34d399;
}

.data-sources {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    animation: sourcesAppear 1s ease-out 3s both;
}

.data-sources h4 {
    color: #d1d5db;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.data-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-sources li {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
}

.data-sources li:before {
    content: "•";
    color: #60a5fa;
    position: absolute;
    left: 0;
}

.continue-prompt {
    margin-top: 40px;
    text-align: center;
    animation: promptPulse 2s ease-in-out 4s infinite;
}

.continue-text {
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.continue-indicator {
    color: #fbbf24;
    font-size: 1.5rem;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes sourcesAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes promptPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textGlow {
    from {
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.3);
    }
    to {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    }
}

@keyframes overlayFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

/* Colored circle markers for digital access levels */
.access-marker {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.access-marker:hover {
    transform: scale(1.15);
}

.access-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.access-marker:hover .access-circle {
    border-width: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.access-marker.high-access:hover .access-circle {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.access-marker.medium-access:hover .access-circle {
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

.access-marker.low-access:hover .access-circle {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    right: -40%;
    top: 0;
    width: 40%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    transition: right 0.3s ease-in-out;
    overflow: hidden;
}

.modal.show {
    right: 0;
}

.modal-content {
    background-color: #fff;
    margin: 0;
    padding: 0;
    border-radius: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes markerDrop {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.close:hover {
    background: #dc2626;
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.close:active {
    transform: rotate(90deg) scale(1.05);
}

.popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.popup-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.location-info {
    margin: 10px 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.location-detail {
    margin: 2px 0;
    font-weight: 500;
}

.interview-detail {
    margin: 2px 0;
    font-style: italic;
    opacity: 0.8;
}

.access-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.high-access {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.badge.medium-access {
    background-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.badge.low-access {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.popup-body {
    padding: 25px;
}

.media-section {
    margin-bottom: 30px;
}

.video-container {
    margin-bottom: 20px;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.audio-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.audio-container h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1rem;
}

.audio-container audio {
    width: 100%;
}

/* Profile Section Styling */
.profile-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.headshot-container {
    flex-shrink: 0;
}

.headshot-image {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resident-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.resident-role {
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
    margin: 0 0 12px 0;
}

.resident-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* Photo Collage Section */
.photo-collage-section {
    margin-bottom: 30px;
}

.photo-collage-section h3 {
    color: #374151;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.photo-collage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.collage-item {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.collage-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-quote {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px 15px;
    color: white;
}

.photo-quote p {
    margin: 0;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Video Section */
.video-section {
    margin-bottom: 30px;
}

.video-section h3 {
    color: #374151;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.youtube-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Audio Section */
.audio-section {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.audio-section h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.audio-section audio {
    width: 100%;
}

.story-section {
    margin-bottom: 30px;
}

.voice-panel {
    background: linear-gradient(135deg, #fef7ff 0%, #f3f4f6 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e5e7eb;
}

.voice-panel h3 {
    color: #374151;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.voice-panel blockquote {
    font-style: italic;
    font-size: 1.1rem;
    color: #1f2937;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1.6;
    font-weight: 500;
}

.resident-name {
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial, .reality-check {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
}

.testimonial {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid #3b82f6;
}

.reality-check {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #ef4444;
}

.testimonial h4, .reality-check h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
}

.testimonial h4 {
    color: #1e40af;
}

.reality-check h4 {
    color: #dc2626;
}

.testimonial p, .reality-check p {
    margin: 0;
    line-height: 1.5;
    color: #374151;
}

.stats-vs-reality {
    border-top: 2px solid #e5e7eb;
    padding-top: 25px;
}

.stats-panel {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #d1d5db;
}

.stats-panel h3 {
    color: #374151;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #d1d5db;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.95rem;
}

.stat-value {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.95rem;
    text-align: right;
    max-width: 60%;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .popup-header {
        padding: 15px 20px;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .house-marker {
        font-size: 20px;
    }
    
    /* National stats overlay responsive */
    .stats-container {
        padding: 20px;
    }
    
    .stats-header h1 {
        font-size: 2.2rem;
    }
    
    .national-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .transition-text {
        padding: 20px;
        margin-top: 30px;
    }
    
    /* Splash screen responsive */
    .splash-container {
        padding: 20px;
    }
    
    .alin-logo {
        width: 100px;
        height: 100px;
    }
    
    .foundation-name {
        font-size: 1.6rem;
    }
    
    .motto-text {
        font-size: 2rem;
    }
    
    .splash-footer p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .popup-header {
        padding: 12px 15px;
    }
    
    .popup-body {
        padding: 15px;
    }
    
    .stats-panel {
        padding: 15px;
    }
    
    /* National stats overlay mobile */
    .stats-header h1 {
        font-size: 1.8rem;
    }
    
    .national-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .transition-text p {
        font-size: 1rem;
    }
    
    /* Splash screen mobile */
    .alin-logo {
        width: 80px;
        height: 80px;
    }
    
    .foundation-name {
        font-size: 1.4rem;
    }
    
    .motto-text {
        font-size: 1.6rem;
    }
    
    .motto-text span {
        margin: 0 4px;
    }
    
    .splash-footer p {
        font-size: 0.9rem;
    }
}

/* Cinematic Video Overlay */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
}

#cinematic-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2600;
}

.skip-button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid #60a5fa;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.skip-button:hover {
    background: rgba(96, 165, 250, 0.8);
    transform: scale(1.05);
}

/* Video fade animations */
@keyframes videoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes videoFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.video-fade-in {
    animation: videoFadeIn 0.5s ease-in;
}

.video-fade-out {
    animation: videoFadeOut 0.5s ease-out forwards;
}

/* Responsive video overlay */
@media (max-width: 768px) {
    .video-controls {
        top: 15px;
        right: 15px;
    }
    
    .skip-button {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Area marker animations and hover effects */
.area-marker-container {
    transition: all 0.3s ease;
}

.area-marker-container:hover .area-marker {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.area-marker {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Mixed access area styling */
.mixed-area .area-marker {
    background: linear-gradient(45deg, #8b5cf6, #fbbf24);
    border-color: #7c3aed;
}

/* Pulse animation for area markers */
@keyframes areaPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.area-marker-container.mixed-area {
    animation: areaPulse 2s ease-in-out infinite;
}

/* Area text labels */
.area-label-container {
    pointer-events: none;
}

.area-text-label {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.ward-label {
    background: rgba(139, 92, 246, 0.9);
    color: white;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

/* Government Building Icon */
.ward-office-marker {
    cursor: pointer;
}

.government-building-icon {
    width: 30px;
    height: 35px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.government-building-icon:hover {
    transform: scale(1.1);
}

.building-base {
    width: 30px;
    height: 20px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border: 2px solid #6b7280;
    border-radius: 2px 2px 0 0;
    position: relative;
}

.building-pillars {
    display: flex;
    justify-content: space-around;
    width: 26px;
    height: 12px;
    position: absolute;
    bottom: 8px;
    left: 2px;
}

.pillar {
    width: 3px;
    height: 12px;
    background: #374151;
    border-radius: 1px;
}

.building-roof {
    width: 34px;
    height: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border: 2px solid #5b21b6;
    border-radius: 0 0 4px 4px;
    margin-top: -2px;
    position: relative;
}

.building-roof::before {
    content: '🏛️';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    filter: grayscale(100%);
}

/* Government access badge styling */
.badge.government-access {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: white;
    border: 1px solid #6d28d9;
}

/* Education access badge styling */
.badge.education-access {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: 1px solid #1d4ed8;
}

/* Social hub access badge styling */
.badge.social-access {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: 1px solid #991b1b;
}

/* Interview access badge styling */
.badge.interview-access {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: 1px solid #3730a3;
}

/* Commerce access badge styling */
.badge.commerce-access {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: white;
    border: 1px solid #9a3412;
}

/* School Icon */
.school-marker {
    cursor: pointer;
}

.school-icon {
    width: 45px;
    height: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.school-icon:hover {
    transform: scale(1.1);
}

.school-symbol {
    font-size: 20px;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.school-base {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: 2px solid #1d4ed8;
    border-radius: 8px;
    padding: 3px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.school-text {
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    font-family: Arial, sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.school-label {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    border: 1px solid rgba(29, 78, 216, 0.3);
}

/* House marker styling */
.house-marker {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.house-marker i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.house-marker:hover i {
    transform: scale(1.2);
}

/* House marker access level specific styling */
.house-marker.high-access i {
    filter: drop-shadow(0 2px 4px rgba(34, 197, 94, 0.4));
}

.house-marker.medium-access i {
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.4));
}

.house-marker.low-access i {
    filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.4));
}

/* Khajaghar marker styling */
.khajaghar-marker {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.khajaghar-marker i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.khajaghar-marker:hover i {
    transform: scale(1.2);
}

.khajaghar-label {
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: 1px solid rgba(185, 28, 28, 0.3);
}

/* Street Interview marker styling */
.interview-marker {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interview-marker i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.interview-marker:hover i {
    transform: scale(1.2);
}

/* Shop marker styling */
.shop-marker {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-marker i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.shop-marker:hover i {
    transform: scale(1.2);
}

/* Modal responsive design */
@media (max-width: 768px) {
    .modal {
        width: 100%;
        right: -100%;
    }
    
    .modal.show {
        right: 0;
    }
    
    .map-with-panel {
        width: 100% !important;
    }
    
    .modal-content {
        width: 100%;
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    
    /* Profile section mobile */
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .headshot-image {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }
    
    .resident-name {
        font-size: 1.3rem;
    }
    
    .resident-role {
        font-size: 0.9rem;
    }
    
    .resident-description {
        font-size: 0.85rem;
    }
    
    /* Photo collage mobile */
    .photo-collage-grid {
        gap: 15px;
    }
    
    .collage-item img {
        height: 150px;
    }
    
    .photo-quote {
        padding: 15px 10px 10px;
    }
    
    .photo-quote p {
        font-size: 0.8rem;
    }
    
    /* Video section mobile */
    .youtube-container {
        padding-bottom: 56.25%;
    }
}

/* Responsive adjustments for labels */
@media (max-width: 768px) {
    .area-text-label {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .government-building-icon {
        width: 25px;
        height: 30px;
    }
    
    .building-base {
        width: 25px;
        height: 16px;
    }
    
    .building-pillars {
        width: 21px;
        height: 10px;
        bottom: 6px;
    }
    
    .building-roof {
        width: 29px;
        height: 6px;
    }
    
    .school-icon {
        width: 35px;
        height: 32px;
    }
    
    .school-symbol {
        font-size: 16px;
    }
    
    .school-text {
        font-size: 7px;
    }
    
    .house-marker i {
        font-size: 20px;
    }
    
    .khajaghar-marker i {
        font-size: 16px;
    }
    
    .interview-marker i {
        font-size: 15px;
    }
    
    .shop-marker i {
        font-size: 18px;
    }
}

/* Foundation-specific modal styles */
.foundation-content {
    padding: 20px 0;
}

/* Foundation header section */
.foundation-about-section {
    margin-bottom: 40px;
}

.foundation-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}

.foundation-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3b82f6;
}

.foundation-info h3 {
    color: #1e40af;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.foundation-mission {
    color: #374151;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.foundation-description {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Team section */
.team-section {
    margin-bottom: 40px;
}

.team-section h3 {
    color: #374151;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.team-member {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-member:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #d1d5db;
}

.team-name {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-role {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.team-bio {
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Team photo container styling */
.team-photo-container {
    text-align: center;
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.team-group-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.team-caption {
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    font-style: italic;
}

/* FAQ section */
.faq-section {
    margin-bottom: 40px;
}

.faq-section h3 {
    color: #374151;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.faq-question {
    padding: 15px 20px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    justify-content: between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-question h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.faq-toggle {
    color: #6b7280;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 15px;
}

.faq-answer {
    padding: 0 20px 15px 20px;
    display: none;
}

.faq-answer p {
    color: #4b5563;
    line-height: 1.6;
    margin: 10px 0 0 0;
}

/* Projects section */
.projects-section h3 {
    color: #374151;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-title {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-description {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-status {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #1d4ed8;
}

/* Foundation access badge */
.foundation-access {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

/* Additional badge types */
.commerce-access {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: white;
}

.interview-access {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.education-access {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.government-access {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
}

.social-access {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

/* Foundation label styling */
.foundation-label-container {
    background: transparent !important;
    border: none !important;
}

.foundation-label {
    background: #dc2626;
    color: white;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    min-width: 130px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.foundation-label:hover {
    background: #b91c1c;
}

/* Mobile responsive adjustments for foundation content */
@media (max-width: 768px) {
    .foundation-header {
        flex-direction: column;
        text-align: center;
    }
    
    .foundation-logo {
        align-self: center;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 12px 15px;
    }
    
    .faq-answer {
        padding: 0 15px 12px 15px;
    }
}

@media (max-width: 480px) {
    .foundation-content {
        padding: 15px 0;
    }
    
    .foundation-header {
        padding: 20px;
    }
    
    .team-member, .project-item {
        padding: 15px;
    }
}

/* Custom Navigation Panel Styles */
.custom-content {
    padding: 20px 0;
}

/* Story Modes Section Styles */
.story-modes-section {
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    border: 2px solid #e5e7eb;
}

.story-modes-section h4 {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.modes-intro {
    color: #6b7280;
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
    font-size: 1rem;
}

.story-mode-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.story-mode-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.story-mode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.story-mode-card.age-journey {
    background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
    border-color: #a855f7;
}

.story-mode-card.age-journey:hover {
    border-color: #7c3aed;
    box-shadow: 0 12px 35px rgba(168, 85, 247, 0.2);
}

.story-mode-card.efficacy-journey {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #3b82f6;
}

.story-mode-card.efficacy-journey:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.2);
}

.story-mode-card.covid-journey {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #ef4444;
}

.story-mode-card.covid-journey:hover {
    border-color: #dc2626;
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.2);
}

.story-mode-card .mode-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.age-journey .mode-icon {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
}

.efficacy-journey .mode-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.covid-journey .mode-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.story-mode-card h3 {
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-right: 70px;
}

.mode-description {
    margin-bottom: 20px;
}

.mode-description p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
}

.mode-video {
    margin-bottom: 20px;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #9ca3af;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-color: #6b7280;
    color: #374151;
}

.video-placeholder i {
    font-size: 1.5rem;
}

.video-placeholder span {
    font-weight: 600;
    font-size: 0.9rem;
}

.work-in-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    margin-bottom: 20px;
}

.work-in-progress i {
    font-size: 1.2rem;
    animation: rotate 2s linear infinite;
}

.work-in-progress span {
    font-weight: 600;
    font-size: 0.9rem;
}

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

.mode-start-btn {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.age-journey .mode-start-btn {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.efficacy-journey .mode-start-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.covid-journey .mode-start-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.mode-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Manual Exploration Note Section */
.manual-note-section {
    margin-top: 30px;
}

.manual-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    color: #166534;
}

.manual-note i {
    font-size: 1.2rem;
    color: #22c55e;
    margin-top: 2px;
    flex-shrink: 0;
}

.manual-note p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Mobile responsive for story modes */
@media (max-width: 768px) {
    .story-modes-section {
        padding: 20px;
    }
    
    .story-mode-card {
        padding: 20px;
    }
    
    .story-mode-card h3 {
        font-size: 1.2rem;
        padding-right: 60px;
    }
    
    .story-mode-card .mode-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .video-placeholder {
        padding: 15px;
        gap: 8px;
    }
    
    .video-placeholder i {
        font-size: 1.3rem;
    }
    
    .video-placeholder span {
        font-size: 0.85rem;
    }
    
    .work-in-progress {
        padding: 12px;
        gap: 6px;
    }
    
    .mode-start-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .manual-note {
        padding: 15px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .manual-note p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .story-mode-card {
        padding: 15px;
    }
    
    .story-mode-card h3 {
        font-size: 1.1rem;
        padding-right: 55px;
    }
    
    .story-mode-card .mode-icon {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Hover Preview Popup */
.marker-hover-preview {
    position: fixed;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 2px solid #e5e7eb;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.3s ease;
    max-width: 200px;
}

.marker-hover-preview.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.marker-hover-preview .preview-headshot {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
    border: 3px solid #f3f4f6;
}

.marker-hover-preview .preview-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
    text-align: center;
    margin-bottom: 5px;
}

.marker-hover-preview .preview-age {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}


/* 🎥 SHOWCASE VIDEO SECTION (TOP PRIORITY) */
.showcase-video-section {
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.showcase-video-section h3 {
    color: white;
    margin: 0 0 16px 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.showcase-video-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#showcase-video {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 8px;
    background: #000;
}

/* Enhanced profile section styling */
.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.headshot-container {
    flex-shrink: 0;
}

.headshot-image {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-info {
    flex: 1;
}

.resident-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.resident-role {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    margin: 0 0 12px 0;
}

.resident-description {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* 💬 QUOTES SECTION (replacing photos) */
.quotes-section {
    margin-bottom: 24px;
}

.quotes-section h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 16px;
    font-weight: 600;
}

.quotes-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quote-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    border-radius: 12px;
    border-left: 4px solid #6366f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.quote-content {
    flex: 1;
}

.quote-text {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.6;
    margin: 0 0 8px 0;
    font-style: italic;
    font-weight: 500;
}

.quote-theme {
    font-size: 0.85rem;
    color: #6366f1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile responsiveness for hover and headshot elements */
@media (max-width: 768px) {
    .marker-hover-preview {
        max-width: 150px;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .marker-hover-preview .preview-headshot {
        width: 50px;
        height: 50px;
    }
    
    .participant-headshot-overlay {
        width: 60px;
        height: 60px;
        top: 15px;
        left: 60px;
    }
}

@media (max-width: 480px) {
    .marker-hover-preview {
        max-width: 130px;
        padding: 10px;
    }
    
    .marker-hover-preview .preview-headshot {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }
    
    .participant-headshot-overlay {
        width: 50px;
        height: 50px;
        top: 10px;
        left: 50px;
    }
}

/* Guided Journey Panel Styling */
.access-indicator.guided-journey {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.access-indicator.guided-journey .access-level {
    color: white;
    font-weight: 700;
}

/* Custom Navigation Panel Styles */

.custom-header {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.custom-header h3 {
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.custom-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    font-style: italic;
}

/* About Panel Styles */
.custom-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.custom-section h4 {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3f4f6;
}

.custom-section p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Stories Grid Styles */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.story-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.story-access-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.story-access-badge.high {
    background: #22c55e;
}

.story-access-badge.medium {
    background: #fbbf24;
}

.story-access-badge.low {
    background: #ef4444;
}

.story-card h4 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-right: 80px;
}

.story-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
    font-style: italic;
}

.story-resident {
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
}

/* Statistics Overview Styles */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card-large {
    background: #ffffff;
    border: 2px solid;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card-large.high {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.stat-card-large.medium {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.stat-card-large.low {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.stat-card-large .stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-card-large.high .stat-number {
    color: #16a34a;
}

.stat-card-large.medium .stat-number {
    color: #d97706;
}

.stat-card-large.low .stat-number {
    color: #dc2626;
}

.stat-card-large .stat-label {
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.stat-card-large .stat-percentage {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Legend Styles */
.legend-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.legend-item:hover {
    background: #f9fafb;
}

.legend-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
}

.legend-text h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.legend-text p {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Mobile responsive for custom panels */
@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card-large .stat-number {
        font-size: 2.5rem;
    }
    
    .legend-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .legend-icon {
        margin-bottom: 5px;
    }
    
    .close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .custom-content {
        padding: 15px 0;
    }
    
    .custom-header, .custom-section, .story-card {
        padding: 15px;
    }
    
    .story-card h4 {
        padding-right: 70px;
        font-size: 1rem;
    }
    
    .stat-card-large {
        padding: 20px;
    }
    
    .close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}


/* ==========================================
   AUTO-PROGRESSION PANEL STYLES
   ========================================== */

.auto-progression-panel {
    position: fixed;
    top: 70px;
    left: 20px;
    width: 380px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid #7c3aed;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
    z-index: 1500;
    backdrop-filter: blur(15px);
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.progression-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #475569;
}

.current-story-info {
    flex: 1;
}

.story-counter {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-story-info h3 {
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 700;
    margin: 5px 0;
}

.current-story-info p {
    color: #a855f7;
    font-size: 13px;
    font-weight: 500;
}

.progression-timer {
    margin-left: 20px;
}

.timer-circle {
    width: 50px;
    height: 50px;
    border: 3px solid #7c3aed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #312e81 0%, #5b21b6 100%);
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.timer-circle span {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 16px;
}

.progression-controls {
    display: flex;
    gap: 8px;
    padding: 15px 20px;
    border-bottom: 1px solid #475569;
}

.progression-btn {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #64748b;
    border-radius: 8px;
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.progression-btn:hover {
    background: linear-gradient(135deg, #64748b 0%, #78716c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.progression-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.progression-btn.primary {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-color: #8b5cf6;
}

.progression-btn.primary:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
}

.progression-btn.secondary {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border-color: #f87171;
}

.progression-btn.secondary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
}

.progression-btn.paused {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-color: #34d399;
}

.progression-progress {
    padding: 15px 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #475569;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Mobile responsiveness for auto-progression panel */
@media (max-width: 768px) {
    .auto-progression-panel {
        left: 10px;
        right: 10px;
        width: auto;
        max-width: calc(100vw - 20px);
    }
    
    .progression-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .progression-timer {
        margin-left: 0;
    }
    
    .progression-controls {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .progression-btn {
        font-size: 11px;
        padding: 8px 10px;
    }
}

/* ==========================================
   THEMATIC BRIDGE OVERLAY STYLES
   ========================================== */

.bridge-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.bridge-container {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid #7c3aed;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
    animation: bridgeSlideIn 0.8s ease-out;
}

@keyframes bridgeSlideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.bridge-content {
    color: #e2e8f0;
}

.bridge-icon {
    margin-bottom: 20px;
}

.bridge-icon i {
    font-size: 48px;
    color: #a855f7;
    animation: bridgePulse 2s infinite;
}

@keyframes bridgePulse {
    0%, 100% { 
        transform: scale(1);
        color: #a855f7;
    }
    50% { 
        transform: scale(1.1);
        color: #c084fc;
    }
}

.bridge-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bridge-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #cbd5e1;
}

.bridge-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.bridge-progress-bar {
    flex: 1;
    height: 6px;
    background: #475569;
    border-radius: 3px;
    overflow: hidden;
    max-width: 300px;
}

.bridge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    border-radius: 3px;
    transition: width 0.1s linear;
    position: relative;
}

.bridge-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: bridgeShimmer 1.5s infinite;
}

@keyframes bridgeShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bridge-progress span {
    font-size: 18px;
    font-weight: 700;
    color: #a855f7;
    min-width: 40px;
}

/* Mobile responsiveness for bridge overlay */
@media (max-width: 768px) {
    .bridge-container {
        padding: 30px 20px;
        margin: 15px;
    }
    
    .bridge-content h3 {
        font-size: 24px;
    }
    
    .bridge-content p {
        font-size: 16px;
    }
    
    .bridge-icon i {
        font-size: 40px;
    }
}

/* ==========================================
   ACTIVE MARKER HIGHLIGHTING SYSTEM
   ========================================== */

/* Active marker glow effect */
.marker-active {
    animation: markerGlow 2s infinite !important;
    z-index: 1000 !important;
    filter: drop-shadow(0 0 20px #7c3aed) !important;
}

@keyframes markerGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px #7c3aed) brightness(1);
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 30px #a855f7) brightness(1.3);
    }
}

/* Active house marker specific styling */
.leaflet-marker-icon.marker-active {
    animation: houseGlow 2s infinite !important;
}

@keyframes houseGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px #7c3aed) drop-shadow(0 0 25px rgba(124, 58, 237, 0.5));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 30px #a855f7) drop-shadow(0 0 40px rgba(168, 85, 247, 0.8));
    }
}

/* Active khajaghar marker styling */
.khajaghar-marker.marker-active .marker-content {
    animation: khajagharPulse 2s infinite !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    border: 3px solid #c084fc !important;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.6), 0 0 40px rgba(168, 85, 247, 0.4) !important;
}

@keyframes khajagharPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.6), 0 0 40px rgba(168, 85, 247, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.8), 0 0 50px rgba(168, 85, 247, 0.6);
    }
}

/* Active school marker styling */
.school-marker.marker-active .school-icon {
    animation: schoolGlow 2s infinite !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    border: 3px solid #c084fc !important;
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.7) !important;
}

@keyframes schoolGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 35px rgba(168, 85, 247, 0.8);
    }
}

/* Active street interview marker styling */
.street-interview-marker.marker-active .marker-content {
    animation: interviewHighlight 2s infinite !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    border: 3px solid #c084fc !important;
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.7) !important;
}

@keyframes interviewHighlight {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
    }
    25% {
        transform: scale(1.05) rotate(2deg);
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.8);
    }
    75% {
        transform: scale(1.05) rotate(-2deg);
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
    }
}

/* Active area circle emphasis */
.area-circle-active {
    animation: areaGlow 3s infinite !important;
}

@keyframes areaGlow {
    0%, 100% {
        stroke-width: 3;
        stroke-opacity: 0.8;
        fill-opacity: 0.2;
    }
    50% {
        stroke-width: 5;
        stroke-opacity: 1;
        fill-opacity: 0.3;
    }
}

/* Dim non-active markers during guided mode */
.guided-mode-active .leaflet-marker-icon:not(.marker-active),
.guided-mode-active .marker-content:not(.marker-active) {
    opacity: 0.4 !important;
    filter: grayscale(0.5) !important;
    transition: all 0.3s ease !important;
}

/* Restore markers when not in guided mode */
.leaflet-marker-icon,
.marker-content {
    transition: all 0.3s ease;
}

/* Story Mode Character Boxes */
.character-boxes-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-right: 3px solid #3b82f6;
    z-index: 1500;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.character-boxes-overlay.visible {
    transform: translateX(0);
}

.character-boxes-container {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.character-boxes-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.character-boxes-header h3 {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.character-boxes-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.character-boxes-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.character-box {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-box.locked {
    opacity: 0.6;
    background: #f1f5f9;
}

.character-box.unlocked {
    opacity: 1;
    cursor: pointer;
    border: 2px solid #3b82f6;
}

.character-box.unlocked:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.character-box.viewing {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.character-box.completed {
    border: 2px solid #059669;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.character-photo {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e2e8f0;
}

.character-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.character-box.unlocked .lock-overlay,
.character-box.viewing .lock-overlay,
.character-box.completed .lock-overlay {
    opacity: 0;
    pointer-events: none;
}

.character-info {
    text-align: center;
}

.character-info h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.character-info p {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.character-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-text {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

.locked .status-text {
    background: #f1f5f9;
    color: #64748b;
}

.unlocked .status-text {
    background: #dbeafe;
    color: #3b82f6;
}

.viewing .status-text {
    background: #d1fae5;
    color: #059669;
}

.completed .status-text {
    background: #a7f3d0;
    color: #047857;
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #059669;
    font-weight: 600;
}

.story-progress {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.exit-story-btn {
    margin-top: auto;
    padding: 12px 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.exit-story-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Area Hint Overlay */
.area-hint-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hint-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hint-content {
    text-align: center;
}

.hint-content h3 {
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hint-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hint-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hint-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Story Completion Overlay */
.completion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completion-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.completion-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 20px;
}

.completion-content h3 {
    color: #1e293b;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.completion-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.completion-summary {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.summary-item .age {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3b82f6;
}

.summary-item .name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.summary-item .approach {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    max-width: 80px;
}

.completion-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.completion-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Map adjustments when story mode is active */
.map-with-story-mode {
    margin-left: 350px !important;
    width: calc(100% - 350px) !important;
}

/* When both story mode and sidepanel are active */
.map-with-story-mode.map-with-panel {
    width: calc(100% - 700px) !important;
    margin-left: 350px !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .character-boxes-overlay {
        width: 100%;
        left: 0;
    }
    
    .map-with-story-mode {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .map-with-story-mode.map-with-panel {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .completion-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .summary-item .approach {
        max-width: none;
    }
}