
:root {
    --brand-accent: #FF6900;
    --brand-accent-rgb: 255, 105, 0;
    --brand-accent-dark: #CC5400;
    --brand-accent-dark-rgb: 204, 84, 0;
    --topbar-height: 64px;
}

body{
    margin:0; 
    padding:0;
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.30) 100%), url('../images/darkslatebackground.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0E1117;
    background-attachment: fixed;
}

main.innerpage-main {
    min-height: calc(100vh - 116px);
    padding-bottom: 80px;
}

#map, #mapsPageMap {
    height: 100%;
    touch-action: pan-y;
}

.custom-audio-pause-icon {
    display: none;
}

.testimonies-pager span,
.victims-pager span,
.explore-pager span {
    cursor: pointer;
}

.testimonies-pager span.pager-disabled,
.victims-pager span.pager-disabled,
.explore-pager span.pager-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/*
========================================
STYLE.CSS — Shilaalekh Project
========================================
SECTIONS:
  Lines   1-  31 : Index
  Lines  33-  50 : Base / Body
  Lines  51-  58 : Main Banner
  Lines  59- 157 : Navbar
  Lines 159- 176 : Footer
  Lines 178- 232 : Owl Carousel / Bangle
  Lines 234- 281 : Explore Section
  Lines 283- 360 : Maps / Leaflet
  Lines 362- 416 : Language Switcher
  Lines 417- 446 : Banner Content
  Lines 447- 491 : Search Bar
  Lines 493- 542 : Card Block
  Lines 544- 666 : Audio Button
  Lines 668- 696 : Landing Cover / Ambient
  Lines 697- 723 : Skip Cover Button
  Lines 724- 728 : No-scroll
  Lines 729- 793 : Homepage Polish
  Lines 794- 809 : Below-the-fold Cards
  Lines 810-1087: Mobile Responsive
  Lines 1088-1306: Timeline Page
  Lines 1307-1499: Maps Page
  Lines 1500-1655: Project Page
  Lines 1656-1827: About Page
  Lines 1828-2172: Contact Page
========================================
*/



/* ===== NAVBAR BASE (desktop + mobile shared) ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1060;
    background: #11131A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 64px;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

@media (min-width: 769px) {
    .topbar-inner {
        display: grid;
        grid-template-columns: 160px 1fr auto;
    }
    .nav-logo-link {
        transform: translateX(-60px) !important;
    }
    ul.nav {
        justify-content: flex-start;
    }
    #mainNav {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        margin-left: -30px;
    }
}

.topbar.is-scrolled {
    background: rgba(14, 17, 23, 0.95);
    border-bottom-color: rgba(var(--brand-accent-dark-rgb), 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
ul.nav {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    flex: 1;
    flex-wrap: nowrap;
}

ul.nav li.nav-item {
    margin: 0;
    padding: 0;
}
ul.nav li.nav-item a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 0 0.6rem;
    margin: 0 0.15rem;
    height: 36px;
    line-height: 36px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    background: transparent;
    border-radius: 0;
    display: inline-block;
    position: relative;
    transition: color 0.2s ease;
}
ul.nav li.nav-item a::after {
    content: "";
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.4rem;
    height: 2px;
    border-radius: 1px;
    background: var(--brand-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-logo-link {
    position: relative;
    display: flex !important;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
    background: transparent !important;
    min-width: 0;
    overflow: hidden;
}
.nav-logo-link::after {
    display: none !important;
}
.nav-logo-img {
    height: auto;
    max-height: 86px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
ul.nav li.nav-item a:hover {
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
}
ul.nav li.nav-item a.active {
    color: #fff;
}
ul.nav li.nav-item a.active::after {
    transform: scaleX(1);
}
ul.nav li.nav-item a.nav-logo-link:hover,
ul.nav li.nav-item a.nav-logo-link.active {
    background: transparent !important;
}

/* Language switcher pill */
ul.nav-end.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 62.438em;
    padding: 0.2em;
    margin: 0;
    flex-shrink: 0;
}
.lang-thumb {
    position: absolute;
    top: 0.2em;
    left: 0.2em;
    width: calc(50% - 0.2em);
    height: calc(100% - 0.4em);
    background: linear-gradient(135deg, var(--brand-accent-dark), var(--brand-accent));
    border-radius: 62.438em;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: 0 2px 8px rgba(var(--brand-accent-dark-rgb), 0.25);
}
ul.nav-end.lang-switcher.lang-ne .lang-thumb {
    transform: translateX(100%);
}
.lang-option {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: 0 0.9em;
    height: 1.65em;
    line-height: 1.65em;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: block;
    transition: color 0.2s ease;
}
.lang-option.active {
    color: #fff;
}

/* Hamburger — hidden on desktop by default */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 1.75em;
    height: 1.75em;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.navbar-toggle:focus { outline: none; }
.navbar-toggle:focus-visible {
    outline: 2px solid rgba(255,255,255,0.35);
    outline-offset: 3px;
    border-radius: 0.25em;
}
.navbar-toggle span {
    display: block;
    width: 1.25em;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.navbar-toggle span + span { margin-top: 0.312em; }
.navbar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ==========================================
   MAIN BANNER
   ========================================== */


/* ==========================================
    FOOTER
    ========================================== */

.footer-card {
    background: #11131A;
    color: white;
    padding: 0.6em 0 0.75em 0;
    margin-top: 2em;
}

.footer-top-row {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    margin-bottom: 1em;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-left: 0;
    margin-left: -30px;
}

.footer-logo-img {
    height: 3.4em;
    width: auto;
}

.footer-tagline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
}

.footer-tagline {
    font-style: italic;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-family: "Playfair Display", "Yatra One", serif;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.footer-social-link svg {
    width: 12px;
    height: 12px;
}

.footer-social-link:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent) !important;
    background-color: rgba(var(--brand-accent-rgb), 0.08);
}

.footer-inline-links {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    font-variant: small-caps;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    font-size: 0.9em;
    margin-left: auto;
}

.footer-inline-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-inline-links a:hover {
    color: var(--brand-accent);
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0.75em 0 0.75em 0;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75em;
}

.footer-copyright {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.65);
}

.footer-dot {
    margin: 0 0.5em;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .footer-card {
        padding: 0.6em 0.75em;
        margin-top: 1.5em;
    }

    .footer-top-row {
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
        text-align: center;
    }

    .footer-brand-col {
        align-items: center;
    }

    .footer-logo-img {
        transform: translateX(0);
        height: 2.4em;
    }

    .footer-tagline-row {
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
        text-align: center;
    }

    .footer-inline-links {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.85em;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5em;
    }
}

