/* ==========================================================================
   Maps of India — Villages Directory Enterprise Design System (Harmonized)
   Direct Parity with Pincode & Demographic Design System
   Parent Standard: UI_UX_SPECIFICATION_DESIGN_SYSTEM.md
   Tokens: Deep Navy (#1a2a4a), Active Teal (#0ea5a9), Emerald (#10b981)
   Typography: 'Outfit' (Headings/Cards) + 'Inter' (Tabular/Data)
   ========================================================================== */

:root {
    /* --- Brand Color Palette --- */
    --primary: #1a2a4a;            /* Deep Corporate Navy */
    --primary-hover: #121e36;      /* Darker Navy on Interaction */
    --primary-light: #2c3e6b;      /* Slate Blue for Highlights & Hover Borders */
    --primary-rgb: 26, 42, 74;     /* RGB components for opacity layering */

    --secondary: #0ea5a9;          /* Active Teal Accent */
    --secondary-hover: #0c8c90;    /* Dark Teal */
    --secondary-light: #14b8b5;    /* Bright Teal / Cyan Highlight */

    --accent: #10b981;             /* Success Emerald Green (Gram Panchayat Highlight) */
    --accent-light: #34d399;       /* Light Emerald */
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* --- Dark Neutrals & Surfaces --- */
    --dark: #0f172a;               /* Midnight Black / Navy Base */
    --dark-light: #1e293b;         /* Charcoal Gray for Body Text */
    --light: #f8fafc;              /* Soft White / Light Slate Base */
    --muted: #64748b;              /* Cool Slate for Subtitles & Secondary Text */

    /* --- Gradients --- */
    --primary-gradient: linear-gradient(135deg, #1a2a4a 0%, #2c3e6b 100%);
    --secondary-gradient: linear-gradient(135deg, #0ea5a9 0%, #14b8b5 100%);
    --bg-gradient: linear-gradient(180deg, #f0f4f8 0%, #e2e8f0 100%);
    --footer-gradient: linear-gradient(135deg, #0f172a 0%, #1a2a4a 100%);

    /* --- UI Surface Tokens --- */
    --card-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.4);

    /* --- Elevations & Shadows --- */
    --shadow-sm: 0 2px 8px rgba(26, 42, 74, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(26, 42, 74, 0.08), 0 8px 10px -6px rgba(26, 42, 74, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(26, 42, 74, 0.12), 0 12px 20px -10px rgba(26, 42, 74, 0.12);

    /* --- Border Radii --- */
    --radius: 20px;                /* Large Card Containers */
    --radius-sm: 12px;             /* Buttons, Form Inputs, Badges, Stat Cards */

    /* --- Typography & Motion --- */
    --font: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-tabular: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Typography */
body {
    color: var(--dark-light);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: var(--font);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}



/* Layout Containers & 1000px Max-Width Boundary */
.outer-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-xl, .outer-wrapper {
        max-width: 1000px !important;
        margin: 0 auto;
    }
}

.search-hero-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.left-panel-listing {
    width: 18%;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.hero-right-wrapper {
    flex: 1;
    min-width: 0;
    width: 82%;
}

@media (max-width: 1024px) {
    .hero-right-wrapper {
        width: 100%;
    }
}

/* Inviolable Law 3: Zero Cumulative Layout Shift (CLS < 0.05) Ad Containers */
.ad-slot-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    margin: 1.25rem auto;
    overflow: hidden;
    contain: layout;
    text-align: center;
}

.ad-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.ad-leaderboard-top {
    min-height: 90px;
    width: 100%;
    max-width: 970px;
}

.ad-rectangle-incontent {
    min-height: 250px;
    width: 300px;
}

.ad-mobile-banner {
    min-height: 50px;
    width: 320px;
}

/* Fixed Side Gutters (Screens >= 1250px) */
.ad-gutter-sponsor {
    display: none;
    position: fixed;
    top: 140px;
    width: 120px;
    height: 600px;
    z-index: 100;
}

@media (min-width: 1250px) {
    .ad-gutter-left {
        display: block;
        left: calc(50% - 500px - 130px);
    }
    .ad-gutter-right {
        display: block;
        right: calc(50% - 500px - 130px);
    }
}

/* Top Navbar */
.navbar-moi {
    background-color: var(--primary);
    border-bottom: 3px solid var(--secondary);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-moi .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-moi .brand-logo span {
    color: var(--secondary);
}

.navbar-moi .nav-tagline {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-left: 12px;
    border-left: 1px solid #334155;
    padding-left: 12px;
}

/* Breadcrumbs Navigation (.breadcrumb-modern) */
.breadcrumb-container {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-modern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #94a3b8;
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
}

.breadcrumb-modern a {
    color: var(--muted);
}

.breadcrumb-modern a:hover {
    color: var(--secondary);
}

.breadcrumb-modern .active {
    color: var(--primary);
    font-weight: 600;
}

/* Primary Container Card (.card-modern) */
.card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: visible !important;
    position: relative;
    transition: var(--transition);
}

.card-modern:hover {
    box-shadow: var(--shadow-md);
}

.card-header-padding {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

/* Dual Search Hero Card (.search-hero) */
.search-hero {
    background: #ffffff;
    border: 1px solid #489ED3 !important;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: visible !important;
}

.search-hero-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    height: 100%;
}

.search-hero h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Action CTA Buttons */
.btn-dark-custom {
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-dark-custom:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-red-custom {
    background-color: #CD2522;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-red-custom:hover {
    background-color: #a81c19;
    color: #ffffff;
}

/* Custom Searchable Dropdown (.custom-search-select) */
.custom-search-select {
    position: relative;
    margin-bottom: 12px;
}

.custom-search-select label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.custom-search-select .select-trigger {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: var(--dark-light);
    font-size: 14px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.custom-search-select .select-trigger:focus,
.custom-search-select .select-trigger[aria-expanded="true"] {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 169, 0.2);
}

.custom-search-select .dropdown-menu {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    max-height: 320px;
}

.custom-search-select .search-input {
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    padding: 6px 10px;
    width: 100%;
}

.custom-search-select .search-input:focus {
    border-color: var(--secondary);
    outline: none;
}

.custom-search-select .dropdown-options-list {
    max-height: 240px;
    overflow-y: auto;
}

.custom-search-select .dropdown-item {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
}

.custom-search-select .dropdown-item:hover {
    background-color: rgba(14, 165, 169, 0.1);
    color: var(--primary);
}

/* Key Specifications Metric Cards (.stat-card) */
.stat-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

.stat-card .stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-family: var(--font);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

/* Highlighted Emerald Gram Panchayat Card */
.stat-card.stat-highlight {
    background-color: #f0fdf4 !important;
    border-color: rgba(22, 163, 74, 0.25) !important;
}

.stat-card.stat-highlight .stat-label {
    color: #15803d;
}

.stat-card.stat-highlight .stat-value {
    color: #166534;
}

/* High-Density Modern Tables (.table-modern) - Compact Spacing & Zero Horizontal Scroll */
.table-responsive {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-tabular);
    font-size: 13.5px;
    margin-bottom: 0;
}

.table-modern thead th {
    background-color: #deeaf8 !important;
    color: #003662 !important;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 8px 10px;
    border-bottom: 1px solid #cbd5e1;
    vertical-align: middle;
}

.table-modern tbody td {
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--dark);
    vertical-align: middle;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:hover {
    background-color: #f8fafc;
}

.table-modern .table-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.table-modern .table-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Compact Table for District and Tehsil Location Listings - Eliminates horizontal scrolling & reduces column spacing */
.table-district-locations {
    table-layout: fixed;
    width: 100%;
}

.table-district-locations thead th {
    padding: 8px 6px;
    font-size: 0.76rem;
    letter-spacing: 0.2px;
    line-height: 1.25;
    vertical-align: middle;
}

.table-district-locations tbody td {
    padding: 7px 6px;
    font-size: 0.82rem;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-district-locations .badge-modern {
    padding: 3px 6px;
    font-size: 11px;
}

.table-district-locations .btn-sm {
    padding: 2px 7px;
    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .table-district-locations {
        table-layout: auto;
        min-width: 580px;
    }
}

/* Directory Grid & Pills for States, Districts, Tehsils */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

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

.directory-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.directory-pill:hover {
    background-color: rgba(14, 165, 169, 0.08);
    border-color: var(--secondary);
    color: var(--secondary-hover);
    transform: translateX(2px);
}

.directory-pill .pill-count {
    background-color: #f1f5f9;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Interactive Map Card (Dual-Mode) */
.map-card-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
}

.map-card-header {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.map-mode-toggle .btn {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.map-card-container iframe {
    width: 100%;
    height: 380px;
    border: none;
    display: block;
}

/* Global Premium Footer (.footer-premium) */
.footer-premium {
    background: var(--footer-gradient);
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
    border-top: 4px solid var(--secondary);
    margin-top: 3rem;
    font-size: 14px;
}

.footer-premium h5, .footer-premium h6 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-premium a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-premium a:hover {
    color: var(--secondary-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.social-icons-bar {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.social-icons-bar a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #cbd5e1;
    font-size: 14px;
    transition: var(--transition);
}

.social-icons-bar a:hover {
    background-color: var(--secondary);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

/* Floating Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--primary);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 2px solid var(--secondary);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

/* Editorial & FAQ Accordion Styles */
.faq-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.025rem;
    color: var(--primary);
    background-color: #ffffff;
    box-shadow: none;
    padding: 1rem 1.25rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: rgba(14, 165, 169, 0.06);
    border-bottom: 1px solid #e2e8f0;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(14, 165, 169, 0.4);
}

.faq-accordion .accordion-body {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    padding: 1.25rem;
    background-color: #ffffff;
}

.faq-accordion .collapse:not(.show),
.faq-accordion .accordion-collapse.collapse:not(.show) {
    display: none !important;
}

.faq-accordion .collapsing,
.faq-accordion .accordion-collapse.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.faq-accordion .collapse.show,
.faq-accordion .accordion-collapse.collapse.show {
    display: block !important;
}

.editorial-card-feature {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    transition: var(--transition);
}

.editorial-card-feature:hover {
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

.state-feature-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.state-feature-badge:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    color: inherit;
}

@media (max-width:769px) {
    #pincodeSearchInput::placeholder {
  color: #1E293B;
  opacity: 1;
}
.intro-contact-details .position-relative{
    border: 1px solid gray !important;
    min-width: 100% !important;
    margin: 1rem 0 !important;
}
.intro-contact-details .fa-magnifying-glass{
    color: #23bdcf !important;
}
}

@media (max-width:1024px){
.navmenu{
    background-color: #006aba;
}
.navmenu a{
    color: #fff;
}
.navmenu .sub{
background-color: #24A7E0;
}

}
