:root {
  --bg: #0b1020;
  --panel: rgba(22, 28, 51, 0.76);
  --panel-strong: #151b31;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7f4ff;
  --muted: #aaa4c6;
  --purple: #7c5cff;
  --purple-2: #a997ff;
  --gold: #ffd36e;
  --ok: #8ed192;
  --warn: #ffb86c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.hero {
  min-height: 690px;
  padding: 28px min(6vw, 92px) 48px;
  background:
    linear-gradient(90deg, rgba(8, 12, 26, 0.95) 0%, rgba(8, 12, 26, 0.74) 38%, rgba(8, 12, 26, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 12, 26, 0.04) 0%, rgba(11, 16, 32, 0.52) 72%, var(--bg) 100%),
    url("https://images.unsplash.com/photo-1533104816931-20fa691ff6ca?auto=format&fit=crop&w=2200&q=82") center / cover no-repeat;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  font-size: 34px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-star {
  color: var(--purple-2);
  font-size: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  color: #efeafb;
  font-size: 15px;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.login-button,
.hero-cta,
.search-submit,
.section-head button,
.action-button,
.auth-dialog button,
.secondary-button {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.login-button,
.hero-cta,
.search-submit,
.action-button {
  background: var(--purple);
  box-shadow: 0 16px 36px rgba(124, 92, 255, 0.35);
}

.login-button {
  min-height: 46px;
  padding: 0 24px;
  border-radius: 10px;
  font-weight: 760;
}

.hero-content {
  max-width: 100%;
  margin-top: 72px;
}

.eyebrow {
  display: inline-flex;
  padding: 10px 17px;
  border-radius: 10px;
  margin: 0 0 22px;
  color: #dcd4ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(52px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 560px;
  margin: 20px 0 26px;
  color: #fff;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
  font-weight: 560;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 30px;
  border-radius: 9px;
  font-weight: 760;
}

.search-bar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1.05fr 0.92fr 1.2fr 220px;
  gap: 0;
  align-items: stretch;
  margin-top: 32px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(24, 29, 52, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-field {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.field-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
}

.field-body {
  display: grid;
  gap: 7px;
  min-width: 0;
  width: 100%;
}

.field-title {
  color: #fff;
  font-size: 15px;
  font-weight: 760;
}

.field-subtitle {
  color: #f4efff;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid rgba(169, 151, 255, 0.5);
  border-radius: 12px;
  background: rgba(60, 62, 84, 0.68);
  color: #fff;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

select,
input[type="date"],
input[type="number"],
textarea {
  padding: 11px 12px;
}

select {
  background-color: rgba(60, 62, 84, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font: inherit;
  font-weight: 650;
}

select:not([multiple]) {
  height: 46px;
  min-height: 46px;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #dcd4ff 50%),
    linear-gradient(135deg, #dcd4ff 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select[multiple] {
  height: auto;
  min-height: 146px;
  padding: 9px;
  cursor: default;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(169, 151, 255, 0.95);
  background-color: rgba(66, 68, 94, 0.86);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.22);
}

select option {
  color: #12172a;
  background: #fff;
}

input[type="range"] {
  accent-color: var(--purple);
}

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

.select-menu {
  position: relative;
  width: 100%;
  min-width: 0;
}

.select-trigger,
.multi-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid rgba(169, 151, 255, 0.58);
  border-radius: 12px;
  background: rgba(60, 62, 84, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

.select-trigger::after,
.multi-dropdown summary::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 12px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #dcd4ff;
  flex: 0 0 auto;
}

.select-menu.open .select-trigger,
.select-trigger:focus-visible,
.multi-dropdown[open] summary,
.multi-dropdown summary:focus-visible {
  border-color: rgba(169, 151, 255, 0.98);
  background-color: rgba(66, 68, 94, 0.88);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.22);
  outline: none;
}

.select-options {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 260px;
  overflow: auto;
  padding: 9px;
  border: 1px solid rgba(169, 151, 255, 0.3);
  border-radius: 12px;
  background: #151b31;
  box-shadow: var(--shadow);
}

.select-menu.open .select-options {
  display: grid;
  gap: 3px;
}

.select-option {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  text-align: left;
  font-weight: 720;
  cursor: pointer;
}

.select-option:hover,
.select-option.selected,
.select-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.date-control,
.people-stepper {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.date-control input,
.people-stepper {
  min-height: 48px;
}

.date-control input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-right: 48px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.date-control::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2v4M17 2v4M4 9h16M6 5h12a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z' stroke='%23a997ff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  width: 48px;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.people-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  overflow: hidden;
  border: 2px solid rgba(169, 151, 255, 0.58);
  border-radius: 12px;
  background: rgba(60, 62, 84, 0.72);
}

.people-stepper:focus-within {
  border-color: rgba(169, 151, 255, 0.98);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.22);
}

.people-stepper input {
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-weight: 820;
  box-shadow: none;
  -moz-appearance: textfield;
}

.people-stepper input:focus {
  box-shadow: none;
}

.people-stepper input::-webkit-outer-spin-button,
.people-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.people-stepper button {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  font-weight: 760;
  cursor: pointer;
}

.people-stepper button:hover {
  background: rgba(124, 92, 255, 0.32);
}

.search-submit {
  min-height: 54px;
  border-radius: 10px;
  font-weight: 820;
}

.advanced {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 0 4px;
}

.advanced > summary {
  width: max-content;
  cursor: pointer;
  color: #dcd4ff;
  font-weight: 720;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  min-width: 0;
}

.advanced-grid.secondary {
  grid-template-columns: 1.2fr 1fr;
}

.advanced label,
.field-group {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #ede9ff;
  font-size: 13px;
  font-weight: 700;
}

.field-label {
  display: block;
}

.multi-dropdown {
  position: relative;
}

.multi-dropdown summary::-webkit-details-marker {
  display: none;
}

.multi-options {
  position: absolute;
  z-index: 160;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  max-height: 250px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(169, 151, 255, 0.3);
  border-radius: 12px;
  background: #151b31;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
  backdrop-filter: none;
}

.multi-options label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.multi-options label:hover {
  background: rgba(255, 255, 255, 0.08);
}

.multi-options input {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
}

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 min(5vw, 48px) 56px;
}

.how-section {
  position: relative;
  margin-top: 8px;
  padding: 34px 0 18px;
}

.how-section h2,
.section-head h2,
.alt-title,
.terms h2 {
  color: #fff;
  font-size: 26px;
  margin: 0;
}

.how-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 24px;
  text-align: center;
}

.how-head span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(169, 151, 255, 0.24);
  color: #dcd4ff;
  font-size: 12px;
  font-weight: 820;
}

.how-section h2 {
  text-align: center;
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.steps article {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 172px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(169, 151, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.17), rgba(255, 255, 255, 0.04)),
    rgba(21, 27, 49, 0.62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.steps article::after {
  content: "";
  position: absolute;
  inset: auto -26px -44px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 211, 110, 0.18), transparent 62%);
  pointer-events: none;
}

.steps span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), rgba(169, 151, 255, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(124, 92, 255, 0.28);
}