/* ==========================================
   OWL CAROUSEL / BANGLE
   ========================================== */

.owl-carousel{
    margin-top:1.25em;
    margin-bottom:0.625em;
}
.owl-carousel .owl-stage-outer {
    padding-top: 3em;
    padding-bottom: 3em;
    margin-top: -1.5em;
    margin-bottom: -1.5em;
    overflow: visible;
}
.bangle-ring{
    box-sizing: border-box;
    width: 15.625em;
    height: 15.625em;
    margin: 0.625em;
    border-radius: 50%;
    position: relative;
    border-width: 9px;
    border-style: solid;
    border-color: rgba(180, 60, 60, 0.85);
    border-right-color: var(--brand-accent);
    border-bottom-color: var(--brand-accent);
    transition: transform 0.7s ease, border-color 0.4s ease;
    transform: translateZ(0);
}
.bangle-photo{
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    transition: transform 0.7s ease;
}
.bangle-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}
.bangle-item:hover .bangle-ring{
    transform: rotate(180deg);
}
.bangle-item:hover .bangle-photo{
    transform: translate(-50%, -50%) rotate(-180deg);
}
.bangle-item:hover .bangle-photo img{
    filter: grayscale(0%);
}
.bangle-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    position: relative;
}
.bangle-item .name {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 1.5em;
    left: 50%;
    transform: translateX(-50%) rotate(-15deg);
    background: white;
    color: #080808;
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: "Just Me Again Down Here", "Yatra One", cursive;
    white-space: nowrap;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: opacity 0.3s ease;
}
.bangle-item:hover .name {
    visibility: visible;
    opacity: 1;
}
.theme-dark .bangle-item .name {
    color: #080808;
    background: white;
    padding: 10px 15px;
    position: absolute;
    left: 50%;
    bottom: auto;
    top: 220px;
    transform: translateX(-50%);
    border-radius: 30px;
    visibility: visible;
    opacity: 1;
}

/* ==========================================
   EXPLORE SECTION
   ========================================== */

.exploresection{
/*background-color: #f8f9fa;*/
    padding: 0.625em 0 1.875em 0;
    border-radius: 0.625em;
    margin-top: 0em;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.exploresection::before,
.exploresection::after {
    content: "";
    flex: 1;
    border-top: 2px dashed rgba(255, 255, 255, 0.45);
    margin: 0;
    transform: translateY(1px);
}
.exploresection h2{
    font-size: 2.5em;
    margin-bottom: 1.25em;
    color: #333;
}
.exploresection .section-title {
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    font-weight: 400;
}
.exploresection p{
    font-size: 1.2em;
    margin-bottom: 1.875em;
    color: #666;
}

.explore-intro p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.7;
}
.explorebtn{
    padding: 0.75em 1.875em;
    font-size: 1.2em;
    border-radius: 2.188em;
    text-decoration: none;
    transition: background 0.3s ease-in-out, transform 0.2s ease, box-shadow 0.2s ease;
}
.explorebtn,
.explorebtn:focus,
.explorebtn:active,
.explorebtn:hover {
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
    color: #fff;
    border: none;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(var(--brand-accent-rgb), 0.35);
}
.explorebtn:hover {
    background: linear-gradient(135deg, var(--brand-accent-dark) 0%, var(--brand-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(var(--brand-accent-rgb), 0.45);
}
.explorebtn:focus-visible {
    outline: 2px solid rgba(var(--brand-accent-rgb), 0.6);
    outline-offset: 3px;
}

/* ==========================================
   MAPS / LEAFLET
   ========================================== */

.mapssection{
    width:100%; height:34.375em; background:#f5f5f5; margin-top:2.5em; margin-bottom:1.875em;
    overflow: hidden;
}

.leaflet-container {
    background: #f5f5f5 !important;
}

.theme-dark .mapssection {
    background-color: #1A1D24;
}

.theme-dark #map {
    background-color: #1A1D24 !important;
}

.theme-dark .leaflet-container {
    background: #1A1D24 !important;
}

.theme-dark .leaflet-tile {
    filter: grayscale(100%) brightness(0.7) contrast(1.1);
}

.theme-dark .leaflet-control-zoom {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.625em;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.theme-dark .leaflet-control-zoom a {
    background: rgba(30, 34, 43, 0.92);
    color: #E2E8F0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 2.125em;
    height: 2.125em;
    line-height: 2.125em;
    font-size: 1.125em;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.theme-dark .leaflet-control-zoom a:hover {
    background: rgba(var(--brand-accent-rgb), 0.35);
    color: #FFFFFF;
}

.theme-dark .leaflet-control-zoom a:last-child {
    border-bottom: none;
}

.theme-dark .leaflet-control-attribution {
    background: rgba(15, 19, 24, 0.7);
    color: rgba(226, 232, 240, 0.45);
    font-size: 0.625em;
    padding: 0.188em 0.5em;
    border-radius: 0.375em 0 0 0;
    backdrop-filter: blur(4px);
}

.theme-dark .leaflet-control-attribution a {
    color: rgba(226, 232, 240, 0.55);
}

.theme-dark .leaflet-interactive {
    stroke: rgba(255, 255, 255, 0.2);
}
/* ==========================================
   BANNER CONTENT
   ========================================== */

.bannercontent{
    padding-top:4em;
    padding-bottom:4em;
    background:url('../images/shilaalekh-banner-bg.jpg') no-repeat top center/cover;
    position:relative;
    z-index:20;
}
.banneroverlaybg{
    position:absolute;
    top:0; left:0;
    width:100%; height:100%;
    background-color:rgba(255, 255, 255, 0.6);
    background:url('../images/abstract-painting.jpg') no-repeat 0 -80px/cover;
    z-index:10;
    opacity:0.1;
}
.bannercontent h1{
    font-size:3em;
    margin-bottom:0.875em;
    color:#cbd5e1;
}
.mainbanner .bannercontent h1{
    font-family: "Yatra One", serif;
}
.bannercontent p{
    font-size:1.3em;
    margin-bottom:1.5em;
    color:#cbd5e1;
}
/* ==========================================
   SEARCH BAR
   ========================================== */

.searchbar{
    width:24em;
    padding:0.625em 1em 0.625em 3.2em;
    border-radius:1.875em 0 0 1.875em;
    border:1px solid #d0d0d0;
    font-size:1.1em;
    margin-right:0;
    display:inline-block;
    vertical-align: middle;
    background: url('../images/search-icon-gray.png') no-repeat 12px center/34px 34px #fff;
    outline-style:solid;
    outline-width:0.01px;
    height:2.875em;
    line-height: 46px;
    backdrop-filter: blur(10px);
}
input.searchbar:focus{
    outline-style:solid;
    outline-width:1px;
    outline-color: #cbd5e1;
}
.searchbtn{
    padding: 0 1.562em;
    font-size: 1.1em;
    border-radius: 0 1.875em 1.875em 0;
    margin-left:0em;
    display:inline-block;
    vertical-align: middle;
    height:2.875em;
    line-height: 46px;
    outline-style:solid;
    outline-width:0.01px;
}
.searchbtn,
.searchbtn:focus,
.searchbtn:active,
.searchbtn:hover {
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
    color: #fff;
    border: none;
}
.searchbtn:hover {
    background: linear-gradient(135deg, var(--brand-accent-dark) 0%, var(--brand-accent) 100%);
    transition: ease-in-out 0.3s;
}

.searchbar-group {
    align-items: stretch;
}
.cardblock{
    background-color: #f5f5f5;
    border-radius: 0.625em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1.25em;
    margin-bottom: 1.875em;
}
.cardblock h3{
    font-size: 1.2em;
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    font-weight: 400;
    margin-bottom: 0.938em;
    padding-left: 0.625em;
    padding-top:0.625em;
    color: #333;
}
.cardblock p {
    color: #cbd5e1;
}



#bg-audio {
  display: none;
}

/* Floating control button style */
.audio-btn {
  position: fixed;
  bottom: 2.5em;
  right: -1.25em;
  z-index: 1000;
  padding: 0.625em 1.875em 0.625em 0.938em;
  background-color: #222222;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 1.25em;
  cursor: pointer;
  font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
  font-size: 0.875em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}

.audio-btn:hover {
  background-color: #444444;
}

/* ==========================================
   LANDING COVER / AMBIENT
   ========================================== */

/* Full-screen cover: GSAP venetian-blind reveal over a background portrait */
#ambient-landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s ease-in-out;
}

.cover-svg-wrap {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
}
.cover-svg-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}
.cover-caption {
    position: absolute;
    right: 6%;
    top: 48%;
    transform: translateY(-50%);
    width: 38%;
    text-align: center;
    z-index: 20;
}

