@font-face {
    font-family: 'Kalpurush';
    src: url('Kalpurush.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --brta-green: #0F4C4C;
    --brta-red: #f42a41;
    --brta-hover: #0A3636;
    --light-green: #E6F2F1;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --brand-gold: #D97706;
    --brand-gold-dark: #B45F04;
}

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

body {
    font-family: 'Kalpurush', 'Inter', sans-serif;
    color: var(--text-dark);

    background-color: #ffffff;
    line-height: 1.8;
    overflow-x: hidden;
}

input, button, textarea, select, label, .lang-toggle {
    font-family: 'Kalpurush', 'Inter', sans-serif;
}

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

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

@media (min-width: 992px) {
    .container { max-width: 960px; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

/* Header */
header {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.brta-logo {
    height: 55px;
    width: auto;
    flex-shrink: 0;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.logo-text-en {
    font-size: 20px;
    font-weight: 800;
    color: var(--brta-green);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.logo-text-bn {
    font-size: 14px;
    font-weight: 500;
    color: var(--brta-red);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--light-green);
    border: 1.5px solid var(--brta-green);
    border-radius: 24px;
    padding: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: auto;
    gap: 0;
}
.lang-toggle:hover {
    background: #d8f0e0;
}
.lang-toggle .lang-bn,
.lang-toggle .lang-en {
    padding: 5px 16px;
    border-radius: 20px;
    color: var(--text-muted);
    transition: color 0.3s, background 0.3s;
    user-select: none;
}
.lang-toggle .lang-bn.active,
.lang-toggle .lang-en.active {
    color: #fff;
    background: var(--brta-green);
}

/* Install App Button (PWA) — hidden by default, shown only while installable.
   Fixed bottom-left so it can never be clipped by the header layout on mobile.
   (The floating WhatsApp button occupies bottom-right.) */
.install-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 950;
    align-items: center;
    gap: 6px;
    background: var(--brta-green);
    color: #fff;
    border: 1.5px solid var(--brta-green);
    border-radius: 30px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(15, 76, 76, 0.35);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.install-btn.visible {
    display: inline-flex;
}
.install-btn:hover {
    background: var(--brta-hover);
    border-color: var(--brta-hover);
    transform: translateY(-2px);
}
@media (max-width: 575px) {
    .install-btn {
        bottom: 20px;
        left: 20px;
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* Fare Glance Panel (top-right) */
.fare-glance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.fare-glance-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.fare-glance-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fare-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.fare-badge.active {
    background: var(--brta-green);
    color: #ffffff;
    border-color: var(--brta-green);
    box-shadow: 0 4px 14px rgba(0, 106, 78, 0.28);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 140px;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.85;
}

/* Hero Intro: badge + gradient headline + live stat strip */
.hero-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
    padding: 30px 24px 26px;
    border-radius: 28px;
    background: radial-gradient(ellipse 70% 100% at center, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.5) 55%, rgba(255,255,255,0) 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(27, 42, 65, 0.15);
    box-shadow: 0 4px 16px rgba(27, 42, 65, 0.08);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--brta-green);
    opacity: 0;
    animation: heroFadeUp 0.6s ease forwards;
}

.pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-gold);
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--brand-gold);
    animation: pulseRing 1.8s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.8); opacity: 0; }
}

.hero-title {
    margin: 18px 0 12px;
    font-size: clamp(30px, 5.2vw, 52px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--brta-green);
    opacity: 0;
    animation: heroFadeUp 0.6s ease 0.1s forwards;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 24px;
    opacity: 0;
    animation: heroFadeUp 0.6s ease 0.2s forwards;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 14px 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(27, 42, 65, 0.1);
    box-shadow: 0 8px 24px rgba(27, 42, 65, 0.08);
    opacity: 0;
    animation: heroFadeUp 0.6s ease 0.3s forwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 64px;
}

.stat-number {
    font-size: 27px;
    font-weight: 800;
    color: var(--brta-green);
    line-height: 1.1;
}

