/* Modern, responsive stylesheet for Electrichky */
:root {
  --color-primary: #1d4ed8;
  --color-accent: #0284c7;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-hover: #f1f5f9;
  --color-success: #16a34a;
  --color-warning: #d97706;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

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

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 20px;
}

.site-brand {
  flex-shrink: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
  text-decoration: none !important;
}

.logo-icon {
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.site-nav-link:hover {
  background: var(--color-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.site-nav-link.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.site-nav-link.nav-express {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
  font-weight: 600;
}

.site-nav-link.nav-express:hover {
  background: #fde68a;
  border-color: #f59e0b;
  color: #92400e;
}

.site-header-directions {
  background: #f8fafc;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 7px 16px;
}

.site-header-directions-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
}

.directions-label {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.directions-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.directions-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 3px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.directions-nav a:hover,
.directions-nav a.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 14px 0 6px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.breadcrumb-link {
  color: var(--color-text-muted);
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* Main */
.site-main {
  flex: 1;
  padding-bottom: 48px;
}

/* Hero & Page Header */
.hero-section,
.page-header {
  padding: 24px 0 20px;
}

.hero-title,
.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.25;
}

.hero-desc,
.page-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 800px;
}

.page-meta-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-hover);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

/* Sections */
.section {
  margin-top: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  width: 100%;
  margin-top: -8px;
}

/* Grids & Cards */
.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.card-icon {
  color: var(--color-primary);
  background: var(--color-hover);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.card-meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

.card-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Express & Lastochka highlight section */
.express-section {
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.8) 0%, rgba(248, 250, 252, 0.4) 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.express-header-block {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.express-header-block .section-title {
  margin: 0;
}

.express-header-block .section-subtitle {
  margin: 0;
  color: var(--color-text-muted);
}

.express-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: 4px;
}

.express-card {
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--color-accent);
}

.express-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.express-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 22px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: #e0f2fe;
  color: #0284c7;
  white-space: nowrap;
}

.express-type-badge.type-express {
  background: #fef3c7;
  color: #b45309;
}

.express-type-badge.type-lastochka {
  background: #fee2e2;
  color: #b91c1c;
}

