:root {
  --bg: #f4ead9;
  --bg-strong: #efe0c8;
  --card: rgba(255, 250, 242, 0.92);
  --card-strong: #fffdf8;
  --ink: #1d2635;
  --muted: #667085;
  --line: #e4cfaf;
  --line-strong: #cfb188;
  --accent: #c95a11;
  --accent-strong: #a84206;
  --accent-soft: #f7c38f;
  --teal: #0f766e;
  --deep-blue: #1f4f8f;
  --seat: #e7f6ee;
  --seat-booked: #fde3df;
  --seat-locked: #fff1bf;
  --seat-selected: #dce8ff;
  --shadow: 0 18px 40px rgba(62, 35, 8, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(255, 188, 118, 0.85), transparent 35%),
    linear-gradient(180deg, #f8f1e7 0%, #efe1cb 48%, #f6ecdc 100%);
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.28;
  z-index: -1;
}

.bg-shape-1 {
  width: 260px;
  height: 260px;
  top: -50px;
  right: -70px;
  background: #f97316;
}

.bg-shape-2 {
  width: 280px;
  height: 280px;
  bottom: -90px;
  left: -70px;
  background: #22c55e;
}

.bg-shape-3 {
  width: 320px;
  height: 320px;
  top: 32%;
  left: 12%;
  background: #3b82f6;
}

.hero-shell {
  padding: 26px 18px 8px;
}

.hero-bar {
  max-width: 1220px;
  margin: 0 auto;
  background: linear-gradient(140deg, rgba(255, 253, 248, 0.94), rgba(255, 245, 231, 0.82));
  border: 1px solid rgba(218, 188, 146, 0.7);
  border-radius: 28px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.brand-lockup {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-logo {
  width: auto;
  max-width: min(30vw, 156px);
  max-height: 90px;
  height: auto;
  display: block;
}

.eyebrow,
.section-tag {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
  color: var(--deep-blue);
}

.hero-shell h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 0.98;
}

.subtitle {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(212, 180, 138, 0.8);
  font-size: 13px;
  font-weight: 800;
  color: #2a3c58;
}

.layout {
  max-width: 1220px;
  margin: 18px auto 42px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.card {
  background: var(--card);
  border: 1px solid rgba(222, 194, 157, 0.9);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.section-head,
.workflow-head,
.view-header-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.workflow-head {
  align-items: center;
  margin-bottom: 18px;
}

.section-head-split {
  flex-wrap: wrap;
  align-items: center;
}

.section-head-tight {
  margin-bottom: 6px;
}

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

.inline-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.inline-control select {
  min-width: 128px;
  height: 40px;
}

.compact-btn {
  min-height: 40px;
  padding: 0 14px;
}

.muted-summary {
  margin-top: 10px;
}

h2,
h3,
h4 {
  margin: 0;
}

p {
  margin: 0;
}

.flow-status {
  max-width: 320px;
  text-align: right;
  color: #4b5d76;
  font-size: 14px;
  font-weight: 700;
}

.stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(217, 189, 149, 0.85);
  background: rgba(255, 250, 244, 0.74);
  color: #7c6f61;
}

.stepper li span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(225, 205, 177, 0.9);
  color: #6c5437;
  font-size: 13px;
  font-weight: 800;
}

.stepper li.active,
.stepper li.complete {
  color: var(--ink);
}

.stepper li.active {
  background: linear-gradient(135deg, rgba(255, 214, 171, 0.95), rgba(255, 245, 224, 0.96));
  border-color: rgba(217, 129, 53, 0.9);
}

.stepper li.active span {
  background: var(--accent);
  color: #fff;
}

.stepper li.complete {
  background: rgba(219, 246, 234, 0.9);
  border-color: rgba(56, 161, 105, 0.55);
}

.stepper li.complete span {
  background: var(--teal);
  color: #fff;
}

.booking-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.flow-view {
  display: block;
}

.flow-view.hidden {
  display: none;
}

.view-copy {
  margin-bottom: 16px;
}

.view-copy h3,
.view-header-row h3,
.confirmation-shell h3 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 8px;
}

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

.search-modern-form {
  display: block;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1.7fr;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(247, 239, 225, 0.88));
  border: 2px solid rgba(223, 197, 161, 0.8);
  border-radius: 28px;
  overflow: hidden;
}

