/* ==========================================================================
   India Fuel Price (indiafuelprice.com) - Modern Design System
   Font: Plus Jakarta Sans / Clean Corporate Utility Theme
   ========================================================================== */

:root {
    /* Brand Primary */
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #f0f9ff;
    --primary-border: #bae6fd;

    /* Tricolor Accents */
    --saffron: #ea580c;
    --saffron-light: #fff7ed;
    --india-green: #15803d;
    --india-green-light: #f0fdf4;
    
    /* Fuel Thematic Colors */
    --petrol: #dc2626;
    --petrol-bg: #fef2f2;
    --petrol-border: #fecaca;
    --diesel: #2563eb;
    --diesel-bg: #eff6ff;
    --diesel-border: #bfdbfe;
    --lpg: #ea580c;
    --lpg-bg: #fff7ed;
    --lpg-border: #fed7aa;
    --cng: #ea580c;
    --cng-bg: #fff7ed;
    --cng-border: #fed7aa;

    /* Neutrals & Surfaces */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 2px 4px -1px rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
    --shadow: 0 4px 12px -2px rgb(0 0 0 / 0.08), 0 2px 6px -1px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.12), 0 4px 12px -2px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 30px -6px rgb(0 0 0 / 0.15);

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.15s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.main-content {
    flex: 1;
    padding-bottom: 3.5rem;
}

/* ==========================================================================
   Top Announcement / Status Bar
   ========================================================================== */
.top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.8rem;
    border-bottom: 1px solid #1e293b;
    padding: 0.45rem 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.top-bar-text {
    color: #cbd5e1;
}

.date-badge {
    color: #94a3b8;
    font-weight: 500;
}