.steps strong {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.steps p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.popular-section,
.all-directions-section,
.results-section,
.terms {
  margin-top: 34px;
}

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

.section-head button,
.secondary-button {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.direction-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(169, 151, 255, 0.16);
  border-radius: 12px;
  background: rgba(21, 27, 49, 0.7);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.direction-card:hover,
.direction-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(169, 151, 255, 0.62);
  background: rgba(39, 45, 76, 0.84);
  outline: none;
}

.direction-card strong {
  font-size: 16px;
}

.direction-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.direction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.direction-tags small {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.16);
  color: #dcd4ff;
  font-size: 11px;
  font-weight: 760;
}

.popular-card,
.alt-card {
  position: relative;
  min-height: 196px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.popular-card {
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.popular-card:hover,
.popular-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(169, 151, 255, 0.62);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.36);
}

.popular-card::before,
.alt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 26, 0.04) 0%, rgba(8, 12, 26, 0.35) 48%, rgba(8, 12, 26, 0.9) 100%);
}

.card-badge,
.heart,
.card-body {
  position: absolute;
}

.card-badge {
  top: 16px;
  left: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(142, 209, 146, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
}

.heart {
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
}

.heart.active {
  color: #ff82aa;
}

.card-body {
  left: 18px;
  right: 18px;
  bottom: 16px;
}

.card-title {
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #d8d2eb;
  font-size: 12px;
}

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

.insight,
.results-toolbar,
.result-card,
.terms {
  background: rgba(21, 27, 49, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.insight {
  padding: 16px;
}

.insight span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 760;
}

.insight strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 20px;
}

.results-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 14px;
  align-items: end;
  padding: 16px;
  margin-bottom: 16px;
}

.results-toolbar label {
  display: grid;
  gap: 6px;
  color: #ede9ff;
  font-size: 13px;
  font-weight: 720;
}

.results-toolbar .budget-filter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(169, 151, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.results-toolbar .budget-filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.budget-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  border: 2px solid rgba(169, 151, 255, 0.72);
  background: rgba(60, 62, 84, 0.74);
}

.budget-check::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}

.results-toolbar .budget-filter input:checked + .budget-check {
  border-color: var(--purple-2);
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.results-toolbar .budget-filter input:checked + .budget-check::after {
  opacity: 1;
}

.results-toolbar .budget-filter strong,
.results-toolbar .budget-filter small {
  display: block;
}

.results-toolbar .budget-filter strong {
  color: #fff;
  font-size: 14px;
}

.results-toolbar .budget-filter small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.result-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  padding: 18px;
}