#slideText{
    font-family: "Yatra One", serif;
    font-size:2.8rem;
    color:#fff;
    margin: 0.05em 0 0.5625em;
    position:relative;
    left:-62.5em;
    opacity:0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
    line-height: 1.15;
    letter-spacing: -0.3px;
}

.show{
    left:0 !important;
    opacity:1 !important;
    transition:ease-in-out 10s;
}


#slideLogo {
    position: relative;
    top: -62.5em;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.18);
    padding: 1.5em 2.25em 0.75em 2.25em;
    border-radius: 1.5em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cover-icon {
    width: 5.625em;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

.cover-wordmark-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875em;
    margin-top: 0.625em;
}

.cover-wordmark {
    height: 10rem;
    width: auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}

.wordmark-divider {
    width: 1px;
    height: 1.75em;
    background: rgba(255, 255, 255, 0.55);
}

.showImg{
    top:0 !important;
    opacity:1 !important;
    transition:ease-in-out 5s;
}

.cover-intro {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.7;
    margin: 0 auto 2.25em;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    text-shadow: 0 1px 8px rgba(0,0,0,0.45);
    max-width: 32.5em;
}

.cover-intro.show {
    opacity: 1;
}

/* ==========================================
   SKIP COVER BUTTON
   ========================================== */

.btn-skip-cover {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #FFFFFF;
    padding: 0.75em 1.875em;
    border-radius: 2.5em;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 2s ease-in-out, background 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    backdrop-filter: blur(4px);
}

.btn-skip-cover.show {
    opacity: 1;
}

.btn-skip-cover:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #111316;
    transform: translateY(-1px);
}

/* Locks the scrollbar completely so homepage doesn't move */
/* ==========================================
   NO-SCROLL
   ========================================== */

.no-scroll {
    overflow: hidden !important;
    height: 100% !important;
}

/* ==========================================
   HOMEPAGE POLISH
   ========================================== */

/* Banner */
.bannercontent { overflow: hidden; }

.banner-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 0.875em;
}

/* Section titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    color: #cbd5e1;
    margin: 2.25em 0 1.375em 0;
    text-align: left;
    position: relative;
    padding-bottom: 0.875em;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 4em;
    height: 0.188em;
    border-radius: 0.188em;
    background: linear-gradient(90deg, var(--brand-accent), #cbd5e1);
}

/* Bangle rings — cleaner, softer */
.bangle-ring {
    box-shadow: 0 10px 26px rgba(16, 34, 77, 0.12);
}

.bangle-ring:hover {
    box-shadow: 0 16px 36px rgba(16, 34, 77, 0.18);
}

.bangle-item .bangle-ring.colorred:hover ~ .name { color: var(--brand-accent); }
.bangle-item .bangle-ring.coloryellow:hover ~ .name { color: var(--brand-accent); }
.bangle-item .bangle-ring.colorgreen:hover ~ .name { color: var(--brand-accent); }
.bangle-item .bangle-ring.colorblue:hover ~ .name { color: var(--brand-accent); }
.bangle-item .bangle-ring.colorpurple:hover ~ .name { color: var(--brand-accent); }

/* Explore button */
.explorebtn {
    box-shadow: 0 12px 30px rgba(var(--brand-accent-rgb), 0.30);
}

.explorebtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(var(--brand-accent-rgb), 0.40);
}

/* ==========================================
   BELOW-THE-FOLD CARDS
   ========================================== */

/* Below-the-fold cards */
.cardblock {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 1em;
    box-shadow: 0 8px 24px rgba(16, 34, 77, 0.06);
    padding: 1.625em;
}

.cardblock h3 {
    font-size: 1.35rem;
    font-weight: 400;
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    color: #cbd5e1;
    margin: 0 0 1em;
    padding: 0 0 0.875em;
    border-bottom: 1px solid #EEF2F6;
}


