:root {
  color-scheme: light;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-soft: #f1f7f3;
  --ink: #132019;
  --muted: #69766f;
  --line: #dfe7e2;
  --primary: #1e824c;
  --primary-dark: #14643a;
  --accent: #2ecc71;
  --blue: #2f6fed;
  --amber: #c97a12;
  --red: #c53f32;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 8px 24px rgba(19, 32, 25, 0.08);
  --shadow-md: 0 18px 50px rgba(19, 32, 25, 0.12);
  --shadow-lg: 0 30px 80px rgba(19, 32, 25, 0.16);
}

html[data-accent="blue"] {
  --primary: #2f6fed;
  --primary-dark: #1d55c5;
  --accent: #5b8ff7;
  --surface-soft: #f1f6ff;
}

html[data-accent="green"] {
  --primary: #1e824c;
  --primary-dark: #14643a;
  --accent: #2ecc71;
  --surface-soft: #f1f7f3;
}

html[data-accent="orange"] {
  --primary: #c97a12;
  --primary-dark: #965808;
  --accent: #f0a437;
  --surface-soft: #fff6e9;
}

html[data-font-size="small"] {
  font-size: 14px;
}

html[data-font-size="medium"] {
  font-size: 16px;
}

html[data-font-size="large"] {
  font-size: 18px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101612;
  --surface: #17211b;
  --surface-soft: #1f2d25;
  --ink: #eef7f1;
  --muted: #a7b7ad;
  --line: #2c3a32;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="device"] {
    color-scheme: dark;
    --bg: #101612;
    --surface: #17211b;
    --surface-soft: #1f2d25;
    --ink: #eef7f1;
    --muted: #a7b7ad;
    --line: #2c3a32;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] body,
html[data-theme="device"] body {
  background: var(--bg);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.page-shell,
.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 249, 250, 0.9);
  border-bottom: 1px solid rgba(223, 231, 226, 0.85);
  backdrop-filter: blur(18px);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 130, 76, 0.25);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.nav-center {
  margin: 0 auto;
}

.nav-center a,
.nav-login {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-center a:hover,
.nav-login:hover {
  background: #eef5f1;
  color: var(--ink);
}

.nav-signup,
.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 850;
}

.nav-signup,
.cta-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(30, 130, 76, 0.24);
}

.nav-signup:hover,
.cta-primary:hover,
.search-button:hover,
.planner-button:hover,
.card-search-button:hover {
  background: var(--primary-dark);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  place-items: center;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: var(--ink);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 34px 0 42px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(46, 204, 113, 0.16), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 84%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 7vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.search-card {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(223, 231, 226, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
}

.mode-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 6px;
  padding: 6px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef5f1;
}

.mode-tab {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.mode-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.mode-panel {
  display: none;
}

.mode-panel.active {
  display: block;
  animation: fadeUp 0.28s ease both;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, 0.72fr) minmax(170px, 0.58fr);
  gap: 14px;
  align-items: end;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

select,
input,
button {
  min-height: 52px;
}

select,
input {
  padding: 0 14px;
}

textarea {
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

select:focus,
input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(46, 204, 113, 0.28);
  outline-offset: 2px;
}

.search-button,
.planner-button,
.card-search-button {
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(30, 130, 76, 0.22);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.search-button:hover,
.planner-button:hover,
.card-search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(30, 130, 76, 0.27);
}

.search-button:disabled,
.planner-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--accent);
  font-weight: 900;
}

.status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  margin-bottom: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(30, 130, 76, 0.16);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.summary-grid > div,
.status-card,
.feature-card,
.planner-card,
.table-card,
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.summary-grid > div {
  padding: 18px;
}

.summary-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.summary-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 2.1rem;
  line-height: 1;
}

.status-cards {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.status-card {
  padding: 16px 18px;
  border-left-width: 6px;
  box-shadow: none;
}

.status-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-card .status-suggestion {
  margin-top: 7px;
  color: var(--ink);
  font-weight: 800;
}

.status-route {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-card-success {
  border-left-color: var(--accent);
}

.status-card-info {
  border-left-color: var(--blue);
}

.status-card-warning {
  border-left-color: var(--amber);
}

.status-card-error {
  border-left-color: var(--red);
}

.planner-heading {
  max-width: 780px;
  margin: 2px 0 18px;
}

.planner-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.planner-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

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

.planner-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.45fr);
  gap: 14px;
}

