:root {
  --bg: #f5f1ea;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --panel-alt: #eef4f5;
  --primary: #0a2d46;
  --primary-dark: #071d2f;
  --primary-soft: #dfeef2;
  --secondary: #1b9bb0;
  --accent: #d8b36a;
  --success: #1d8b78;
  --warning: #d68a3c;
  --danger: #c95f4c;
  --ink: #1b2a35;
  --muted: #5f6d76;
  --line: #dfe6eb;
  --shadow: 0 18px 40px rgba(10, 45, 70, 0.12);
  --shadow-soft: 0 12px 22px rgba(17, 63, 85, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(143, 188, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
  color: var(--ink);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(19, 105, 172, 0.08), transparent 25%);
  pointer-events: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(10, 45, 70, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 24px rgba(10, 45, 70, 0.06);
  transition: all 0.25s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 60px;
  transition: min-height 0.25s ease;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #c89b50 100%);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(216, 179, 106, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(13, 92, 157, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 18px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(10, 45, 70, 0.03);
  transition: width 0.25s ease, height 0.25s ease, transform 0.25s ease;
}

.topbar.is-scrolled .nav-wrap {
  min-height: 52px;
}

.topbar.is-scrolled .brand-logo {
  width: 40px;
  height: 40px;
}

.topbar.is-scrolled .main-nav a {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.topbar.is-scrolled .nav-login-btn {
  min-width: 96px;
  padding: 8px 14px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--primary);
  font-size: 1.06rem;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(10, 45, 70, 0.03);
  border: 1px solid rgba(10, 45, 70, 0.06);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: all 0.22s ease;
}

.main-nav a.active,
.main-nav a:hover {
  background: rgba(27, 155, 176, 0.08);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(27, 155, 176, 0.12);
}

.main-nav a.active {
  background: linear-gradient(135deg, rgba(27, 155, 176, 0.12), rgba(10, 45, 70, 0.04));
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: -26px auto 18px;
  position: relative;
  z-index: 2;
}

html.has-scroll-reveal .scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.has-scroll-reveal .scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.has-scroll-reveal .home-stats .stat-item:nth-child(2),
html.has-scroll-reveal .features .feature-card:nth-child(2),
html.has-scroll-reveal .spotlight .persona-card:nth-child(2) {
  transition-delay: 70ms;
}

html.has-scroll-reveal .home-stats .stat-item:nth-child(3),
html.has-scroll-reveal .features .feature-card:nth-child(3),
html.has-scroll-reveal .spotlight .persona-card:nth-child(3) {
  transition-delay: 140ms;
}

html.has-scroll-reveal .home-stats .stat-item:nth-child(4),
html.has-scroll-reveal .features .feature-card:nth-child(4),
html.has-scroll-reveal .spotlight .persona-card:nth-child(4) {
  transition-delay: 210ms;
}

.stat-item {
  background: var(--panel-strong);
  border: 1px solid rgba(10, 45, 70, 0.08);
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stat-icon {
  display: block;
  margin: 0 auto 10px;
  color: var(--secondary);
  font-size: 50px;
  line-height: 1;
}

.stat-item strong {
  display: block;
  color: var(--primary);
  font-size: clamp(1.7rem, 2vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.stat-item span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero {
  position: relative;
  padding: 0;
  background: linear-gradient(160deg, rgba(220, 233, 255, 0.8), rgba(247, 251, 255, 0.98));
}

.hero-slider-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 80vh;
  min-height: 520px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(141, 166, 199, 0.3);
  box-shadow: none;
  background: #dfeaf7;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 56px 10vw;
  background-image: linear-gradient(90deg, rgba(7, 32, 47, 0.76), rgba(7, 32, 47, 0.18)), var(--slide-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slide-content {
  max-width: 540px;
  color: #ffffff;
}

.slide-content h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  margin-bottom: 14px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.slide-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
  margin: 0 0 20px;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.86);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary-dark);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(6, 23, 35, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.04);
}

.slider-arrow.prev {
  left: 18px;
}

.slider-arrow.next {
  right: 18px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.dot-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dot-btn.is-active {
  background: #ffffff;
  transform: scale(1.17);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.95fr;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary);
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.1rem);
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
}

.lead {
  max-width: 590px;
  font-size: 1.08rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 28px;
}

.primary-btn,
.secondary-btn,
.filter-button,
.faq-question,
button {
  border: none;
  cursor: pointer;
  font: inherit;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 16px 28px rgba(13, 92, 157, 0.22);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

.primary-btn:hover,
.secondary-btn:hover,
.filter-button:hover,
.faq-question:hover {
  transform: translateY(-1px);
}

.mini-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 0;
}

.mini-stats li {
  min-width: 120px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(127, 171, 219, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.mini-stats strong,
.mini-stats span {
  display: block;
}

.mini-stats strong {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.status-card,
.feature-card,
.persona-card,
.route-card,
.update-card,
.support-card,
.feedback-form,
.status-panel,
.schedule-box,
.faq-item,
.filter-bar {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(141, 166, 199, 0.25);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.status-card {
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 255, 0.9));
}

.status-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(43, 157, 106, 0.18);
}

.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.tag.success,
.badge.resolved {
  background: rgba(43, 157, 106, 0.12);
  color: var(--success);
}

.tag.info,
.badge.processing {
  background: rgba(13, 92, 157, 0.1);
  color: var(--primary);
}

.tag.warning {
  background: rgba(218, 138, 36, 0.12);
  color: var(--warning);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.mini-grid div {
  background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(150, 180, 221, 0.3);
}

.mini-grid small {
  display: block;
  color: var(--muted);
}

.mini-grid strong {
  font-size: 1.22rem;
}

.routes-preview {
  padding: 28px 0 18px;
}

.routes-preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 248, 255, 0.92));
  border: 1px solid rgba(141, 166, 199, 0.25);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.routes-map-card {
  background: linear-gradient(180deg, #edf5ff 0%, #f4f9ff 100%);
  border: 1px solid rgba(129, 158, 198, 0.22);
  border-radius: 22px;
  padding: 12px;
}

.routes-map-image {
  overflow: hidden;
  border-radius: 18px;
  background: #ebf4fe;
}

.routes-map-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.routes-copy {
  padding: 10px 4px;
}

.route-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 92, 157, 0.1);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.routes-copy h3 {
  margin: 18px 0 12px;
  font-size: clamp(1.7rem, 2vw, 2.3rem);
  letter-spacing: -0.04em;
}

.routes-copy p {
  color: var(--muted);
  margin: 0 0 18px;
}

.route-points {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.route-points li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-weight: 600;
}

.route-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6fc1ff);
  box-shadow: 0 0 0 4px rgba(13, 92, 157, 0.14);
}