/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }



    /* Banner mobile polish */
    .bannercontent {
        padding-top: 2em;
        padding-bottom: 1.5em;
    }

    .bannercontent h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .bannercontent p {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .searchbar-group {
        display: flex;
        align-items: stretch;
        width: calc(100% - 32px);
        margin: 0 auto;
    }

    .searchbar {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        min-width: 0;
        border-radius: 30px 0 0 30px;
        margin-right: 0;
        padding: 0 14px 0 44px;
        font-size: 0.8rem;
        height: 44px;
        line-height: 44px;
        box-sizing: border-box;
        background: url('../images/search-icon-gray.png') no-repeat 14px center/16px 16px #fff;
    }

    .searchbar::placeholder {
        font-size: 0.75rem;
    overflow: visible;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .searchbtn {
        flex: 0 0 auto;
        width: auto;
        border-radius: 0 30px 30px 0;
        margin-top: 0;
        margin-left: 0;
        padding: 0 24px;
        height: 44px;
        line-height: 44px;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: visible;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 1.3rem;
        margin: 24px 0 16px 0;
        padding-bottom: 10px;
    }

    .section-title::after {
        width: 40px;
        height: 2px;
    }

    /* Homepage map + below-the-fold cards mobile */
    .mapssection {
        height: 320px;
        margin-top: 24px;
        margin-bottom: 20px;
        overflow: hidden;
    }

    /* Landing cover mobile */
    #ambient-landing {
        flex-direction: column;
        overflow-y: auto;
    }

    .cover-svg-wrap {
        position: relative;
        width: 100%;
        height: 50vh;
    }

    .cover-svg-wrap svg {
        height: 100%;
    }

    .cover-caption {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        padding: 2em 1em;
    }

    .cover-wordmark {
        height: 6rem;
    }

    .cover-icon {
        width: 3.5em;
    }

    #slideText {
        left: -100vw;
    }

    #slideLogo {
        top: -100vh;
    }

    .btn-skip-cover {
        padding: 0.75em 1.5em;
        font-size: 0.9rem;
    }
}

    #map, #mapsPageMap {
        height: 100% !important;
    }

    .cardblock {
        padding: 16px;
        margin-bottom: 16px;
    }

    .cardblock h3 {
        font-size: 1.1rem;
        font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
        font-weight: 400;
        margin-bottom: 10px;
        padding-top: 0;
        padding-left: 0;
    }

    .exploresection {
        padding-top: 24px;
        text-align: center;
    }

    .exploresection .explorebtn {
        display: inline-block;
        width: auto;
        max-width: calc(100% - 2em);
        margin-left: auto;
        margin-right: auto;
        padding: 0.75em 2em;
        font-size: 1rem;
        border-radius: 30px;
        text-align: center;
        box-shadow: 0 6px 20px rgba(16, 34, 77, 0.35);
    }

    /* Footer: compact mobile layout */



/* ==========================================
   Timeline Page Styles - Dark Premium Theme
   ========================================== */

.timeline-container {
    padding: 2.5em 0 5em 0;
    color: #e2e8f0;
}

.timeline-content-box {
    background-color: #0f1117;
    border-radius: 1.25em;
    padding: 1.25em 1.25em 2em 1.25em;
}

.timeline-header {
    margin-bottom: 2.25em;
}

.timeline-header h3 {
    font-family: "Yatra One", serif;
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 0.5em;
    letter-spacing: -0.01em;
}

.timeline-header p {
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    font-size: 1.2em;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Era Tabs Navigation */
.era-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    margin-bottom: 3.125em;
}

@media (max-width: 768px) {
    .era-tabs {
        grid-template-columns: 1fr;
        margin-bottom: 24px;
    }

    .timeline-track-wrapper {
        padding: 8px 0;
        margin-bottom: 24px;
    }

    .timeline-line {
        top: 0;
        bottom: 0;
        left: 9px;
        right: auto;
        width: 2px;
        height: auto;
        transform: none;
    }

    .timeline-events {
        flex-direction: column;
        gap: 32px;
    }

    .event-node {
        flex-direction: row;
        align-items: flex-start;
        flex: none;
        width: 100%;
        gap: 16px;
    }

    .node-dot {
        order: 1;
        flex-shrink: 0;
        margin-top: 3px;
    }

    .node-card {
        order: 2;
        position: static;
        width: 100%;
        max-width: none;
    }

    .event-node.top .node-card,
    .event-node.bottom .node-card {
        position: static;
        top: auto;
        bottom: auto;
    }

    .timeline-container {
        padding-bottom: 40px;
    }

    .timeline-content-box {
        padding: 1.5em 1em 2em 1em;
    }
}

.era-tab {
    background: rgba(22, 24, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75em;
    padding: 1.125em 1.5em;
    display: flex;
    align-items: center;
    gap: 0.75em;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(12px);
}

.era-tab-icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    color: inherit;
}

.era-tab.active .era-tab-icon {
    color: var(--brand-accent);
}

.era-tab:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.era-tab.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.04);
}

/* Horizontal Chronological Timeline Track */
.timeline-track-wrapper {
    position: relative;
    padding: 6.25em 0;
    margin-bottom: 3.75em;
}

.timeline-track-wrapper.is-empty {
    padding: 2em 0;
}

/* Horizontal Line running through the center */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-events {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.event-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Dot on the Line */
.node-dot {
    width: 0.875em;
    height: 0.875em;
    border-radius: 50%;
    background: #64748b;
    border: 3px solid #0f1117;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-node:hover .node-dot {
    background: var(--brand-accent);
    box-shadow: 0 0 12px var(--brand-accent);
    transform: scale(1.25);
}

/* Alternating Event Cards (Top & Bottom) */
.node-card {
    position: absolute;
    width: 12.5em;
    background: rgba(22, 24, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.625em;
    padding: 0.875em 1em;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
}

/* Cards above the line */
.event-node.top .node-card {
    bottom: 1.875em;
}

/* Cards below the line */
.event-node.bottom .node-card {
    top: 1.875em;
}

.event-node:hover .node-card {
    border-color: rgba(var(--brand-accent-dark-rgb), 0.4);
    transform: translateY(-2px);
}

.node-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25em;
}

.node-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.3;
}

/* Bottom Row: Testimonies Anchored to Date */
.anchored-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2em;
}

.anchored-title {
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    font-size: 1em;
    color: #ffffff;
    margin-bottom: 1.25em;
}

.avatar-row {
    display: flex;
    gap: 1.25em;
    overflow-x: auto;
    padding: 0.75em 0;
}