.search-segment {
  min-height: 102px;
  padding: 16px 18px;
  border-right: 1px solid rgba(218, 194, 160, 0.75);
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-segment:last-child {
  border-right: none;
}

.segment-icon {
  font-size: 24px;
  line-height: 1;
}

.input-segment {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
}

.input-segment label {
  grid-column: 2;
  color: #6b6f76;
  font-size: 15px;
  font-weight: 700;
}

.input-segment input {
  grid-column: 2;
  border: none;
  background: transparent;
  padding: 0;
  height: auto;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.input-segment input:focus {
  outline: none;
}

.input-segment input::placeholder {
  color: #9297a0;
  font-weight: 600;
}

.date-segment {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
}

.date-content {
  cursor: pointer;
}

.journey-label {
  color: #6a7079;
  font-size: 16px;
  font-weight: 700;
}

.journey-date-line {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.journey-date-text {
  font-size: 22px;
  font-weight: 900;
}

.journey-day-hint {
  color: #7d848c;
  font-size: 15px;
  font-weight: 700;
}

.quick-date-actions {
  display: flex;
  gap: 8px;
}

.quick-date-btn {
  border: none;
  border-radius: 999px;
  min-width: 92px;
  height: 48px;
  padding: 0 16px;
  background: rgba(220, 217, 212, 0.85);
  color: #5f6670;
  font-weight: 800;
}

.quick-date-btn.active {
  background: #f1cbc8;
  color: #1f2937;
}

.women-segment {
  grid-column: 1 / -1;
  min-height: 74px;
  border-top: 1px solid rgba(218, 194, 160, 0.75);
  border-right: none;
  justify-content: space-between;
}

.women-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.women-icon {
  font-size: 30px;
}

.women-title {
  font-size: 18px;
  font-weight: 800;
}

.women-link {
  padding: 0;
  height: auto;
  border: none;
  background: transparent;
  color: #315ec6;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
}

.toggle-switch {
  position: relative;
  width: 78px;
  height: 44px;
  display: inline-flex;
  align-items: center;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 3px solid #5c6066;
  background: #ededed;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #53565b;
  transition: transform 0.18s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: #fedada;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(30px);
}

.search-action-wrap {
  display: flex;
  justify-content: center;
  margin-top: -12px;
}

.search-buses-btn {
  min-width: min(460px, 86%);
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d43840, #e2593b);
  font-size: 20px;
}

.search-highlights {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.highlight-card,
.side-card,
.payment-summary-card,
.payment-action-card,
.confirmation-card,
.traveller-card,
.auth-form,
.admin-form,
.metric,
.item,
.bus-card,
.bus-seat-frame {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(224, 203, 174, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(80, 45, 10, 0.05);
}

.highlight-card {
  padding: 16px;
}

.highlight-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.highlight-card strong {
  display: block;
  margin: 6px 0;
  font-size: 30px;
}

.highlight-card p {
  color: var(--muted);
  line-height: 1.4;
}

.summary {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.status-ok {
  color: #166534;
}

.status-err {
  color: #b91c1c;
}

.sr-only-date {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bus-list-grid,
.list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

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

.bus-card {
  padding: 16px;
}

.bus-card-top,
.item .row,
.confirmation-row,
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.bus-card-top {
  align-items: flex-start;
}

.bus-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bus-chip,
.info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(238, 228, 211, 0.84);
  color: #5b4f3f;
  font-size: 12px;
  font-weight: 800;
}

.bus-card button,
.item button,
.auth-form button,
.admin-form button,
.ghost-btn,
#payment-action-btn,
.confirmation-actions button,
button {
  border: none;
  border-radius: 12px;
  min-height: 42px;
  padding: 0 16px;
  background: linear-gradient(90deg, var(--accent), #ec7e26);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border: 1px solid rgba(221, 195, 156, 0.9);
}

button.secondary {
  background: #526279;
}

.page-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(205, 179, 143, 0.95);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.page-btn.active {
  background: linear-gradient(90deg, var(--deep-blue), #2f6cb7);
  color: #fff;
  border-color: rgba(36, 77, 137, 0.92);
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.journey-sidebar {
  display: grid;
  gap: 14px;
}

.side-card {
  padding: 18px;
}

.journey-summary-list,
.payment-summary-list {
  display: grid;
  gap: 12px;
}

.journey-summary-list div,
.payment-summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(211, 188, 155, 0.85);
}

.journey-summary-list div:last-child,
.payment-summary-list div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.journey-summary-list span,
.payment-summary-list span {
  color: var(--muted);
  font-size: 13px;
}

.journey-summary-list strong,
.payment-summary-list strong {
  text-align: right;
}

.notes-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #4f5f76;
  line-height: 1.55;
}

.seat-layout-shell,
.payment-shell {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.seat-stage {
  display: grid;
  gap: 14px;
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #5f6a79;
  font-size: 13px;
  font-weight: 700;
}

.legend-box {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid #bfd1c2;
  background: var(--seat);
}

.legend-box.selected {
  border-color: #6f94d9;
  background: var(--seat-selected);
}

.legend-box.locked {
  border-color: #e0b84f;
  background: var(--seat-locked);
}

.legend-box.booked {
  border-color: #d89999;
  background: var(--seat-booked);
}

.bus-seat-frame {
  padding: 18px;
}

.bus-front {
  width: 110px;
  margin-left: auto;
  margin-bottom: 18px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 79, 143, 0.94), rgba(18, 54, 112, 0.94));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

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

.seat {
  text-align: center;
  padding: 12px 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid #c5d7ca;
  background: var(--seat);
}

.seat.booked {
  border-color: #e6b3b3;
  background: var(--seat-booked);
}

.seat.locked {
  border-color: #e3bd4b;
  background: var(--seat-locked);
}

.seat.available {
  cursor: pointer;
}

.seat.selected {
  border-color: #6d92d6;
  background: var(--seat-selected);
}

.traveller-card,
.payment-summary-card,
.payment-action-card,
.confirmation-card,
.auth-form,
.admin-form,
.metric,
.item {
  padding: 18px;
}

.traveller-card {
  display: grid;
  gap: 12px;
  align-self: start;
}

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

.auth-grid,
.forgot-panel,
.admin-grid,
.metrics-grid {
  display: grid;
  gap: 14px;
}

.auth-grid,
.forgot-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

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

.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.auth-form,
.admin-form {
  grid-template-columns: 1fr;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(210, 188, 155, 0.95);
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

.metric .label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.metric .value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 900;
}

.panel-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.panel-metric .value {
  font-size: 22px;
}

.pagination-bar {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.72);
  border: 1px solid rgba(222, 197, 162, 0.88);
}

.pagination-copy {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pagination-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.trend-chart {
  display: grid;
  gap: 10px;
}

.trend-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 170px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(222, 198, 165, 0.92);
  background: rgba(255, 255, 255, 0.8);
}

.trend-date {
  font-size: 13px;
  font-weight: 800;
  color: #46566f;
}

.trend-bar-track {
  height: 14px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(228, 216, 197, 0.9);
}

.trend-bar {
  display: block;
  height: 100%;
}

.trend-bar.confirmed {
  background: linear-gradient(90deg, #1f4f8f, #2f6cb7);
}

.trend-bar.cancelled {
  background: linear-gradient(90deg, #ef7d45, #cc4b10);
}

.trend-values {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #46566f;
}

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

.monitor-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(220, 197, 166, 0.92);
  background: rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 8px;
}

.monitor-value {
  font-size: 22px;
  font-weight: 900;
}

.monitor-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.item .muted {
  color: var(--muted);
  font-size: 13px;
}

.item button {
  min-height: 32px;
  padding: 0 12px;
  background: linear-gradient(90deg, var(--deep-blue), #2f6cb7);
  font-size: 12px;
}

.confirmation-shell {
  display: grid;
  gap: 16px;
}

.confirmation-card {
  display: grid;
  gap: 12px;
}

.confirmation-row {
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(215, 191, 159, 0.88);
}

.confirmation-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.confirmation-actions {
  display: flex;
  justify-content: flex-start;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .booking-content-grid,
  .seat-layout-shell,
  .payment-shell,
  .hero-bar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-bar {
    gap: 16px;
  }

  .hero-badges {
    justify-content: flex-start;
  }

  .search-panel {
    grid-template-columns: 1fr 1fr;
  }

  .search-highlights,
  .bus-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .layout,
  .auth-grid,
  .forgot-panel,
  .admin-grid,
  .metrics-grid,
  .dashboard-grid,
  .trend-summary-grid,
  .monitor-grid,
  .search-panel,
  .stepper {
    grid-template-columns: 1fr;
  }

  .layout {
    padding: 0 14px;
  }

  .hero-shell {
    padding: 16px 14px 6px;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo {
    max-width: 132px;
    max-height: 78px;
  }

  .search-segment {
    border-right: none;
    border-bottom: 1px solid rgba(218, 194, 160, 0.75);
  }

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

  .date-segment {
    grid-template-columns: auto 1fr;
    row-gap: 10px;
  }

  .quick-date-actions {
    grid-column: 1 / -1;
  }

  .search-action-wrap {
    margin-top: 14px;
  }

  .search-buses-btn {
    width: 100%;
    min-width: 0;
    height: 58px;
  }

  .workflow-head,
  .view-header-row,
  .section-head,
  .item .row,
  .bus-card-top,
  .confirmation-row,
  .summary-row,
  .trend-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-status {
    text-align: left;
  }

  .pagination-bar,
  .section-actions {
    align-items: flex-start;
  }

  .trend-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trend-values {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

@media (max-width: 560px) {
  .card {
    padding: 16px;
    border-radius: 20px;
  }

  .stepper li {
    padding: 12px 14px;
  }

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

  .search-segment {
    min-height: auto;
  }

  .highlight-card strong,
  .metric .value {
    font-size: 24px;
  }
}
.admin-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── Main Tab Navigation ───────────────────────────────────────────────────── */

.main-tab-nav {
  display: flex;
  gap: 8px;
  background: rgba(255, 252, 246, 0.85);
  border: 1px solid rgba(222, 194, 157, 0.9);
  border-radius: 20px;
  padding: 6px;
  width: fit-content;
}

.main-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.main-tab-btn:hover {
  background: rgba(201, 90, 17, 0.08);
  color: var(--accent);
}

.main-tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 4px 14px rgba(201, 90, 17, 0.28);
}

.tab-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.tab-label {
  white-space: nowrap;
}

.tab-panel {
  display: contents;
}

.tab-panel.hidden {
  display: none;
}

/* ── Marriage Booking Section ──────────────────────────────────────────────── */

.marriage-section {
  border-top: 3px solid #c95a11;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 243, 228, 0.88));
}

.marriage-season-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.season-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(180, 160, 130, 0.18);
  color: var(--muted);
  border: 1px solid var(--line);
  letter-spacing: 0.03em;
}

.season-pill.season-active {
  background: linear-gradient(135deg, #c95a11, #a84206);
  color: #fff;
  border-color: transparent;
}

.marriage-info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.marriage-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.marriage-info-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.marriage-info-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.marriage-info-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.marriage-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: start;
}

.card-inset {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
}

.marriage-calculator h3,
.marriage-form h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.calculator-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.calculator-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.calculator-row input {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 1rem;
  background: var(--card-strong);
  width: 100%;
}

.calc-result {
  margin-top: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(201, 90, 17, 0.08), rgba(168, 66, 6, 0.05));
  border: 1px solid rgba(201, 90, 17, 0.25);
  border-radius: 12px;
  text-align: center;
}

.calc-result.hidden {
  display: none;
}

.calc-range-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-strong);
}

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

.calc-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.marriage-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.marriage-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.marriage-form input,
.marriage-form textarea {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--card-strong);
  font-family: inherit;
  resize: vertical;
}

.field-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.marriage-pill {
  background: linear-gradient(135deg, #c95a11, #a84206);
  color: #fff;
}

.marriage-msg {
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 860px) {
  .marriage-info-strip {
    grid-template-columns: 1fr 1fr;
  }

  .marriage-grid {
    grid-template-columns: 1fr;
  }

  .marriage-season-pills {
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .marriage-info-strip {
    grid-template-columns: 1fr;
  }
}

/* ── Tourism Booking Section ───────────────────────────────────────────────── */

.tourism-section {
  border-top: 3px solid var(--teal);
  background: linear-gradient(135deg, rgba(248, 255, 252, 0.96), rgba(224, 248, 242, 0.88));
}

.circuit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.circuit-card {
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: default;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
}

.circuit-card:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.12);
  transform: translateY(-2px);
}

.circuit-card.selected {
  border-color: var(--teal);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.07), rgba(15, 118, 110, 0.03));
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.18);
}

.circuit-icon {
  font-size: 2rem;
  line-height: 1;
}

.circuit-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.circuit-info strong {
  font-size: 1rem;
  color: var(--ink);
}

.circuit-km {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
}

.circuit-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.circuit-fare {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal);
}

.circuit-select-btn {
  margin-top: 4px;
  padding: 8px 12px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.circuit-select-btn:hover {
  background: #0d6560;
}

.tourism-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: start;
}

.tourism-info-panel h3,
.tourism-form h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.tourism-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tourism-detail-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.td-icon {
  font-size: 1.3rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.tourism-detail-row strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 1px;
}

.tourism-detail-row p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}

.tourism-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tourism-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.tourism-form input,
.tourism-form select,
.tourism-form textarea {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--card-strong);
  font-family: inherit;
  resize: vertical;
}

.tour-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(15, 118, 110, 0.05));
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
}

.tour-total.hidden { display: none; }

.tour-total-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.tour-total-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
}

.tourism-pill {
  background: linear-gradient(135deg, var(--teal), #0d6560);
  color: #fff;
}

.tourism-msg {
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .circuit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .circuit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tourism-booking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .circuit-grid {
    grid-template-columns: 1fr;
  }

  .main-tab-btn {
    padding: 10px 16px;
  }

  .tab-label {
    font-size: 0.88rem;
  }
}