.result-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
}

.result-info h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
}

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

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.28);
  color: #dcd4ff;
  font-size: 12px;
  font-weight: 780;
}

.pill.ok {
  background: rgba(142, 209, 146, 0.12);
  border-color: rgba(142, 209, 146, 0.28);
  color: #bff0c4;
}

.pill.warn {
  background: rgba(255, 184, 108, 0.12);
  border-color: rgba(255, 184, 108, 0.3);
  color: #ffd1a5;
}

.reasons {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.reasons div {
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

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

.metric {
  padding: 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  color: #fff;
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.action-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 9px;
  font-weight: 780;
}

.tripadvisor-button {
  background: rgba(0, 170, 108, 0.16);
  border-color: rgba(0, 170, 108, 0.34);
}

.plan {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.plan-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.plan-card h3 {
  margin: 0 0 8px;
}

.plan-card ul,
.plan-card ol {
  margin: 0;
  padding-left: 20px;
  color: #eee8ff;
}

.alt-title {
  margin: 26px 0 14px;
}

.terms {
  padding: 22px;
  color: #eee8ff;
}

.about-section {
  display: grid;
  gap: 12px;
  line-height: 1.65;
}

.about-section h3 {
  margin: 14px 0 0;
  color: #fff;
  font-size: 20px;
}

.about-section p {
  margin: 0;
}

.auth-dialog {
  max-width: 430px;
  width: calc(100% - 32px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #151b31;
  color: var(--text);
  box-shadow: var(--shadow);
}

.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.dialog-close-form {
  display: flex;
  justify-content: flex-end;
}

.dialog-close-form button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.auth-dialog form:not(.dialog-close-form) {
  display: grid;
  gap: 12px;
}

.auth-dialog label {
  display: grid;
  gap: 7px;
}

.auth-message {
  min-height: 22px;
  color: var(--purple-2);
}

.hidden {
  display: none !important;
}

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

  .nav-links {
    display: none;
  }

  .search-bar,
  .result-card,
  .results-toolbar {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .search-field {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 4px;
  }

  .search-submit {
    min-height: 52px;
  }

  .advanced-grid,
  .advanced-grid.secondary,
  .steps,
  .popular-grid,
  .all-directions-grid,
  .alternatives,
  .insights,
  .metrics,
  .plan {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 20px 18px 36px;
    background-position: 58% center;
  }

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

  .brand {
    font-size: 28px;
  }

  .nav-actions {
    gap: 8px;
  }

  .login-button {
    padding: 0 14px;
  }

  .hero-content {
    margin-top: 42px;
  }

  .eyebrow {
    margin-bottom: 16px;
    padding: 8px 12px;
    font-size: 13px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-lead {
    margin: 16px 0 22px;
    font-size: 18px;
  }

  .hero-cta,
  .search-submit {
    width: 100%;
    justify-content: center;
  }

  .search-bar {
    margin-top: 24px;
    padding: 12px;
    border-radius: 14px;
  }

  .search-field {
    gap: 12px;
    padding: 13px 0;
  }

  .field-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 19px;
  }

  .advanced {
    padding: 0;
    overflow: visible;
  }

  .advanced > summary {
    width: 100%;
    padding: 10px 0 2px;
  }

  .select-options {
    position: static;
    margin-top: 8px;
    max-height: 220px;
  }

  .multi-options {
    max-height: 232px;
  }

  .date-control,
  .date-control input {
    width: 100%;
    max-width: 100%;
  }

  .date-control {
    overflow: hidden;
    border-radius: 12px;
  }

  .date-control input {
    height: 50px;
    line-height: 50px;
    text-align: center;
  }

  main {
    padding: 0 16px 42px;
  }

  .how-section {
    padding-top: 26px;
  }

  .steps article {
    min-height: 154px;
    padding: 18px;
  }

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

  .section-head button {
    width: 100%;
  }

  .advanced-grid,
  .advanced-grid.secondary,
  .steps,
  .popular-grid,
  .all-directions-grid,
  .alternatives,
  .insights,
  .metrics,
  .plan {
    grid-template-columns: 1fr;
  }

  .result-card img {
    height: 280px;
  }

  .result-card,
  .results-toolbar,
  .terms {
    padding: 14px;
    border-radius: 14px;
  }

  .result-info h2 {
    font-size: 40px;
  }

  .actions a,
  .actions button {
    flex: 1 1 100%;
  }

  .popular-card,
  .alt-card {
    min-height: 214px;
  }

  .card-meta {
    gap: 8px;
  }
}
