:root {
  --ink: #11100d;
  --charcoal: #181714;
  --graphite: #27231d;
  --paper: #ffffff;
  --canvas: #fbfaf7;
  --surface: #f3f0ea;
  --surface-strong: #e9e2d6;
  --line: #dfd7ca;
  --line-dark: rgba(255, 255, 255, .14);
  --muted: #6f6a61;
  --muted-dark: rgba(255, 255, 255, .7);
  --yellow: #f0c12b;
  --gold: #b9831d;
  --danger: #b42318;
  --success: #137a4b;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-xs: 0 1px 2px rgba(17, 16, 13, .06);
  --shadow-sm: 0 10px 28px rgba(17, 16, 13, .08);
  --shadow-md: 0 22px 56px rgba(17, 16, 13, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--ink);
  background: rgba(251, 250, 247, .92);
  border-bottom: 1px solid rgba(223, 215, 202, .82);
  box-shadow: 0 1px 0 rgba(17, 16, 13, .03);
  backdrop-filter: blur(18px);
}

.site-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  box-shadow: inset 0 -1px 0 rgba(17, 16, 13, .16);
}

.brand-logo {
  width: auto;
  height: 42px;
  max-width: 180px;
  max-height: 68px;
  object-fit: contain;
}

.site-footer .brand-logo {
  max-height: 82px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  color: #514c44;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
  transition: color .18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

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

.language-select {
  width: auto;
  min-width: 70px;
  min-height: 42px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  box-shadow: var(--shadow-xs);
}

.btn,
button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 17px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(240, 193, 43, .34);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(185, 131, 29, .16);
}

.btn-primary:hover {
  background: #f4cf4b;
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 24px rgba(17, 16, 13, .16);
}

.btn-dark:hover {
  background: #2b2822;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--paper);
  background: rgba(255, 255, 255, .06);
}