.avatar-item {
    width: 4em;
    height: 4em;
    border-radius: 50%;
    background: rgba(22, 24, 30, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-item svg {
    width: 1.75em;
    height: 1.75em;
    color: #94A3B8;
    transition: color 0.3s ease;
}

.avatar-item:hover {
    border-color: var(--brand-accent);
    box-shadow: 0 0 15px rgba(var(--brand-accent-rgb), 0.3);
}

.avatar-item:hover svg {
    color: #f1f5f9;
}

/* Timeline Track - Mobile: vertical stacked layout instead of
   alternating absolute-positioned cards (avoids the big reserved
   top/bottom gaps the horizontal layout needs on wide screens) */
   
@media (max-width: 768px) {
    .timeline-track-wrapper {
        padding: 20px 0 20px 20px;
    }

    .timeline-line {
        top: 0;
        bottom: 0;
        left: 6px;
        right: auto;
        width: 2px;
        height: auto;
        transform: none;
    }

    .timeline-events {
        flex-direction: column;
        gap: 28px;
    }

    .event-node,
    .event-node.top,
    .event-node.bottom {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .event-node.top .node-dot {
        order: -1;
    }

    .node-dot {
        margin-top: 4px;
        flex-shrink: 0;
    }

    .event-node.top .node-card,
    .event-node.bottom .node-card {
        position: static;
        width: auto;
        flex: 1;
    }
}


/* ==========================================
   Maps Page Styles - Dark Premium Theme
   ========================================== */

.maps-container {
    padding: 2.5em 0 5em 0;
    color: #e2e8f0;
}

.maps-header {
    margin-bottom: 1em;
    position: relative;
    padding-bottom: 0.875em;
}

.maps-header h3 {
    font-family: "Yatra One", serif;
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 0.5em;
}

.maps-header p {
    font-size: 1.2em;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Grid Layout for Map Cards */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25em;
    margin-bottom: 1.5em;
}

@media (max-width: 640px) {
    .maps-grid {
        grid-template-columns: 1fr;
    }

    .map-card {
        padding: 16px;
    }

    .map-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .map-title {
        font-size: 0.95em;
        flex-wrap: wrap;
        gap: 6px;
    }

    .map-badge {
        align-self: flex-start;
    }

    .map-wrapper {
        height: 220px;
    }

    .map-svg-preview {
        width: 95%;
    }
}

/* Map Card Design */
.map-card {
    background: rgba(22, 24, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.875em;
    padding: 1.5em;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.map-card:hover {
    border-color: rgba(var(--brand-accent-rgb), 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 18px rgba(var(--brand-accent-rgb), 0.12);
}

.map-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875em;
}

.map-title {
    font-size: 1.05em;
    font-weight: 400;
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.625em;
}

.map-badge {
    font-size: 0.7em;
    padding: 0.25em 0.625em;
    border-radius: 0.75em;
    background: rgba(var(--brand-accent-rgb), 0.12);
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(var(--brand-accent-rgb), 0.25);
}

/* Leaflet/Map Embed Placeholder Container */
.map-wrapper {
    width: 100%;
    height: 20em;
    background: #0f1117;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.625em;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Example SVG Map Styling inside wrapper */
.map-svg-preview {
    width: 85%;
    height: auto;
    opacity: 0.75;
}

/* Filters Section Container */
.filter-card {
    background: rgba(22, 24, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1em;
    padding: 1.5em;
    backdrop-filter: blur(12px);
}

.filter-title {
    font-size: 0.95em;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 1em;
}

.filter-title span {
    color: #64748b;
    font-size: 0.85em;
    font-weight: 400;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
}

/* Filter Pill Buttons */
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.625em;
    padding: 0.625em 1.125em;
    border-radius: 1.875em;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 1em;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.filter-pill.active {
    background: rgba(var(--brand-accent-rgb), 0.2);
    border-color: rgba(var(--brand-accent-rgb), 0.6);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(var(--brand-accent-rgb), 0.25);
}

.filter-dot {
    width: 0.625em;
    height: 0.625em;
    border-radius: 50%;
    background: #64748b;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.filter-pill.active .filter-dot {
    background: var(--brand-accent);
    box-shadow: 0 0 8px rgba(var(--brand-accent-rgb), 0.6);
}


/* ==========================================
   Project Page Styles - Dark Premium Theme
   ========================================== */

.project-container {
    padding: 2em 0 4em 0;
    color: #e2e8f0;
}

.project-header {
    margin-bottom: 1em;
    position: relative;
    padding-bottom: 0.875em;
}

.project-header h3 {
    font-family: "Yatra One", serif;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 0.7em;
}

.project-header p {
    font-size: 1.2em;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Grid Layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25em;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
    }
}

/* Premium Glassmorphic Card */
.project-card {
    background: rgba(22, 24, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.875em;
    padding: 1.5em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--brand-accent-rgb), 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--brand-accent-rgb), 0.12);
}

/* Badges & Tags */
.card-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.312em 0.75em;
    border-radius: 1em;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    background: rgba(var(--brand-accent-rgb), 0.12);
    color: var(--brand-accent);
    border: 1px solid rgba(var(--brand-accent-rgb), 0.25);
    margin-bottom: 0.875em;
    width: fit-content;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 400;
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    color: #f8fafc;
    margin-bottom: 0.625em;
}

.card-description {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 1.125em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Key Statistics Section */
.card-stats {
    display: flex;
    gap: 1.25em;
    padding-top: 1em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.125em;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Links & Buttons */
.card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.375em;
    color: #ffffff;
    font-weight: 400;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-action:hover {
    color: var(--brand-accent);
}

.card-action svg {
    transition: transform 0.2s ease;
}

.card-action:hover svg {
    transform: translateX(4px);
}


/* ==========================================
   About Page Styles - Dark Premium Theme
   (page always renders with .theme-dark active,
   so colors below are the dark palette directly)
   ========================================== */

.about-container {
    padding: 2.5em 0 5em 0;
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    color: #cbd5e1;
}

/* ----- Hero ----- */
.about-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5em;
    align-items: center;
    margin-bottom: 3em;
    padding-top: 1em;
}

.about-eyebrow {
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75em;
}

.about-hero-title {
    font-family: "Yatra One", serif;
    font-size: 2em;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 0.7em;
    letter-spacing: -0.01em;
}

.about-hero-title .accent {
    color: var(--brand-accent);
}

.about-hero-rule {
    width: 3em;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-accent);
    margin-bottom: 1.25em;
}

.about-hero-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 1em;
}

.about-hero-quote {
    background: #0E1117;
    border-left: 3px solid var(--brand-accent);
    padding: 1.25em 1.5em;
    margin: 1.5em 0 0;
}

.about-hero-quote p {
    font-style: italic;
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
}

.about-hero-media {
    position: relative;
    overflow: hidden;
    min-height: 22em;
    height: 100%;
    background-color: #0E1117;
}

.about-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(10%) contrast(1.05);
}

.about-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(11, 13, 18, 0.70) 0%, transparent 14%, transparent 86%, rgba(11, 13, 18, 0.70) 100%),
        linear-gradient(to bottom, rgba(11, 13, 18, 0.65) 0%, transparent 14%, transparent 82%, rgba(11, 13, 18, 0.40) 100%);
    pointer-events: none;
}