.stat-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(27, 42, 65, 0.15);
    flex-shrink: 0;
}

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

@media (max-width: 575px) {
    .hero-intro { margin-bottom: 22px; }
    .hero-badge { font-size: 10.5px; padding: 6px 12px; }
    .hero-subtitle { font-size: 13px; margin-bottom: 16px; }
    .hero-stats { gap: 12px; padding: 10px 14px; border-radius: 14px; }
    .stat-item { min-width: 48px; }
    .stat-number { font-size: 17px; }
    .stat-label { font-size: 9px; }
    .stat-divider { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge, .hero-title, .hero-subtitle, .hero-stats { animation: none; opacity: 1; }
    .pulse-dot::after { animation: none; display: none; }
}

/* ===== Directory Overlay ===== */
.browse-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--brta-green);
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s;
}

.browse-toggle:hover { background: var(--brta-hover); }

.directory-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 30, 0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.directory-panel {
    background: #fff;
    width: 100%;
    max-width: 980px;
    height: 88vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.directory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
}

.directory-header h2 {
    font-size: 17px;
    font-weight: 800;
    color: var(--brta-green);
    margin: 0;
}

.directory-close {
    background: var(--bg-light);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dark);
}

.directory-tabs {
    display: flex;
    gap: 8px;
    padding: 14px 22px 0;
}

.directory-tab {
    background: var(--light-green);
    color: var(--brta-green);
    border: none;
    padding: 9px 18px;
    border-radius: 10px 10px 0 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.directory-tab.active {
    background: var(--brta-green);
    color: #fff;
}

.directory-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 22px 0;
    padding: 10px 16px;
    border: 1.5px solid var(--light-green);
    border-radius: 12px;
    color: var(--text-muted);
}

.directory-search input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    font-family: inherit;
}

.directory-count {
    padding: 10px 22px 0;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.directory-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px 22px 22px;
}

.dc-section-header {
    font-size: 13px;
    font-weight: 800;
    color: var(--brta-green);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 18px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--light-green);
}

.dc-section-header:first-child { margin-top: 0; }

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.directory-card {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 18px 20px;
    background: #fafcfc;
}

.dc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dc-route-no {
    font-weight: 800;
    font-size: 15px;
    color: var(--brta-green);
}

.dc-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-intercity { background: rgba(217,119,6,0.15); color: var(--brand-gold-dark); }
.badge-local { background: rgba(15,76,76,0.12); color: var(--brta-green); }

.dc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.dc-title i { font-size: 12px; color: var(--text-muted); margin: 0 3px; }

.dc-via {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 8px;
}

.local-route-card { cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s; }
.local-route-card:hover { border-color: var(--brta-green); box-shadow: 0 4px 14px rgba(15,76,76,0.12); }

.dc-matrix-hint {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-gold-dark);
}

.dc-matrix-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brta-green);
    cursor: pointer;
    margin-bottom: 14px;
}

.dc-matrix-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--brta-green);
    margin-bottom: 14px;
}

.dc-matrix-scroll { overflow: auto; max-width: 100%; }

.dc-matrix-table {
    border-collapse: collapse;
    font-size: 11px;
    white-space: nowrap;
}

.dc-matrix-table th, .dc-matrix-table td {
    border: 1px solid #eee;
    padding: 6px 10px;
    text-align: center;
}

.dc-matrix-table thead th {
    background: var(--light-green);
    color: var(--brta-green);
    font-weight: 700;
    position: sticky;
    top: 0;
}

.dc-matrix-corner, .dc-matrix-rowhead {
    background: var(--light-green);
    color: var(--brta-green);
    font-weight: 700;
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 1;
}

.dc-matrix-km { font-size: 9.5px; color: var(--text-muted); font-weight: 500; }

.dc-matrix-fare { color: var(--brand-gold-dark); font-weight: 700; }