/* ==========================================================================
   Main Sticky Navbar
   ========================================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-xs);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    padding: 0.35rem 0;
    position: relative;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    max-width: 230px;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-logo-img:hover {
    transform: scale(1.02);
}

.top-date-form {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.top-date-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
}

.top-date-input {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.top-date-input:focus,
.top-date-input:hover {
    border-color: #0284c7;
    background: #0f172a;
}

.btn-reset-date {
    display: inline-flex;
    align-items: center;
    background: #dc2626;
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.btn-reset-date:hover {
    background: #b91c1c;
}

.viewing-date-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(234, 88, 12, 0.2);
    color: #fed7aa;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.nav-links {
    display: flex;
    gap: 0.45rem;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

/* In top menu: light background colour with matching border; only currently selected page highlighted with different colour */
.nav-links > li > a,
.nav-link-dropdown {
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 0.48rem 0.85rem;
    border-radius: 8px;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nav-links > li > a:hover,
.nav-link-dropdown:hover {
    color: var(--primary);
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.nav-links > li > a.active,
.nav-link-dropdown.active {
    color: #ffffff !important;
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.nav-link-dropdown.active .dropdown-chevron {
    stroke: #ffffff;
}

/* Fuel Selector Bar on Home/India, State, and City pages */
.fuel-selector-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    margin: 1.25rem 0 0.5rem 0;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.fuel-selector-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.fuel-selector-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.fuel-tab {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.18s ease;
}

.fuel-tab:hover {
    color: var(--primary);
    background: #e2e8f0;
}

.fuel-tab.active {
    color: #ffffff !important;
    background: #0284c7;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
}

.single-fuel-breakdown .highlight-single-fuel {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.th-highlight {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.td-highlight {
    background: #f8fafc;
    font-weight: 600;
}

/* ==========================================================================
   States Multi-Column Mega Dropdown Menu
   ========================================================================== */
.nav-item-dropdown {
    position: static;
}

.nav-link-dropdown {
    cursor: pointer;
}

.dropdown-chevron {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1140px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    overflow: hidden;
}

/* Invisible hover bridge */
.mega-dropdown::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

@media (min-width: 901px) {
    .nav-item-dropdown:hover .mega-dropdown,
    .nav-item-dropdown.is-open .mega-dropdown,
    .nav-item-dropdown:focus-within .mega-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.mega-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.mega-header-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.mega-header-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.mega-header-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.mega-header-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.mega-header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.mega-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.mega-search-icon {
    position: absolute;
    left: 0.65rem;
    color: #94a3b8;
    pointer-events: none;
}

.mega-search-input {
    padding: 0.32rem 0.75rem 0.32rem 2rem;
    font-size: 0.8rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: #ffffff;
    color: var(--text-main);
    width: 160px;
    outline: none;
    transition: all 0.2s ease;
}

.mega-search-input:focus {
    width: 190px;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.mega-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.mega-dropdown-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.2rem 0.5rem;
    padding: 0.85rem 1.25rem;
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mega-state-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.32rem 0.5rem;
    border-radius: var(--radius-sm);
    color: #334155;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.12s ease;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.mega-state-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateX(2px);
}

.mega-state-link.active {
    background: #e0f2fe;
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--primary-border);
}

.mega-state-code {
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    min-width: 25px;
    text-align: center;
    letter-spacing: 0.05em;
    transition: all 0.12s ease;
    flex-shrink: 0;
}

.mega-state-link:hover .mega-state-code {
    background: #bae6fd;
    color: var(--primary-dark);
}

.mega-state-link.active .mega-state-code {
    background: var(--primary);
    color: #ffffff;
}

.mega-state-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.mega-city-count {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
    margin-left: auto;
    padding-left: 0.25rem;
    flex-shrink: 0;
}

.mega-state-link:hover .mega-city-count {
    color: var(--primary);
}

.mega-empty-state {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.mega-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    gap: 1rem;
}

.mega-footer-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.mega-footer-label {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mega-footer-chips {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.mega-footer-chip {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.15s ease;
}

.mega-footer-chip:hover {
    color: var(--primary-dark);
    border-color: var(--primary-border);
    background: var(--primary-light);
}

.mega-footer-link {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.mega-footer-link:hover {
    color: var(--primary-dark);
    padding-left: 2px;
}

/* ==========================================================================
   Mobile Navigation & States Accordion
   ========================================================================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.mobile-drawer {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
}

.mobile-drawer.active {
    display: block;
}

.mobile-drawer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mobile-nav-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.5rem 0 0.2rem 0;
}

.mobile-nav-link {
    color: var(--text-main);
    font-weight: 600;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.mobile-states-accordion {
    margin: 0.3rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
}

.mobile-states-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: #ffffff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    transition: background 0.15s ease;
    text-align: left;
}

.mobile-states-toggle:hover,
.mobile-states-toggle.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.mobile-states-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-states-toggle-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-count-pill {
    font-size: 0.72rem;
    font-weight: 700;
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
}

.mobile-chevron {
    color: var(--text-muted);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-chevron.rotated {
    transform: rotate(180deg);
}

.mobile-states-panel {
    display: none;
    padding: 0.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    max-height: 360px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-states-panel.open {
    display: block;
}

.mobile-states-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.mobile-state-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.15s ease;
    min-width: 0;
}

.mobile-state-item:hover,
.mobile-state-item.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-border);
}

.mobile-st-code {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-st-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 4rem 0 4.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 860px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.gradient-text-orange {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-green {
    background: linear-gradient(135deg, #4ade80, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.12rem;
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: #f1f5f9;
}

/* Hero Search Component */
.search-container {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 1.15rem 3.5rem 1.15rem 3.25rem;
    font-size: 1.05rem;
    font-family: inherit;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.95);
    outline: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    transition: all 0.2s ease;
}

.search-input:focus {
    background: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2), 0 15px 30px -5px rgba(0, 0, 0, 0.35);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    font-size: 1.2rem;
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 1.25rem;
    background: #e2e8f0;
    color: #475569;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    max-height: 350px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    text-align: left;
}

.search-dropdown.active {
    display: block;
}

.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    font-weight: 600;
    transition: background 0.15s ease;
}

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

.search-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.search-item .state-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.popular-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.25rem;
    font-size: 0.85rem;
}

.chips-label {
    color: #94a3b8;
    margin-right: 0.25rem;
}

.chip-item {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
    transition: all 0.15s ease;
}

.chip-item:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
    padding: 2.75rem 0 1rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.section-tag {
    font-size: 0.78rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Executive KPI Fuel Cards (National Averages / City Top)
   ========================================================================== */
.city-price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.big-price-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.big-price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.big-price-card.card-petrol {
    border-top: 4px solid var(--petrol);
}

.big-price-card.card-diesel {
    border-top: 4px solid var(--diesel);
}

.big-price-card.card-lpg,
.big-price-card.card-cng {
    border-top: 4px solid var(--lpg);
}

.big-price-card.featured {
    box-shadow: 0 0 0 2px var(--primary), var(--shadow);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.fuel-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fuel-icon {
    font-size: 1.4rem;
}

.fuel-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.unit-pill {
    font-size: 0.78rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

.price-hero {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
}

.price-amount {
    font-size: 2.65rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.price-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.meta-col {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.meta-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.meta-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}

/* ==========================================================================
   Badges (Price Change Rise / Drop / Neutral)
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
}

.badge-success {
    background: var(--india-green-light);
    color: var(--india-green);
    border: 1px solid #bbf7d0;
}

.badge-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.badge-neutral {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.badge-mini {
    display: inline-block;
}

.badge-mini .badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
}

/* ==========================================================================
   Metro Fuel Card Grid
   ========================================================================== */
.metro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.fuel-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fuel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.fuel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-light);
}

.fuel-card-title a {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}

.fuel-card-title a:hover {
    color: var(--primary);
}

.fuel-card-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metro-tag {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary-border);
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.price-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-petrol { background-color: var(--petrol); }
.dot-diesel { background-color: var(--diesel); }
.dot-lpg,
.dot-cng    { background-color: var(--lpg); }

.price-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.price-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.fuel-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.82rem;
}

.updated-time {
    color: var(--text-muted);
}

.btn-card-action {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.btn-card-action:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   Interactive Trip Fuel Cost Calculator
   ========================================================================== */
.calculator-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin: 1.5rem 0;
}

.calc-header {
    margin-bottom: 1.5rem;
}

.calc-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.calc-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}

.calc-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    align-items: flex-end;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.calc-input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

.calc-input, .calc-select {
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-main);
    outline: none;
    transition: all 0.15s ease;
}

.calc-input:focus, .calc-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.calc-result-box {
    background: #0f172a;
    color: #ffffff;
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.calc-result-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1.2;
}

.calc-result-litres {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-top: 0.25rem;
}

/* ==========================================================================
   State Directory Grid
   ========================================================================== */
.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.state-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-xs);
    transition: all 0.15s ease;
}

.state-chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.state-chip-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.state-code {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.state-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.state-chip-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.count-pill {
    font-size: 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.arrow-icon {
    color: #94a3b8;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ==========================================================================
   City Hero & Detailed Page Elements
   ========================================================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 1.5rem 0 1rem 0;
}

.breadcrumbs a {
    color: #475569;
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .sep {
    color: #94a3b8;
}

.breadcrumbs .current {
    color: var(--text-main);
    font-weight: 700;
}

.city-hero-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.city-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--india-green);
    background: var(--india-green-light);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
}

.city-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.highlight-city {
    color: var(--primary);
}

.city-hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.update-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 170px;
}

.update-card-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.update-card-date {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    margin: 0.2rem 0;
}

.update-card-sub {
    font-size: 0.72rem;
    color: #64748b;
}

/* ==========================================================================
   Chart Card
   ========================================================================== */
.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.chart-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}

