/* Wayzuno Multi-City & Free Stopover Optimizer Styles */

:root {
  --bg-dark: #0b0f19;
  --card-bg: rgba(30, 41, 59, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(56, 189, 248, 0.35);
  --primary-accent: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.15);
  --success-accent: #34d399;
  --warning-accent: #fbbf24;
  --text-main: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
}

.multicity-body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* Page Container */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Header & Nav */
.site-header {
  border-bottom: 1px solid var(--card-border);
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

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

.nav-beta {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Breadcrumbs */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.breadcrumb li+li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
  color: var(--text-dim);
}

/* Page Hero */
.page-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3rem;
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.hero-title {
  font-size: clamp(2.1rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 2rem;
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-accent);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Strategy Mode Switcher Tabs */
.mode-tabs-section {
  margin-bottom: 2.5rem;
}

.mode-tabs-wrap {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mode-tab {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.35rem;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab:hover {
  border-color: rgba(56, 189, 248, 0.3);
  color: #ffffff;
  background: rgba(30, 41, 59, 0.8);
}

.mode-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary-accent);
  color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* Section Common */
.strategy-section {
  margin-bottom: 4rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-header-block {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-dim);
  margin: 0;
  max-width: 780px;
  line-height: 1.6;
}

.region-filter-wrap {
  min-width: 240px;
}

.region-select {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.region-select:focus {
  border-color: var(--primary-accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Stopover Grid & Cards */
.stopover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.stopover-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stopover-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-hover-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stopover-card-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.5);
  gap: 0.75rem;
}

.card-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.airline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.65rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-weight: 800;
  font-size: 1.1rem;
}

.airline-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.program-subname {
  font-size: 0.825rem;
  color: var(--text-dim);
}

.cost-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.cost-badge-free {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.cost-badge-hotel {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.stopover-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hub-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
}

.hub-pill span {
  color: var(--text-dim);
}

.hub-pill strong {
  color: #ffffff;
}

.duration-tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  padding: 0.15rem 0.5rem;
  border-radius: 0.35rem;
}

.program-summary {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.55;
  margin: 0;
}

.perks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.perk-pill {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  color: #cbd5e1;
}

.sample-itineraries {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
}

.sample-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.sample-routes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sample-route-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.825rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
}

.sample-route-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.route-line strong {
  color: #ffffff;
}

.price-comparison {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.combo-price {
  font-weight: 700;
  color: #34d399;
}

.sep-price {
  color: var(--text-muted);
  text-decoration: line-through;
}

.savings-tag {
  margin-left: auto;
  font-weight: 700;
  color: #38bdf8;
}

.booking-rule-box {
  display: flex;
  gap: 0.6rem;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.rule-icon {
  font-size: 1rem;
}

.rule-text {
  margin: 0;
  line-height: 1.45;
}

.stopover-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.3);
}

.btn-card-action {
  display: block;
  text-align: center;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

.btn-card-action:hover {
  background: var(--primary-accent);
  color: #0b0f19;
}

/* Open-Jaw Section */
.openjaw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.openjaw-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.openjaw-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-hover-border);
}

.openjaw-header {
  margin-bottom: 1.25rem;
}

.corridor-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
  margin-bottom: 0.5rem;
}

.openjaw-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.openjaw-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.route-steps-flow {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-box {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary-accent);
  color: #0b0f19;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
}

.step-desc {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.step-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 2rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.openjaw-math-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.math-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.math-k {
  color: var(--text-dim);
}

.math-v {
  font-weight: 700;
}

.total-savings-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 0.45rem;
  margin-top: 0.25rem;
}

.savings-highlight {
  color: #34d399;
  font-size: 0.95rem;
}

.why-box {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.825rem;
}

.why-box strong {
  color: #38bdf8;
  display: block;
  margin-bottom: 0.25rem;
}

.why-box p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Calculator Section */
.calculator-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.calculator-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.calc-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.calc-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.calc-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calc-select {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.calc-select:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.calc-results-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 1rem;
  padding: 1.75rem;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.result-title-col h3 {
  margin: 0.25rem 0 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.route-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-accent);
}

.result-badge {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
}

.result-body-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.r-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.r-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.r-sub {
  font-size: 0.825rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

.text-success {
  color: #34d399 !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.calc-actions-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-calc-search {
  flex: 1;
  min-width: 220px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--primary-accent);
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.65rem;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-calc-search:hover {
  background: var(--primary-accent);
  color: #0b0f19;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* FAQ Section */
.faq-section {
  margin-top: 4rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 0.65rem;
  padding: 1rem 1.25rem;
}

.faq-question {
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary-accent);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  background: rgba(11, 15, 25, 0.9);
  padding: 3rem 1.5rem 4rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .stopover-grid,
  .openjaw-grid {
    grid-template-columns: 1fr;
  }
  .calculator-card {
    padding: 1.25rem;
  }
  .calc-actions-row {
    flex-direction: column;
  }
}