.dc-matrix-diag { background: repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 4px, #eee 4px, #eee 8px); }

.dc-operator {
    font-size: 13px;
    color: var(--text-dark);
    padding: 3px 0;
}

.dc-service-title { display: flex; align-items: center; gap: 6px; }

.dc-plus-more {
    font-size: 10px;
    font-weight: 700;
    color: var(--brta-green);
    background: var(--light-green);
    padding: 2px 7px;
    border-radius: 10px;
}

.dc-expand-hint {
    margin-left: auto;
    color: var(--brand-gold-dark) !important;
    cursor: pointer;
}

.service-card { cursor: pointer; }

.service-card .dc-meta { position: relative; }

.dc-service-details {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
}

.service-card.expanded .dc-service-details { display: block; }

.service-card.expanded .dc-expand-hint i { transform: rotate(180deg); }

.dc-detail-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin: 8px 0 4px;
}

.dc-detail-label:first-child { margin-top: 0; }

.dc-stops {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dc-stop-chip {
    font-size: 11.5px;
    background: var(--light-green);
    color: var(--brta-green);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.dc-stop-header-row, .dc-stop-row {
    display: grid;
    grid-template-columns: 14px 1fr 70px 60px;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 12.5px;
}

.dc-stop-header-row {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.dc-stop-list { position: relative; }

.dc-stop-row { position: relative; border-bottom: 1px dashed #f0f0f0; }

.dc-stop-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brta-green);
    justify-self: center;
}

.dc-stop-first .dc-stop-dot { background: #2ecc71; }
.dc-stop-last .dc-stop-dot { background: var(--brand-gold-dark); }

.dc-stop-name { font-weight: 600; color: var(--text-dark); }
.dc-stop-dist { color: var(--text-muted); }
.dc-stop-fare { color: var(--brand-gold-dark); font-weight: 700; text-align: right; }

.dc-empty-inline { font-size: 12px; color: var(--text-muted); }

.dc-empty, .dc-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* "Work in Progress" placeholder for directories whose data is not collected yet */
.dc-wip {
    border: 1.5px dashed var(--brta-green);
    border-radius: 16px;
    margin: 24px;
    background: var(--light-green);
}
.dc-wip-icon {
    font-size: 34px;
    color: var(--brta-green);
    margin-bottom: 12px;
}
.dc-wip-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--brta-green);
    margin-bottom: 8px;
}
.dc-wip-text {
    font-size: 14px;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 575px) {
    .browse-toggle span { display: none; }
    .browse-toggle { padding: 9px 11px; margin-left: 6px; }
    .directory-panel { height: 92vh; border-radius: 14px; }
    .directory-grid { grid-template-columns: 1fr; }
}

/* Search Card */
.search-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.58));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow);
    margin: 0 auto;
    border-top: 5px solid var(--brta-green);
}

.trip-type-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--brta-green);
    font-size: 16px;
    background: var(--light-green);
    width: fit-content;
    padding: 5px 15px;
    border-radius: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fdfdfd;
    transition: all 0.3s;
    min-width: 0;
}

.input-wrapper:focus-within {
    border-color: var(--brta-green);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.1);
}

.input-wrapper input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
}

.fare-wrapper {
    background: #f8fafc;
}

/* Dual fare boxes */
.dual-fare-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fare-51-box {
    background: #f0fdf4;
    border-color: var(--brta-green) !important;
}

.fare-51-box input {
    color: var(--brta-green);
    font-weight: 700;
}

.fare-40-box {
    background: #fffbeb;
    border-color: #f59e0b !important;
}

.fare-40-box input {
    color: #b45309;
    font-weight: 700;
}

#distance-display {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.dual-fare-group .input-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-green { color: var(--brta-green); }
.icon-red { color: var(--brta-red); }

.swap-icon {
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    white-space: nowrap;
}

.swap-icon:hover {
    color: var(--brta-green);
}

.btn-search {
    background-color: var(--brand-gold);
    color: var(--white);
    border: none;
    padding: 0 30px;
    border-radius: 10px;
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s;
    height: 55px;
    box-shadow: 0 4px 12px rgba(0, 106, 78, 0.2);
    white-space: nowrap;
    min-width: 120px;
}