.multi-primary-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, 0.7fr);
  gap: 14px;
}

.multi-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.multi-checkbox {
  justify-content: flex-start;
}

.planner-prompt-label textarea {
  min-height: 190px;
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  width: auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  border-color: rgba(30, 130, 76, 0.35);
  background: #e8f7ee;
  color: var(--primary);
}

.planner-button {
  max-width: 260px;
}

.planner-results {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.multi-results {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.multi-result-header {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdfc;
}

.multi-result-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.multi-result-header p,
.multi-result-header ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.multi-result-header ul {
  padding-left: 20px;
}

.multi-result-summary,
.multi-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.multi-result-summary span,
.multi-pagination span {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf7f0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.multi-pagination {
  justify-content: center;
  padding: 4px 0 0;
}

.multi-pagination button {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.multi-pagination button:hover:not(:disabled) {
  background: #f8fcf9;
}

.multi-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.multi-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.36s ease both;
}

.multi-card-toggle {
  display: flex;
  width: 100%;
  min-height: auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.multi-card-toggle:hover {
  background: #f8fcf9;
}

.multi-card-toggle strong {
  display: block;
  margin-top: 5px;
  color: var(--primary);
  font-size: 1.35rem;
}

.multi-route {
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 950;
}

.multi-card-stats,
.multi-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.multi-card-stats {
  justify-content: flex-end;
}

.multi-card-stats span,
.multi-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf7f0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.multi-card-details {
  padding: 0 18px 18px;
}

.multi-metrics {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdfc;
}

.multi-metrics strong {
  margin-left: 5px;
}

.multi-segments {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.multi-segment {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.multi-segment-main,
.multi-segment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.multi-segment-main {
  align-items: flex-start;
  justify-content: space-between;
}

.multi-segment-route,
.multi-segment-booking {
  display: grid;
  gap: 6px;
}

.multi-segment-booking {
  justify-items: end;
  min-width: 132px;
}

.segment-actions {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.multi-segment-meta {
  justify-content: flex-start;
}

.multi-segment span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.multi-layover {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff4d6;
  color: #684500;
  font-size: 0.82rem;
  font-weight: 900;
}

.planner-card {
  overflow: hidden;
  animation: fadeUp 0.42s ease both;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.planner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.planner-photo {
  position: relative;
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(135deg, var(--primary), #39a6a3);
}

.planner-photo::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  height: 46px;
  border-radius: 999px 999px 14px 14px;
  background: rgba(255, 255, 255, 0.36);
}

.planner-photo span {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 950;
}

.planner-photo-beach {
  background: linear-gradient(135deg, #16a6b8, #f2c66f);
}

.planner-photo-mountains,
.planner-photo-nature {
  background: linear-gradient(135deg, #285f45, #8ec878);
}

.planner-photo-city {
  background: linear-gradient(135deg, #3d74df, #9e7bd2);
}

.planner-photo-theme {
  background: linear-gradient(135deg, #7654d7, #f0a842);
}

.planner-photo-coast {
  background: linear-gradient(135deg, #3174bd, #2ecc71);
}

.planner-photo-desert {
  background: linear-gradient(135deg, #bb7117, #efd176);
}

.planner-photo-food,
.planner-photo-music,
.planner-photo-las {
  background: linear-gradient(135deg, #e85c5c, #7d62dd);
}

.planner-card-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.planner-card-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.planner-card-title h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.planner-card-title span {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 950;
}

.planner-card h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.planner-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.45;
}

.planner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.planner-meta span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf7f0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
}

.card-search-button {
  min-height: 46px;
  padding: 0 14px;
}

.results-section,
.features-section,
.cta-section,
.info-section,
.contact-section {
  padding-top: 58px;
}

.info-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 58px;
}

.info-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(46, 204, 113, 0.15), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 86%);
  pointer-events: none;
}

.info-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: center;
}

.info-hero-card,
.info-panel,
.legal-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.info-hero-card {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 34px);
  font-style: normal;
}

.info-hero-card span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-hero-card strong {
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  line-height: 1.1;
}

.info-hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.company-card a,
.legal-card a {
  color: var(--primary);
  font-weight: 850;
}

.info-two-column,
.benefit-grid,
.contact-form-grid {
  display: grid;
  gap: 18px;
}

.info-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.info-panel {
  padding: 24px;
}

.info-panel h3 {
  margin-bottom: 9px;
  font-size: 1.12rem;
}

.info-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step-list span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8f7ee;
  color: var(--primary);
  font-weight: 950;
}

.step-list h3 {
  margin-bottom: 7px;
}

.step-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.legal-page {
  padding: 64px 0 72px;
}

.legal-header {
  max-width: 820px;
  margin-bottom: 24px;
}

.legal-header h1 {
  margin-bottom: 12px;
}

.legal-header p:not(.section-kicker) {
  color: var(--muted);
  font-weight: 800;
}

.legal-card {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 5vw, 42px);
}

.legal-card section {
  display: grid;
  gap: 8px;
}

.legal-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  padding-bottom: 72px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
}

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

.contact-success {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #dff7e8;
  color: #0c3f25;
  font-weight: 850;
  line-height: 1.5;
}

.contact-submit {
  max-width: 220px;
}

.settings-shell {
  display: grid;
  gap: 28px;
  padding: 56px 0 72px;
}

.settings-hero,
.settings-card,
.settings-info-card,
.settings-link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 52%),
    var(--surface);
}

.settings-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 5.8vw, 4.6rem);
  line-height: 1;
}

.settings-hero p:not(.section-kicker) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.settings-section {
  display: grid;
  gap: 16px;
}

.settings-section-heading h2,
.settings-section-heading h3 {
  margin: 0;
}

.settings-section-heading.compact {
  margin-bottom: 4px;
}

.settings-grid,
.settings-info-grid,
.settings-link-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.settings-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
}