.express-time-meta {
  font-size: 12px;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Filter Tabs & Search Box */
.filter-tabs {
  display: flex;
  gap: 6px;
  background: var(--color-border);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.search-box {
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* Timetable Table (Exact columns matching screenshot) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.timetable-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.timetable-table th {
  background: var(--color-hover);
  padding: 13px 16px;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.timetable-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.timetable-row:last-child td {
  border-bottom: none;
}

.timetable-row:hover {
  background: var(--color-hover);
}

/* Column styles */
.col-type {
  width: 44px;
  text-align: center;
}

.train-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #e0f2fe;
  color: #0284c7;
}

.type-express {
  background: #fef3c7;
  color: #b45309;
}

.type-lastochka {
  background: #fee2e2;
  color: #b91c1c;
}

.col-number {
  font-weight: 700;
  white-space: nowrap;
}

.train-number {
  font-weight: 700;
  color: var(--color-primary);
}

.col-route {
  min-width: 280px;
  width: 38%;
}

.route-link {
  font-weight: 600;
  display: block;
}

@media (min-width: 1024px) {
  .col-route .route-link {
    white-space: nowrap;
  }
}

.carrier-subtext {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.col-departure,
.col-arrival {
  white-space: nowrap;
}

.time-bold {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.station-subtext {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
}

.col-duration {
  white-space: nowrap;
  font-weight: 500;
  color: var(--color-text-muted);
}

.col-schedule {
  white-space: nowrap;
}

.schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background: #ecfdf5;
  color: #047857;
}

.days-workdays {
  background: #eff6ff;
  color: #1d4ed8;
}

.days-weekends {
  background: #fef2f2;
  color: #b91c1c;
}

/* Service / Train Detail Page Components */
.service-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.2;
}

.hero-tag.tag-number {
  background: #e0f2fe;
  color: #0369a1;
}

.hero-tag.tag-days {
  background: #f1f5f9;
  color: #475569;
}

.hero-tag.tag-type {
  background: #ecfdf5;
  color: #047857;
}

.service-route-sub {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 6px;
  margin-bottom: 16px;
}

.route-sub-arrow {
  color: var(--color-primary);
  margin: 0 4px;
}

.service-time-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 24px;
  box-shadow: var(--shadow-sm);
}

.banner-point {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

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

.banner-time {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
}

.banner-point.banner-dep .banner-time {
  color: #16a34a;
}

.banner-point.banner-arr .banner-time {
  color: #1d4ed8;
}

.banner-station {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.banner-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 260px;
}

.banner-duration-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.banner-track-line {
  display: flex;
  align-items: center;
  width: 100%;
}

.track-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.track-dot.dot-start {
  background: #22c55e;
}

.track-dot.dot-end {
  background: #3b82f6;
}

.track-bar {
  flex: 1;
  height: 2px;
  background: #cbd5e1;
}

.banner-stops-count {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .service-time-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
    padding: 16px;
  }
  .banner-middle {
    max-width: 100%;
  }
}

/* Timeline stops table */
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.stops-total-badge {
  font-size: 13px;
  font-weight: 600;
  background: var(--color-hover);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--color-text);
  white-space: nowrap;
}

.table-responsive-wrapper {
  position: relative;
}

.mobile-scroll-hint {
  display: none;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  text-align: right;
}

@media (max-width: 640px) {
  .mobile-scroll-hint {
    display: block;
  }
}

.timeline-table {
  min-width: 560px;
}

.timeline-table th {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f8fafc;
  color: #475569;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.timeline-table td {
  padding: 11px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
}

.timeline-origin {
  background: #f0fdf4 !important;
  border-left: 4px solid #22c55e !important;
}

.timeline-destination {
  background: #eff6ff !important;
  border-left: 4px solid #3b82f6 !important;
}

.timeline-station-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.station-name-bold {
  font-weight: 700;
  font-size: 15px;
}

.station-subbadge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge-start {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-end {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-current-city {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.dwell-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0284c7;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  white-space: nowrap;
}

.dwell-icon {
  flex-shrink: 0;
}

.station-name-link {
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.station-name-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.station-name-text {
  font-weight: 600;
  color: var(--color-text);
}

.time-dep-start {
  color: #16a34a !important;
  font-size: 15px;
  font-weight: 700;
}

.time-arr-end {
  color: #1d4ed8 !important;
  font-size: 15px;
  font-weight: 700;
}

.elapsed-text {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
}

.elapsed-total {
  font-weight: 700;
  color: #0f172a;
}

.time-dash {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Route Info & Alt Trains */
.route-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.info-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-text);
}

.info-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.info-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-detail-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.info-detail-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.alt-trains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.alt-train-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alt-train-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.alt-train-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alt-train-num {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary);
}

.alt-train-days {
  font-size: 11px;
  background: var(--color-hover);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.alt-train-route {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alt-train-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-top: 4px;
  border-top: 1px dashed var(--color-border);
  padding-top: 6px;
}

.alt-time-dep,
.alt-time-arr {
  font-weight: 700;
  color: var(--color-text);
}

.alt-time-dur {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Destination Pills */
.dest-block {
  margin: 16px 0 24px;
}

.dest-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.dest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dest-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.dest-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.dest-badge {
  background: var(--color-hover);
  color: var(--color-text-muted);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Alphabetical Catalog */
.alpha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.alpha-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.alpha-letter {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-hover);
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.alpha-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alpha-item {
  font-size: 13px;
}

.st-count {
  color: var(--color-text-muted);
  font-size: 11px;
}

/* FAQ Section (TransitApp style 2-column layout) */
/* FAQ Section (Modern Accordion Design) */
.faq-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-top: 40px;
}

.faq-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 24px;
}

.faq-badge-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  margin-bottom: 8px;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-accordion-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.faq-accordion-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-accordion-item[open] {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.faq-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: transparent;
  transition: background 0.15s ease;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover {
  background: rgba(248, 250, 252, 0.8);
}

.faq-q-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-question-text {
  flex: 1;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--color-text);
  line-height: 1.4;
}

.faq-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  flex-shrink: 0;
}

.faq-accordion-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer-content {
  padding: 0 20px 18px 62px;
  animation: faqFadeIn 0.2s ease-out;
}

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

.faq-answer-text {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.time-arr {
  font-weight: 700;
  color: #1e293b;
}

.time-dep {
  font-weight: 700;
  color: #1e293b;
}

/* SEO Content */
.seo-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.seo-content h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.seo-content p {
  margin-bottom: 8px;
}

.seo-content p:last-child {
  margin-bottom: 0;
}

/* Buttons */
.btn-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
}

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  padding: 32px 0 20px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

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

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  margin-bottom: 8px;
}

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

.footer-links a {
  color: var(--color-text-muted);
}

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

.footer-bottom {
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
  }
  .site-nav {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 6px;
    padding-bottom: 2px;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .site-header-directions-inner {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .site-header-directions-inner::-webkit-scrollbar {
    display: none;
  }
  .directions-nav {
    flex-wrap: nowrap;
  }
  .hero-title, .page-title {
    font-size: 22px;
  }
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
  .faq-section {
    padding: 22px 14px;
  }
  .faq-summary {
    padding: 14px 14px;
    gap: 10px;
  }
  .faq-question-text {
    font-size: 14.5px;
  }
  .faq-answer-content {
    padding: 0 14px 16px 14px;
  }
}

/* Async Global Search Dropdown */
.global-search-container {
  max-width: 640px;
  margin: 20px 0 0;
  position: relative;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 200;
  max-height: 380px;
  overflow-y: auto;
  margin-top: 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none !important;
  transition: background 0.15s ease;
  color: var(--color-text);
}

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

.search-result-item:hover {
  background: var(--color-hover);
}

.search-res-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}

.search-res-region {
  font-size: 12px;
  color: var(--color-text-muted);
}

.search-no-results {
  padding: 14px 16px;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}