.btn-search:hover {
    background-color: var(--brand-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.3);
}

/* Notice Section */
.notice-section {
    margin-top: 20px;
    position: relative;
    margin-bottom: 80px;
}

.notice-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 8px solid var(--brta-red);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.notice-icon {
    color: var(--brta-red);
    font-size: 24px;
}

.notice-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--brta-green);
}

.notice-content p {
    font-size: 16px;
    color: #334155;
    text-align: justify;
}

.notice-content a {
    color: var(--brta-green);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(0, 106, 78, 0.2);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    text-decoration: none;
    color: inherit;
}

.whatsapp-label {
    background: var(--white);
    color: #25d366;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
}

/* Layout Fixes for Search Card */
.search-card .row {
    margin-left: -8px;
    margin-right: -8px;
}

.search-card .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.search-card .row + .row {
    margin-top: 16px;
}

.input-wrapper {
    flex-shrink: 1;
    min-width: 0;
    width: 100%;
}

.btn-row {
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.btn-row .btn-search {
    width: 100%;
    margin: 0;
}

.info-row {
    margin-top: 16px;
}

.info-row .input-wrapper {
    min-height: 50px;
}

/* Responsive */
@media (max-width: 575px) {
    .hero { padding: 30px 0 60px; min-height: auto; }
    .hero-bg { background-size: cover; opacity: 0.55; }
    .mode-switcher { margin-bottom: 14px; }
    .mode-btn { padding: 10px 12px; font-size: 13px; }
    .search-card { padding: 16px; overflow: visible; }
    .search-card .row + .row { margin-top: 12px; }
    .swap-icon { height: 32px; font-size: 14px; margin: -4px 0; }
    .dual-fare-group { grid-template-columns: 1fr; gap: 8px; }
    .btn-search { height: 46px; margin-top: 0; min-width: 0; font-size: 14px; }
    .input-wrapper { padding: 8px 10px; gap: 6px; }
    .input-wrapper input { font-size: 14px; }
    .input-group label { font-size: 11px; }
    .brta-logo { height: 32px; }
    .logo-text-en { font-size: 11px; }
    .site-footer { padding: 28px 0 16px; margin-top: 24px; }
    .footer-top { flex-direction: column; text-align: center; gap: 16px; }
    .footer-brand { flex-direction: column; }
    .footer-links { justify-content: center; gap: 12px; }
    .footer-logo { height: 36px; }
    .footer-brand-bn { font-size: 12px; }
    .footer-bottom p { font-size: 11px; }
    .whatsapp-float { bottom: 16px; right: 16px; gap: 8px; }
    .whatsapp-label { display: none; }
    .whatsapp-icon { width: 48px; height: 48px; font-size: 24px; }
    .search-card .row > [class*="col-"] { padding-left: 4px; padding-right: 4px; }
    .search-card .row { margin-left: -4px; margin-right: -4px; }
    .info-row .input-wrapper { min-height: 40px; }
    .logo-container { gap: 8px; flex-wrap: nowrap; min-width: 0; }
    .lang-toggle { font-size: 11px; padding: 2px; margin-left: 4px; flex-shrink: 0; }
    .lang-toggle .lang-bn, .lang-toggle .lang-en { padding: 4px 10px; font-size: 11px; }
    header { padding: 8px 0; }
    header nav { gap: 4px; }
    .autocomplete-suggestions {
        max-height: 160px;
        min-width: 180px;
        font-size: 13px;
    }
    .route-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 12px;
    }
    .route-result-fares {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .route-result-direction { font-size: 13px; }
    .notice-card { padding: 24px; }
    .notice-header h2 { font-size: 16px; }
}

@media (max-width: 991px) {
    .swap-icon { height: 46px; }
    .logo-text-en { font-size: 16px; }
    .brta-logo { height: 48px; }
    .search-card { padding: 28px; }
}

@media (max-width: 767px) {
    .logo-text-en { font-size: 13px; }
    .brta-logo { height: 40px; }
    .logo-container { gap: 10px; }
    .lang-toggle { font-size: 12px; }
    .lang-toggle .lang-bn, .lang-toggle .lang-en { padding: 4px 12px; }
    .route-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .route-result-fares {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .notice-section { margin-bottom: 60px; }
}

@media (max-width: 575px) {
    .notice-section { margin-bottom: 48px; }
}

/* Custom Autocomplete Suggestions Styling */
.input-group {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 250px;
    font-family: 'Kalpurush', 'Inter', sans-serif;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    margin-top: 6px;
    animation: fadeInSuggestions 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-group > .autocomplete-suggestions {
    pointer-events: auto;
}

@media (max-width: 575px) {
    .autocomplete-suggestions {
        max-height: 180px;
        min-width: 200px;
    }
    .suggestion-item {
        padding: 14px 18px;
        font-size: 15px;
    }
}

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

.suggestion-item {
    padding: 14px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Kalpurush', 'Inter', sans-serif;
    border-bottom: 1.5px solid #f8fafc;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.suggestion-item:hover, .suggestion-item.active {
    background-color: var(--light-green);
    color: var(--brta-green);
    padding-left: 26px;
}

.suggestion-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 10px;
}

.autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.route-results {
    margin-top: 16px;
    display: none;
}
.route-results.active {
    display: block;
}
.route-result-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.route-result-item:hover {
    border-color: var(--brta-green);
    background: #f0fdf4;
}
.route-result-item.active {
    border-color: var(--brta-green);
    background: #f0fdf4;
}
.route-result-direction {
    font-size: 14px;
    font-weight: 700;
    color: var(--brta-green);
    margin-bottom: 2px;
}
.route-result-no {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1f 100%);
    color: #d4d4d4;

    padding: 50px 0 24px;
    margin-top: 40px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 48px;
    width: auto;
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    padding: 4px;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-brand-bn {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.footer-brand-en {
    font-size: 12px;
    font-weight: 500;
    color: #4ade80;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b0b0b0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    padding: 6px 0;
}

.footer-link:hover {
    color: var(--brta-green);
}

.footer-link i {
    font-size: 14px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #2a2a3e, transparent);
    margin: 28px 0 18px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

/* Mode Switcher Tabs */
.mode-switcher {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: var(--light-green);
    border-radius: 14px;
    padding: 4px;
    border: 1.5px solid var(--brta-green);
    overflow: hidden;
}

.mode-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mode-btn.active {
    background: var(--brta-green);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,106,78,0.3);
}

.mode-btn:hover:not(.active) {
    background: rgba(0,106,78,0.08);
}

/* View-all pill (tab-aware, below the mode switcher — secondary, not the orange CTA) */
.view-all-pill-holder {
    display: flex;
    min-height: 44px;
    margin: 0 auto 20px;
}

.view-all-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--light-green);
    border: 1px solid rgba(15,76,76,0.35);
    color: var(--brta-green);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.view-all-pill:hover {
    background: #d5ebe8;
    border-color: var(--brta-green);
}

.view-all-pill:active {
    transform: translateY(1px);
}

.view-all-pill .fa-arrow-right {
    font-size: 12px;
    margin-left: auto;
}

@media (max-width: 400px) {
    .view-all-pill { font-size: 12.5px; gap: 7px; padding: 10px 14px; }
}

/* Local Bus Select Inputs */
.local-bus-select {
    border: none;
    outline: none;
    flex: 1;
    min-width: 0;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    font-family: 'Kalpurush', 'Inter', sans-serif;
    color: var(--text-dark);
    cursor: pointer;
    padding: 2px 0;
    appearance: auto;
    -webkit-appearance: auto;
}

.local-bus-select option {
    font-family: 'Kalpurush', 'Inter', sans-serif;
    font-size: 15px;
    padding: 4px;
}

.local-bus-card {
    margin-top: 0;
}

.local-bus-card .btn-search {
    margin-top: 4px;
}

/* View Route on Map button */
.btn-map-route {
    width: 100%;
    background-color: var(--brta-green);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(3, 107, 82, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-map-route:hover {
    background-color: #02513d;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(3, 107, 82, 0.3);
}

.btn-map-route:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(3, 107, 82, 0.2);
}

.btn-map-route i {
    margin-right: 8px;
}

#local-fare-display {
    font-size: 22px;
}

/* Route Name Display */
.route-name-wrapper {
    height: auto !important;
    min-height: 50px;
    align-items: flex-start;
    padding-top: 14px;
}

.route-name-display {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #1e293b;
}

/* Local Route Dropdown (autocomplete) */
.local-route-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 250px;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    margin-top: 6px;
    font-family: 'Kalpurush', 'Inter', sans-serif;
    animation: fadeInSuggestions 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.local-route-dropdown.active {
    display: block;
}

.local-route-dropdown .route-dropdown-item {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1.5px solid #f8fafc;
    transition: all 0.2s ease;
}

.local-route-dropdown .route-dropdown-item:last-child {
    border-bottom: none;
}

.local-route-dropdown .route-dropdown-item:hover,
.local-route-dropdown .route-dropdown-item.active {
    background-color: var(--light-green);
    color: var(--brta-green);
    padding-left: 22px;
}

.local-route-dropdown .route-dropdown-item .route-item-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.local-route-dropdown .route-no-match {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #ef4444;
    text-align: center;
}

.local-route-dropdown::-webkit-scrollbar {
    width: 6px;
}
.local-route-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.local-route-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.local-route-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 575px) {
    .local-route-dropdown {
        max-height: 180px;
        min-width: 200px;
    }
    .local-route-dropdown .route-dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Bus Service Name Dropdown */
.bus-service-wrapper {
    align-items: center;
    padding: 12px 18px;
}

@media (max-width: 575px) {
    .local-bus-select {
        font-size: 14px;
    }
    .route-name-wrapper { min-height: 40px; padding-top: 12px; }
    .route-name-display { font-size: 14px; }
}

/* === New UI: verify badge, report, feedback (added for redesign) === */

.verify-report-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
}
.verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
}
.verify-badge.verify-confirmed { background: #EAF3DE; color: #27500A; }
.verify-badge.verify-unconfirmed { background: #F1EFE8; color: #5F5E5A; }
.verify-badge.verify-flagged { background: #FCEBEB; color: #791F1F; }
.btn-report {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 8px;
}
.btn-report:hover { color: var(--brta-red); }

.btn-feedback-toggle {
    width: 100%;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}
.feedback-box { margin-top: 8px; }
.feedback-box textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 10px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
}
.btn-feedback-submit {
    margin-top: 8px;
    background: var(--brta-green);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
}
.btn-feedback-submit:hover { background: var(--brta-hover); }
.feedback-thanks { display: block; margin-top: 8px; font-size: 12px; color: var(--brta-green); }

.report-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}
.report-modal-inner {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.report-modal-title { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--text-dark); }
.report-option {
    background: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 12px;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}
.report-option:hover { background: var(--light-green); border-color: var(--brta-green); }
.report-cancel {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px;
    cursor: pointer;
}
.report-thanks { text-align: center; color: var(--brta-green); font-size: 13px; margin: 4px 0 0; }

/* === Swap button (From/To) - matches .swap-icon pattern used in intercity tab === */
.swap-btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
}
.btn-swap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--brta-green);
    color: var(--brta-green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.15s ease;
}
.btn-swap:hover { background: var(--light-green); }
.btn-swap:active { transform: rotate(180deg); }