/* ----- Section label (reused above icon grid / impact bar) ----- */
.section-label {
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 1.125em;
}

/* ----- Mission box ----- */
.mission-box {
    display: flex;
    align-items: center;
    gap: 2em;
    background-color: #14171E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 2px solid rgba(var(--brand-accent-rgb), 0.25);
    border-radius: 0.75em;
    padding: 1.75em 2em;
    margin-bottom: 2.5em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mission-box-label {
    display: flex;
    align-items: center;
    gap: 1em;
    flex: 0 0 auto;
    padding-right: 2em;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.mission-icon {
    width: 3.25em;
    height: 3.25em;
    border: 2px solid var(--brand-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(var(--brand-accent-rgb), 0.10);
}

.mission-icon svg {
    width: 1.5em;
    height: 1.5em;
}

.mission-box-label span {
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 0.9rem;
}

.mission-box p {
    color: #cbd5e1;
    line-height: 1.75;
    margin: 0;
    font-size: 1rem;
}

/* ----- What We Do icon grid ----- */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25em;
    margin-bottom: 2.75em;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 2.5em;
}

.icon-card {
    background-color: #14171E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75em;
    padding: 1.85em 1.5em;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.icon-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.icon-card:hover::before {
    opacity: 1;
}

.icon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(var(--brand-accent-rgb), 0.15);
    border-color: rgba(var(--brand-accent-rgb), 0.4);
}

.icon-card svg {
    width: 2em;
    height: 2em;
    color: var(--brand-accent);
    margin-bottom: 0.75em;
}

.icon-card:hover svg {
    color: #ffffff;
}

.icon-card h3 {
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6em;
}

.icon-card p {
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1em;
}

.icon-card .underline {
    width: 1.5em;
    height: 2px;
    background: var(--brand-accent);
    margin: 0 auto;
}

/* ----- Impact ----- */
.impact-section {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 2px solid rgba(var(--brand-accent-rgb), 0.25);
    border-radius: 0.75em;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 2em 2.25em;
    margin-bottom: 2.75em;
}

.impact-bar {
    display: flex;
    justify-content: space-between;
    gap: 1.5em;
    flex-wrap: wrap;
}

.impact-item {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 0 1em;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(var(--brand-accent-rgb), 0.15);
}

.impact-item:last-child {
    border-right: none;
}

.impact-item svg {
    width: 1.75em;
    height: 1.75em;
    color: var(--brand-accent);
    margin-bottom: 0.5em;
}

.impact-number {
    font-family: "Playfair Display", "Yatra One", serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 0.2em;
}

.impact-label {
    font-size: 1em;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ----- Closing quote + CTA ----- */
.closing-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 2px solid rgba(var(--brand-accent-rgb), 0.25);
    border-radius: 0.75em;
    padding: 2.75em;
    position: relative;
    overflow: hidden;
}

.closing-quote {
    flex: 1.15;
}

.closing-quote .quote-glyph {
    font-family: "Playfair Display", "Yatra One", serif;
    font-size: 3rem;
    color: var(--brand-accent);
    line-height: 1;
    margin-bottom: 0.15em;
    background: none;
}

.closing-quote .quote-glyph.close {
    text-align: right;
    margin-top: 0.15em;
    margin-bottom: 0;
}

.closing-quote p {
    font-size: 1.15rem;
    color: #e2e8f0;
    line-height: 1.55;
    font-style: italic;
    margin: 0;
}

.closing-cta {
    flex: 1;
    background: linear-gradient(135deg, rgba(var(--brand-accent-rgb), 0.08) 0%, transparent 60%);
    border-radius: 0.75em;
    padding: 2em;
}

.closing-cta h3 {
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1em;
    margin-bottom: 0.75em;
}

.closing-cta p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5em;
}

.closing-decor {
    position: absolute;
    right: 1.5em;
    bottom: -0.5em;
    width: 6.5em;
    height: auto;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

/* About page mobile responsive */
@media (max-width: 768px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 1.75em;
    }

    .about-hero-media {
        min-height: 14em;
        order: -1;
    }

    .about-hero-title {
        font-size: 1.85rem;
    }

    @media (max-width: 360px) {
        .about-hero-title {
            font-size: 1.7rem;
        }
    }

    .mission-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75em;
    }

    .mission-box-label {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding-right: 0;
        padding-bottom: 1em;
        width: 100%;
    }

    .impact-bar {
        flex-wrap: wrap;
    }

    .impact-item {
        flex: 1 1 45%;
        border-right: none;
        margin-bottom: 1.25em;
    }

    .closing-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75em;
    }

    .closing-decor {
        display: none;
    }
}

@media (max-width: 360px) {
    .icon-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .impact-item {
        flex: 1 1 100%;
        border-right: none;
    }

    .about-hero-media {
        min-height: 12em;
    }
}


/* ==========================================
   Contact Page Hero - Dark Theme
   (full-width banner with text overlaid on image —
   deliberately distinct from the About page's split-panel hero)
   ========================================== */

.contact-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0.75em;
    margin-bottom: 2.5em;
    min-height: 16em;
    display: flex;
    align-items: center;
    background-image: url("../images/shilaalekh-cover-1.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 70px center;
    background-color: black;
}

.contact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11, 13, 18, 0.95) 0%, rgba(11, 13, 18, 0.75) 40%, rgba(11, 13, 18, 0.35) 70%, transparent 100%);
    pointer-events: none;
}

.contact-hero-overlay {
    position: relative;
    z-index: 1;
    padding: 2.5em 3em;
    max-width: 36em;
}

.contact-hero-title {
    font-family: "Yatra One", serif;
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 0.6em;
    letter-spacing: -0.01em;
}