.features,
.spotlight {
  padding: 54px 0;
}

.features {
  width: 100%;
  max-width: none;
  margin: 32px 0;
  padding: 64px max(18px, calc((100% - 1160px) / 2));
  background: linear-gradient(120deg, #eaf3f3 0%, #f4f1e8 100%);
  border-block: 1px solid rgba(10, 45, 70, 0.08);
}

.features .section-heading {
  max-width: 720px;
  margin: 0 0 30px;
  text-align: left;
}

.features .section-heading .eyebrow {
  color: var(--secondary);
}

.section-heading {
  margin-bottom: 26px;
  text-align: center;
}

.section-heading.left {
  text-align: left;
}

.section-heading h2 {
  margin-bottom: 0;
}

.feature-grid,
.stakeholder-grid,
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.persona-card,
.support-card {
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.features .feature-card {
  min-height: 230px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid rgba(10, 45, 70, 0.1);
  border-top: 3px solid var(--secondary);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(10, 45, 70, 0.07);
}

.features .feature-card:nth-child(2) {
  border-top-color: var(--accent);
}

.features .feature-card:nth-child(3) {
  border-top-color: var(--success);
}

.features .feature-card:nth-child(4) {
  border-top-color: var(--primary);
}

.feature-card:hover,
.persona-card:hover,
.support-card:hover,
.update-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(22, 39, 59, 0.1);
}

.feature-card .icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13, 92, 157, 0.12), rgba(88, 169, 255, 0.22));
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.features .feature-card .icon {
  border-radius: 14px;
  background: var(--panel-alt);
}

.persona-card {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242,247,255,0.92));
  border: 1px solid rgba(141, 166, 199, 0.25);
}

.persona-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), #7cc6ff);
}