.site-header .btn-ghost,
.btn-soft {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.hero {
  min-height: 690px;
  display: grid;
  align-items: center;
  color: var(--paper);
  background:
    linear-gradient(102deg, rgba(17, 16, 13, .9) 0%, rgba(17, 16, 13, .72) 42%, rgba(17, 16, 13, .28) 100%),
    url("https://images.unsplash.com/photo-1533105079780-92b9be482077?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
  gap: 56px;
  align-items: center;
  padding: 76px 0;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.section-actions {
  margin-top: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero .eyebrow,
.section.dark .eyebrow,
.page-hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-top: 14px;
  font-size: 64px;
  line-height: 1;
  font-weight: 880;
}

h2 {
  font-size: 40px;
  line-height: 1.08;
  font-weight: 850;
}

h3 {
  font-size: 19px;
  line-height: 1.24;
  font-weight: 820;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.72;
}

.booking-panel,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.booking-panel {
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.hero .booking-panel {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .24);
}

.booking-title {
  margin: 0 0 18px;
  font-size: 27px;
  line-height: 1.14;
}

.map-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.map-mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.map-mode-toggle button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  box-shadow: none;
}

.map-mode-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

.ride-map {
  width: 100%;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #edf0ed;
  color: var(--muted);
  z-index: 1;
}

.ride-map.map-unavailable {
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  font-weight: 800;
}

.map-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.map-helper button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  text-decoration: underline;
  box-shadow: none;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #3f3a32;
  font-size: 13px;
  font-weight: 820;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8d0c3;
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  background: #fffefd;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #c7bcac;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(185, 131, 29, .12);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: var(--surface);
}

.section.dark {
  background: var(--charcoal);
  color: var(--paper);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-head p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.dark .section-head p,
.dark .muted {
  color: var(--muted-dark);
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

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

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

.card {
  padding: 22px;
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

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

.section.dark .card {
  background: #201f1b;
  border-color: rgba(255, 255, 255, .1);
  box-shadow: none;
}

.section.dark .card:hover {
  border-color: rgba(240, 193, 43, .42);
}

.route-price {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.price {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.route-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.route-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.route-card:hover {
  transform: translateY(-3px);
  border-color: #cdbf9f;
  box-shadow: var(--shadow-sm);
}

.route-card h3 {
  margin-top: 12px;
}

.route-badge {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(185, 131, 29, .32);
  border-radius: var(--radius-sm);
  padding: 6px 9px;
  color: #694a10;
  background: #fff5d0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-card-meta,
.route-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.route-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-path span {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  background: var(--canvas);
  color: #4d463c;
  font-size: 12px;
  font-weight: 760;
}

.district-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  background: var(--paper);
  color: #423c33;
  font-weight: 760;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: #c8bda9;
  box-shadow: var(--shadow-xs);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.visual {
  min-height: 420px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 16, 13, .04), rgba(17, 16, 13, .18)),
    url("https://images.unsplash.com/photo-1518684079-3c830dcef090?auto=format&fit=crop&w=1400&q=82") center / cover;
  box-shadow: var(--shadow-sm);
}

.muted {
  color: var(--muted);
  line-height: 1.72;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, .74);
  padding: 52px 0;
}

.site-footer .brand {
  color: var(--paper);
}

.site-footer a {
  transition: color .18s ease;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  box-shadow: 0 16px 36px rgba(17, 16, 13, .18);
}

.page-hero {
  background: var(--charcoal);
  color: var(--paper);
  padding: 72px 0 56px;
}

.page-hero.compact {
  padding: 54px 0 42px;
}

.content {
  line-height: 1.82;
}

.map-box {
  min-height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(240, 193, 43, .08), rgba(255, 255, 255, 0)),
    var(--surface);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 820;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: #ecfdf3;
  color: var(--success);
  font-weight: 820;
}

.flash-wrap {
  margin-top: 18px;
}

.errors {
  padding: 14px;
  border-radius: var(--radius);
  background: #fff2ef;
  color: var(--danger);
  margin-bottom: 18px;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--surface);
}

.admin-sidebar {
  background: var(--charcoal);
  color: rgba(255, 255, 255, .78);
  padding: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.admin-menu {
  display: grid;
  gap: 6px;
  margin-top: 28px;
}

.admin-menu a {
  padding: 11px 12px;
  border-radius: var(--radius);
  font-weight: 820;
  transition: background-color .18s ease, color .18s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
  background: rgba(240, 193, 43, .12);
  color: var(--yellow);
}

.admin-main {
  padding: 28px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}

.stat strong {
  display: block;
  font-size: 30px;
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #5b554c;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(140px, 180px)) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3f3a32;
  font-weight: 820;
}

.inline-check input {
  width: 18px;
  min-height: 18px;
}

.admin-thumb {
  width: 140px;
  height: 76px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px;
}

.narrow {
  max-width: 720px;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 18px;
  margin-top: 20px;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.compact-head {
  align-items: center;
  margin-bottom: 16px;
}

.compact-head h2 {
  font-size: 24px;
}

.page-image {
  width: 100%;
  min-height: 320px;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.pagination nav,
.pagination svg {
  max-width: 100%;
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 14px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 34px;
  }

  .route-showcase,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .feature-band,
  .footer-grid,
  .panel-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 66px 0;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

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

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
  }

  .brand {
    max-width: 100%;
  }

  .brand-logo {
    max-width: min(220px, 70vw) !important;
    height: auto !important;
    max-height: 72px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 18px;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero-grid {
    padding: 48px 0;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 16px;
  }

  .booking-panel {
    padding: 18px;
  }

  .form-grid,
  .grid-3,
  .grid-4,
  .route-showcase,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .map-picker-head,
  .map-helper,
  .route-card-bottom,
  .panel-row {
    align-items: stretch;
    flex-direction: column;
  }

  .map-mode-toggle,
  .map-mode-toggle button,
  .hero-actions .btn,
  .section-actions .btn {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }

  .site-footer {
    padding: 42px 0;
  }
}

@media (max-width: 460px) {
  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .language-select {
    min-width: 64px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  .ride-map {
    height: 230px;
  }
}