.contact-hero-overlay p {
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 0.9em;
}

.contact-hero-quote {
    margin: 1.25em 0 0;
    padding: 1.125em 1.25em;
    border-left: 2px solid var(--brand-accent);
    background: rgba(12, 12, 12, 0.8);
    border-radius: 0 0.5em 0.5em 0;
    max-width: 26em;
}

.contact-hero-quote p {
    font-style: italic;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
}

.contact-hero-quote p::before {
    content: open-quote;
    color: var(--brand-accent);
    font-weight: 700;
    font-size: 1em;
    padding: 0 0.2em;
}

.contact-hero-quote p::after {
    content: close-quote;
    color: var(--brand-accent);
    font-weight: 700;
    font-size: 1em;
    padding: 0 0.2em;
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 16em;
        background-position: center center;
    }

    .contact-hero-overlay {
        padding: 1.5em;
    }

    .contact-hero-title {
        font-size: 1.6rem;
    }
}


/* ==========================================
   Contact Page Styles - Premium Dark Theme
   ========================================== */

.contact-container {
    padding: 2.5em 0 5em 0;
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
}

.contact-header {
    padding-top: 1em;
    margin-bottom: 2.25em;
}

.contact-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

.contact-header p {
    font-size: 1.125em;
    color: #FFFFFF;
    line-height: 1.6;
}

/* Contact Form Section — anchored with header */
.contact-form-section {
    margin-bottom: 2.5em;
    background: rgba(30, 33, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.75em;
    padding: 2em;
}

.contact-form-section-header {
    margin-bottom: 1.75em;
}

.contact-form-section-header h2 {
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 0.4em;
}

.contact-form-section-header p {
    font-size: 1em;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Contact Form — two-column layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2em;
    align-items: start;
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    padding-top: 0.5em;
}

.contact-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875em;
}