.chart-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.chart-toggles {
    display: flex;
    gap: 0.35rem;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.btn-toggle {
    border: none;
    background: transparent;
    padding: 0.35rem 0.85rem;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-toggle.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: var(--shadow-xs);
}

.chart-canvas-wrapper {
    position: relative;
    height: 350px;
    width: 100%;
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.filter-input-wrapper {
    position: relative;
    max-width: 380px;
    width: 100%;
}

.filter-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    outline: none;
}

.filter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.filter-count {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.table-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background: #f8fafc;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 700;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

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

.table-city-link {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
}

.table-city-link:hover {
    color: var(--primary);
}

.badge-metro-pill {
    margin-left: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
}

.table-price-val {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-main);
}

.table-date-col {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.btn-table-action {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

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

.state-info-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

/* ==========================================================================
   SEO Informational Cards & FAQ
   ========================================================================== */
.seo-section {
    margin-top: 2rem;
}

.seo-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2.25rem;
}

.seo-heading {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.seo-intro {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

.info-card {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.info-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.info-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.info-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    position: relative;
    margin-top: auto;
}

.footer-tricolor-bar {
    height: 4px;
    background: linear-gradient(90deg, #ea580c 33.3%, #ffffff 33.3%, #ffffff 66.6%, #15803d 66.6%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0 2rem 0;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-omc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.omc-tag {
    font-size: 0.72rem;
    font-weight: 700;
    background: #1e293b;
    color: #cbd5e1;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid #334155;
}

.footer-col-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 3px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 1.75rem 0;
    text-align: center;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-bottom a {
    color: #cbd5e1;
    text-decoration: underline;
}

.footer-disclaimer-text {
    font-size: 0.78rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
    .nav-links > li > a {
        padding: 0.4rem 0.5rem;
        font-size: 0.84rem;
    }
    .brand-logo-img {
        height: 44px;
        max-width: 190px;
    }
    .mega-dropdown-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .nav-container {
        min-height: 64px;
        padding: 0.35rem 0;
    }

    .brand-logo-img {
        height: 44px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .city-hero-card {
        padding: 1.5rem;
    }

    .city-hero-title {
        font-size: 1.75rem;
    }

    .city-price-cards {
        grid-template-columns: 1fr;
    }

    .price-amount {
        font-size: 2.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