.persona-card--residents::before { background: linear-gradient(90deg, #1ca574, #6ad7ae); }
.persona-card--commuters::before { background: linear-gradient(90deg, #0d5c9d, #62a9ff); }
.persona-card--businesses::before { background: linear-gradient(90deg, #d98d2a, #f4c66f); }
.persona-card--authorities::before { background: linear-gradient(90deg, #3d5ef0, #7aa0ff); }

.persona-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  background: rgba(13, 92, 157, 0.08);
  color: var(--primary);
  margin-bottom: 12px;
}

.persona-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.persona-card ul,
.route-list,
.concern-list,
.support-list {
  margin: 0;
  padding-left: 18px;
}

.route-item {
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.route-item:hover,
.route-item.active {
  background: rgba(13, 92, 157, 0.08);
  color: var(--primary-dark);
  transform: translateX(3px);
}

.persona-card li,
.route-list li,
.concern-list li,
.support-list div {
  margin-bottom: 6px;
}

.page-shell {
  padding: 42px 0 68px;
}

.page-header {
  margin-bottom: 28px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: stretch;
  background: linear-gradient(180deg, #edf5ff 0%, #f8fbff 100%);
}

.auth-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.auth-visual {
  position: relative;
  min-height: 100vh;
  background-image: linear-gradient(180deg, rgba(8, 26, 40, 0.38), rgba(8, 26, 40, 0.68)), url('assets/slide1.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  padding: 34px;
}

.auth-visual-overlay {
  max-width: 370px;
  color: #ffffff;
}

.auth-visual-overlay h2 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.auth-visual-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.auth-card {
  width: 100%;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.96);
  padding: 56px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header {
  margin-bottom: 22px;
}

.auth-header .eyebrow {
  margin-bottom: 8px;
}

.auth-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-card [hidden] {
  display: none !important;
}

.recovery-step {
  gap: 20px;
}

.recovery-intro h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.recovery-intro .auth-help-text {
  margin: 0;
}

.recovery-demo-code {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(13, 92, 157, 0.14);
  border-radius: 12px;
  background: rgba(13, 92, 157, 0.06);
  color: var(--ink);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.recovery-form {
  gap: 16px;
}

.auth-field input.recovery-code-input {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  font-variant-numeric: tabular-nums;
}

.recovery-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 2px;
}

.recovery-secondary {
  border: 0;
  padding: 6px 4px;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.recovery-secondary:hover {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recovery-secondary:focus-visible {
  outline: 3px solid rgba(13, 92, 157, 0.28);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .recovery-actions {
    column-gap: 8px;
  }

  .recovery-page .auth-page {
    padding: 24px;
  }

  .recovery-page .auth-shell {
    width: min(100%, 560px);
    min-height: 0;
    display: block;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(10, 45, 70, 0.14);
  }

  .recovery-page .auth-visual {
    display: none;
  }

  .recovery-page .auth-card {
    min-height: 0;
    padding: clamp(28px, 7vw, 48px);
  }
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.auth-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(141, 166, 199, 0.36);
  background: rgba(244, 249, 255, 0.85);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(13, 92, 157, 0.7);
  box-shadow: 0 0 0 4px rgba(13, 92, 157, 0.08);
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.auth-options a,
.auth-link {
  color: var(--primary);
  font-weight: 700;
}

.checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.checkbox-wrap input {
  accent-color: var(--primary);
}

.primary-btn,
.auth-submit {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(10, 45, 70, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(13, 92, 157, 0.26);
}

.auth-help-text {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-footer-inline {
  margin-top: 8px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  margin-bottom: 22px;
}

.filter-button {
  background: transparent;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--muted);
  font-weight: 700;
  transition: all 0.2s ease;
}

.filter-button.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 10px 20px rgba(13, 92, 157, 0.22);
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.update-card {
  overflow: hidden;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-visual {
  margin: 0;
  background: linear-gradient(180deg, #edf5ff 0%, #f5f9ff 100%);
  border-bottom: 1px solid rgba(141, 166, 199, 0.22);
}

.update-visual img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.update-content {
  padding: 20px 20px 18px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.blog-card[hidden] {
  display: none;
}

.blog-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.blog-more-button {
  min-width: 210px;
  border-radius: 999px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid rgba(141, 166, 199, 0.25);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(10, 45, 70, 0.16);
}

.blog-card > img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.blog-card-content {
  padding: 22px;
}

.blog-card-content h2 {
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 0 10px;
}

.blog-card-content p {
  color: var(--muted);
  margin: 0 0 14px;
}

.blog-read-link {
  margin-top: 4px;
  border-radius: 999px;
}

.blog-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.blog-card-featured > img {
  height: 100%;
  min-height: 280px;
}

.blog-card-featured .blog-card-content {
  align-self: center;
  padding: 30px;
}

.blog-post {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(141, 166, 199, 0.25);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.blog-post-image {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.blog-post-content {
  padding: clamp(22px, 5vw, 48px);
}

.blog-post-content h1 {
  color: var(--primary);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}

.blog-post-body {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-post-body p {
  margin: 0 0 18px;
}

.blog-post-back {
  display: inline-block;
  margin-top: 16px;
}

.blog-comments {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.blog-comments h2 {
  color: var(--primary);
  margin: 0 0 18px;
}

.blog-comment-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-comment {
  padding: 16px;
  border: 1px solid rgba(141, 166, 199, 0.25);
  border-radius: 14px;
  background: rgba(245, 249, 255, 0.75);
}

.blog-comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.blog-comment-meta strong {
  color: var(--primary);
}

.blog-comment-message {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.blog-comment-empty,
.blog-comment-status {
  color: var(--muted);
}

.blog-comment-form {
  margin-top: 22px;
}

.blog-comment-form button {
  justify-self: start;
}

.blog-comment-status:empty {
  display: none;
}

.blog-post-not-found {
  max-width: 760px;
  margin: 0 auto;
}

.text-link {
  color: var(--secondary);
  font-weight: 800;
}

.text-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.update-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.route-layout,
.feedback-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.route-layout {
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}

.route-card,
.feedback-form,
.status-panel,
.schedule-box {
  padding: 26px 24px;
}

.area-map-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  min-height: 420px;
  margin: 18px 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(146, 170, 211, 0.35);
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

.trip-planner {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
}

.destination-field {
  position: relative;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.destination-field input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.place-suggestions {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 3px);
  right: 0;
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 39, 59, 0.16);
}

.place-suggestions[hidden] {
  display: none;
}

.place-suggestion {
  display: block;
  width: 100%;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
  white-space: normal;
}

.place-suggestion:hover,
.place-suggestion:focus-visible {
  background: #edf5fb;
}

.location-button {
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.location-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.location-button.is-active {
  background: #a33c3c;
}

.location-button.is-active:hover {
  background: #873131;
}

.route-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 12px 0 0;
  padding: 11px 14px;
  border: 1px solid rgba(13, 92, 157, 0.12);
  border-radius: 12px;
  background: #edf5fb;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.route-status::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: #1b9bb0;
  box-shadow: 0 0 0 4px rgba(27, 155, 176, 0.12);
  content: "";
  vertical-align: 1px;
}

.route-map-stage {
  position: relative;
  isolation: isolate;
}

.drive-panel {
  position: absolute;
  z-index: 650;
  right: 14px;
  bottom: 14px;
  left: 14px;
  max-height: 62%;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(16, 35, 52, 0.22);
  backdrop-filter: blur(14px);
}

.drive-panel[hidden] {
  display: none;
}

.drive-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drive-panel-header .location-button {
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #102c3d, #0b8198);
  box-shadow: 0 8px 18px rgba(16, 44, 61, 0.18);
}

.drive-panel-header .location-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #0b2331, #086a7b);
}

.drive-panel-header h4,
.drive-summary {
  margin: 0;
}

.drive-panel-header h4 {
  color: var(--primary-dark);
  font-size: 1rem;
}

.drive-summary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.drive-endpoints {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.drive-endpoints div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-left: 10px;
  border-left: 3px solid #0878c9;
}

.drive-endpoints .drive-end {
  border-left-color: #d94f4f;
}

.drive-endpoints span,
.drive-endpoints strong {
  overflow-wrap: anywhere;
}

.drive-endpoints span {
  color: var(--muted);
  font-size: 0.78rem;
}

.navigation-status {
  margin: 12px 0 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #edf5fb;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.drive-steps {
  max-height: 110px;
  overflow-y: auto;
  margin: 0;
  padding-left: 28px;
}

.drive-steps li {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
}

.drive-steps li.active {
  border-radius: 6px;
  background: #eaf4fb;
  color: var(--primary-dark);
  font-weight: 700;
}

.drive-steps small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
}

.map-credit {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

#routeMap {
  width: 100%;
  height: 420px;
  min-height: 420px;
  max-width: 100%;
  border-radius: 18px;
}

#routeMap:fullscreen,
#routeMap.map-fullscreen-fallback {
  position: fixed !important;
  z-index: 2000;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  background: #edf6ff;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-radius: 12px;
}

.route-marker {
  border: 0;
  background: transparent;
}

.route-marker span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 35, 52, 0.35);
  font-size: 21px;
  line-height: 1;
}

.current-location-marker span {
  background: #0878c9;
}

.destination-marker span {
  background: #d94f4f;
}

.zone-map-label {
  background: transparent;
  border: 0;
}

.zone-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 8px;
  border: 1px solid rgba(44, 62, 80, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(14, 27, 38, 0.12);
  color: var(--primary-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.zone-label.zone-a {
  color: #1d7a4d;
}

.zone-label.zone-b {
  color: #bb7d00;
}

.zone-label.zone-c {
  color: #b93a3a;
}

.map-fullscreen-control {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: 5px;
  background: #fff !important;
  color: #263746 !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

.map-fullscreen-control:hover {
  background: #f2f6f8 !important;
}

#routeMap .leaflet-top.leaflet-left .map-center-control {
  margin-top: 8px !important;
}

.map-center-control {
  display: flex;
  min-width: 170px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 0 !important;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: 12px;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  color: #263746 !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.map-center-control .map-center-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.map-center-control:hover {
  background: #f2f6f8 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.area-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.status-legend {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.75);
}

.legend-dot.completed {
  background: var(--success);
}

.legend-dot.active {
  background: var(--warning);
}

.legend-dot.pending {
  background: var(--danger);
}

.legend-dot.completed::before,
.legend-dot.active::before,
.legend-dot.pending::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
}

.schedule-box {
  margin-top: 24px;
}

.schedule-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fbff 0%, #edf5ff 100%);
}

.schedule-row.head {
  background: rgba(13, 92, 157, 0.08);
  font-weight: 800;
}

.status.good {
  color: var(--success);
  font-weight: 700;
}

.status.caution {
  color: var(--warning);
  font-weight: 700;
}

.status.limited {
  color: var(--danger);
  font-weight: 700;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: rgba(13, 92, 157, 0.32);
  box-shadow: 0 0 0 4px rgba(13, 92, 157, 0.08);
}

.feedback-form textarea {
  min-height: 136px;
  resize: vertical;
}

.concern-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.concern-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
}

.concern-list span,
.concern-list strong {
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.business-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-card {
  display: grid;
  gap: 14px;
}

.support-card a {
  color: var(--primary);
  font-weight: 700;
}

.support-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.support-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
  border-radius: 12px;
  padding: 12px 14px;
  gap: 10px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: transparent;
  padding: 20px 22px;
  font-weight: 700;
  color: var(--ink);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-page {
  padding-top: 34px;
}

.faq-hero {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  margin-bottom: 36px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(52, 178, 191, 0.35), transparent 28%),
    linear-gradient(120deg, #08283b 0%, #0a4057 66%, #126779 100%);
  box-shadow: 0 24px 48px rgba(10, 45, 70, 0.18);
}

.faq-hero::after {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  right: 24%;
  bottom: -214px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.035), 0 0 0 58px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.faq-hero > div,
.faq-hero-link {
  position: relative;
  z-index: 1;
}

.faq-hero .eyebrow {
  color: #9ce0dc;
}

.faq-hero h1 {
  max-width: 650px;
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.faq-hero > div > p:last-child {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.faq-hero-link {
  flex: 0 0 225px;
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-hero-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.faq-hero-link span {
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: 28px;
}

.faq-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 2px 0 18px;
}

.faq-section-heading .eyebrow,
.faq-ask-card .eyebrow {
  margin-bottom: 7px;
}

.faq-section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.faq-search {
  width: min(250px, 42%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
}

.faq-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.faq-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
}

.faq-item {
  border-radius: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.active {
  border-color: rgba(27, 155, 176, 0.32);
  box-shadow: 0 12px 26px rgba(10, 45, 70, 0.08);
}

.faq-question {
  min-height: 68px;
  transition: color 0.2s ease;
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-toggle {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--panel-alt);
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-answer a {
  color: var(--secondary);
  font-weight: 700;
}

.faq-no-results {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px dashed rgba(10, 45, 70, 0.22);
  border-radius: 14px;
  color: var(--muted);
}

.faq-ask-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(141, 166, 199, 0.3);
  border-radius: 22px;
  background: linear-gradient(155deg, #fff 0%, #f5fafb 100%);
  box-shadow: var(--shadow);
}

.faq-ask-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: #dff3f1;
  color: #087c86;
  font-size: 1.45rem;
  font-weight: 800;
}

.faq-ask-card h2 {
  margin: 0 0 9px;
  font-size: 1.6rem;
  letter-spacing: -0.035em;
}

.faq-ask-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-question-form {
  display: grid;
  gap: 9px;
}

.faq-question-form label {
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.faq-question-form label span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.faq-question-form input,
.faq-question-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-question-form textarea {
  min-height: 108px;
  resize: vertical;
}

.faq-question-form input:focus,
.faq-question-form textarea:focus,
.faq-search:focus-within {
  outline: none;
  border-color: rgba(27, 155, 176, 0.62);
  box-shadow: 0 0 0 4px rgba(27, 155, 176, 0.1);
}

.faq-demo-note {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.faq-question-form .primary-btn {
  justify-self: start;
  gap: 10px;
  padding: 11px 17px;
}

.faq-form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--success);
  font-size: 0.84rem;
}

.faq-form-status[data-state="error"] {
  color: var(--danger);
}

.faq-submitted {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.faq-submitted h3 {
  margin: 0 0 10px;
  font-size: 0.97rem;
}

.faq-submitted-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-submitted-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: #edf5f5;
  color: var(--ink);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.faq-submitted-list .faq-submitted-empty {
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-ask-card {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .faq-page {
    padding-top: 24px;
  }

  .faq-hero {
    display: grid;
    gap: 22px;
    margin-bottom: 28px;
    border-radius: 22px;
  }

  .faq-hero-link {
    width: 100%;
  }

  .faq-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-search {
    width: 100%;
  }

  .faq-question {
    padding: 17px;
  }

  .faq-answer {
    padding: 0 17px 18px;
  }

  .faq-ask-card {
    padding: 22px;
  }
}

.footer {
  position: relative;
  margin-top: 32px;
  background: linear-gradient(135deg, #081922 0%, #102b3b 38%, #0b2336 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 30px 0 26px;
  border-top: 1px solid rgba(148, 179, 218, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.footer-row p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
}

.footer-row p:first-child {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-row p:last-child {
  text-align: right;
}

@media (max-width: 900px) {
  .hero-grid,
  .route-layout,
  .feedback-layout,
  .feature-grid,
  .stakeholder-grid,
  .business-grid,
  .updates-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-card-featured {
    grid-template-columns: 1fr;
  }

  .blog-card-featured > img {
    height: 220px;
    min-height: 0;
  }

  .hero-grid,
  .route-layout,
  .feedback-layout {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 10px;
  }

  .features {
    padding-block: 52px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    padding-bottom: 8px;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .stakeholder-grid,
  .business-grid,
  .updates-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-featured {
    grid-column: auto;
  }

  .mini-stats {
    flex-direction: column;
  }

  .hero {
    padding-top: 52px;
  }

  .features {
    margin: 20px 0;
    padding: 42px 18px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .trip-planner {
    grid-template-columns: 1fr;
  }

  .location-button {
    width: 100%;
  }

  .drive-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .drive-endpoints {
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
}

.home-page {
  --home-ink: #102c3d;
  --home-muted: #647783;
  background:
    radial-gradient(ellipse at 10% 22%, rgba(27, 155, 176, 0.08), transparent 32%),
    linear-gradient(180deg, #f7faf9 0%, #ffffff 54%, #f4f8f7 100%);
}

.home-page::before {
  display: none;
}

.home-page .topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(16, 44, 61, 0.07);
  box-shadow: 0 8px 30px rgba(16, 44, 61, 0.06);
}

.home-page .nav-wrap {
  min-height: 76px;
  gap: 18px;
}

.home-page .brand-logo {
  width: 54px;
  height: 54px;
}

.home-page .main-nav {
  gap: 2px;
  padding: 5px;
  background: #f4f7f7;
  border-color: rgba(16, 44, 61, 0.06);
}

.home-page .main-nav a {
  padding: 9px 11px;
  font-size: 0.82rem;
}

.home-page .main-nav a.active,
.home-page .main-nav a:hover {
  background: #ffffff;
  color: var(--secondary);
  box-shadow: 0 2px 8px rgba(16, 44, 61, 0.08);
}

.home-page .nav-login-btn {
  min-width: 96px;
  padding: 10px 18px;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(10, 45, 70, 0.16);
}

.home-page .nav-login-btn:hover {
  background: var(--secondary);
}

.home-page .hero {
  padding: 22px 22px 0;
  background: transparent;
}

.home-page .hero-slider-wrap {
  max-width: 1440px;
  margin: 0 auto;
}

.home-page .hero-slider {
  height: min(74vh, 780px);
  min-height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(8, 33, 49, 0.2);
  background: var(--primary-dark);
}

.home-page .slide {
  padding: 64px clamp(32px, 9vw, 132px);
  background-image:
    linear-gradient(90deg, rgba(5, 27, 42, 0.86) 0%, rgba(5, 27, 42, 0.58) 44%, rgba(5, 27, 42, 0.08) 100%),
    var(--slide-image);
}

.home-page .slide-content {
  width: 100%;
  max-width: 70%;
}

.home-page .slide-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  letter-spacing: 0.16em;
}

.home-page .slide-content .eyebrow::before {
  width: 24px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.home-page .slide-content h2 {
  max-width: 100%;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.home-page .slide-content > p:not(.eyebrow) {
  max-width: 100%;
  font-size: 1.08rem;
  line-height: 1.75;
}

.home-page .slide-content > * {
  width: 100%;
  max-width: 100%;
}

.home-page .slide-content .primary-btn {
  width: fit-content;
  margin-top: 6px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.home-page .slide-content .primary-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.home-page .slider-arrow {
  width: 50px;
  height: 50px;
}

.home-page .slider-arrow.prev {
  left: 24px;
}

.home-page .slider-arrow.next {
  right: 24px;
}

.home-page .slider-dots {
  bottom: 64px;
}

.home-page .dot-btn {
  width: 9px;
  height: 9px;
}

.home-page .dot-btn.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--accent);
  transform: none;
}

.home-page .home-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(1060px, calc(100% - 56px));
  margin: -42px auto 0;
  padding: 18px 10px;
  border: 1px solid rgba(16, 44, 61, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(16, 44, 61, 0.12);
}

.home-page .stat-item {
  padding: 8px 16px;
  border: 0;
  border-right: 1px solid rgba(16, 44, 61, 0.09);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .stat-item:last-child {
  border-right: 0;
}

.home-page .stat-icon {
  margin-bottom: 8px;
  font-size: 28px;
}

.home-page .stat-item strong {
  font-size: 1.8rem;
}

.home-page .stat-item span {
  font-size: 0.84rem;
}

.home-page .home-welcome {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
  gap: 50px;
  padding-top: 94px;
  padding-bottom: 24px;
}

.home-welcome h1 {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--home-ink);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.1;
}

.home-page .home-welcome .eyebrow,
.home-page .routes-preview .eyebrow,
.home-page .features .eyebrow,
.home-page .spotlight .eyebrow {
  color: var(--secondary);
}

.home-welcome-copy p {
  margin: 0 0 16px;
  color: var(--home-muted);
  font-size: 1.02rem;
}

.home-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid rgba(10, 45, 70, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 750;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-quick-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 155, 176, 0.45);
  color: var(--secondary);
}

.home-page .routes-preview {
  padding-top: 38px;
  padding-bottom: 42px;
}

.home-page .routes-preview .section-heading {
  margin-bottom: 22px;
}

.home-page .routes-preview-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  align-items: stretch;
  gap: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .routes-map-card {
  display: block;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(141, 166, 199, 0.25);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.home-page .routes-map-embed {
  display: block;
  width: 100%;
  height: 650px;
  border: 0;
  border-radius: 14px;
  background: #f8fbff;
}

.home-page .routes-copy {
  padding: 28px;
  border: 1px solid rgba(141, 166, 199, 0.25);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.home-page .route-badge {
  background: #e7f5f3;
  color: #167a72;
}

.home-page .routes-copy h3 {
  color: var(--home-ink);
}

.home-page .features {
  margin: 26px 0;
  padding-top: 76px;
  padding-bottom: 76px;
  background: #f0f5f4;
  border: 0;
}

.home-page .features .section-heading {
  max-width: 650px;
  margin-bottom: 34px;
}

.home-page .features .section-heading h2,
.home-page .spotlight .section-heading h2,
.home-page .routes-preview .section-heading h2 {
  color: var(--home-ink);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  letter-spacing: -0.045em;
}

.home-page .features .feature-card {
  min-height: 245px;
  padding: 28px 24px;
  border: 1px solid rgba(16, 44, 61, 0.07);
  border-top: 0;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(16, 44, 61, 0.06);
}

.home-page .features .feature-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #e9f3f2;
}

.home-page .features .feature-card h3 {
  color: var(--home-ink);
}

.home-page .features .feature-card p {
  color: var(--home-muted);
}

.home-page .spotlight {
  padding-top: 62px;
  padding-bottom: 76px;
}

.home-page .spotlight .section-heading {
  max-width: 660px;
}

.home-page .spotlight .persona-card {
  min-height: 250px;
  padding: 28px 24px;
  border-color: rgba(16, 44, 61, 0.07);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 44, 61, 0.06);
}

.home-page .spotlight .persona-card::before {
  height: 4px;
}

.home-page .spotlight .persona-card h3 {
  color: var(--home-ink);
}

.home-page .spotlight .persona-card li {
  color: var(--home-muted);
}

.home-page .footer {
  margin-top: 0;
}

.home-page .nav-actions {
  gap: 10px;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 58px;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid rgba(16, 44, 61, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--home-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.language-switcher:focus-within {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.language-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.language-code {
  min-width: 18px;
  text-align: center;
}

.language-switcher select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.home-editorial {
  padding-top: 62px;
  padding-bottom: 62px;
}

.home-editorial-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.home-editorial-heading .eyebrow {
  margin-bottom: 8px;
}

.home-editorial-heading h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  letter-spacing: -0.045em;
}

.home-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-editorial-card {
  overflow: hidden;
  border: 1px solid rgba(16, 44, 61, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 44, 61, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(16, 44, 61, 0.12);
}

.home-editorial-card > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #eaf2f2;
}

.home-editorial-card-content {
  padding: 20px;
}

.home-editorial-card-content .tag {
  display: inline-flex;
  margin-bottom: 10px;
}

.home-editorial-card-content .editorial-date {
  margin: 0 0 8px;
  color: var(--home-muted);
  font-size: 0.78rem;
}

.home-editorial-card-content h3 {
  margin: 0 0 10px;
  color: var(--home-ink);
  font-size: 1.16rem;
  letter-spacing: -0.025em;
}

.home-editorial-card-content > p:not(.editorial-date) {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--home-muted);
  font-size: 0.9rem;
}

.home-blog {
  padding-top: 54px;
  padding-bottom: 74px;
}

.home-page .home-editorial .text-link {
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .home-page .routes-preview-grid {
    grid-template-columns: 1fr;
  }

  .home-page .nav-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    min-height: 0;
    gap: 10px 16px;
    padding: 10px 0;
  }

  .home-page .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  .home-page .nav-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .home-page .main-nav {
    grid-row: 2;
  }

  .home-editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-editorial-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .home-page .slider-arrow {
    top: 32px;
  }

  .home-page .slider-arrow.prev {
    right: 78px;
    left: auto;
  }

  .home-page .slider-arrow.next {
    right: 20px;
  }

  .home-page .home-welcome {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 74px;
  }
}

@media (max-width: 560px) {
  .home-page .hero {
    padding: 12px 10px 0;
  }

  .home-page .hero-slider {
    height: 72vh;
    min-height: 500px;
    border-radius: 22px;
  }

  .home-page .slide {
    align-items: flex-end;
    padding: 34px 26px 70px;
    background-image:
      linear-gradient(0deg, rgba(5, 27, 42, 0.86) 0%, rgba(5, 27, 42, 0.54) 54%, rgba(5, 27, 42, 0.08) 100%),
      var(--slide-image);
    background-position: center;
  }

  .home-page .slide-content {
    max-width: 100%;
  }

  .home-page .slide-content h2 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
  }

  .home-page .slide-content > p:not(.eyebrow) {
    font-size: 0.94rem;
  }

  .home-page .slider-arrow {
    top: 28px;
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }

  .home-page .slider-arrow.prev {
    right: 62px;
    left: auto;
  }

  .home-page .slider-arrow.next {
    right: 14px;
  }

  .home-page .slider-dots {
    left: 26px;
    bottom: 38px;
    transform: none;
  }

  .home-page .home-stats {
    grid-template-columns: 1fr 1fr;
    width: calc(100% - 30px);
    margin-top: -24px;
    padding: 12px 8px;
    border-radius: 18px;
  }

  .home-page .stat-item {
    padding: 12px 6px;
    border-right: 1px solid rgba(16, 44, 61, 0.09);
    border-bottom: 1px solid rgba(16, 44, 61, 0.09);
  }

  .home-page .stat-item:nth-child(2) {
    border-right: 0;
  }

  .home-page .stat-item:nth-child(n + 3) {
    border-bottom: 0;
  }

  .home-page .stat-icon {
    font-size: 24px;
  }

  .home-page .stat-item strong {
    font-size: 1.55rem;
  }

  .home-page .home-welcome {
    padding-top: 60px;
  }

  .home-page .home-quick-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-page .nav-actions {
    flex-wrap: wrap;
  }

  .language-switcher {
    gap: 4px;
    padding: 5px 7px;
  }

  .language-switcher select {
    max-width: 96px;
  }

  .home-editorial {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .home-editorial-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .home-editorial-grid {
    grid-template-columns: 1fr;
  }

  .home-editorial-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .home-editorial-card > img {
    height: 210px;
  }

  .home-editorial-card-content > p:not(.editorial-date) {
    min-height: 0;
  }

  .home-page .routes-preview-grid {
    gap: 14px;
  }

  .home-page .routes-map-card,
  .home-page .routes-copy {
    padding: 18px;
    border-radius: 18px;
  }

  .home-page .routes-map-embed {
    height: 690px;
  }

  .home-page .routes-copy {
    padding: 20px;
  }

  .home-page .features {
    padding: 48px 18px;
  }

  .home-page .spotlight {
    padding-top: 42px;
    padding-bottom: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .nav-wrap {
    gap: 12px;
  }

  .main-nav {
    gap: 2px;
    padding: 4px;
  }

  .main-nav a {
    padding: 8px 9px;
    font-size: 0.82rem;
  }

  .nav-login-btn {
    min-width: 92px;
    padding-inline: 14px;
  }

  .language-switcher {
    gap: 4px;
    padding-inline: 7px;
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    align-items: stretch;
    gap: 12px;
  }

  .brand {
    align-self: flex-start;
  }

  .nav-actions {
    align-self: stretch;
    justify-content: flex-end;
  }

  .main-nav {
    gap: 4px;
    padding: 5px;
    border-radius: 20px;
  }

  .main-nav a {
    padding: 8px 10px;
    font-size: 0.84rem;
    line-height: 1.3;
    text-align: center;
  }

  .home-page .nav-actions {
    align-self: stretch;
  }

  .home-page .main-nav {
    gap: 2px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 28px);
  }

  .page-shell {
    padding: 30px 0 48px;
  }

  .page-header {
    margin-bottom: 22px;
  }

  .page-header h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    overflow-wrap: anywhere;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 3px;
    padding: 4px;
  }

  .main-nav a {
    padding: 7px 8px;
    font-size: 0.78rem;
  }

  .nav-actions {
    gap: 8px;
  }

  .language-switcher {
    gap: 0;
    padding: 4px 7px;
  }

  .language-switcher select {
    width: 100%;
    max-width: none;
  }

  .nav-login-btn,
  .topbar.is-scrolled .nav-login-btn {
    min-width: 84px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .page-shell,
  .page-shell > *,
  .route-layout > *,
  .feedback-layout > *,
  .updates-grid > *,
  .blog-grid > * {
    min-width: 0;
  }

  .page-shell h1,
  .page-shell h2,
  .page-shell h3,
  .page-shell p,
  .page-shell a,
  .page-shell button {
    overflow-wrap: anywhere;
  }

  .footer-row p:last-child {
    text-align: left;
  }

  .home-page .main-nav {
    justify-content: center;
    gap: 2px;
  }

  .home-page .main-nav a {
    padding: 7px 8px;
    font-size: 0.76rem;
  }

  .home-page .language-switcher {
    padding: 4px 6px;
  }

  .home-page .language-switcher select {
    width: 100%;
    max-width: none;
  }
}

html[lang="ms-MY"] .home-page .slide-content h2 {
  max-width: 100%;
  font-size: clamp(2.15rem, 3.7vw, 3.8rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

html[lang="ms-MY"] .home-page .slide-content {
  max-width: 70%;
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  font-family: inherit;
}

.chat-launcher {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 32px rgba(9, 45, 75, 0.3);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(9, 45, 75, 0.35);
}

.chat-launcher-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: flex;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 110px));
  min-height: 380px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(141, 166, 199, 0.3);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(11, 35, 54, 0.25);
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #0d4264, #127d99);
  color: #fff;
}

.chat-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 800;
}

.chat-header-copy {
  min-width: 0;
  flex: 1;
}

.chat-header-copy h2 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.chat-header-copy p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8df2b0;
  box-shadow: 0 0 0 3px rgba(141, 242, 176, 0.16);
}

.chat-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.45rem;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.chat-demo-note {
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px solid #e8eef2;
  background: #f5f9fb;
  color: #667987;
  font-size: 0.68rem;
  line-height: 1.45;
}

.chat-messages {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 16px;
  background: #fbfcfd;
  overscroll-behavior: contain;
}

.chat-message {
  display: grid;
  max-width: 88%;
  gap: 5px;
}

.user-message {
  align-self: flex-end;
  justify-items: end;
}

.chat-bubble {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #eef2f6;
  color: #263b4d;
  font-size: 0.83rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.user-message .chat-bubble {
  border-radius: 14px 14px 4px 14px;
  background: #17678b;
  color: #fff;
}

.chat-message-time {
  padding: 0 3px;
  color: #8b98a3;
  font-size: 0.62rem;
}

.chat-message-link {
  color: #126f90;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-typing {
  align-self: flex-start;
  margin: 0;
  padding: 9px 11px;
  border-radius: 12px;
  background: #eef2f6;
  color: #657786;
  font-size: 0.72rem;
  animation: chat-pulse 1s ease-in-out infinite alternate;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 12px;
  background: #fbfcfd;
}

.chat-quick-reply {
  padding: 7px 10px;
  border: 1px solid #c9dce7;
  border-radius: 999px;
  background: #fff;
  color: #146b8b;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
}

.chat-quick-reply:hover {
  background: #edf7fb;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e8eef2;
  background: #fff;
}

.chat-form input {
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
  border: 1px solid #dce4eb;
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
}

.chat-form input:focus {
  outline: 3px solid rgba(18, 125, 153, 0.16);
  border-color: #62a9bd;
}

.chat-form button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #126d8e;
  color: #fff;
  cursor: pointer;
}

.chat-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@keyframes chat-pulse {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

@media (max-width: 560px) {
  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .chat-launcher {
    min-height: 50px;
    padding: 0 16px;
  }

  .chat-panel {
    right: -2px;
    bottom: 62px;
    width: min(380px, calc(100vw - 28px));
    height: min(560px, calc(100dvh - 92px));
    min-height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launcher,
  .chat-typing {
    transition: none;
    animation: none;
  }
}

html[lang="ms-MY"] .home-page .slide-content > p:not(.eyebrow) {
  max-width: 100%;
  font-size: 1rem;
}

@media (max-width: 560px) {
  html[lang="ms-MY"] .home-page .slide-content h2 {
    font-size: clamp(1.8rem, 7.5vw, 2.5rem);
    line-height: 1.08;
  }

  html[lang="ms-MY"] .home-page .slide-content {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .home-page .nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .home-page .nav-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
  }

  .home-page .main-nav {
    grid-row: 3;
  }
}

html.map-embed,
html.map-embed body {
  min-width: 0;
  min-height: 0;
  background: #ffffff;
}

html.map-embed body > .topbar,
html.map-embed body > .footer,
html.map-embed .chat-widget,
html.map-embed .page-header,
html.map-embed .route-layout > .route-card:not(.map-card),
html.map-embed .schedule-box {
  display: none !important;
}

html.map-embed .page-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

html.map-embed .route-layout {
  display: block;
}

html.map-embed .route-card.map-card {
  padding: 12px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.map-embed .map-card > h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

html.map-embed .trip-planner {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 0;
}

html.map-embed .destination-field input {
  min-width: 0;
  font-size: 0.85rem;
}

html.map-embed .location-button {
  min-height: 42px;
  padding: 8px 10px;
  font-size: 0.78rem;
}

html.map-embed .route-status {
  font-size: 0.8rem;
}

html.map-embed .area-map-wrap {
  height: 360px;
  min-height: 360px;
  margin-top: 10px;
}

html.map-embed #routeMap {
  height: 360px !important;
  min-height: 360px !important;
}

html.map-embed .map-credit {
  margin: 8px 0 0;
  font-size: 0.72rem;
}

html.map-embed .map-card > p:not(.map-credit) {
  display: none;
}

html.map-embed .drive-panel {
  max-height: 260px;
  overflow: auto;
}

@media (max-width: 560px) {
  html.map-embed .route-card.map-card {
    padding: 10px;
  }

  html.map-embed .trip-planner {
    grid-template-columns: 1fr 1fr;
  }

  html.map-embed .destination-field,
  html.map-embed .route-status {
    grid-column: 1 / -1;
  }

  html.map-embed .area-map-wrap {
    height: 340px;
    min-height: 340px;
  }

  html.map-embed #routeMap {
    height: 340px !important;
    min-height: 340px !important;
  }
}