.settings-wide-card {
  grid-column: 1 / -1;
}

.settings-card h3 {
  margin-bottom: 8px;
}

.settings-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.settings-status-line {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.segmented-control,
.swatch-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented-control label,
.swatch-control label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.segmented-control input,
.swatch-control input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.accent-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.accent-blue {
  background: #2f6fed;
}

.accent-green {
  background: #1e824c;
}

.accent-orange {
  background: #c97a12;
}

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

.settings-step-list {
  gap: 12px;
}

.settings-link-card {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 18px;
  color: var(--ink);
  font-weight: 900;
}

.settings-link-card:hover {
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.settings-info-card {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.settings-info-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-info-card strong {
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.settings-info-card a {
  color: var(--primary);
}

.home-lounge-section {
  padding-top: 58px;
}

.home-lounge-feed {
  width: min(100%, 860px);
  margin: 0 auto;
}

.home-lounge-feed .lounge-post {
  box-shadow: var(--shadow-sm);
}

.home-lounge-feed .lounge-gallery img {
  height: min(320px, 54vw);
}

.home-lounge-skeletons {
  width: min(100%, 860px);
  margin: 0 auto;
}

.home-lounge-empty {
  width: min(100%, 860px);
  margin: 0 auto;
}

.home-lounge-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

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

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.05;
}

.section-heading p:not(.section-kicker) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.table-card {
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-wrap {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

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

th {
  background: #f5faf7;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #fbfdfc;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.badge-yes {
  color: #0c3f25;
  background: #dff7e8;
}

.badge-no {
  color: #684500;
  background: #fff0c7;
}

.scarcity-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.scarcity-critical {
  color: #fff;
  background: var(--red);
}

.scarcity-critical::before {
  content: "🔥";
  margin-right: 5px;
}

.scarcity-warning {
  color: #5d3700;
  background: #ffd98d;
}

.scarcity-warning::before {
  content: "⚠";
  margin-right: 5px;
}

.seat-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef5f8;
  color: #254556;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.booking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(30, 130, 76, 0.18);
  cursor: pointer;
}

.booking-button:hover {
  background: var(--primary-dark);
}

.booking-button-disabled,
.booking-button-disabled:hover {
  background: #dbe5df;
  color: #6f7d75;
  box-shadow: none;
  cursor: not-allowed;
}

.notify-button {
  width: 86px;
  background: #fff;
  color: var(--primary);
  border: 1px solid #b7dbc6;
  box-shadow: none;
}

.notify-button:hover {
  background: #edf7f0;
  color: var(--primary-dark);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 32, 25, 0.42);
}

.notify-modal {
  position: relative;
  width: min(100%, 460px);
  max-height: min(720px, calc(100vh - 40px));
  overflow-y: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.notify-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.notify-modal h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.notify-summary {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.notify-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
}

.notify-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.notify-message {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff4d6;
  color: #684500;
  font-weight: 800;
}

.notify-message-success {
  background: #dff7e8;
  color: #0c3f25;
}

.notify-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.notify-auth-button,
.notify-save-button {
  width: auto;
  min-width: 104px;
}

.fare {
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.empty-row td {
  padding: 44px 18px;
  color: var(--muted);
  text-align: center;
}

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

.feature-card {
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #e8f7ee;
  font-size: 1.35rem;
}

.feature-card h3 {
  margin-bottom: 9px;
  font-size: 1.12rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cta-section {
  padding-bottom: 66px;
}

.install-overlay-open {
  overflow: hidden;
}

.install-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(248, 249, 250, 0.96);
  backdrop-filter: blur(18px);
}

.install-overlay-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 540px);
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.install-overlay-card img {
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.install-overlay-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.08;
}

.install-overlay-card p {
  margin: 0 auto 12px;
  max-width: 430px;
  color: var(--muted);
  line-height: 1.6;
}

.install-overlay-spinner {
  margin: 14px auto;
}

.install-overlay-done {
  width: min(100%, 240px);
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(135deg, rgba(46, 204, 113, 0.14), rgba(255, 255, 255, 0.92) 50%),
    #fff;
  box-shadow: var(--shadow-md);
}

.cta-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.cta-card p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.cta-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.install-prompt {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(560px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.install-prompt h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.install-prompt p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.install-actions .cta-primary,
.install-actions .cta-secondary {
  border: 0;
  cursor: pointer;
}

.offline-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #fff;
}

.offline-shell {
  width: min(520px, calc(100% - 32px));
  text-align: center;
}

.offline-shell img {
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.offline-shell h1 {
  margin: 22px 0 14px;
  font-size: clamp(2.1rem, 7vw, 3.8rem);
}

.offline-shell p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.offline-retry {
  width: auto;
  margin-top: 16px;
  border: 0;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 96px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner a,
.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .info-hero-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

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

  .multi-primary-controls,
  .multi-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-results,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page-shell,
  .nav-shell {
    width: min(100% - 24px, 720px);
  }

  .nav-shell {
    min-height: 68px;
  }

  .hamburger {
    display: grid;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
  }

  .nav-toggle:checked ~ .nav-menu {
    display: grid;
    gap: 10px;
  }

  .nav-center,
  .nav-actions {
    display: grid;
    gap: 6px;
  }

  .nav-center {
    margin: 0;
  }

  .nav-center a,
  .nav-login,
  .nav-signup {
    justify-content: flex-start;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .hero-section {
    padding: 46px 0 34px;
  }

  .info-hero,
  .legal-page {
    padding: 46px 0 42px;
  }

  .search-card {
    padding: 14px;
    border-radius: 20px;
  }

  .mode-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    border-radius: var(--radius);
  }

  .mode-tab {
    border-radius: var(--radius-sm);
  }

  .search-form,
  .planner-controls,
  .multi-primary-controls,
  .multi-filter-grid,
  .summary-grid,
  .planner-results,
  .feature-grid,
  .info-two-column,
  .contact-form-grid,
  .settings-grid,
  .settings-info-grid,
  .settings-link-grid {
    grid-template-columns: 1fr;
  }

  .planner-button {
    max-width: none;
  }

  .multi-card-toggle {
    display: grid;
  }

  .multi-card-stats {
    justify-content: flex-start;
  }

  .multi-segment-main {
    flex-direction: column;
  }

  .multi-segment-booking {
    justify-items: start;
    min-width: 0;
  }

  .trust-row {
    display: grid;
    gap: 8px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p:not(.section-kicker) {
    margin-top: 8px;
  }

  .results-section,
  .features-section,
  .cta-section,
  .info-section,
  .contact-section,
  .home-lounge-section {
    padding-top: 42px;
  }

  .cta-card,
  .footer-inner,
  .settings-hero {
    display: grid;
  }

  .cta-actions {
    flex-wrap: wrap;
  }

  .install-prompt {
    grid-template-columns: 1fr;
  }

  .install-actions {
    justify-content: stretch;
  }

  .install-actions .cta-primary,
  .install-actions .cta-secondary {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 2.65rem;
  }

  .search-card {
    margin-top: 0;
  }

  th,
  td {
    padding: 14px;
  }

  .cta-actions a {
    width: 100%;
  }
}