/* === Wider, proportional layout on larger screens (mobile rules untouched) === */
@media (min-width: 768px) {
    .search-card, .mode-switcher, .view-all-pill-holder { max-width: 700px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 992px) {
    .search-card, .mode-switcher, .view-all-pill-holder { max-width: 780px; }
    .hero { padding: 90px 0 150px; min-height: 560px; }
}
@media (min-width: 1200px) {
    .container { max-width: 1180px; }
    .search-card, .mode-switcher, .view-all-pill-holder { max-width: 840px; }
}

/* Footer: browse link + last-verified trust line (added with footer rebrand) */
.footer-updated {
    margin-top: 4px;
    color: #666 !important;
}
.footer-links .footer-link#footer-browse-link {
    cursor: pointer;
}

/* Footer: Data Sources block + Engineered-by credit (scoped v1, before full 4-column nav) */
.footer-sources {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}
.footer-sources-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #7d8590;
    margin-bottom: 2px;
}
.footer-sources-item {
    font-size: 12px;
    color: #a8a8b8;
    line-height: 1.5;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    text-align: left;
}
.footer-bottom-text p {
    margin: 0;
}
.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.footer-credit:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.footer-credit-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #7d8590;
    text-transform: uppercase;
}
.footer-credit-name {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}
@media (max-width: 640px) {
    .footer-sources { text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-text { order: 2; }
    .footer-credit { order: 1; }
}

/* === Connecting (1-transfer) route cards for local fare tab === */

.local-conn-results {
    margin-top: 8px;
}
.conn-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brta-green);
    margin: 4px 0 10px;
}
.conn-result-item {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}
.conn-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}
.conn-card-main {
    flex: 1;
    min-width: 0;
}
.conn-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.conn-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.conn-badge-connecting {
    background: #EAF3DE;
    color: #27500A;
}
.conn-badge-transfer {
    background: #F1EFE8;
    color: #5F5E5A;
}
.conn-totals {
    text-align: right;
    flex-shrink: 0;
    min-width: 96px;
    padding-top: 2px;
}
.conn-total-fare {
    font-size: 16px;
    font-weight: 700;
    color: var(--brta-green);
    white-space: nowrap;
}
.conn-total-dist {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
.conn-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--brta-green);
    margin: 2px 0 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.conn-stop-from,