.contact-sidebar-icon {
    width: 2.25em;
    height: 2.25em;
    border-radius: 50%;
    background: rgba(var(--brand-accent-dark-rgb), 0.12);
    border: 1px solid rgba(var(--brand-accent-dark-rgb), 0.2);
    color: var(--brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-sidebar-label {
    font-size: 1em;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.312em;
}

.contact-sidebar-value {
    font-size: 1em;
    color: #cbd5e1;
    line-height: 1.5;
}

.contact-sidebar-link {
    font-size: 1em;
    color: #cbd5e1;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.contact-sidebar-link:hover {
    color: var(--brand-accent);
}

.contact-sidebar-quote {
    margin-top: 0.5em;
    padding: 1.125em 1.25em;
    border-left: 2px solid var(--brand-accent);
    background:rgba(12, 12, 12, 0.8);

    border-radius: 0 0.5em 0.5em 0;
}

.contact-sidebar-quote p {
    font-size: 1.2em;
    color: #cbd5e1;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    font-family: "Source Serif 4", "Noto Serif Devanagari", serif;
}

.contact-sidebar-quote p::before {
    content: open-quote;
    color: var(--brand-accent);
    font-weight: 700;
    font-size: 1em;
}

.contact-sidebar-quote p::after {
    content: close-quote;
    color: var(--brand-accent);
    font-weight: 700;
    font-size: 1em;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
    border-top: 2px solid var(--brand-accent);
        padding-top: 1.5em;
    }
}

/* Visual Panel - Left Side */
.contact-visual-panel {
    position: relative;
    background: linear-gradient(160deg, rgba(22, 24, 30, 0.96) 0%, rgba(10, 12, 16, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25em;
    padding: 2.25em;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

/* Form Card - Right Side */
.contact-form-card {
    position: relative;
    background: linear-gradient(160deg, rgba(22, 24, 30, 0.96) 0%, rgba(10, 12, 16, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25em;
    padding: 2.25em;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.form-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.form-error {
    color: #dc2626;
    font-size: 0.85em;
    margin-top: 0.35em;
    display: block;
}

.form-group {
    margin-bottom: 1.375em;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25em;
}

@media (max-width: 580px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-label {
    display: block;
    font-size: 1em;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 0.625em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(15, 17, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75em;
    padding: 0.938em 1.125em;
    color: #F1F5F9;
    font-size: 0.875em;
    outline: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #4B5563;
}

.form-input:focus,
.form-textarea:focus {
    border-color: rgba(var(--brand-accent-dark-rgb), 0.65);
    background: rgba(15, 17, 23, 0.8);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(var(--brand-accent-dark-rgb), 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 9.375em;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(var(--brand-accent-dark-rgb), 0.92) 0%, rgba(var(--brand-accent-dark-rgb), 0.95) 100%);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.812em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.938em 1.75em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625em;
    box-shadow: 0 8px 24px rgba(var(--brand-accent-dark-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.7s ease;
}

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

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(var(--brand-accent-dark-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Contact page mobile responsive */
@media (max-width: 768px) {
    .contact-visual-panel,
    .contact-form-card {
        padding: 24px;
    }
}
/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .topbar {
        height: var(--topbar-height);
    }
    .topbar-inner {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }
    .nav-logo-link {
        width: auto;
        position: static;
        margin: 0 0 0 -60px !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
    }
    ul.nav {
        flex: 0 0 auto;
    }
    ul.nav li.nav-item:not(.nav-logo-item) {
        display: none;
    }
    .nav-logo-img {
        position: static;
        right: auto;
        left: auto;
        transform: none;
        height: 84px;
        width: auto;
        display: block;
    }
    ul.nav-end.lang-switcher {
        margin: 0 10px 0 auto;
        display: flex;
        align-items: center;
    }
    .lang-option {
        padding: 0 8px;
        height: 22px;
        line-height: 22px;
        font-size: 0.7em;
    }
    .navbar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 1.75em;
        height: 1.75em;
        flex-shrink: 0;
    }

    /* Open dropdown panel */
    body.nav-is-open ul.nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        bottom: 0;
        overflow-y: auto;
        background: rgba(12, 14, 18, 1);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 999;
        padding: 10px 16px 20px;
        animation: navDropIn 0.25s ease;
    }

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

body.nav-is-open ul.nav li.nav-item {
    display: block;
    width: 100%;
    /* Perfectly balanced subtle line opacity */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.nav-is-open ul.nav li.nav-item:last-child {
    border-bottom: none;
}

body.nav-is-open ul.nav li.nav-item a {
    display: flex;
    align-items: center; 
    padding: 14px 18px; 
    line-height: 1;
    border-radius: 8px;
    text-align: left;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.98rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Clear inherited pseudo-elements */
body.nav-is-open ul.nav li.nav-item a::before,
body.nav-is-open ul.nav li.nav-item a::after {
    display: none !important;
    content: none !important;
}

/* Hover State */
body.nav-is-open ul.nav li.nav-item a:hover,
body.nav-is-open ul.nav li.nav-item a:active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

/* Active State */
    body.nav-is-open ul.nav li.nav-item a.active {
        color: #ffffff;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.08);
    }
}

/* District Map — global legend markup, dark map styles only on /maps */
.district-map-legend {
    background: rgba(15, 19, 24, 0.8);
    border-radius: 8px;
    padding: 8px 10px;
    color: #cbd5e1;
    font-size: 0.8em;
    line-height: 1.2;
    box-shadow: none;
    border: none;
    margin: 10px;
    display: inline-block;
    box-sizing: border-box;
    width: max-content;
    max-width: min(230px, calc(100% - 20px));
}

.legend-title {
    font-size: 10px;
    color: #94A3B8;
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: normal;
    max-width: 230px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legend-items {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: 34px;
}

.legend-swatch {
    height: 12px;
    width: 34px;
    border-radius: 1px;
}

.legend-item span {
    font-size: 10px;
    color: #94A3B8;
    text-align: center;
    white-space: nowrap;
    margin-top: 3px;
    line-height: 1.1;
}

.legend-period-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 6px 0 4px 0;
    white-space: normal;
    max-width: 100%;
}

.legend-caption {
    font-size: 0.75em;
    color: #94A3B8;
    font-style: italic;
    margin-top: 2px;
}

.district-map-data-unavailable {
    background: rgba(14, 17, 23, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75em;
    padding: 0.5em 1em;
    color: #cbd5e1;
    font-size: 0.85em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#map .leaflet-control-attribution,
#mapsPageMap .leaflet-control-attribution,
#mapBirthplaces .leaflet-control-attribution {
    background: rgba(15, 19, 24, 0.75) !important;
    color: rgba(226, 232, 240, 0.5) !important;
    font-size: 10px;
    line-height: 1.3;
    padding: 2px 8px;
    border-radius: 6px 0 0 0;
    backdrop-filter: blur(4px);
}

#map .leaflet-control-attribution a,
#mapsPageMap .leaflet-control-attribution a,
#mapBirthplaces .leaflet-control-attribution a {
    color: rgba(226, 232, 240, 0.65) !important;
}

.leaflet-attribution-flag {
    display: none !important;
}

#map .leaflet-interactive:focus,
#mapsPageMap .leaflet-interactive:focus,
#mapBirthplaces .leaflet-interactive:focus,
#map path:focus,
#mapsPageMap path:focus,
#mapBirthplaces path:focus {
    outline: none !important;
}

.leaflet-tooltip.district-tooltip {
    background: rgba(15, 19, 24, 0.92);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.3;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.leaflet-tooltip.district-tooltip::before {
    display: none;
}

/* Dark map styles for /maps only */
#mapBirthplaces,
#mapsPageMap {
    background: #1A1D24 !important;
}

#mapBirthplaces .leaflet-container,
#mapsPageMap .leaflet-container {
    background: #1A1D24 !important;
}

#mapBirthplaces .leaflet-tile,
#mapsPageMap .leaflet-tile {
    filter: grayscale(100%) brightness(0.7) contrast(1.1);
}

#mapBirthplaces .leaflet-control-zoom,
#mapsPageMap .leaflet-control-zoom {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.625em;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

#mapBirthplaces .leaflet-control-zoom a,
#mapsPageMap .leaflet-control-zoom a {
    background: rgba(30, 34, 43, 0.92);
    color: #E2E8F0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 2.125em;
    height: 2.125em;
    line-height: 2.125em;
    font-size: 1.125em;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

#mapBirthplaces .leaflet-control-zoom a:hover,
#mapsPageMap .leaflet-control-zoom a:hover {
    background: rgba(255, 105, 0, 0.35);
    color: #FFFFFF;
}

#mapBirthplaces .leaflet-control-zoom a:last-child,
#mapsPageMap .leaflet-control-zoom a:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .district-map-legend {
        padding: 6px 8px;
        max-width: calc(100% - 16px);
    }

    .legend-items {
        gap: 3px;
    }

    .legend-item {
        width: 26px;
    }

    .legend-swatch {
        width: 26px;
    }

    .legend-item span {
        font-size: 9px;
    }

    .legend-title {
        font-size: 9px;
    }
}

/* District map loading/error states */
#map .district-map-overlay,
#mapBirthplaces .district-map-overlay,
#mapsPageMap .district-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 19, 24, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 1000;
    color: #e2e8f0;
    font-size: 14px;
    text-align: center;
    padding: 16px;
    box-sizing: border-box;
}

#map .district-map-loading-text,
#mapBirthplaces .district-map-loading-text,
#mapsPageMap .district-map-loading-text {
    display: block;
}

#map .district-map-error-text,
#mapBirthplaces .district-map-error-text,
#mapsPageMap .district-map-error-text {
    display: none;
}

#map .district-map-error .district-map-loading-text,
#mapBirthplaces .district-map-error .district-map-loading-text,
#mapsPageMap .district-map-error .district-map-loading-text {
    display: none;
}

#map .district-map-error .district-map-error-text,
#mapBirthplaces .district-map-error .district-map-error-text,
#mapsPageMap .district-map-error .district-map-error-text {
    display: block;
}

#map .district-map-spinner,
#mapBirthplaces .district-map-spinner,
#mapsPageMap .district-map-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #e2e8f0;
    border-radius: 50%;
    animation: district-map-spin 0.8s linear infinite;
}

#map .district-map-retry-btn,
#mapBirthplaces .district-map-retry-btn,
#mapsPageMap .district-map-retry-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    min-height: 44px;
    transition: background 0.2s;
}

#map .district-map-retry-btn:hover,
#mapBirthplaces .district-map-retry-btn:hover,
#mapsPageMap .district-map-retry-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    #map .district-map-spinner,
    #mapBirthplaces .district-map-spinner,
    #mapsPageMap .district-map-spinner {
        animation: none;
        border-top-color: #e2e8f0;
        border-right-color: rgba(255, 255, 255, 0.4);
    }
}

@keyframes district-map-spin {
    to { transform: rotate(360deg); }
}