.conn-stop-to {
    color: var(--text-dark);
}
.conn-transfer-stop {
    color: var(--brand-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-weight: 700;
}
.conn-arrow {
    font-size: 11px;
    color: var(--text-muted);
}
.conn-leg {
    padding: 6px 0 2px;
}
.conn-leg + .conn-leg {
    border-top: 1px dashed #e2e8f0;
}
.conn-leg-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.conn-route-badge {
    background: var(--brta-green);
    color: #ffffff;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.conn-leg-desc {
    flex: 1;
    min-width: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.conn-leg-fare {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}
.conn-stops {
    font-size: 13px;
    line-height: 2;
    word-break: break-word;
}
.conn-stop { color: var(--text-dark); }
.conn-stop-transfer,
.conn-stop-dest {
    font-weight: 700;
    color: var(--brta-green);
}
.conn-stop-transfer { color: var(--brand-gold); }
.conn-ellipsis {
    color: var(--text-muted);
}
.conn-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 2px;
}
.conn-divider::before,
.conn-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.conn-divider span {
    font-size: 12px;
    font-weight: 700;
    color: #5F5E5A;
    background: #F1EFE8;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.conn-divider span.flash {
    animation: connFlash 0.4s ease 2;
}
@keyframes connFlash {
    0%, 100% { background: #F1EFE8; }
    50% { background: #FDE68A; color: #92400E; }
}
@media (max-width: 480px) {
    .conn-card-row { flex-direction: column-reverse; gap: 6px; }
    .conn-totals { text-align: left; display: flex; gap: 10px; align-items: baseline; }
}

/* === Local tab: inner sub-tabs (level-2 accent inside the level-1 outer pills) === */

/* Gold-underline inner tabs — visually distinct from the solid dark-green pill outer tabs.
   Active: navy text + amber #E3A008 underline, transparent background. Inactive: muted text. */
.local-subtabs {
    display: flex;
    gap: 26px;
    margin: 0 0 18px;
    padding: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e8eaed;
    border-radius: 0;
    overflow: visible;
}

.local-subtab {
    flex: 1;
    padding: 10px 2px;
    margin-bottom: -2px;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.local-subtab.active {
    background: transparent;
    color: #1B2A41;
    border-bottom-color: #E3A008;
    box-shadow: none;
}

.local-subtab:hover:not(.active) {
    background: transparent;
    color: var(--brta-green);
    border-bottom-color: #E3A008;
}

/* Sub-tab visibility switching (card gets .local-tab-smart class) */
#local-smart-panel { display: none; }
.local-bus-card.local-tab-smart #local-journey-panel { display: none; }
.local-bus-card.local-tab-smart #local-smart-panel { display: block; }
.local-bus-card.local-tab-smart .local-results-area { display: none; }

/* === Hidden local sub-tabs (UI removed, code kept) ===
   The "By Destination / By Bus or Route" sub-tab row is removed from the UI.
   The smart "বাস বা রুট দিয়ে" panel is unmounted/hidden; its markup and JS
   logic stay intact so it can be reintroduced in a different placement later. */
.local-subtabs { display: none; }
#local-smart-panel { display: none !important; }
.local-bus-card.local-tab-smart #local-smart-panel { display: none !important; }

/* By Destination form keeps the exact Intercity row behaviour (side-by-side ≥576px,
   stacked <576px) — no forced vertical stacking, no sticky positioning. */

/* Smart search links */
.local-smart-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.local-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1.5px solid var(--brta-green);
    border-radius: 10px;
    background: transparent;
    color: var(--brta-green);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.local-link-btn:hover {
    background: var(--brta-green);
    color: #fff;
}

/* Smart search dropdown items (bus or route) */
.smart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.smart-item-main {
    min-width: 0;
    flex: 1;
}

.smart-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.smart-tag-bus {
    background: #EAF3DE;
    color: #27500A;
}

.smart-tag-route {
    background: #E8F1F7;
    color: #1E4E79;
}

/* No forced From/To stacking or collapse summary on local — the compact form behaves
   exactly like the Intercity form (side-by-side ≥576px, stacks below). */
/* ============================================================
   Local tab: full-width results (aggregated direct + connecting)
   Route/Bus Service dropdowns removed — results render full width.
   ============================================================ */

.local-results-area {
    margin-top: 16px;
}
.local-results-area:empty {
    display: none;
}

/* Aggregated result card — lists every covering route with operator names */
.ld-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.ld-card.ld-empty {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 20px 16px;
}
.ld-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.ld-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.ld-badge-direct {
    background: #EAF3DE;
    color: #27500A;
}
.ld-badge-count {
    background: #F1EFE8;
    color: #5F5E5A;
}
.ld-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--brta-green);
    margin: 2px 0 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.ld-totals {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    color: var(--brta-green);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.ld-map-btn-wrap {
    margin-top: 12px;
}

/* One covering route inside a direct result card */
.ld-route-row {
    border: 1px solid #eef1f4;
    border-radius: 8px;
    background: #f8fafc;
    padding: 8px 10px;
    margin-bottom: 8px;
}
.ld-route-row:last-child {
    margin-bottom: 0;
}
.ld-route-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.ld-route-desc {
    flex: 1;
    min-width: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.ld-route-dist {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Per-operator rows (bus icon + company name + fare) inside a leg/direct card */
.ld-op-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 12px;
}
.ld-op-row i {
    color: var(--brta-green);
    font-size: 12px;
    width: 14px;
    text-align: center;
}
.ld-op-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--text-dark);
}
.ld-op-fare {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-gold-dark);
    white-space: nowrap;
}

/* Swap button restyled to match the Intercity plain swap icon */
.swap-btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
}
.btn-swap {
    width: auto;
    height: auto;
    padding: 4px 6px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s, transform 0.15s ease;
}
.btn-swap:hover {
    background: transparent;
    color: var(--brta-green);
}
.btn-swap:active {
    transform: rotate(180deg);
}
