:root {
  --ink: #16201d;
  --deep: #16201d;
  --muted: #3f4a46;
  --line: #dce4df;
  --paper: #ffffff;
  --soft: #eef6fb;
  --soft-blue: #eef6fb;
  --mint: #75c7f2;
  --teal: #0070b8;
  --blue: #0070b8;
  --blue-dark: #005f9c;
  --coral: #ef6f5e;
  --orange: #f26b3d;
  --orange-dark: #d9572f;
  --gold: #f1b74c;
  --white: #ffffff;
  --surface: #f7fbfc;
  --sky: #dff3fb;
  --shadow: 0 24px 70px rgba(0, 48, 84, 0.16);
  --card-shadow: 0 16px 42px rgba(0, 48, 84, 0.11);
  --button-shadow: 0 10px 22px rgba(0, 112, 184, 0.22);
  --accent-shadow: 0 10px 22px rgba(242, 107, 61, 0.24);
  --control-radius: 8px;
  --parallax-shift: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, var(--surface) 42%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.96rem;
}

body.admin-page {
  background:
    linear-gradient(180deg, #eef2f5 0%, #f5f7f9 42%, #eceff2 100%);
}

body.admin-page main {
  min-height: calc(100vh - 84px);
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 112, 184, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(236, 239, 242, 0.9));
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(242, 107, 61, 0.95);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(242, 107, 61, 0.18);
}

:where(input, select, textarea):focus,
:where(input, select, textarea):focus-visible {
  border-color: var(--teal);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(0, 112, 184, 0.22);
}

.offline-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(0, 112, 184, 0.12), transparent 42%),
    var(--paper);
}

.offline-panel {
  width: min(620px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.offline-panel h1 {
  margin: 18px 0 14px;
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  line-height: 1.05;
}

.offline-panel p:last-of-type {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.currency-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(18, 32, 29, 0.68);
  backdrop-filter: blur(12px);
}

body.visitor-origin-open {
  overflow: hidden;
}

body.visitor-origin-open > :not(#currencyGate) {
  pointer-events: none;
  user-select: none;
}

.currency-gate.hidden {
  display: none;
}

.currency-gate.pending {
  background: transparent;
  backdrop-filter: none;
}

.currency-gate.pending .gate-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.gate-panel {
  width: min(660px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.gate-panel .modal-brand-header {
  margin-bottom: 22px;
}

.gate-panel h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.6rem, 3.4vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.gate-panel p {
  color: var(--muted);
}

.gate-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 26px;
}

.gate-actions input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: 11px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 650;
}

.searchable-selection {
  position: relative;
  min-width: 0;
}

.searchable-selection > input {
  width: 100%;
}

.searchable-selection-options {
  position: absolute;
  z-index: 135;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid rgba(0, 72, 118, 0.3);
  border-radius: var(--control-radius);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 38, 58, 0.18);
}

.searchable-selection-options[hidden] {
  display: none;
}

.searchable-selection-option {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid rgba(12, 25, 31, 0.09);
  border-radius: 0;
  padding: 8px 11px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.searchable-selection-description {
  display: block;
  margin-top: 2px;
  color: #526474;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.searchable-selection-option:last-child {
  border-bottom: 0;
}

.searchable-selection-option:hover,
.searchable-selection-option:focus-visible,
.searchable-selection-option.active {
  color: #ffffff;
  background: var(--blue);
  outline: none;
}

.searchable-selection-option:hover .searchable-selection-description,
.searchable-selection-option:focus-visible .searchable-selection-description,
.searchable-selection-option.active .searchable-selection-description {
  color: inherit;
}

.searchable-selection-empty {
  margin: 0;
  padding: 10px 11px;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-search button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(360px, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  min-height: 84px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 15, 22, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 28px rgba(0, 20, 30, 0.18);
}

.site-header.staff-authenticated {
  grid-template-columns: minmax(198px, auto) minmax(0, 1fr);
  gap: 8px 24px;
}

.site-header.staff-authenticated .main-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  justify-self: start;
  justify-content: flex-start;
}

.site-header.staff-authenticated .header-actions {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-brand-zone {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  align-self: center;
  justify-self: start;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-self: start;
  gap: 12px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 198px;
  height: 66px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0, 112, 184, 0.18);
  font-size: 0.76rem;
  letter-spacing: 0;
}

.brand-mark img,
.brand-mark video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .quote-brand-mark {
    background: #ffffff url("assets/my-buddy-in-logo-header.png") center / contain no-repeat;
  }

  .brand-mark video,
  .quote-brand-mark video {
    display: none;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  align-self: center;
  justify-self: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  line-height: 1.15;
  text-decoration: none !important;
  transition: color 160ms ease, border-color 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--coral);
}

.main-nav a.active,
.main-nav a[aria-current] {
  color: var(--white);
  font-weight: 850;
  text-decoration: none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-workspace-link {
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.header-actions {
  align-self: center;
  justify-self: end;
}

.header-actions .primary-btn,
.header-actions .ghost-btn,
.header-actions .selection-tracker-launch,
.header-actions .dev-reset-btn {
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  border: 0;
  padding: 6px 12px;
  font-size: 0.88rem;
  line-height: 1;
  white-space: nowrap;
}

.primary-btn,
.ghost-btn,
.selection-field,
.icon-close {
  min-height: 44px;
  border: 0;
  border-radius: var(--control-radius);
  padding: 8px 16px;
  font-weight: 750;
  line-height: 1.12;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--teal);
  box-shadow: var(--button-shadow);
}

.primary-btn:hover {
  background: #005a94;
  transform: translateY(-1px);
}

.accent-btn {
  color: var(--white);
  background: var(--orange);
  box-shadow: var(--accent-shadow);
}

.accent-btn:hover,
.accent-btn:focus-visible {
  color: var(--white);
  background: var(--orange-dark);
  box-shadow: 0 12px 26px rgba(217, 87, 47, 0.28);
}

.primary-btn.small {
  min-height: 38px;
}

.header-actions .primary-btn.small {
  height: 38px;
  min-height: 38px;
}

.primary-btn.full {
  width: 100%;
  margin-top: 18px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 112, 184, 0.72);
  color: var(--white);
  background: #0065a8;
  box-shadow: 0 10px 22px rgba(0, 112, 184, 0.18);
}

.ghost-btn:hover {
  border-color: #004f83;
  color: var(--white);
  background: #004f83;
  transform: translateY(-1px);
}

.header-actions .country-home-btn {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  min-width: 88px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  font-size: 0.88rem;
}

.header-profile-badge {
  display: inline-flex;
  min-height: 38px;
  width: 380px;
  max-width: 380px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--control-radius);
  padding: 6px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.header-profile-badge span {
  display: inline-flex;
  height: 100%;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.header-profile-badge strong {
  display: inline-flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: visible;
  color: var(--white);
  font-weight: 850;
  text-overflow: clip;
}

.country-flag {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
  border-radius: var(--control-radius) 0 0 var(--control-radius);
}

.country-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
  padding: 0 10px;
}

.flag-us {
  background: repeating-linear-gradient(
    to bottom,
    #b22234 0,
    #b22234 7.69%,
    #ffffff 7.69%,
    #ffffff 15.38%
  );
}

.flag-us::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 45%;
  height: 53.8%;
  background: #3c3b6e;
}

.flag-ca {
  background: linear-gradient(to right, #d80621 0 25%, #ffffff 25% 75%, #d80621 75% 100%);
}

.flag-ca::before {
  content: "";
  position: absolute;
  top: 42%;
  left: 50%;
  width: 12%;
  height: 16%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #d80621;
}

.flag-gb {
  background:
    linear-gradient(32deg, transparent 42%, #ffffff 42% 48%, #c8102e 48% 53%, #ffffff 53% 59%, transparent 59%),
    linear-gradient(148deg, transparent 42%, #ffffff 42% 48%, #c8102e 48% 53%, #ffffff 53% 59%, transparent 59%),
    linear-gradient(to bottom, transparent 35%, #ffffff 35% 44%, #c8102e 44% 56%, #ffffff 56% 65%, transparent 65%),
    linear-gradient(to right, transparent 35%, #ffffff 35% 44%, #c8102e 44% 56%, #ffffff 56% 65%, transparent 65%),
    #012169;
}

.flag-eu {
  background: #003399;
}

.flag-eu::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10%;
  height: 10%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffcc00;
  box-shadow:
    0 -9px 0 #ffcc00,
    8px -4px 0 #ffcc00,
    8px 4px 0 #ffcc00,
    0 9px 0 #ffcc00,
    -8px 4px 0 #ffcc00,
    -8px -4px 0 #ffcc00;
}

.flag-pt {
  background: linear-gradient(to right, #006600 0 40%, #ff0000 40% 100%);
}

.flag-pt::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 40%;
  width: 14%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffcc00;
}

.flag-it {
  background: linear-gradient(to right, #009246 0 33.3%, #ffffff 33.3% 66.6%, #ce2b37 66.6% 100%);
}

.flag-fr {
  background: linear-gradient(to right, #0055a4 0 33.3%, #ffffff 33.3% 66.6%, #ef4135 66.6% 100%);
}

.flag-es {
  background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.flag-es::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 32%;
  width: 12%;
  height: 20%;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: #aa151b;
}

.flag-mx {
  background: linear-gradient(to right, #006847 0 33.3%, #ffffff 33.3% 66.6%, #ce1126 66.6% 100%);
}

.flag-mx::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12%;
  height: 14%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #8c6b25;
}

.flag-ve {
  background: linear-gradient(to bottom, #ffcc00 0 33.3%, #00247d 33.3% 66.6%, #cf142b 66.6% 100%);
}

.flag-ve::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    -9px -2px 0 #ffffff,
    -5px -7px 0 #ffffff,
    0 -9px 0 #ffffff,
    5px -7px 0 #ffffff,
    9px -2px 0 #ffffff;
}

.flag-jp {
  background: #ffffff;
}

.flag-jp::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #bc002d;
}

.dev-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: var(--control-radius);
  padding: 7px 12px;
  color: var(--white);
  background: #3b728f;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(19, 73, 101, 0.18);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dev-reset-btn:hover {
  background: #225d7b;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(19, 73, 101, 0.22);
}

.nav-cta {
  text-decoration: none;
}

.install-app-btn {
  display: none;
}

.install-app-btn.is-visible {
  display: inline-flex;
  align-items: center;
}

.install-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: min(430px, calc(100% - 36px));
  border: 1px solid rgba(0, 112, 184, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.install-toast-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #f8fbfd;
  cursor: pointer;
}

.install-toast h3 {
  margin: 0 0 8px;
}

.install-toast ol {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.5;
}

.install-toast li + li {
  margin-top: 4px;
}

.install-toast p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero {
  position: relative;
  display: grid;
  gap: 32px;
  min-height: auto;
  padding: 24px 0 46px;
  color: var(--ink);
  background: #f3f5f7;
}

.install-toast .modal-brand-header {
  margin-bottom: 14px;
  padding-right: 44px;
}

.hero-search-card {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  overflow: visible;
  border: 1px solid rgba(12, 25, 31, 0.13);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 37, 55, 0.08);
}

.visitor-origin-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(12, 25, 31, 0.11);
  background: #f4f9fc;
  color: var(--ink);
  font-size: 0.84rem;
}

.visitor-origin-bar > span {
  font-weight: 850;
}

.visitor-origin-bar small {
  color: var(--muted);
  line-height: 1.35;
}

.visitor-origin-button {
  min-height: 34px;
  border: 1px solid rgba(0, 112, 184, 0.45);
  border-radius: var(--control-radius);
  padding: 6px 11px;
  color: var(--blue-dark);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hero-search-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 46px);
  border-bottom: 1px solid rgba(12, 25, 31, 0.11);
  padding: 14px 18px 0;
  border-radius: 15px 15px 0 0;
}

.hero-search-tabs a {
  min-height: 30px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 0 12px;
  color: var(--ink);
  background: transparent;
  font-size: 0.93rem;
  font-weight: 800;
  cursor: pointer;
}

.hero-search-tabs a:hover,
.hero-search-tabs a.active {
  border-color: var(--teal);
  color: var(--teal);
}

.hero-image-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  width: min(1200px, calc(100% - 36px));
  min-height: clamp(430px, 46vw, 520px);
  margin: 0 auto;
  border-radius: 14px;
  background: #d8edf5;
  box-shadow: 0 18px 42px rgba(0, 48, 84, 0.13);
}

.hero-media {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 0, 0) scale(1.14);
  transform-origin: center top;
  filter: brightness(1.03) saturate(1.06);
  will-change: transform;
}

.hero-slide {
  position: absolute;
  inset: -10%;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 25, 0.22), rgba(8, 20, 25, 0.08), rgba(8, 20, 25, 0)),
    linear-gradient(0deg, rgba(8, 20, 25, 0.2), rgba(8, 20, 25, 0) 54%),
    url("assets/hero-mediterranean.webp") center / cover;
  transition: opacity 1400ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-promo-card {
  position: relative;
  align-self: end;
  width: min(280px, calc(100% - 64px));
  margin: 0 0 26px 34px;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(0, 30, 44, 0.13);
}

.eyebrow {
  margin: 0;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1,
.hero-promo-card h1 {
  width: min(900px, 100%);
  margin: 9px 0 9px;
  font-size: clamp(1.55rem, 2.25vw, 1.98rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 0 0 16px;
  color: var(--muted);
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  line-height: 1.42;
}

.hero-promo-card h1 {
  font-size: clamp(1.28rem, 1.75vw, 1.58rem);
  line-height: 1.12;
}

.hero-promo-card .primary-btn {
  min-height: 38px;
  padding: 7px 13px;
  font-size: 0.84rem;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(175px, 1fr) minmax(280px, 1.45fr) minmax(120px, 0.65fr);
  gap: 8px;
  width: 100%;
  padding: 20px 12px 10px;
  background: #ffffff;
  box-shadow: none;
}

.hero-search label {
  display: grid;
  gap: 4px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(12, 25, 31, 0.36);
  border-radius: 7px;
  color: var(--ink);
  background: #ffffff;
}

.date-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.date-field {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.hero-search .date-field-label {
  color: rgba(86, 98, 105, 0.72);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
  text-align: left;
}

.hero-search span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-search .date-field .date-field-label {
  color: rgba(86, 98, 105, 0.72);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
  text-align: left;
}

.hero-search-tour-type span {
  white-space: nowrap;
}

input,
select,
textarea {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

input::placeholder,
textarea::placeholder {
  color: rgba(86, 98, 105, 0.48);
  font-weight: 400;
  opacity: 1;
}

textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}

.hero-search input,
.hero-search select {
  min-height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #000000;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.hero-search select {
  cursor: pointer;
  text-align-last: center;
}

.hero-search select.is-placeholder {
  color: rgba(86, 98, 105, 0.48);
  font-weight: 400;
}

.hero-search input:not(:placeholder-shown),
.hero-search select:not(.is-placeholder),
.hero-search input[type="date"].has-value {
  color: #000000 !important;
  font-weight: 400;
}

.hero-search input::placeholder {
  color: rgba(86, 98, 105, 0.48);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.hero-search input[type="date"]:not(.has-value) {
  color: rgba(86, 98, 105, 0.48);
  font-weight: 500;
}

.hero-search input[type="date"]:not(.has-value)::-webkit-datetime-edit {
  color: rgba(86, 98, 105, 0.48);
  font-weight: 500;
}

.hero-search input[type="date"]:not(.has-value)::-webkit-datetime-edit-day-field,
.hero-search input[type="date"]:not(.has-value)::-webkit-datetime-edit-month-field,
.hero-search input[type="date"]:not(.has-value)::-webkit-datetime-edit-text,
.hero-search input[type="date"]:not(.has-value)::-webkit-datetime-edit-year-field {
  color: rgba(86, 98, 105, 0.48);
  font-weight: 500;
}

.hero-search input[type="date"].has-value,
.hero-search input[type="date"].has-value::-webkit-datetime-edit {
  color: #000000;
  font-weight: 400;
}

.hero-search input[type="date"].has-value::-webkit-datetime-edit-day-field,
.hero-search input[type="date"].has-value::-webkit-datetime-edit-month-field,
.hero-search input[type="date"].has-value::-webkit-datetime-edit-text,
.hero-search input[type="date"].has-value::-webkit-datetime-edit-year-field {
  color: #000000;
  font-weight: 400;
}

.hero-search input:invalid {
  box-shadow: 0 2px 0 rgba(242, 107, 61, 0.65);
}

.hero-search .primary-btn {
  min-height: 52px;
  align-self: stretch;
  border-radius: var(--control-radius);
  padding-inline: 12px;
}

.hero-search-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-self: stretch;
}

.hero-search-actions .primary-btn {
  min-height: 38px;
  width: 100%;
  padding-inline: 10px;
  font-size: 0.82rem;
}

.hero-search-actions .browse-all-btn {
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(0, 112, 184, 0.16);
}

.hero-search-actions .browse-all-btn:hover,
.hero-search-actions .browse-all-btn:focus-visible {
  background: var(--blue-dark);
}

.hero-search-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.hero-search-note.is-warning {
  color: var(--deep);
  font-weight: 850;
}

.homepage-locked-field {
  background: #f6f8fa;
  color: var(--ink);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.trust-strip article {
  padding: 20px clamp(18px, 3vw, 40px);
  border-right: 1px solid var(--line);
}

.trust-strip strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.trust-strip span,
.muted,
.ops-grid p,
.site-footer p,
.site-footer a {
  color: var(--muted);
}

.selection-tracker {
  position: fixed;
  top: 96px;
  left: 50%;
  right: auto;
  z-index: 46;
  display: grid;
  grid-template-columns: minmax(245px, auto) minmax(0, 1fr) minmax(190px, auto);
  align-items: center;
  gap: 7px 12px;
  width: min(1120px, calc(100vw - 24px));
  min-height: 0;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(67, 75, 83, 0.3);
  background:
    linear-gradient(180deg, rgba(221, 225, 229, 0.98), rgba(201, 207, 213, 0.98));
  box-shadow: 0 18px 42px rgba(31, 38, 45, 0.21);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.selection-tracker.is-dragging {
  user-select: none;
}

.selection-tracker-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  grid-column: 1;
  grid-row: 1;
  min-height: 34px;
  white-space: nowrap;
}

.tracker-drag-handle {
  flex: 0 0 auto;
  min-height: 28px;
  border: 0;
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
  font-size: 0.69rem;
  cursor: grab;
  box-shadow: 0 8px 18px rgba(43, 52, 60, 0.12);
  touch-action: none;
}

.tracker-drag-handle:hover,
.tracker-drag-handle:focus-visible {
  color: var(--white);
  background: var(--blue-dark);
}

.selection-tracker.is-dragging .tracker-drag-handle {
  cursor: grabbing;
}

.selection-tracker h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.1;
}

.selection-tracker dl {
  display: grid;
  grid-template-columns: repeat(7, minmax(132px, 1fr));
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 7px;
  margin: 0;
}

.selection-tracker dl div {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  min-height: 38px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.selection-tracker dt {
  color: #141d1a;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selection-tracker dd {
  margin: 0;
  color: var(--muted);
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: normal;
}

.selection-tracker .primary-btn {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  width: auto;
  min-width: 190px;
  max-width: 230px;
  min-height: 36px;
  margin-top: 0;
  padding-inline: 16px;
  font-size: 0.78rem;
}

.selection-tracker:not(.has-selection) {
  opacity: 0.92;
}

.section-shell,
.portal-section {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0;
}

.marketplace-section,
.destinations-section,
.buddies-section,
.stories-section,
.support-section {
  position: relative;
  isolation: isolate;
  z-index: 1;
  background: var(--section-band);
  box-shadow: 0 0 0 100vmax var(--section-band);
  clip-path: inset(0 -100vmax);
}

.page-focus-active {
  border-radius: 12px;
}

.page-focus-active > .section-heading,
.page-focus-active > .section-shell,
.page-focus-active.portal-section,
.page-focus-active.admin-section {
  box-sizing: border-box;
  border-radius: 12px;
  outline: 1px solid rgba(0, 112, 184, 0.18);
  outline-offset: 0;
  box-shadow: 0 10px 28px rgba(0, 48, 84, 0.08);
  transition: outline-color 180ms ease, box-shadow 180ms ease;
}

.page-focus-active > .section-heading,
.page-focus-active.portal-section,
.page-focus-active.admin-section {
  box-sizing: border-box;
  padding: 16px 18px 18px;
}

body:not(.admin-page) .page-focus-active > .section-heading.compact {
  width: min(820px, 100%);
}

.request-form:focus-within,
.admin-panel:focus-within,
.admin-table-panel:focus-within,
.admin-record-dialog:focus-within {
  outline: 0;
}

.destinations-section,
.buddies-section {
  z-index: 4;
}

.stories-section,
.support-section {
  z-index: 1;
}

.marketplace-section {
  --section-band: #f3f5f7;
  --section-band-soft: rgba(243, 245, 247, 0.45);
  --section-band-accent: rgba(255, 255, 255, 0.8);
}

.destinations-section {
  --section-band: #ffffff;
  --section-band-soft: rgba(255, 255, 255, 0.92);
  --section-band-accent: rgba(117, 199, 242, 0.12);
}

.buddies-section {
  --section-band: #f3f5f7;
  --section-band-soft: rgba(243, 245, 247, 0.45);
  --section-band-accent: rgba(241, 183, 76, 0.12);
}

.stories-section {
  --section-band: #ffffff;
  --section-band-soft: rgba(255, 255, 255, 0.92);
  --section-band-accent: rgba(117, 199, 242, 0.1);
}

.support-section {
  --section-band: #f3f5f7;
  --section-band-soft: rgba(243, 245, 247, 0.45);
  --section-band-accent: rgba(117, 199, 242, 0.08);
}

body:not(.admin-page) main > section {
  --section-band: var(--public-section-band);
  position: relative;
  isolation: isolate;
  background: var(--public-section-band);
  box-shadow: 0 0 0 100vmax var(--public-section-band);
  clip-path: inset(0 -100vmax);
}

body:not(.admin-page) main > section:nth-of-type(odd) {
  --public-section-band: #f3f5f7;
  --section-band-soft: rgba(243, 245, 247, 0.45);
  --section-band-accent: rgba(255, 255, 255, 0.78);
}

body:not(.admin-page) main > section:nth-of-type(even) {
  --public-section-band: #ffffff;
  --section-band-soft: rgba(255, 255, 255, 0.92);
  --section-band-accent: rgba(117, 199, 242, 0.1);
}

.marketplace-section::after,
.destinations-section::after,
.buddies-section::after,
.stories-section::after,
.support-section::after {
  position: absolute;
  top: -180px;
  bottom: -180px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      var(--section-band-soft) 16%,
      var(--section-band) 34%,
      var(--section-band) 66%,
      var(--section-band-soft) 84%,
      rgba(255, 255, 255, 0) 100%
    ),
    radial-gradient(circle at 18% 22%, var(--section-band-accent), transparent 38%),
    radial-gradient(circle at 82% 18%, var(--section-band-soft), transparent 38%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.destinations-section::before,
.buddies-section::before,
.stories-section::before {
  position: absolute;
  top: -110px;
  bottom: -110px;
  left: 50%;
  width: 100vw;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  transform: translate3d(-50%, var(--parallax-shift, 0), 0);
  transition: opacity 160ms ease;
  will-change: transform;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.destinations-section::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(117, 199, 242, 0.26), transparent 32%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(180deg, rgba(223, 243, 251, 0.34), transparent 72%);
}

.buddies-section::before {
  background:
    radial-gradient(circle at 18% 8%, rgba(241, 183, 76, 0.16), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(0, 112, 184, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(247, 251, 252, 0.78), transparent 72%);
}

.stories-section::before {
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.76), transparent 32%),
    radial-gradient(circle at 84% 12%, rgba(117, 199, 242, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent 70%);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading.compact {
  display: block;
  width: min(760px, 100%);
}

.tour-marketplace-heading {
  width: min(980px, 100%);
}

.section-heading.tour-marketplace-heading h2 {
  font-size: clamp(1.55rem, 2.35vw, 2.12rem);
}

.section-heading h2,
.portal-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 2.75vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p:last-child,
.portal-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.traveler-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.request-section .section-heading .traveler-selection-actions {
  margin-top: 22px;
  margin-bottom: 4px;
}

.market-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 18px;
}

.market-steps article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(0, 112, 184, 0.14);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(0, 112, 184, 0.09), transparent 45%),
    var(--white);
  box-shadow: var(--card-shadow);
}

.market-steps span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.market-steps h3 {
  margin: 16px 0 9px;
  font-size: 1.08rem;
}

.market-steps p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.traveler-promise {
  width: min(880px, 100%);
  margin: 20px auto 0;
  padding: 18px 22px;
  border-radius: var(--control-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(223, 243, 251, 0.78)),
    var(--white);
  box-shadow: 0 18px 44px rgba(0, 112, 184, 0.12);
}

.traveler-promise p {
  margin: 0;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 720;
  line-height: 1.55;
  text-align: center;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.section-actions .section-return {
  margin-top: 0;
}

.step-action,
.section-return {
  margin-top: 16px;
  min-height: 40px;
  border-color: var(--teal);
  padding: 9px 13px;
  color: var(--white);
  background: var(--teal);
  box-shadow: var(--button-shadow);
  font-size: 0.9rem;
}

.step-action:hover,
.section-return:hover {
  color: var(--white);
  background: #005a94;
}

.section-return {
  position: relative;
  z-index: 40;
  width: fit-content;
  opacity: 1 !important;
  color: var(--white) !important;
  background: #0069ad !important;
  background-image: none !important;
  filter: none !important;
  box-shadow: 0 12px 24px rgba(0, 72, 118, 0.28);
  mix-blend-mode: normal;
}

.section-return:hover {
  color: var(--white) !important;
  background: #005487 !important;
  background-image: none !important;
}

.browse-group-heading {
  margin: 20px 0 10px;
}

.browse-group-heading h3 {
  margin: 5px 0 0;
  font-size: clamp(1.02rem, 1.6vw, 1.28rem);
  line-height: 1.18;
}

.destination-group-heading {
  margin-top: 18px;
}

.tour-results-stack {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.tour-result-group {
  display: grid;
  gap: 12px;
}

.tour-result-group.hidden {
  display: none;
}

.tour-result-heading {
  display: grid;
  gap: 4px;
}

.tour-result-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.6vw, 1.26rem);
  line-height: 1.18;
}

.tour-result-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.destination-card:hover,
.story-card:hover,
.opportunity-card:hover,
.ops-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(0, 48, 84, 0.16);
}

.selection-field {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  color: var(--white);
  background: var(--orange);
  font-family: inherit;
  font-size: inherit;
  line-height: 1.12;
  text-align: center;
  box-shadow: var(--accent-shadow);
}

.destination-card .selection-field,
.buddy-profile-card .selection-field,
.opportunity-card .selection-field {
  color: #fff;
}

.selection-field:hover,
.selection-field:focus-visible {
  border-color: var(--orange-dark);
  color: #fff;
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.selected .selection-field {
  border-color: var(--orange-dark);
  color: #fff;
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
}

.card-checkmark {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--gold));
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: 0 10px 18px rgba(14, 35, 31, 0.22);
}

.selected > .card-checkmark {
  display: grid;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 310px));
  gap: 18px;
  justify-content: start;
  margin-top: 0;
}

.story-grid,
.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.opportunity-grid {
  grid-template-columns: repeat(4, 1fr);
}

.destination-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 48, 84, 0.15);
  text-align: left;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.destination-card.hidden {
  display: none;
}

.no-results-message {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--card-shadow);
  font-weight: 780;
}

.destination-card h3 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(1rem, 1.08vw, 1.15rem);
  line-height: 1.2;
}

.destination-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.38;
}

.tour-card-media {
  position: relative;
  aspect-ratio: 4 / 2.85;
  min-height: 244px;
  background:
    linear-gradient(180deg, rgba(6, 22, 29, 0.02), rgba(6, 22, 29, 0.04)),
    var(--soft-blue);
  background-position: center;
  background-size: cover;
}

.card-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  font-size: 1.35rem;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(0, 48, 84, 0.16);
}

.guide-strip {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: -34px 0 0;
  padding: 0 15px 0 76px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 740;
  backdrop-filter: blur(5px);
  box-shadow: none;
}

.guide-avatar {
  position: absolute;
  left: 22px;
  bottom: -6px;
  display: inline-grid;
  overflow: hidden;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), #005487);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 48, 84, 0.16);
}

.guide-photo-avatar {
  background: var(--white);
}

.guide-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 16px 16px;
  background: var(--white);
}

.tour-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 10px !important;
  color: var(--ink) !important;
  font-size: 0.88rem !important;
  font-weight: 850;
}

.tour-rating span {
  color: #f5b400;
  font-size: 1rem;
}

.tour-status {
  margin: 0 0 10px !important;
  color: #008f64 !important;
  font-size: 0.9rem !important;
  font-weight: 850;
}

.tour-card-summary {
  margin: 0 0 10px !important;
}

.multi-city-card-plan {
  display: grid;
  gap: 3px;
  margin: 0 0 10px;
  padding: 9px 10px;
  border-radius: var(--control-radius);
  background: #eef6fb;
}

.multi-city-card-plan strong {
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.multi-city-card-plan span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.tour-facts {
  display: grid;
  gap: 5px;
  margin: 4px 0 13px;
  padding: 0;
  color: var(--muted);
  font-size: 0.83rem;
  list-style: none;
}

.tour-facts li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tour-facts span {
  width: 17px;
  color: #4a5551;
  text-align: center;
}

.tour-price {
  display: grid;
  gap: 2px;
  margin: auto 0 13px !important;
  color: var(--ink) !important;
  font-size: 0.9rem !important;
}

.tour-price-prefix {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  text-transform: uppercase;
}

.tour-cost {
  display: block;
}

.tour-price strong {
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 850;
  line-height: 1.15;
}

.tour-cost small {
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 850;
}

.destination-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 7px;
}

.destination-card-actions .ghost-btn {
  flex: 1 1 86px;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--teal);
  font-size: 0.78rem;
  justify-content: center;
  border-radius: var(--control-radius);
  box-shadow: var(--button-shadow);
}

.destination-card-actions .selection-field {
  flex: 1 1 150px;
  margin-top: 0;
}

.multi-city-preview {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--control-radius);
  background: #eef6fb;
  box-shadow: inset 0 0 0 1px rgba(0, 112, 184, 0.12);
}

.multi-city-preview ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.multi-city-preview li {
  color: var(--muted);
  font-size: 0.9rem;
}

.multi-city-preview li strong {
  display: inline-block;
  min-width: 54px;
  color: var(--ink);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.multi-city-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.buddy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 304px));
  gap: 18px;
  justify-content: start;
  margin-top: 18px;
}

.buddies-section .section-actions {
  width: min(640px, 100%);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

:is(.destinations-section,.buddies-section) .section-actions .section-return {
  min-height: 40px;
  width: min(100%, 282px);
}

.buddy-filter-note {
  width: min(720px, 100%);
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.buddy-empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(0, 112, 184, 0.28);
  border-radius: 8px;
  padding: 22px;
  color: var(--muted);
  background: var(--white);
}

.buddy-profile-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0, 48, 84, 0.13);
  text-align: left;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.buddy-profile-card:hover {
  transform: translateY(-2px);
}

.buddy-profile-card.selected {
  box-shadow: 0 0 0 2px var(--teal), 0 18px 42px rgba(0, 48, 84, 0.16);
}

.buddy-profile-card img {
  width: 100%;
  aspect-ratio: 4 / 2.85;
  object-fit: cover;
}

.buddy-avatar {
  position: relative;
  z-index: 3;
  margin: -25px 14px 7px;
}

.buddy-profile-card .tag {
  margin: 0 16px 7px;
}

.buddy-profile-card h3 {
  margin: 0 16px 7px;
  font-size: 1.05rem;
}

.buddy-profile-card p {
  flex: 1;
  margin: 0 16px 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.38;
}

.buddy-languages {
  margin: 0 16px 11px;
  color: #33413d;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.35;
}

.buddy-rate {
  display: grid;
  gap: 3px;
  margin: 0 16px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

.buddy-rate span {
  display: block;
}

.buddy-rate strong {
  margin: 0;
  color: var(--ink);
  font-size: inherit;
}

.buddy-profile-card strong {
  margin: auto 16px 12px;
  color: var(--ink);
  font-size: 0.86rem;
}

.buddy-profile-card .buddy-rate strong {
  margin: 0;
  font-size: inherit;
}

.buddy-profile-card em {
  margin: 10px 14px 0;
  color: var(--ink);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 900;
}

.buddy-profile-card .selection-field {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
}

.lisbon-card .tour-card-media {
  background-image: url("https://images.unsplash.com/photo-1585208798174-6cedd86e019a?auto=format&fit=crop&w=900&q=84");
}

.kyoto-card .tour-card-media {
  background-image: url("https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?auto=format&fit=crop&w=900&q=84");
}

.rome-card .tour-card-media {
  background-image: url("https://images.unsplash.com/photo-1552832230-c0197dd311b5?auto=format&fit=crop&w=900&q=84");
}

.paris-card .tour-card-media {
  background-image: url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=900&q=84");
}

.barcelona-card .tour-card-media {
  background-image: url("https://images.unsplash.com/photo-1583422409516-2895a77efded?auto=format&fit=crop&w=900&q=84");
}

.mexico-card .tour-card-media {
  background-image: url("https://images.unsplash.com/photo-1585464231875-d9ef1f5ad396?auto=format&fit=crop&w=900&q=84");
}

.story-card,
.opportunity-card {
  overflow: hidden;
  border: 1px solid rgba(0, 112, 184, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.opportunity-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.opportunity-card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.12;
}

.opportunity-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.opportunity-card strong {
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 1.18rem;
}

.open-tour-grid {
  grid-template-columns: repeat(3, 1fr);
}

.open-tour-guest-actions {
  display: grid;
  width: 100%;
  gap: 10px;
  margin-top: 18px;
}

.open-tour-guest-actions .primary-btn.full {
  margin-top: 0;
}

.opportunity-empty-card {
  grid-column: 1 / -1;
  min-height: 220px;
}

.story-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(0, 112, 184, 0.08), transparent 42%),
    var(--white);
}

.story-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

.story-card strong,
.story-card span {
  display: block;
}

.story-card span {
  margin-top: 5px;
  color: var(--muted);
}

.ops-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.ops-grid h3 {
  margin: 0 0 12px;
}

.portal-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 36px;
  align-items: center;
}

.portal-page {
  grid-template-columns: minmax(0, 760px);
  align-items: start;
}

.portal-page .portal-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(1.65rem, 3.2vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.portal-copy {
  position: sticky;
  top: 110px;
}

.dashboard {
  padding: 20px;
  border: 1px solid rgba(22, 32, 29, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(120, 214, 179, 0.18), transparent 34%),
    var(--white);
  box-shadow: var(--shadow);
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-top h3 {
  margin: 2px 0 0;
  font-size: 1.45rem;
}

.submit-confirmation-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 32, 29, 0.58);
  backdrop-filter: blur(10px);
}

.submit-confirmation-panel {
  position: relative;
  width: min(640px, 100%);
  border: 1px solid rgba(0, 112, 184, 0.22);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.submit-confirmation-panel .modal-brand-header {
  margin-bottom: 18px;
}

.portal-gate-panel {
  width: min(520px, 100%);
}

.mbi-notice-panel {
  width: min(540px, 100%);
}

.mbi-notice-message {
  margin: 16px 0 18px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
}

.portal-gate-error {
  margin: 16px 0 18px;
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  padding: 12px 14px;
  color: #c42918;
  background: #fff0ed;
  font-size: 1.04rem;
  font-weight: 900;
}

.portal-gate-actions {
  display: flex;
  justify-content: flex-end;
}

.lead-dialog-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid rgba(25, 44, 56, 0.12);
  background: #f5f7fa;
}

.lead-dialog-titlebar strong {
  color: #1b1f24;
  font-size: 0.92rem;
  font-weight: 760;
}

.admin-record-dialog .lead-dialog-titlebar {
  min-height: 34px;
  padding: 0 8px 0 12px;
}

.admin-record-dialog .lead-dialog-titlebar strong {
  font-size: 0.8rem;
}

.submit-confirmation-panel h3 {
  margin: 8px 38px 10px 0;
  font-size: clamp(1.22rem, 2vw, 1.6rem);
  line-height: 1.12;
}

.submit-confirmation-panel p {
  margin: 0 0 18px;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.5;
}

.submit-confirmation-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.submit-confirmation-actions .primary-btn,
.submit-confirmation-actions .ghost-btn {
  flex: 1 1 180px;
  min-height: 42px;
  margin-top: 0;
}

.submit-confirmation-actions .ghost-btn:hover,
.submit-confirmation-actions .ghost-btn:focus-visible {
  border-color: #005a94;
  color: var(--white);
  background: #005a94;
  box-shadow: 0 10px 22px rgba(0, 90, 148, 0.2);
}

.submit-confirmation-panel .icon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  width: 34px;
  padding: 0;
}

.admin-record-dialog .icon-close {
  position: static;
  min-height: 30px;
  width: 30px;
  padding: 0;
  border-radius: 2px;
  color: #1b1f24;
  background: transparent;
  box-shadow: none;
}

.admin-record-dialog .icon-close:hover {
  background: #e81123;
  color: #ffffff;
}

.request-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border: 1px solid rgba(0, 112, 184, 0.12);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.conversation-section {
  padding-top: 34px;
}

.conversation-workspace {
  border: 1px solid rgba(14, 72, 101, 0.2);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(31, 38, 45, 0.1);
  overflow: hidden;
}

.conversation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(14, 72, 101, 0.14);
  background: #f4f9fb;
}

.conversation-toolbar > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.conversation-toolbar strong,
.conversation-toolbar span {
  overflow-wrap: anywhere;
}

.conversation-toolbar span {
  color: var(--muted);
  font-size: 0.82rem;
}

.conversation-thread {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #f8fafb;
}

.conversation-message {
  width: min(78%, 720px);
  border: 1px solid rgba(14, 72, 101, 0.15);
  border-radius: 6px;
  padding: 11px 13px;
  background: var(--white);
}

.conversation-message-traveler {
  justify-self: end;
  border-color: rgba(0, 118, 182, 0.3);
  background: #eef8fd;
}

.conversation-message > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.conversation-message time {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.conversation-message p,
.conversation-empty {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.conversation-empty {
  color: var(--muted);
  text-align: center;
}

.conversation-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(14, 72, 101, 0.14);
}

.conversation-composer label {
  display: grid;
  gap: 6px;
}

.conversation-composer label span {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.conversation-composer textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
}

.conversation-composer .lead-status-message {
  grid-column: 1 / -1;
  margin: 0;
}

.opportunity-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.request-form label {
  display: grid;
  gap: 7px;
}

.request-form label span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.password-toggle-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
  align-items: stretch;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.password-toggle-field .password-toggle-button {
  min-height: 42px;
  height: auto;
  padding: 8px 12px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.form-label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.request-field-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 0;
  border-radius: 8px;
}

.request-field-group legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  width: 100%;
  margin: 0 0 2px;
  padding: 0;
}

.request-field-group legend span {
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-field-group legend strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.homepage-selection-group {
  background: #f3f7fa;
}

.traveler-detail-group {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 112, 184, 0.1);
}

.request-date-range {
  grid-column: span 2;
  display: grid;
  gap: 8px;
}

.request-date-range .date-range-inputs {
  grid-template-columns: repeat(2, minmax(130px, 1fr));
}

.request-date-range .date-field {
  gap: 7px;
}

.request-travelers-field {
  align-self: end;
}

.request-form .request-date-range .date-field-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.buddy-choice-panel,
.selected-buddy-panel {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.75fr) auto;
  gap: 12px;
  align-items: end;
  border-radius: 8px;
  padding: 14px;
  background: #f5fbff;
}

.selected-buddy-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 178px);
  gap: 12px;
  align-items: center;
}

.selected-buddy-panel {
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(150px, 178px));
}

.selected-buddy-actions-row > .primary-btn,
.selected-buddy-panel .primary-btn,
.selected-buddy-panel .ghost-btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.buddy-choice-panel p,
.selected-buddy-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.selected-buddy-panel strong {
  color: var(--ink);
}

.availability-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.availability-fieldset legend {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.availability-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(223, 243, 251, 0.72);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 760;
}

.availability-fieldset input {
  width: 16px;
  height: 16px;
}

.buddy-claim-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0 10px;
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.buddy-claim-panel label {
  display: grid;
  gap: 7px;
}

.buddy-claim-panel span {
  color: var(--deep);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.buddy-claim-panel input {
  min-height: 42px;
  border: 1px solid rgba(0, 112, 184, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.buddy-claim-panel input[readonly] {
  color: var(--deep);
  background: #f4f8fa;
  font-weight: 750;
}

.buddy-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.buddy-login-actions .primary-btn,
.buddy-login-actions .ghost-btn {
  min-width: 190px;
}

.buddy-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.buddy-dashboard-grid article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  align-content: center;
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(0, 112, 184, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(22, 32, 29, 0.16);
}

.buddy-dashboard-grid span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.18;
  text-transform: uppercase;
}

.buddy-dashboard-grid strong {
  color: var(--teal);
  font-size: clamp(1.28rem, 2.6vw, 2rem);
  line-height: 1;
}

.buddy-dashboard-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.buddy-chart-card {
  display: grid;
  gap: 16px;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(22, 32, 29, 0.16);
}

.dashboard-card-heading {
  display: grid;
  gap: 5px;
}

.dashboard-card-heading span {
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.dashboard-card-heading strong {
  color: var(--deep);
  font-size: 1.08rem;
  line-height: 1.2;
}

.buddy-bar-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(58px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 210px;
}

.buddy-bar-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-height: 190px;
  text-align: center;
}

.buddy-bar-value {
  color: var(--deep);
  font-size: 0.9rem;
  font-weight: 900;
}

.buddy-bar-track {
  display: flex;
  align-items: end;
  overflow: hidden;
  min-height: 128px;
  border-radius: 8px;
  background: #e9eef1;
}

.buddy-bar-fill {
  display: block;
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: var(--teal);
  box-shadow: 0 -8px 22px rgba(0, 112, 184, 0.16);
}

.buddy-bar-fill.orange,
.assignment-pipeline-fill.orange {
  background: var(--coral);
}

.buddy-bar-fill.teal,
.assignment-pipeline-fill.teal {
  background: #0098b8;
}

.buddy-bar-fill.green,
.assignment-pipeline-fill.green {
  background: #18865a;
}

.buddy-bar-fill.red,
.assignment-pipeline-fill.red {
  background: #ef6658;
}

.buddy-bar-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.assignment-pipeline-chart {
  display: grid;
  gap: 12px;
  align-content: center;
}

.assignment-pipeline-row {
  display: grid;
  grid-template-columns: minmax(94px, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.assignment-pipeline-row span {
  color: var(--deep);
  font-size: 0.86rem;
  font-weight: 850;
}

.assignment-pipeline-row strong {
  color: var(--teal);
  font-size: 0.95rem;
  line-height: 1;
}

.assignment-pipeline-track {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 12px;
  border-radius: 8px;
  background: #e9eef1;
}

.assignment-pipeline-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.buddy-interest-status {
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: #004f82;
  background: rgba(223, 242, 255, 0.92);
  font-weight: 750;
}

.lead-status-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #0f5132;
  background: rgba(117, 199, 242, 0.18);
  font-weight: 760;
}

.assignment-stage,
.marketplace-protection-note {
  display: block;
}

.marketplace-protection-note {
  border-radius: 8px;
  padding: 10px 12px;
  color: #31515d;
  background: rgba(244, 248, 250, 0.96);
  font-size: 0.9rem;
  font-weight: 720;
}

.assignment-status-control {
  display: grid;
  gap: 5px;
  min-width: 170px;
}

.assignment-status-control span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.assignment-status-control select {
  min-height: 38px;
  border: 1px solid rgba(0, 112, 184, 0.18);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  font: inherit;
  font-weight: 780;
}

.payment-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 22px;
  margin-top: 22px;
}

.payment-method-card {
  display: grid;
  align-content: start;
  gap: 14px;
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.payment-method-card h3 {
  margin: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.payment-method-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.payment-method-card label {
  display: grid;
  gap: 7px;
}

.payment-method-card label span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.payment-method-card strong {
  color: var(--teal);
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-wide {
  grid-column: 1 / -1;
}

.selected-tour-cost-field input {
  border-color: rgba(0, 112, 184, 0.24);
  color: #063a74;
  background: #f7fcff;
  font-weight: 850;
}

.hidden-field {
  display: none;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.admin-section {
  align-items: start;
  grid-template-columns: 1fr;
  gap: 22px;
}

.admin-login-panel {
  min-height: auto;
}

.admin-access-notice {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-section .portal-copy {
  position: static;
  max-width: none;
}

.admin-section .portal-copy h1 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.12;
  max-width: 980px;
}

.admin-workspace .section-heading h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.admin-login-form {
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  box-shadow: none;
}

.admin-note,
.admin-error {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-error {
  color: var(--coral);
  font-weight: 800;
}

.admin-grid,
.admin-records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.admin-table-stack {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.admin-panel {
  border: 1px solid rgba(0, 112, 184, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.admin-table-panel {
  border: 0;
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(20, 57, 74, 0.08);
}

body.admin-page .admin-table-panel,
body.admin-page .admin-sales-leads {
  width: 100%;
  box-sizing: border-box;
}

body.admin-page .admin-panel,
body.admin-page .dashboard,
body.admin-page .admin-sales-leads {
  background: rgba(255, 255, 255, 0.96);
}

.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-panel-heading h3 {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.18;
}

.admin-table-panel .admin-panel-heading h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.admin-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-heading-actions .ghost-btn,
.admin-heading-actions .primary-btn,
.admin-table-panel .admin-panel-heading > .primary-btn {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.82rem;
}

.admin-entry-form {
  grid-template-columns: repeat(2, 1fr);
  align-items: end;
  gap: 14px 16px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.admin-entry-form label {
  min-width: 0;
  gap: 6px;
  font-size: 0.68rem;
}

.admin-image-field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.82fr);
  gap: 12px;
  align-items: end;
}

.admin-entry-form input,
.admin-entry-form select {
  width: 100%;
  min-height: 42px;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.admin-entry-form textarea {
  width: 100%;
  min-height: 88px;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 0.82rem;
  line-height: 1.42;
}

.admin-file-control {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(0, 112, 184, 0.18);
  border-radius: 6px;
  padding: 5px 6px;
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
}

.admin-file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.admin-file-control:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.admin-file-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 7px 14px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 18px rgba(0, 112, 184, 0.18);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.15;
  text-transform: none;
  white-space: nowrap;
}

.admin-file-status {
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.15;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-image-thumb {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(0, 112, 184, 0.08);
  box-shadow: 0 8px 18px rgba(0, 48, 84, 0.14);
}

.request-form label .admin-file-button,
.request-form label .admin-file-control:hover .admin-file-button {
  color: #fff;
}

.admin-file-control:hover .admin-file-button {
  background: #005a94;
}

.admin-record-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.admin-record-list .admin-lead-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(180px, 1fr) auto;
  align-items: center;
  min-height: 0;
  text-align: left;
}

.admin-record-list .admin-lead-card h4,
.admin-record-list .admin-lead-card p {
  margin: 0;
  text-align: left;
}

.admin-record-list .admin-lead-card h4 {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.3;
}

.admin-record-list .admin-lead-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

body.admin-page .admin-section {
  padding-top: 32px;
  padding-bottom: 12px;
}

body.admin-page .admin-workspace {
  padding-top: 8px;
  padding-bottom: 42px;
}

body.admin-page .admin-workspace .admin-records-grid {
  margin-top: 0;
}

.destination-card,
.buddy-profile-card,
.destination-card h3,
.destination-card p,
.buddy-profile-card h3,
.buddy-profile-card p {
  text-align: left;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.84rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(31, 55, 65, 0.1);
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: var(--muted);
  background: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(31, 55, 65, 0.1);
}

.admin-record-table {
  min-width: 1120px;
  table-layout: auto;
}

.admin-record-table th:first-child,
.admin-record-table td:first-child {
  min-width: 210px;
  font-weight: 780;
}

.admin-buddies-table {
  min-width: 1740px;
}

.admin-opportunities-table {
  min-width: 1900px;
}

.admin-record-table td {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-record-table tbody tr:nth-child(odd),
.admin-interest-table tbody tr:nth-child(odd) {
  background: rgba(244, 248, 250, 0.88);
}

.admin-status-cell {
  color: var(--teal);
  font-weight: 760;
}

.admin-interest-table {
  min-width: 1280px;
  table-layout: auto;
}

.admin-interest-table select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(0, 112, 184, 0.18);
  border-radius: 6px;
  padding: 6px 8px;
  background: #fff;
  font: inherit;
}

body.admin-page .admin-dispatch-board {
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  border: 0;
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(20, 57, 74, 0.08);
}

body.admin-page .admin-dispatch-board .admin-lead-list {
  margin-top: 12px;
}

.admin-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 26px;
  border: 0;
  border-radius: var(--control-radius);
  box-sizing: border-box;
  padding: 0 0 0 6px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.admin-sort-button:hover,
.admin-sort-button:focus-visible {
  color: var(--teal);
}

.admin-sort-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  border-radius: 999px;
  padding: 3px 6px;
  color: var(--teal);
  background: rgba(223, 243, 251, 0.9);
  font-size: 0.58rem;
  font-weight: 900;
}

.admin-table-row {
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, outline-color 150ms ease;
}

.admin-table-row:hover,
.admin-table-row:focus-visible,
.admin-table-row.is-work-focus {
  background: rgba(223, 240, 250, 0.48);
}

.admin-table-row:focus-visible,
.admin-table-row.is-work-focus {
  outline: 2px solid rgba(242, 107, 61, 0.72);
  outline-offset: -2px;
  box-shadow: inset 4px 0 0 var(--orange);
}

.admin-table td:last-child,
.admin-table th:last-child {
  width: 150px;
}

.admin-row-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 7px;
}

.admin-row-actions .primary-btn,
.admin-row-actions .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  min-width: 76px;
  padding: 6px 10px;
  font-size: 0.78rem;
  line-height: 1;
}

.admin-sales-leads {
  margin-top: 20px;
  border: 1px solid rgba(0, 112, 184, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.admin-dispatch-board {
  background:
    linear-gradient(135deg, rgba(232, 247, 255, 0.72), rgba(255, 255, 255, 0.96));
}

.admin-lead-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-lead-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--surface);
}

.admin-lead-card strong,
.admin-lead-card span {
  display: block;
}

.admin-lead-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.38;
}

.lead-stage {
  flex: 0 0 auto;
  border-radius: 999px;
  max-width: 160px;
  padding: 6px 9px;
  background: rgba(0, 112, 184, 0.12);
  color: var(--teal);
  font-weight: 900;
  font-size: 0.68rem;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.admin-record {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.admin-record strong,
.admin-record span {
  display: block;
}

.admin-record strong {
  margin-bottom: 6px;
  color: var(--ink);
}

.admin-record span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.38;
}

.admin-form-actions,
.admin-record-actions {
  display: grid;
  align-items: stretch;
  gap: 14px;
}

.admin-form-actions {
  grid-template-columns: minmax(220px, 1fr) 134px;
  margin-top: 4px;
}

.admin-form-actions:has(.ghost-btn.danger:not(.hidden)) {
  grid-template-columns: minmax(220px, 1fr) 134px 134px;
}

.admin-form-actions .primary-btn {
  height: 40px;
  min-height: 40px;
  margin-top: 0;
}

.admin-record-actions {
  grid-template-columns: repeat(auto-fit, minmax(128px, max-content));
  margin-top: 12px;
}

.admin-record-actions .ghost-btn,
.admin-form-actions .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.admin-record-modal {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: grid;
  place-items: start center;
  padding: clamp(10px, 3vh, 28px) 18px 18px;
  background: rgba(20, 28, 34, 0.42);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  color: var(--ink);
}

.admin-record-modal::backdrop {
  background: transparent;
}

.admin-record-dialog {
  width: min(660px, 100%);
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(10, 24, 32, 0.32);
}

.admin-record-modal-body {
  padding: 14px;
}

.admin-record-modal-body .admin-entry-form {
  margin: 0;
}

.sales-lead-record-modal {
  place-items: start center;
  padding-top: 6px;
}

.sales-lead-record-modal .admin-record-dialog {
  width: min(1120px, calc(100vw - 28px));
}

.sales-lead-record-modal .admin-record-modal-body {
  padding: 10px 16px 12px;
}

.sales-lead-record-modal #adminOpportunityForm {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 16px;
  align-items: end;
}

.sales-lead-record-modal #adminOpportunityForm label {
  gap: 4px;
}

.sales-lead-record-modal #adminOpportunityForm label span {
  font-size: 0.66rem;
}

.sales-lead-record-modal #adminOpportunityForm input,
.sales-lead-record-modal #adminOpportunityForm select {
  min-height: 36px;
  padding-inline: 11px;
}

.sales-lead-record-modal #adminOpportunityForm textarea {
  padding: 9px 11px;
}

.sales-lead-record-modal #adminOpportunityForm .form-wide,
.sales-lead-record-modal #adminOpportunityForm .sales-lead-form-header {
  grid-column: 1 / -1;
}

.modal-brand-header,
.sales-lead-form-header {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  margin-bottom: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: #07131b;
  color: var(--white);
}

.modal-brand-header .brand,
.sales-lead-form-header .brand {
  min-width: 168px;
  padding: 0;
}

.modal-brand-header .brand-mark,
.sales-lead-form-header .brand-mark {
  width: 168px;
  height: 56px;
  border-radius: 7px;
}

.modal-brand-header .brand-name,
.sales-lead-form-header .brand-name {
  color: #ff7d68;
}

.modal-brand-header h3,
.sales-lead-form-header h3 {
  margin: 2px 0 2px;
  color: var(--white);
  font-size: 0.96rem;
  line-height: 1.15;
}

.modal-brand-header p,
.sales-lead-form-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  line-height: 1.28;
}

.modal-brand-header .tag,
.sales-lead-form-header .tag {
  min-height: 24px;
  padding: 5px 9px;
  background: rgba(223, 243, 251, 0.12);
  color: #dff3fb;
  font-size: 0.66rem;
}

.modal-brand-header .brand:hover {
  transform: none;
}

.admin-modal-brand-header {
  margin: 12px 14px 0;
}

.sales-lead-record-modal #adminOpportunityForm .sales-lead-form-header {
  display: none;
}

@media (max-width: 620px) {
  .modal-brand-header,
  .sales-lead-form-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modal-brand-header .brand,
  .sales-lead-form-header .brand {
    min-width: 0;
  }

  .gate-panel,
  .submit-confirmation-panel {
    padding: 20px;
  }
}

.sales-lead-record-modal #adminOpportunityForm textarea[name="quoteMessage"] {
  min-height: 96px;
}

.sales-lead-record-modal #adminOpportunityForm textarea[name="paymentInstructions"],
.sales-lead-record-modal #adminOpportunityForm textarea[name="notes"] {
  min-height: 58px;
}

.admin-record-modal-actions {
  display: grid;
  grid-template-columns: 134px;
  justify-content: flex-end;
  padding: 0 14px 14px;
}

.ghost-btn.danger {
  border-color: #df8a82;
  color: #b42318;
  background: #ffffff;
  box-shadow: none;
}

.ghost-btn.danger:hover {
  border-color: #c9362b;
  color: #991b1b;
  background: #fff4f2;
  transform: translateY(-1px);
}

.admin-form-actions .ghost-btn {
  width: 134px;
  height: 40px;
  min-height: 40px;
  margin: 0;
}

.admin-form-actions .ghost-btn.danger {
  width: 134px;
  margin-left: 0;
}

.admin-form-actions .primary-btn,
.admin-form-actions .ghost-btn,
.admin-form-actions .ghost-btn.danger {
  align-self: stretch;
}

.admin-added-destination {
  background:
    linear-gradient(180deg, rgba(0, 112, 184, 0.24), rgba(10, 24, 32, 0.88)),
    url("https://images.unsplash.com/photo-1488646953014-85cb44e25828?auto=format&fit=crop&w=1200&q=82") center / cover;
}

.empty-records {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.buddy-application-form {
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 6px 10px;
  color: #005a94;
  background: #dff0fa;
  font-size: 0.7rem;
  font-weight: 850;
}

.destination-card .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  margin: 0;
  border-radius: 8px;
  min-height: 28px;
  padding: 7px 12px;
  color: #005a94;
  background: #ffffff;
  font-size: 0.74rem;
  box-shadow: 0 8px 18px rgba(0, 48, 84, 0.16);
}

.ops-grid {
  display: grid;
  gap: 12px;
}

.buddy-section {
  border-top: 1px solid var(--line);
}

body.buddy-page .section-shell,
body.buddy-page .portal-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

body.buddy-page .buddy-section {
  padding-top: 30px;
  padding-bottom: 18px;
}

body.buddy-page .portal-page .portal-copy h1 {
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.12;
}

body.buddy-page .portal-copy p:last-child,
body.buddy-page .section-heading p:last-child {
  font-size: 0.94rem;
  line-height: 1.5;
}

body.buddy-page .section-heading {
  margin-bottom: 16px;
}

body.buddy-page .section-heading h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.14;
}

body.buddy-page .buddy-login-panel {
  width: min(760px, 100%);
  margin-top: 14px;
  padding: 14px;
}

body.buddy-page .buddy-claim-panel {
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
}

body.buddy-page .buddy-dashboard-grid {
  gap: 9px;
}

body.buddy-page .buddy-dashboard-grid article {
  min-height: 84px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(22, 32, 29, 0.11);
}

body.buddy-page .buddy-dashboard-grid strong {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

body.buddy-page .buddy-dashboard-visuals {
  gap: 12px;
  margin-top: 12px;
}

body.buddy-page .buddy-chart-card,
body.buddy-page .market-steps article,
body.buddy-page .ops-grid article {
  padding: 16px;
}

body.buddy-page .buddy-bar-chart {
  min-height: 164px;
}

body.buddy-page .buddy-bar-item {
  min-height: 148px;
}

body.buddy-page .buddy-bar-track {
  min-height: 94px;
}

body.buddy-page .opportunity-card {
  min-height: 0;
  padding: 16px;
}

body.buddy-page .opportunity-card h3 {
  font-size: 1.04rem;
}

body.buddy-page .request-form {
  gap: 12px;
  padding: 18px;
}

body.buddy-page .buddy-application-form {
  margin-top: 16px;
}

body.buddy-page .market-steps {
  gap: 12px;
}

body.buddy-page .market-steps span {
  width: 32px;
  height: 32px;
}

body.buddy-page .market-steps h3 {
  margin-top: 12px;
  font-size: 1rem;
}

body.buddy-page .market-steps p,
body.buddy-page .ops-grid p {
  font-size: 0.9rem;
  line-height: 1.48;
}

.ops-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.ops-grid article {
  padding: 22px;
}

.buddy-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 32, 29, 0.68);
  backdrop-filter: blur(12px);
}

.buddy-modal.open {
  display: flex;
}

.buddy-modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.buddy-modal-panel .modal-brand-header {
  margin: 18px 18px 0;
}

.buddy-modal-content {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.buddy-modal-content > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.buddy-modal-content > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 42px 42px 0;
}

.buddy-modal-content h2 {
  margin: 8px 0 16px;
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  line-height: 1.08;
}

.buddy-modal-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.buddy-facts {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.buddy-facts span {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
}

.buddy-facts strong {
  color: var(--ink);
}

.buddy-facts em {
  color: var(--muted);
  font-style: normal;
}

.icon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 44px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 1.6rem;
}

.market-steps article,
.destination-card,
.buddy-empty-state,
.buddy-profile-card,
.story-card,
.opportunity-card,
.ops-grid article,
.dashboard,
.request-form,
.admin-panel,
.admin-sales-leads,
.admin-lead-card,
.admin-record,
.buddy-facts span,
.submit-confirmation-panel,
.buddy-modal-panel,
.payment-method-card {
  border: 0;
  outline: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 28px;
  padding: 36px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: #16201d;
}

.site-footer p,
.site-footer a {
  color: #dce4df;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer .data-attribution {
  max-width: 34rem;
  margin-top: 12px;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .section-shell,
  .portal-section {
    padding: 48px 0;
  }

  .site-header,
  .section-heading,
  .portal-section,
  .market-steps,
  .story-grid,
  .opportunity-grid,
  .admin-grid,
  .admin-records-grid,
  .payment-workspace,
  .request-layout,
  .buddy-dashboard-visuals,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .admin-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-table {
    min-width: 680px;
  }

  .main-nav {
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    justify-self: stretch;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-search-card,
  .hero-image-stage {
    width: min(920px, calc(100% - 28px));
  }

  .hero-search,
  .buddy-choice-panel,
  .request-field-group,
  .request-form,
  .buddy-claim-panel,
  .buddy-dashboard-grid,
  .admin-login-form,
  .admin-entry-form,
  .trust-strip,
  .ops-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sales-lead-record-modal #adminOpportunityForm {
    grid-template-columns: 1fr 1fr;
  }

  .hero-search .hero-search-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .hero-promo-card {
    margin: 0 0 28px 28px;
  }

  .portal-copy {
    position: static;
  }

  .admin-section .portal-copy h1 {
    white-space: normal;
  }

  .buddy-modal-content {
    grid-template-columns: 1fr;
  }

  .buddy-modal-content > img {
    min-height: 320px;
    max-height: 380px;
  }

  .buddy-modal-content > div {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .conversation-toolbar,
  .conversation-composer {
    grid-template-columns: 1fr;
  }

  .conversation-toolbar {
    display: grid;
    align-items: stretch;
  }

  .conversation-toolbar .ghost-btn,
  .conversation-composer .primary-btn {
    width: 100%;
  }

  .conversation-message {
    width: 94%;
  }

  .conversation-message > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .conversation-message time {
    white-space: normal;
  }

  .section-shell,
  .portal-section {
    padding: 38px 0;
  }

  .site-header {
    gap: 14px;
    padding: 12px 16px;
  }

  .hero-search,
  .buddy-choice-panel,
  .request-field-group,
  .destination-grid,
  .buddy-grid,
  .market-steps,
  .story-grid,
  .opportunity-grid,
  .admin-grid,
  .admin-records-grid,
  .payment-workspace,
  .request-layout,
  .buddy-dashboard-visuals,
  .request-form,
  .buddy-claim-panel,
  .buddy-dashboard-grid,
  .admin-login-form,
  .admin-entry-form,
  .admin-image-field-pair,
  .trust-strip,
  .ops-grid,
  .gate-actions {
    grid-template-columns: 1fr;
  }

  .sales-lead-record-modal #adminOpportunityForm,
  .sales-lead-form-header {
    grid-template-columns: 1fr;
  }

  .sales-lead-form-header .brand {
    min-width: 0;
  }

  .hero-search-card,
  .hero-image-stage {
    width: calc(100% - 24px);
    max-width: 560px;
  }

  .hero-search-tabs {
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding-inline: 14px;
  }

  .date-range-inputs {
    grid-template-columns: 1fr;
  }

  .request-date-range .date-range-inputs {
    grid-template-columns: 1fr;
  }

  .request-date-range,
  .request-travelers-field {
    grid-column: 1 / -1;
  }

  .hero-image-stage {
    min-height: 480px;
  }

  .hero-promo-card {
    width: min(300px, calc(100% - 32px));
    margin: 0 16px 18px;
    padding: 16px;
  }

  .hero-promo-card h1 {
    font-size: clamp(1.28rem, 6vw, 1.62rem);
  }

  .trust-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dash-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .buddy-facts span {
    grid-template-columns: 1fr;
  }

  .buddy-bar-chart {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    gap: 8px;
  }

  .buddy-chart-card {
    padding: 14px;
  }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .hero-media {
    transform: none !important;
  }

  .hero-slide {
    inset: 0;
  }

  .destinations-section::before,
  .buddies-section::before,
  .stories-section::before {
    transform: none !important;
  }
}

.selection-tracker[hidden] {
  display: none !important;
}

.selection-tracker-launch {
  position: static;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(0, 112, 184, 0.18);
  border-radius: var(--control-radius);
  padding: 7px 14px;
  color: #063a74;
  background: #dceeff;
  font-weight: 900;
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0, 48, 84, 0.14);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.selection-tracker-launch:hover,
.selection-tracker-launch:focus-visible {
  color: var(--white);
  background: #0070b8;
  transform: translateY(-1px);
}

.tracker-close-button {
  min-height: 28px;
  border: 0;
  border-radius: 8px;
  padding: 5px 10px;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
  font-size: 0.69rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 112, 184, 0.18);
}

.tracker-close-button:hover,
.tracker-close-button:focus-visible {
  color: var(--white);
  background: var(--blue-dark);
}

.selection-tracker.my-quote-panel {
  --quote-label-inset: 12px;
  top: 82px;
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100vh - 108px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: auto;
  border: 1px solid rgba(0, 112, 184, 0.16);
  border-radius: 8px;
  padding: 0;
  background: #f7fcff;
  box-shadow: 0 22px 60px rgba(0, 37, 66, 0.28);
}

.selection-tracker.my-quote-panel .selection-tracker-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px 14px;
  background: #040f16;
}

.quote-brand-lockup {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  text-align: left;
}

.quote-brand-mark {
  display: grid;
  place-items: center;
  width: 126px;
  height: 42px;
  border-radius: 8px;
  color: #ffffff;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 112, 184, 0.24);
  font-size: 0.8rem;
  font-weight: 900;
}

.quote-brand-mark img,
.quote-brand-mark video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quote-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.selection-tracker.my-quote-panel .selection-tracker-heading span,
.my-quote-hero span,
.my-quote-tab {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.selection-tracker.my-quote-panel .selection-tracker-heading span {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: none;
  text-shadow: 0 8px 20px rgba(239, 111, 94, 0.18);
}

.selection-tracker.my-quote-panel h2 {
  margin-top: 3px;
  color: #ffffff;
  font-size: 1.16rem;
  line-height: 1;
}

.selection-tracker.my-quote-panel .tracker-drag-handle,
.selection-tracker.my-quote-panel .tracker-close-button {
  min-height: 38px;
  min-width: 58px;
  border: 0;
  border-radius: var(--control-radius);
  padding: 8px 12px;
  font-size: 0.72rem;
  box-shadow: 0 10px 22px rgba(0, 48, 84, 0.14);
}

.selection-tracker.my-quote-panel .tracker-drag-handle {
  color: var(--white);
  background: var(--blue);
}

.selection-tracker.my-quote-panel .tracker-close-button {
  color: var(--white);
  background: var(--orange);
  box-shadow: var(--accent-shadow);
}

.selection-tracker.my-quote-panel .tracker-drag-handle:hover,
.selection-tracker.my-quote-panel .tracker-drag-handle:focus-visible {
  color: var(--white);
  background: var(--blue-dark);
}

.selection-tracker.my-quote-panel .tracker-close-button:hover,
.selection-tracker.my-quote-panel .tracker-close-button:focus-visible {
  color: var(--white);
  background: var(--orange-dark);
}

.my-quote-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 0;
  padding: 10px 14px 12px;
  background:
    linear-gradient(180deg, rgba(220, 238, 255, 0.96), rgba(247, 252, 255, 0.98));
}

.my-quote-hero > div:first-child {
  padding-left: 0;
}

.my-quote-hero strong {
  display: block;
  min-height: 8px;
  color: #042d66;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  line-height: 1.1;
}

.my-quote-hero p {
  margin: 0;
  color: #24567f;
  font-size: 0.82rem;
  line-height: 1.35;
}

.my-quote-hero span {
  color: #005a94;
}

.quote-total-box span {
  color: #ffffff;
}

.quote-total-box {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 9px var(--quote-label-inset);
  background: #063a74;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 48, 84, 0.18);
}

.quote-total-box strong {
  min-height: 24px;
  color: #ffffff;
  font-size: 1.16rem;
  line-height: 1.05;
}

.quote-total-box strong:empty::after {
  content: none;
}

.my-quote-progress {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(0, 112, 184, 0.14);
  border-radius: var(--control-radius);
  padding: 8px var(--quote-label-inset);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 48, 84, 0.08);
}

.my-quote-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.my-quote-progress-copy span {
  color: #005a94;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.my-quote-progress-copy strong {
  color: #005a94;
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.1;
}

.my-quote-progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: var(--control-radius);
  background: #dceeff;
}

.my-quote-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0070b8 0%, #27c6a8 100%);
  transition: width 240ms ease;
}

.my-quote-card {
  margin: 0;
  border-top: 1px solid rgba(0, 112, 184, 0.12);
  border-radius: 0;
  padding: 12px 14px 10px;
  background: #ffffff;
  box-shadow: none;
}

.my-quote-tab {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 8px;
  border-radius: var(--control-radius);
  padding: 7px var(--quote-label-inset);
  background: #dceeff;
  color: #005a94;
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: none;
}

.selection-tracker.my-quote-panel dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.selection-tracker.my-quote-panel dl div {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 40px;
  border-radius: 0;
  border-bottom: 1px solid rgba(0, 112, 184, 0.12);
  padding: 8px 0;
  background: transparent;
}

.selection-tracker.my-quote-panel dl div:nth-child(odd) {
  border-right: 0;
}

.selection-tracker.my-quote-panel dl .quote-wide {
  grid-column: auto;
  border-right: 0;
}

.selection-tracker.my-quote-panel dt {
  box-sizing: border-box;
  padding-left: var(--quote-label-inset);
  color: #005a94;
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: none;
  text-align: left;
}

.selection-tracker.my-quote-panel dd {
  min-height: 20px;
  color: #17283a;
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.32;
  text-overflow: clip;
  white-space: normal;
  text-align: left;
}

.selection-tracker.my-quote-panel dl .quote-wide {
  align-items: start;
}

.selection-tracker.my-quote-panel dl .quote-wide dd {
  text-align: left;
}

.selection-tracker.my-quote-panel .primary-btn {
  grid-column: auto;
  grid-row: auto;
  justify-self: center;
  width: calc(100% - 28px);
  max-width: none;
  min-width: 0;
  min-height: 40px;
  border-radius: var(--control-radius);
  margin: 10px 0 14px;
}

@media (max-width: 980px) {
  .selection-tracker {
    top: 72px;
    grid-template-columns: 1fr;
    align-items: stretch;
    width: calc(100vw - 24px);
  }

  .selection-tracker-heading,
  .selection-tracker dl,
  .selection-tracker .primary-btn {
    grid-column: auto;
    grid-row: auto;
  }

  .selection-tracker dl {
    grid-template-columns: repeat(3, minmax(118px, 1fr));
  }

  .selection-tracker .primary-btn {
    justify-self: stretch;
    max-width: none;
  }

  .selection-tracker.my-quote-panel {
    top: 70px;
    width: min(430px, calc(100vw - 24px));
  }

  .selection-tracker.my-quote-panel dl {
    grid-template-columns: 1fr;
  }

  .selection-tracker-launch {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .selection-tracker {
    top: 70px;
    padding: 14px;
  }

  .selection-tracker dl {
    grid-template-columns: 1fr;
  }

  .my-quote-hero,
  .selection-tracker.my-quote-panel dl {
    grid-template-columns: 1fr;
  }

  .selection-tracker.my-quote-panel dl div:nth-child(odd) {
    border-right: 0;
  }

  .selection-tracker.my-quote-panel h2 {
    font-size: 1.18rem;
  }

  .selection-tracker.my-quote-panel dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .selection-tracker.my-quote-panel dd {
    text-align: left;
  }

  .quote-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Mobile and tablet responsive hardening. Keep this layer last so it can
   override older desktop-first sizing without changing page behavior. */
@media (max-width: 1180px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
    gap: 12px 20px;
    padding-inline: clamp(14px, 3vw, 28px);
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .header-actions {
    justify-self: end;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-inline: 12px;
  }

  .section-shell,
  .portal-section {
    width: calc(100% - 28px);
    max-width: 1180px;
  }

  .destination-grid,
  .buddy-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 304px));
  }
}

@media (max-width: 1140px) {
  .hero-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-search .hero-search-actions,
  .hero-search-note,
  .visitor-origin-bar {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visitor-origin-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 10px 14px;
  }

  .hero-search .hero-search-actions,
  .hero-search-note {
    grid-column: 1 / -1;
  }

  .hero-image-stage {
    min-height: clamp(390px, 62vw, 500px);
  }

  .trust-strip,
  .market-steps,
  .story-grid,
  .opportunity-grid,
  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-form,
  .buddy-application-form,
  .admin-entry-form,
  .admin-login-form,
  .buddy-claim-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buddy-choice-panel,
  .selected-buddy-actions-row,
  .selected-buddy-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .selected-buddy-actions-row > .primary-btn,
  .selected-buddy-panel .primary-btn,
  .selected-buddy-panel .ghost-btn {
    width: 100%;
  }

  .admin-record-dialog,
  .sales-lead-record-modal .admin-record-dialog {
    width: calc(100% - 20px);
    max-width: 760px;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: sticky;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 10px 12px;
  }

  .site-header.staff-authenticated {
    grid-template-columns: 1fr;
  }

  .site-header.staff-authenticated .header-brand-zone,
  .site-header.staff-authenticated .main-nav,
  .site-header.staff-authenticated .header-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .header-brand-zone {
    justify-self: start;
    flex-wrap: wrap;
  }

  .brand {
    justify-self: start;
    gap: 10px;
  }

  .brand-mark {
    width: 168px;
    height: 56px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .main-nav {
    grid-row: auto;
    flex-wrap: wrap;
    gap: 4px 14px;
    overflow-x: visible;
    padding: 0 0 4px;
    font-size: 0.86rem;
    scrollbar-width: none;
  }

  .main-nav a {
    min-height: 34px;
    flex: 0 0 auto;
  }

  .header-actions {
    justify-content: flex-start;
    gap: 7px;
    width: 100%;
  }

  .admin-record-list .admin-lead-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-record-list .admin-row-actions {
    justify-content: flex-start;
  }

  body.buddy-page .section-shell,
  body.buddy-page .portal-section {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  body.buddy-page .buddy-section {
    padding-top: 24px;
    padding-bottom: 12px;
  }

  .header-actions .primary-btn,
  .header-actions .ghost-btn,
  .header-actions .selection-tracker-launch,
  .header-actions .dev-reset-btn,
  .header-profile-badge {
    min-height: 34px;
    height: 34px;
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .header-profile-badge {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    white-space: normal;
  }

  .header-profile-badge strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.3;
    text-align: center;
  }

  .header-profile-badge span {
    flex: 0 0 auto;
  }

  .header-actions .country-home-btn {
    min-width: 76px;
  }

  .hero {
    gap: 20px;
    padding: 16px 0 34px;
  }

  .hero-search-card,
  .hero-image-stage,
  .section-shell,
  .portal-section {
    width: calc(100% - 22px);
  }

  .hero-search-tabs {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .hero-search {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .hero-search label {
    min-height: auto;
    padding: 9px 11px;
  }

  .hero-search .hero-search-actions .primary-btn {
    min-height: 44px;
  }

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

  .date-range-inputs,
  .budget-range-inputs {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .request-date-range .date-range-inputs {
    grid-template-columns: 1fr;
  }

  .hero-image-stage {
    min-height: 420px;
    border-radius: 12px;
  }

  .hero-promo-card {
    width: min(310px, calc(100% - 28px));
    margin: 0 14px 16px;
  }

  .trust-strip,
  .market-steps,
  .story-grid,
  .opportunity-grid,
  .ops-grid,
  .request-form,
  .buddy-application-form,
  .admin-entry-form,
  .admin-login-form,
  .buddy-claim-panel,
  .payment-workspace {
    grid-template-columns: 1fr;
  }

  .destination-grid,
  .buddy-grid,
  .open-tour-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .destination-card,
  .buddy-profile-card {
    width: 100%;
    max-width: 360px;
  }

  .tour-card-media,
  .buddy-profile-card img {
    min-height: 210px;
  }

  .destination-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .destination-card-actions .selection-field,
  .destination-card-actions .ghost-btn:last-child {
    grid-column: 1 / -1;
  }

  .request-form {
    padding: 16px;
  }

  .submit-confirmation-modal,
  .admin-record-modal,
  .buddy-modal {
    padding: 12px;
  }

  .submit-confirmation-panel,
  .buddy-modal-panel,
  .admin-record-dialog,
  .sales-lead-record-modal .admin-record-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .buddy-modal-content {
    grid-template-columns: 1fr;
  }

  .buddy-modal-content > img {
    min-height: 240px;
    max-height: 300px;
  }

  .buddy-modal-content > div {
    padding: 20px;
  }

  .admin-table-wrap {
    max-width: calc(100vw - 28px);
    overflow-x: auto;
  }

  .admin-form-actions,
  .admin-form-actions:has(.ghost-btn.danger:not(.hidden)),
  .admin-record-modal-actions {
    grid-template-columns: 1fr;
  }

  .admin-form-actions .primary-btn,
  .admin-form-actions .ghost-btn,
  .admin-form-actions .ghost-btn.danger {
    width: 100%;
  }

  .selection-tracker {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: min(78vh, 560px);
    overflow-y: auto;
    transform: none;
  }

  .selection-tracker-heading {
    flex-wrap: wrap;
    white-space: normal;
  }

  .selection-tracker dl,
  .selection-tracker.my-quote-panel dl {
    grid-template-columns: 1fr;
  }

  .selection-tracker.my-quote-panel {
    top: auto;
    width: auto;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 0.9rem;
  }

  .header-actions .primary-btn,
  .header-actions .ghost-btn,
  .header-actions .selection-tracker-launch,
  .header-actions .dev-reset-btn {
    flex: 0 0 auto;
  }

  .hero-search-tabs a {
    font-size: 0.82rem;
  }

  .hero-promo-card h1,
  .section-heading h2,
  .portal-copy h1 {
    font-size: clamp(1.45rem, 8vw, 1.86rem);
  }

  .tour-marketplace-heading {
    width: 100%;
  }

  .destination-card,
  .buddy-profile-card {
    max-width: 100%;
  }

  .tour-card-body {
    padding: 18px 14px 14px;
  }

  .submit-confirmation-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Traveler planning controls share the existing marketplace colors and spacing. */
.request-readonly-value {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.marketplace-tools,
.search-alternative-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.marketplace-tools .ghost-btn,
.search-alternative-actions .ghost-btn,
.search-alternative-actions .primary-btn {
  min-height: 40px;
  max-width: 100%;
  white-space: normal;
}
.marketplace-tool-status { color: var(--muted); font-size: 0.85rem; }
button.card-favorite { border: 1px solid var(--line); cursor: pointer; padding: 0; }
button.card-favorite[aria-pressed="true"] { color: #ba2335; }
.tour-compare-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.85rem;
  cursor: pointer;
}
.tour-compare-choice input { width: 18px; height: 18px; min-height: 18px; max-height: 18px; padding: 0; margin: 0; flex: 0 0 18px; accent-color: var(--blue); }
.marketplace-dialog-open { overflow: hidden; }
.marketplace-dialog {
  width: min(1040px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  overflow-y: auto;
}
.marketplace-dialog::backdrop { background: rgba(8, 20, 25, 0.55); }
.marketplace-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.marketplace-dialog-heading h2 { margin: 0; font-size: 1.35rem; overflow-wrap: anywhere; }
.marketplace-dialog-heading button { flex: 0 0 40px; min-height: 40px; padding: 0; font-size: 1.5rem; }
.saved-list-section + .saved-list-section { margin-top: 18px; }
.saved-list-section h3 { margin: 0 0 8px; font-size: 1rem; }
.saved-list-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.saved-list-row.buddy-picker-row { grid-template-columns: minmax(0, 1fr) auto; }
.saved-list-row img,
.saved-image-placeholder { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: var(--soft-blue); }
.saved-list-details { display: grid; gap: 4px; font-size: 0.88rem; overflow-wrap: anywhere; }
.saved-list-details span { color: var(--muted); }
.saved-list-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.saved-list-actions .tour-compare-choice { margin: 0; }
.saved-list-actions button,
.comparison-actions button { min-height: 40px; padding: 8px 12px; font-size: 0.85rem; white-space: normal; }
.tour-comparison-grid { display: grid; grid-template-columns: repeat(var(--comparison-count), minmax(0, 1fr)); gap: 6px 16px; }
.tour-comparison-column { display: grid; grid-row: span 15; grid-template-rows: subgrid; min-width: 0; overflow-wrap: anywhere; }
.tour-comparison-column > img,
.comparison-image-placeholder { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; background: var(--soft-blue); }
.tour-comparison-column h3 { margin: 0; font-size: 1rem; }
.comparison-price { margin: 0; color: var(--ink); font-weight: 700; font-size: 0.9rem; }
.comparison-fact { display: grid; align-content: start; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.comparison-fact span { color: var(--muted); }
.comparison-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.marketplace-tools button:focus-visible,
.marketplace-dialog button:focus-visible,
.card-favorite:focus-visible,
.tour-compare-choice input:focus-visible,
.search-alternative-actions button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.marketplace-tools button:disabled { opacity: 0.55; cursor: default; }
@media (max-width: 720px) {
  .marketplace-dialog { padding: 16px; }
  .saved-list-row { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .saved-list-row img,
  .saved-image-placeholder { width: 48px; height: 48px; }
  .saved-list-actions { grid-column: 1 / -1; }
  .tour-comparison-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tour-comparison-column { grid-row: auto; grid-template-rows: none; gap: 8px; padding-bottom: 16px; border-bottom: 2px solid var(--line); }
  .comparison-fact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 12px; }
  .saved-list-row.buddy-picker-row { grid-template-columns: minmax(0, 1fr); }
}
/* Private proposals share the compact portal layout. */
.conversation-quote { padding: 16px 18px; border-bottom: 1px solid #d4dfe4; min-width: 0; }
.conversation-quote-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.conversation-quote-heading h3 { margin: 0; font-size: 18px; }
.conversation-quote-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0; }
.conversation-quote-summary dt { font-size: 12px; font-weight: 700; }
.conversation-quote-summary dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.conversation-quote-summary div:nth-child(2) dd { color: #14713b; font-weight: 700; }
.quote-proposal-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 12px; }
.quote-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; margin-top: 12px; }
.quote-revision-form { display: grid; gap: 8px; min-width: 0; }
.quote-revision-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.quote-revision-form textarea { width: 100%; min-width: 0; }
.quote-revision-form button { justify-self: start; }
.quote-email-option { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.quote-email-option input { width: 18px; height: 18px; flex: 0 0 18px; }
.conversation-quote details { margin-top: 12px; }
.conversation-quote details summary { cursor: pointer; }
.conversation-quote button:focus-visible, .conversation-quote input:focus-visible, .conversation-quote textarea:focus-visible, .conversation-quote summary:focus-visible { outline: 2px solid #0077b6; outline-offset: 3px; }
.conversation-quote [role="status"] { margin: 8px 0 0; overflow-wrap: anywhere; }
.quote-accept-dialog { width: min(440px, calc(100% - 24px)); }
.quote-accept-dialog h2 { font-size: 21px; }
.quote-accept-dialog p { overflow-wrap: anywhere; }
.quote-accept-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
@media (max-width: 640px) {
  .conversation-quote { padding: 12px; }
  .conversation-quote-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-actions { grid-template-columns: minmax(0, 1fr); }
  .quote-actions > button { justify-self: start; }
}
/* Shared traveler engagement controls retain the marketplace's compact rhythm. */
.engagement-section { padding-top: 16px; padding-bottom: 16px; }
.review-section { padding: 12px 0; border-top: 1px solid #d9e2e5; min-width: 0; overflow-wrap: anywhere; }
.review-section h3 { font-size: 1.1rem; margin: 0 0 8px; letter-spacing: 0; }
.review-form { display: grid; grid-template-columns: minmax(140px, 180px) minmax(0, 1fr); gap: 8px 12px; align-items: start; }
.review-section label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.review-section :is(input, select, textarea), .public-reviews select { max-width: 100%; box-sizing: border-box; font: inherit; border: 1px solid #aebdc3; border-radius: 4px; padding: 8px; }
.review-section :is(select, button) { min-height: 38px; }
.review-section .review-consent { flex-direction: row; align-items: center; grid-column: 1 / -1; }
.review-section .review-consent input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.review-row { border-bottom: 1px solid #d9e2e5; padding: 10px 0; min-width: 0; overflow-wrap: anywhere; }
.review-row p { margin: 6px 0; white-space: pre-wrap; }
.review-confirm-dialog { width: 440px; max-width: calc(100vw - 32px); }
.public-reviews { margin-top: 10px; font-size: 0.9rem; min-width: 0; overflow-wrap: anywhere; }
.public-reviews summary { cursor: pointer; padding: 6px 0; }
.review-section :is(input, select, textarea, button, a):focus-visible, .public-reviews :is(summary, select, button):focus-visible { outline: 2px solid #0077b5; outline-offset: 2px; }
@media (max-width: 600px) { .review-form { grid-template-columns: minmax(0, 1fr); } .review-actions > * { flex: 1 1 140px; } }
/* Website chat stays separate from tour-request conversations. */
.website-chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: calc(100% - 36px);
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #0074b8;
  border-radius: 8px;
  background: #0074b8;
  color: white;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(8, 28, 38, .2);
  cursor: pointer;
}
.website-chat-icon, .website-chat-close-icon {
  display: inline-block;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  background: currentColor;
  mask: url('/assets/chat/messages-square.svg') center / contain no-repeat;
}
.website-chat-badge {
  min-width: 22px;
  padding: 1px 5px;
  border-radius: 4px;
  color: #092631;
  background: white;
  text-align: center;
}
.website-chat-badge[hidden] { display: none; }
.website-chat-dialog {
  position: fixed;
  inset: auto 18px 18px auto;
  width: min(390px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 1px solid #b9cbd2;
  border-radius: 8px;
  color: #102a33;
  background: white;
  box-shadow: 0 12px 40px rgba(8, 28, 38, .24);
  overflow: auto;
}
.website-chat-dialog::backdrop { background: rgba(8, 28, 38, .18); }
.website-chat-dialog[open] { display: flex; flex-direction: column; }
.website-chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #d5e1e6;
  background: #eff7fb;
}
.website-chat-heading h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.website-chat-heading p { margin: 4px 0 0; font-size: 13px; color: #435b66; }
.website-chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #9bafb8;
  border-radius: 4px;
  color: #0074b8;
  background: white;
  cursor: pointer;
}
.website-chat-close-icon { mask: url('/assets/chat/x.svg') center / 22px no-repeat; }
.website-chat-content { padding: 14px 16px; }
.website-chat-heading { flex: 0 0 auto; }
.website-chat-dialog > .website-chat-content { min-height: 0; overflow-y: auto; }
.website-chat-dialog > .website-chat-content.is-chat-thread { display: flex; flex-direction: column; overflow: hidden; }
.website-chat-dialog .is-chat-thread .website-chat-messages { min-height: 0; flex: 1 1 auto; }
.website-chat-dialog .is-chat-thread .website-chat-tools,
.website-chat-dialog .is-chat-thread .website-chat-composer { flex: 0 0 auto; }
.website-chat-dialog .website-chat-composer textarea { min-height: 64px; max-height: 120px; }
.website-chat-empty { margin: 0; padding: 8px 0; color: #435b66; }
.website-chat-composer button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.website-chat-composer[data-send-state='failed'] .website-chat-status { color: #a12626; }
.website-chat-start, .website-chat-composer { display: grid; gap: 10px; min-width: 0; margin: 0; }
.website-chat-start h3 { margin: 0; font-size: 17px; }
.website-chat-start label, .website-chat-composer label, .website-chat-inbox-heading label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}
.website-chat-start input, .website-chat-start select, .website-chat-start textarea,
.website-chat-composer textarea, .website-chat-inbox-heading select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #9bafb8;
  border-radius: 4px;
  background: white;
  color: #102a33;
  font: inherit;
  resize: vertical;
}
.website-chat-start .website-chat-consent { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.website-chat-consent input[type='checkbox'] { flex: 0 0 18px; width: 18px; min-width: 18px; height: 18px; min-height: 18px; max-height: 18px; margin: 0; padding: 0; }
.website-chat-consent span { min-width: 0; line-height: 20px; overflow-wrap: anywhere; }
.website-chat-start .primary-btn, .website-chat-composer .primary-btn { width: 100%; min-height: 42px; }
.website-chat-start button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.website-chat-status { margin: 0; font-size: 13px; color: #435b66; overflow-wrap: anywhere; }
.website-chat-status:empty { display: none; }
.website-chat-messages { display: grid; gap: 10px; max-height: 40dvh; overflow-y: auto; overscroll-behavior: contain; padding: 2px 3px 8px 0; }
.website-chat-message { min-width: 0; padding: 10px; border-left: 3px solid #9ebbc6; background: #f5f8f9; }
.website-chat-message.from-management { border-left-color: #0074b8; background: #eaf5fb; }
.website-chat-message-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 12px; }
.website-chat-message-meta time { color: #435b66; }
.website-chat-message p { margin: 5px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.website-chat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 12px; font-size: 13px; overflow-wrap: anywhere; }
.website-chat-tools button { min-height: 32px; padding: 5px 9px; border: 1px solid #9bafb8; background: white; color: #00639e; box-shadow: none; font-size: 13px; }
.website-chat-inbox { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #b9cbd2; scroll-margin-top: 160px; }
.website-chat-inbox-heading { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 12px; }
.website-chat-inbox-heading h2 { flex: 1 1 200px; margin: 0; font-size: 22px; }
.website-chat-inbox-heading label { width: 130px; }
.website-chat-inbox-columns { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(0, 2fr); gap: 18px; }
.website-chat-inbox-list, .website-chat-inbox-detail { min-width: 0; }
.website-chat-inbox-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid #d5e1e6;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: white;
  color: #102a33;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.website-chat-inbox-row[aria-pressed='true'] { border-left-color: #0074b8; background: #eaf5fb; }
.website-chat-inbox-row span { font-size: 12px; color: #435b66; }
.website-chat-inbox-row p { margin: 0; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.website-chat-launcher:focus-visible, .website-chat-dialog :is(button,input,textarea,select,a):focus-visible,
.website-chat-inbox :is(button,input,textarea,select,a):focus-visible {
  outline: 2px solid #0074b8;
  outline-offset: 3px;
}
.website-chat-launcher:hover { background: #005d94; }
@media (max-width: 650px) {
  .website-chat-launcher { right: 12px; bottom: 12px; max-width: calc(100% - 24px); font-size: 14px; }
  .website-chat-dialog { right: 8px; bottom: var(--chat-bottom, 8px); width: calc(100% - 16px); max-height: calc(var(--chat-visible-height, 100dvh) - 16px); }
  .website-chat-content { padding: 12px; }
  .website-chat-inbox-columns { grid-template-columns: minmax(0, 1fr); }
}

/* Desktop presentation is isolated from the approved phone layout and staff workspace. */
@media (min-width: 701px) {
  /* Let search popups escape the section band without its oversized shadow. */
  .desktop-marketplace main > .hero:focus-within { z-index: 5; clip-path: none; box-shadow: none; }
  .desktop-marketplace :is(main,section,form,fieldset,label,.searchable-selection) { min-width: 0; }
  .desktop-marketplace :is(button,a,summary,input,select,textarea):focus-visible { outline: 2px solid #0070b8; outline-offset: 3px; }
  .desktop-marketplace :is(section[id],.conversation-section) { scroll-margin-top: 130px; }
  .desktop-marketplace .site-header { grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; min-height: 76px; padding: 8px 24px; }
  .desktop-marketplace .brand-mark { width: 174px; height: 58px; border-radius: 4px; }
  .desktop-marketplace .main-nav { justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
  .desktop-marketplace .main-nav a { white-space: nowrap; font-size: 14px; padding: 10px 0; }
  .desktop-marketplace .header-actions { gap: 8px; min-width: 0; --header-action-width: 116px; }
  .desktop-marketplace .header-actions :is(a,button) { min-height: 40px; font-size: 13px; padding: 8px 12px; }
  .desktop-marketplace .site-header #websiteChatLauncher { position: relative; inset: auto; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; font-size: 0; border-radius: 4px; box-shadow: none; }
  .desktop-marketplace .header-actions > :is(#websiteChatLauncher,#currencyButton,.nav-cta) { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 var(--header-action-width); width: var(--header-action-width); min-width: var(--header-action-width); max-width: var(--header-action-width); height: 40px; min-height: 40px; padding: 8px 12px; border-radius: var(--control-radius); text-align: center; }
  .desktop-marketplace #currencyButton .country-code { height: auto; padding: 0; }
  .desktop-marketplace .site-header #websiteChatLauncher .website-chat-badge { position: absolute; top: -5px; right: -5px; font-size: 12px; }
  .desktop-marketplace .site-header.staff-authenticated { grid-template-columns: auto minmax(0,1fr); }
  .desktop-marketplace .site-header.staff-authenticated .main-nav { justify-content: flex-start; }
  .desktop-marketplace .hero { gap: 0; padding: 0 0 16px; background: #f5f8fa; }
  .desktop-marketplace :is(.hero-search-tabs,.visitor-origin-bar) { display: none; }
  .desktop-marketplace .hero-image-stage { width: 100%; height: auto; aspect-ratio: 16 / 5; min-height: 280px; max-height: 480px; margin: 0; border-radius: 0; box-shadow: none; }
  .desktop-marketplace .hero-media { transform: none; }
  .desktop-marketplace .hero-slide { inset: 0; background-size: cover; background-position: center; }
  .desktop-marketplace .hero-media::after { content: ''; position: absolute; inset: 0; background: #06151b66; }
  .desktop-marketplace .hero-promo-card { align-self: center; width: auto; max-width: 760px; margin: 0 auto; padding: 24px; border: 0; background: transparent; box-shadow: none; border-radius: 0; text-align: center; }
  .desktop-marketplace .hero-promo-card h1 { color: #fff; font-size: 38px; margin: 4px 0 8px; }
  .desktop-marketplace .hero-promo-card :is(.eyebrow,.hero-copy) { color: #fff; }
  .desktop-marketplace .hero-promo-card .hero-copy { margin: 0; font-size: 17px; }
  .desktop-marketplace .hero-promo-card > button { display: none; }
  .desktop-marketplace .hero-search-card { width: min(1240px,calc(100% - 48px)); margin-top: 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .desktop-marketplace .hero-search { display: grid; grid-template-columns: minmax(200px,1.2fr) minmax(280px,.95fr) minmax(100px,.55fr) minmax(200px,.7fr); gap: 4px 12px; padding: 0; background: transparent; align-items: start; }
  .desktop-marketplace .hero-search > label { min-height: 0; height: auto; border: 0; border-radius: 0; padding: 0; background: transparent; gap: 6px; }
  .desktop-marketplace .hero-search label > span:first-child { font-size: 11px; line-height: 16px; font-weight: 700; color: #435b66; }
  .desktop-marketplace .hero-search-dates .date-field-label { display: none; }
  .desktop-marketplace .hero-search > .hero-search-location { grid-column: 1; }
  .desktop-marketplace .hero-search > .hero-search-dates { grid-column: 2; }
  .desktop-marketplace .hero-search > label:has(#heroTravelers) { grid-column: 3; }
  .desktop-marketplace .hero-search :is(input,select) { width: 100%; height: 40px; min-height: 40px; min-width: 0; max-width: 100%; border: 1px solid #a6bac3; border-radius: 4px; padding: 8px 10px; background: #fff; font-size: 14px; line-height: 20px; text-align: center; text-align-last: center; }
  .desktop-marketplace .hero-search input::-webkit-datetime-edit { text-align: center; }
  .desktop-marketplace .hero-search-actions { position: relative; grid-column: 4; grid-row: 1; display: flex; flex-wrap: wrap; gap: 4px 10px; padding-top: 22px; align-items: center; align-self: start; }
  .desktop-marketplace .search-secondary-actions { position: absolute; top: calc(100% + 4px); left: 0; right: 0; }
  .desktop-marketplace .hero-search-actions #heroSearchBtn { width: 100%; height: 44px; min-height: 44px; align-self: start; }
  .desktop-marketplace .hero-search-note { grid-column: 1 / 4; margin: 0; padding: 0; font-size: 12px; font-weight: 400; }
  .desktop-marketplace .desktop-disclosure { min-width: 0; border: 0; border-top: 1px solid #d6e2e7; border-radius: 0; background: transparent; }
  .desktop-marketplace .desktop-disclosure > summary { min-height: 40px; padding: 10px 0; cursor: pointer; color: #123b4b; font-weight: 700; font-size: 14px; }
  .desktop-marketplace .desktop-disclosure-body { min-width: 0; padding: 4px 0 12px; }
  .desktop-marketplace .desktop-filters { grid-column: 1 / -1; grid-row: 2; border-top: 0; }
  .desktop-marketplace .desktop-filters > summary { display: list-item; width: fit-content; min-height: 48px; }
  .desktop-marketplace .desktop-filters .desktop-disclosure-body { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.2fr; gap: 12px; }
  .desktop-marketplace .desktop-filters label { min-height: 0; padding: 0; border: 0; background: transparent; gap: 6px; align-content: start; }
  .desktop-marketplace .desktop-filters :is(input,select) { border: 1px solid #a6bac3; border-radius: 4px; min-height: 40px; padding: 8px; background: #fff; }
  .desktop-marketplace :is(.section-shell,.portal-section) { padding-top: 28px; padding-bottom: 28px; }
  .desktop-marketplace .section-heading { margin-bottom: 16px; }
  .desktop-marketplace :is(.section-heading h2,.portal-copy h1) { font-size: 28px; line-height: 1.25; }
  .desktop-marketplace .section-heading > p:not(.eyebrow) { font-size: 14px; line-height: 1.5; }
  .desktop-marketplace .destinations-section { width: min(1240px,calc(100% - 48px)); }
  .desktop-marketplace .destinations-section > .section-heading { display: grid; grid-template-columns: minmax(0,1fr) 288px; align-items: center; gap: 6px 24px; width: 100%; max-width: none; }
  .desktop-marketplace .destinations-section > .section-heading > h2 { grid-column: 1; grid-row: 1; margin: 0; }
  .desktop-marketplace .destinations-section > .section-heading > .eyebrow,
  .desktop-marketplace #tourDestinations,
  .desktop-marketplace .tour-result-heading > :is(p:not(.eyebrow),h3) { display: none; }
  .desktop-marketplace .marketplace-tools { grid-column: 2; grid-row: 1; margin: 0; }
  .desktop-marketplace #tourResultsSummary { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .desktop-marketplace .tour-result-group { margin-bottom: 24px; }
  .desktop-marketplace .tour-result-heading { margin-bottom: 10px; }
  .desktop-marketplace .destination-grid { grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 20px; }
  .desktop-marketplace :is(.destination-card,.buddy-profile-card) { max-width: 100%; border-radius: 6px; box-shadow: none; }
  .desktop-marketplace .buddy-profile-card > img { aspect-ratio: 4 / 3; height: auto; min-height: 0; object-fit: contain; object-position: center; background: #edf2f5; }
  .desktop-marketplace .buddy-profile-card { text-align: left; }
  .desktop-marketplace .buddy-profile-card > :is(h3,p,.tag,.buddy-languages,.buddy-rate,strong) { text-align: left; align-self: stretch; margin-left: 16px; margin-right: 16px; }
  .desktop-marketplace .buddy-profile-card > h3 { min-height: 2.6em; line-height: 1.3; margin-bottom: 4px; }
  .desktop-marketplace .buddy-profile-card > .tour-rating { flex: none; min-height: 20px; margin: 0 16px 12px !important; }
  .desktop-marketplace .buddy-profile-card > strong { display: none; }
  .desktop-marketplace .buddy-profile-card > .desktop-disclosure { align-self: stretch; width: calc(100% - 32px); margin: auto 16px 0; }
  .desktop-marketplace .buddy-profile-card .desktop-disclosure-body :is(p,.buddy-languages,.buddy-rate,strong) { display: block; margin: 0 0 10px; text-align: left; }
  .desktop-marketplace .buddy-profile-card > .selection-field { min-height: 44px; margin-top: 6px; }
  .desktop-marketplace .buddy-profile-card > details:not(.desktop-disclosure) { align-self: stretch; margin: 0 16px 12px; }
  @supports (grid-template-rows: subgrid) {
    .desktop-marketplace #publicBuddyGrid > .buddy-profile-card { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; align-items: start; }
    .desktop-marketplace #publicBuddyGrid > .buddy-profile-card > .desktop-disclosure { margin-top: 0; }
  }
  .desktop-marketplace .tour-card-media { height: 180px; min-height: 180px; }
  .desktop-marketplace .tour-card-body { padding: 16px; display: flex; flex-direction: column; }
  .desktop-marketplace .tour-card-body h3 { font-size: 19px; line-height: 1.3; margin: 6px 0; }
  .desktop-marketplace .tour-card-body .tag { position: static; background: transparent; color: #435b66; padding: 0; }
  .desktop-marketplace .tour-status { display: none; }
  .desktop-marketplace .tour-rating { font-size: 12px; margin: 4px 0; }
  .desktop-marketplace .desktop-tour-highlights { font-size: 13px; color: #435b66; margin: 8px 0; }
  .desktop-marketplace .desktop-tour-details { margin-bottom: auto; }
  .desktop-marketplace .desktop-tour-details a { display: inline-flex; min-height: 36px; margin-right: 10px; align-items: center; }
  .desktop-marketplace .tour-price { margin: 12px 0; }
  .desktop-marketplace .tour-price strong { font-size: 18px; line-height: 1.4; }
  .desktop-marketplace .destination-card-actions { display: block; }
  .desktop-marketplace .destination-card-actions .selection-field { width: 100%; min-height: 40px; }
  .desktop-marketplace .trust-strip { padding-top: 16px; padding-bottom: 16px; }
  .desktop-marketplace .engagement-section { padding-top: 8px; padding-bottom: 8px; }
  .desktop-marketplace .request-layout { display: block; }
  .desktop-marketplace #request { max-width: 1100px; --request-action-width: 190px; }
  .desktop-marketplace #request > .section-heading { position: relative; width: 100%; max-width: none; padding-right: calc(var(--request-action-width) + 24px); }
  .desktop-marketplace #request > .section-heading > .request-edit-search { position: absolute; right: 0; top: 24px; width: var(--request-action-width); }
  .desktop-marketplace #travelerRequestForm { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 24px; padding: 0; background: transparent; box-shadow: none; border: 0; }
  .desktop-marketplace .request-field-group { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 0; border: 0; background: transparent; border-radius: 0; }
  .desktop-marketplace .traveler-detail-group { box-shadow: none; }
  .desktop-marketplace .request-field-group legend { padding: 0 0 14px; }
  .desktop-marketplace .request-field-group legend > span { display: none; }
  .desktop-marketplace .request-field-group legend strong { font-size: 17px; }
  .desktop-marketplace .desktop-tour-overview { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); grid-template-rows: auto auto; gap: 6px 16px; padding-bottom: 16px; border-bottom: 1px solid #d6e2e7; }
  .desktop-marketplace .desktop-tour-overview > label { grid-column: auto; grid-row: span 2; grid-template-rows: subgrid; align-content: start; }
  .desktop-marketplace .request-readonly-value { border: 0; border-radius: 0; background: transparent; min-height: 0; padding: 0; text-align: left; }
  .desktop-marketplace .desktop-trip-fields { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(140px,1fr) minmax(260px,1.5fr) minmax(90px,.5fr) minmax(150px,.85fr); gap: 14px; align-items: start; }
  .desktop-marketplace .desktop-trip-fields .request-readonly-value { min-height: 42px; display: flex; align-items: center; }
  .desktop-marketplace .request-date-range { grid-column: auto; gap: 6px; }
  .desktop-marketplace .request-date-range > .form-label { display: none; }
  .desktop-marketplace .request-date-range .date-range-inputs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .desktop-marketplace .request-form :is(input,select,textarea) { min-width: 0; max-width: 100%; padding: 9px 10px; min-height: 40px; border-radius: 4px; font-size: 14px; }
  .desktop-marketplace .request-form label > span { font-size: 13px; text-transform: none; letter-spacing: 0; }
  .desktop-marketplace #request .request-form :is(label > span,.date-field-label,.form-label) { text-align: left; color: #435b66; font-size: 13px; line-height: 18px; font-weight: 700; text-transform: none; letter-spacing: 0; }
  .desktop-marketplace #request .request-form label { gap: 6px; }
  .desktop-marketplace #request .request-form :is(input,select) { height: 42px; text-align: left; }
  .desktop-marketplace #request .request-form :is(input:not([type="checkbox"]),select) { text-align: center; text-align-last: center; box-shadow: inset 0 2px 3px #102a331a; }
  .desktop-marketplace #request .request-form input::-webkit-datetime-edit { text-align: center; }
  .desktop-marketplace #request .request-readonly-value { display: none; }
  .desktop-marketplace #request .request-summary-input { display: block; }
  .desktop-marketplace #request .request-form :is(.is-carried-over,input[readonly]) { color: #435b66; background: #fff; }
  .desktop-marketplace #request .request-form input::placeholder { color: #596c76; opacity: 1; }
  .desktop-marketplace #request .readonly-field > span::after { content: ' (read-only)'; font-size: 11px; font-weight: 400; }
  .desktop-marketplace #request .request-form textarea { min-height: 90px; }
  .desktop-marketplace #request .buddy-choice-panel { display: grid; grid-template-columns: minmax(0,1fr) var(--request-action-width); align-items: center; gap: 8px 12px; }
  .desktop-marketplace #request .buddy-choice-panel > div { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .desktop-marketplace #request .buddy-choice-panel p { margin: 0; }
  .desktop-marketplace #request .selected-buddy-panel { flex-wrap: wrap; }
  .desktop-marketplace .desktop-optional-fields { grid-column: 1 / -1; }
  .desktop-marketplace .desktop-optional-fields .desktop-disclosure-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .desktop-marketplace :is(.buddy-choice-panel,.selected-buddy-panel,.selected-buddy-actions-row) { border: 0; background: transparent; box-shadow: none; padding: 0; gap: 10px; }
  .desktop-marketplace .buddy-choice-panel p { font-size: 13px; margin: 4px 0; }
  .desktop-marketplace #travelerSubmitButton { justify-self: start; width: auto; min-width: 180px; min-height: 44px; }
  .desktop-marketplace .buddy-login-panel { box-shadow: none; border: 0; background: transparent; padding: 0; }
  .desktop-marketplace #buddy-apply { padding-top: 0; }
  .desktop-marketplace .buddy-application-form { box-shadow: none; padding: 12px 0; background: transparent; }
  .desktop-marketplace footer { gap: 24px; padding-top: 28px; padding-bottom: 28px; }
  .desktop-marketplace footer :is(a,p) { font-size: 13px; }
}

.search-secondary-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: 100%; }
.hero-search-actions .search-secondary-actions > :is(button,a) { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 44px; padding: 8px 4px; border: 0; border-radius: 4px; font: inherit; font-size: 14px; font-weight: 650; line-height: 20px; text-align: center; text-decoration: none; white-space: normal; color: #0065a8; background: transparent; box-shadow: none; transform: none; }
.hero-search-actions .search-secondary-actions > :is(button,a):is(:hover,:focus-visible) { color: #004f83; background: #e7f2f8; text-decoration: underline; }
.request-search-preferences { min-width: 0; border-top: 1px solid #d6e2e7; padding-top: 4px; }
.request-search-preferences > summary { cursor: pointer; padding: 10px 0; font-size: 14px; font-weight: 700; color: #123b4b; }
.request-preference-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 4px 0 12px; }
.request-edit-search { max-width: 100%; font-size: 14px; white-space: normal; text-decoration: none; }
.request-search-preferences :is(summary,select):focus-visible,.request-edit-search:focus-visible { outline: 2px solid #0070b8; outline-offset: 3px; }
.marketplace-dialog .buddy-picker-row { grid-template-columns: 72px minmax(0,1fr) auto; gap: 14px; }
.buddy-picker-portrait { position: relative; width: 72px; height: 72px; display: grid; place-items: center; background: #edf2f5; border: 1px solid #d6e2e7; border-radius: 4px; overflow: hidden; color: #365462; font-size: 22px; font-weight: 700; }
.buddy-picker-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #edf2f5; }
@media (max-width: 700px) {
  .mobile-marketplace #request .request-summary-input { display: none; }
  .request-preference-fields { grid-template-columns: minmax(0,1fr); }
  .primary-btn.request-edit-search { min-height: 44px; }
  .marketplace-dialog .buddy-picker-row { grid-template-columns: 64px minmax(0,1fr); gap: 10px 12px; }
  .buddy-picker-portrait { width: 64px; height: 64px; }
  .marketplace-dialog .buddy-picker-row > button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
}
@media (min-width: 1100px) {
  .desktop-marketplace .conversation-workspace:has(> .conversation-quote) { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.4fr); align-items: start; box-shadow: none; }
  .desktop-marketplace .conversation-workspace > .conversation-toolbar { grid-column: 1 / -1; }
  .desktop-marketplace .conversation-workspace > .conversation-quote { grid-column: 1; grid-row: 2 / span 2; border-bottom: 0; border-right: 1px solid #d4dfe4; }
  .desktop-marketplace .conversation-workspace > .conversation-thread,
  .desktop-marketplace .conversation-workspace > .conversation-composer { grid-column: 2; }
  .desktop-marketplace .conversation-quote-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .desktop-marketplace .quote-actions { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 701px) and (max-width: 1099px) {
  .desktop-marketplace .site-header { grid-template-columns: auto minmax(0,1fr); gap: 6px 16px; }
  .desktop-marketplace .site-header .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; }
  .desktop-marketplace .site-header .header-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .desktop-marketplace .desktop-filters .desktop-disclosure-body { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .desktop-marketplace .site-header.staff-authenticated .header-profile-badge { flex-basis: 100%; width: 100%; max-width: none; }
}
@media (min-width: 701px) and (max-width: 899px) {
  .desktop-marketplace .hero-search { grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); }
  .desktop-marketplace .hero-search > label:has(#heroTravelers) { grid-column: 1; grid-row: 2; }
  .desktop-marketplace .hero-search-actions { grid-column: 2; grid-row: 2; }
  .desktop-marketplace .desktop-filters { grid-column: 1 / -1; grid-row: 3; }
  .desktop-marketplace .hero-search-note { grid-column: 1 / -1; }
  .desktop-marketplace .desktop-trip-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .desktop-marketplace #travelerRequestForm { grid-template-columns: minmax(0,1fr); }
}

/* Phone presentation reuses the existing controls and restores their desktop positions. */
@media (max-width: 700px) {
  body.mobile-marketplace { background: #f7fafb; }
  .mobile-marketplace :is(main, section, form, fieldset, label, .searchable-selection) { min-width: 0; }
  .mobile-marketplace :is(section[id],.conversation-section) { scroll-margin-top: 80px; }
  .mobile-marketplace :is(input, select, textarea) { max-width: 100%; box-sizing: border-box; font-size: 16px; }
  .mobile-marketplace :is(.hero-search,.request-form,.website-chat-dialog) :is(input,select,textarea) { font-size: 16px; }
  .mobile-marketplace :is(button, a, summary, input, select, textarea):focus-visible { outline: 2px solid #0070b8; outline-offset: 3px; }
  .mobile-marketplace .site-header,
  .mobile-marketplace .site-header.staff-authenticated {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    grid-template-rows: 48px;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    min-height: 64px;
    z-index: 80;
  }
  .mobile-marketplace .site-header .header-brand-zone { grid-column: 1; grid-row: 1; min-width: 0; }
  .mobile-marketplace .site-header .brand-mark { width: 146px; max-width: 100%; height: 44px; border-radius: 4px; }
  .mobile-marketplace .site-header .brand-name { display: none; }
  .mobile-marketplace .brand-mark { background: #fff url('assets/my-buddy-in-logo-header.png') center / contain no-repeat; }
  .mobile-marketplace .brand-mark video { visibility: hidden; }
  .mobile-marketplace .mobile-menu { grid-column: 3; grid-row: 1; position: static; }
  .mobile-icon-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; list-style: none; cursor: pointer; color: #fff; border: 1px solid #63757b; border-radius: 4px; font-size: 23px; }
  .mobile-icon-button::-webkit-details-marker { display: none; }
  .mobile-menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #0c171d; padding: 12px 16px 20px; max-height: calc(100dvh - 64px); overflow-y: auto; box-shadow: 0 8px 16px #102a3326; }
  .mobile-marketplace .site-header .mobile-menu-panel .main-nav { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0 0 8px; }
  .mobile-marketplace .mobile-menu-panel .main-nav a { min-height: 44px; padding: 10px 4px; border-bottom: 1px solid #ffffff26; }
  .mobile-marketplace .mobile-menu-panel .main-nav a:hover,
  .mobile-marketplace .mobile-menu-panel .main-nav a:focus-visible { background: #203b46; color: #fff; }
  .mobile-marketplace .site-header .mobile-menu-panel .header-actions { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
  .mobile-marketplace .mobile-menu-panel .header-actions :is(button,a) { min-height: 44px; height: auto; font-size: 14px; }
  .mobile-marketplace .mobile-menu-panel .country-home-btn::before { content: 'Visiting from'; padding-right: 6px; font-weight: 400; }
  .mobile-marketplace .site-header > .website-chat-launcher { position: relative; inset: auto; grid-column: 2; grid-row: 1; width: 44px; max-width: 44px; min-height: 44px; height: 44px; padding: 0; font-size: 0; gap: 0; border-radius: 4px; box-shadow: none; }
  .mobile-marketplace .site-header > .website-chat-launcher .website-chat-badge { position: absolute; top: -5px; right: -5px; font-size: 12px; min-width: 18px; }
  .mobile-marketplace .hero { padding: 16px 0 8px; gap: 16px; }
  .mobile-marketplace :is(.hero-search-card,.hero-image-stage,.section-shell,.portal-section) { width: calc(100% - 24px); }
  .mobile-marketplace .hero-search-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .mobile-marketplace :is(.hero-search-tabs,.visitor-origin-bar) { display: none; }
  .mobile-marketplace .hero-search { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; padding: 0; }
  .mobile-marketplace .hero-search > .hero-search-location { grid-column: 1; grid-row: 1; min-height: 68px; border: 1px solid #a6bac3; border-radius: 4px; padding: 8px 12px; background: #fff; }
  .mobile-marketplace .hero-search-location input { min-height: 40px; text-align: left; color: #102a33; }
  .mobile-marketplace .hero-search-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; grid-column: 1; }
  .mobile-marketplace .hero-search-actions .primary-btn { width: 100%; min-height: 48px; }
  .mobile-marketplace .hero-search-actions .search-secondary-actions > :is(button,a) { min-height: 44px; }
  .mobile-marketplace .hero-search-note { grid-column: 1; margin: 0; font-size: 12px; font-weight: 400; color: #435b66; }
  .mobile-disclosure { min-width: 0; width: 100%; border: 0; border-top: 1px solid #d6e2e7; background: transparent; border-radius: 0; }
  .mobile-disclosure > summary { min-height: 48px; padding: 12px 4px; cursor: pointer; color: #123b4b; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
  .mobile-disclosure-body { min-width: 0; padding: 4px 0 12px; }
  .mobile-marketplace .mobile-filters { grid-column: 1; border: 1px solid #c1d2db; background: #fff; border-radius: 4px; }
  .mobile-marketplace .mobile-filters > summary { padding: 12px; }
  .mobile-marketplace .mobile-filters .mobile-disclosure-body { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; padding: 4px 12px 12px; }
  .mobile-marketplace .mobile-filters label { display: flex; flex-direction: column; border: 0; padding: 0; min-height: 0; gap: 5px; }
  .mobile-marketplace .mobile-filters :is(input,select) { width: 100%; border: 1px solid #a6bac3; background: #fff; border-radius: 4px; min-height: 44px; padding: 8px; text-align: left; }
  .mobile-marketplace .mobile-filters .date-range-inputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .mobile-marketplace .mobile-filters .date-field-label { font-size: 12px; }
  .mobile-marketplace .hero-image-stage { min-height: 210px; height: 210px; border-radius: 4px; }
  .mobile-marketplace .hero-media::after { content: ''; position: absolute; inset: 0; background: #06151b8c; }
  .mobile-marketplace .hero-promo-card { width: auto; max-width: none; margin: 0; padding: 18px; background: transparent; border: 0; box-shadow: none; }
  .mobile-marketplace .hero-promo-card h1 { font-size: 24px; line-height: 1.2; margin: 4px 0; color: #fff; }
  .mobile-marketplace .hero-promo-card .hero-copy { font-size: 14px; margin-bottom: 0; color: #fff; }
  .mobile-marketplace .hero-promo-card .eyebrow { color: #fff; }
  .mobile-marketplace .hero-promo-card > .primary-btn { display: none; }
  .mobile-marketplace .hero-promo-card .eyebrow { font-size: 11px; }
  .mobile-marketplace :is(.section-shell,.portal-section) { padding-top: 20px; padding-bottom: 20px; }
  .mobile-marketplace .section-heading { margin-bottom: 12px; }
  .mobile-marketplace :is(.section-heading h2,.portal-copy h1) { font-size: 24px; line-height: 1.25; }
  .mobile-marketplace .destinations-section > .section-heading > .eyebrow,
  .mobile-marketplace #tourDestinations,
  .mobile-marketplace .tour-result-heading > p,
  .mobile-marketplace .tour-result-heading > h3 { display: none; }
  .mobile-marketplace .tour-result-group { margin: 0 0 18px; }
  .mobile-marketplace .destination-grid { gap: 16px; }
  .mobile-marketplace :is(.destination-card,.buddy-profile-card) { --marketplace-card-inset: 14px; max-width: 100%; border-radius: 6px; box-shadow: none; text-align: left; }
  .mobile-marketplace .tour-card-media { min-height: 160px; height: 160px; }
  .mobile-marketplace .guide-strip { display: none; }
  .mobile-marketplace .tour-card-body { padding: var(--marketplace-card-inset); text-align: left; }
  .mobile-marketplace .tour-card-body h3 { font-size: 19px; margin: 6px 0; line-height: 1.25; }
  .mobile-marketplace .tour-card-body .tag { position: static; font-size: 12px; background: transparent; padding: 0; color: #435b66; }
  .mobile-marketplace .tour-status { display: none; }
  .mobile-marketplace .tour-rating { font-size: 12px; margin: 4px 0; }
  .mobile-tour-highlights { font-size: 13px; color: #435b66; margin: 8px 0; }
  .mobile-marketplace .tour-price { margin: 10px 0; gap: 6px; }
  .mobile-marketplace .tour-price strong { font-size: 18px; line-height: 1.3; }
  .mobile-marketplace .destination-card-actions { display: block; }
  .mobile-marketplace :is(.destination-card,.buddy-profile-card) .selection-field { min-height: 48px; }
  .mobile-marketplace .destination-card-actions .selection-field { width: 100%; }
  .mobile-marketplace .mobile-tour-details > summary { min-height: 44px; padding: 10px 0; font-size: 14px; }
  .mobile-marketplace .mobile-tour-details .tour-card-summary { margin: 0 0 10px; }
  .mobile-marketplace .mobile-tour-details .mobile-detail-link { display: inline-flex; min-height: 44px; margin-right: 8px; }
  .mobile-marketplace .comparison-choice { min-height: 44px; }
  .mobile-marketplace .buddy-profile-card > img { width: 100%; aspect-ratio: 4 / 3; min-height: 0; height: auto; object-fit: contain; object-position: center; background: #edf2f5; }
  .mobile-marketplace .buddy-profile-card > .buddy-avatar { inset: auto; margin: -25px var(--marketplace-card-inset) 8px; }
  .mobile-marketplace .buddy-profile-card > :is(.tag,h3) { margin-left: var(--marketplace-card-inset); margin-right: var(--marketplace-card-inset); text-align: left; }
  .mobile-marketplace .buddy-profile-card > .tour-rating { flex: none; margin: 0 var(--marketplace-card-inset) 10px !important; }
  .mobile-marketplace .buddy-profile-card > :is(.mobile-disclosure,.public-reviews,.selection-field) { align-self: stretch; width: auto; margin-left: var(--marketplace-card-inset); margin-right: var(--marketplace-card-inset); }
  .mobile-marketplace .buddy-profile-card > .mobile-disclosure { margin-bottom: 8px; }
  .mobile-marketplace .buddy-profile-card > .public-reviews { margin-top: 0; margin-bottom: 14px; }
  .mobile-marketplace .buddy-profile-card .mobile-disclosure-body > :is(p,.buddy-languages,.buddy-rate) { margin: 0 0 10px; flex: none; text-align: left; }
  .mobile-marketplace .buddy-profile-card .mobile-disclosure-body > .buddy-languages { display: block; }
  .mobile-marketplace :is(.destination-card,.buddy-profile-card) .public-reviews :is(p,strong) { margin-left: 0; margin-right: 0; text-align: left; }
  .mobile-marketplace :is(.destination-card,.buddy-profile-card) .public-reviews > summary,
  .mobile-marketplace .buddy-profile-card > .mobile-disclosure > summary { min-height: 44px; padding: 10px 0; text-align: left; }
  .mobile-marketplace .buddy-profile-card > strong { display: none; }
  .mobile-marketplace :is(.trust-strip,.stories-section,.marketplace-section,.support-section) { padding-top: 6px; padding-bottom: 6px; }
  .mobile-marketplace .trust-strip { display: block; width: calc(100% - 24px); margin: 0 auto; }
  .mobile-marketplace .trust-strip .mobile-disclosure-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .mobile-marketplace .trust-strip article { padding: 8px; }
  .mobile-marketplace .engagement-section { padding-top: 4px; padding-bottom: 4px; }
  .mobile-marketplace :is(.destinations-section,.buddies-section) .section-actions .section-return { width: 100%; min-height: 44px; }
  .mobile-marketplace .availability-alerts :is(input,select,button) { min-height: 44px; }
  .mobile-marketplace .section-heading.compact > p:not(.eyebrow) { font-size: 14px; margin: 6px 0; }
  .mobile-marketplace #request > .section-heading > p:not(.eyebrow) { display: none; }
  .mobile-marketplace #request .request-edit-search,
  .mobile-marketplace #request #chooseBuddyButton { width: 100%; min-height: 44px; }
  .mobile-marketplace .request-layout { display: block; }
  .mobile-marketplace :is(.request-form,.buddy-application-form) { display: grid; grid-template-columns: minmax(0,1fr); padding: 0; gap: 14px; background: transparent; box-shadow: none; border: 0; border-radius: 0; }
  .mobile-marketplace .request-field-group { display: grid; grid-template-columns: minmax(0,1fr); padding: 0; gap: 12px; border: 0; background: transparent; border-radius: 0; }
  .mobile-marketplace .request-field-group legend { padding: 0 0 12px; }
  .mobile-marketplace .request-field-group legend strong { display: none; }
  .mobile-marketplace .request-field-group legend span { font-size: 15px; color: #123b4b; }
  .mobile-marketplace .traveler-detail-group { grid-template-columns: repeat(2,minmax(0,1fr)); box-shadow: none; }
  .mobile-marketplace .traveler-detail-group > label { grid-column: 1 / -1; }
  .mobile-marketplace .traveler-detail-group > label:has(#requestFirstName),
  .mobile-marketplace .traveler-detail-group > label:has(#requestLastName) { grid-column: auto; }
  .mobile-marketplace .request-readonly-value { border: 0; border-radius: 0; background: transparent; padding: 2px 0; min-height: 0; box-shadow: none; }
  .mobile-marketplace .homepage-selection-group > label { gap: 2px; }
  .mobile-marketplace .homepage-selection-group > label > span { font-size: 11px; color: #526a75; }
  .mobile-marketplace .request-date-range .date-range-inputs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mobile-marketplace :is(.request-form,.buddy-application-form) :is(label,fieldset,input,select,textarea) { width: 100%; min-width: 0; }
  .mobile-marketplace :is(.request-form,.buddy-application-form) :is(input,select,textarea) { min-height: 44px; padding: 10px; border-radius: 4px; }
  .mobile-marketplace :is(.request-form,.buddy-application-form) label > span { font-size: 13px; letter-spacing: 0; text-transform: none; }
  .mobile-marketplace .mobile-optional-fields { grid-column: 1 / -1; }
  .mobile-marketplace .mobile-optional-fields .mobile-disclosure-body { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .mobile-marketplace .availability-fieldset { border: 0; padding: 0; }
  .mobile-marketplace .availability-fieldset label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
  .mobile-marketplace .availability-fieldset input[type=checkbox] { flex: 0 0 20px; width: 20px; min-height: 20px; height: 20px; padding: 0; margin: 0; }
  .mobile-marketplace :is(.buddy-choice-panel,.selected-buddy-panel,.selected-buddy-actions-row) { padding: 0; border: 0; background: transparent; box-shadow: none; gap: 8px; }
  .mobile-marketplace .buddy-choice-panel p { font-size: 13px; margin: 4px 0; }
  .mobile-marketplace #travelerSubmitButton { font-size: 15px; min-height: 48px; margin-top: 4px; white-space: normal; }
  .mobile-marketplace .buddy-section { padding-top: 18px; padding-bottom: 8px; }
  .mobile-marketplace .buddy-section h1 { font-size: 24px; }
  .mobile-marketplace .buddy-section p { font-size: 14px; }
  .mobile-marketplace :is(.buddy-section,#buddy-login) .eyebrow,
  .mobile-marketplace #buddy-login .section-heading > p:not(.eyebrow),
  .mobile-marketplace .buddy-opportunities-section:not(#buddy-login) > .section-heading > p:not(.eyebrow) { display: none; }
  .mobile-marketplace #buddy-login { padding-top: 12px; }
  .mobile-marketplace #buddy-login h2 { font-size: 20px; }
  .mobile-marketplace .buddy-login-panel { box-shadow: none; padding: 12px 0; border: 0; }
  .mobile-marketplace .buddy-opportunities-section .section-heading p { font-size: 14px; }
  .mobile-marketplace :is(.conversation-section,.conversation-quote) { min-width: 0; }
  .mobile-marketplace .conversation-quote { padding: 12px; border-radius: 4px; }
  .mobile-marketplace .conversation-quote-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .mobile-marketplace .conversation-quote-summary > div { min-width: 0; }
  .mobile-marketplace .conversation-quote :is(dt,dd,p) { overflow-wrap: anywhere; }
  .mobile-marketplace .conversation-composer textarea { min-height: 80px; }
  .mobile-marketplace .conversation-composer .primary-btn { min-height: 48px; width: 100%; }
  .mobile-marketplace .marketplace-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 16px; border-radius: 6px; }
  .mobile-marketplace .comparison-grid { grid-template-columns: minmax(0,1fr); }
  .mobile-marketplace .saved-list-row { grid-template-columns: 48px minmax(0,1fr); }
  .mobile-marketplace .marketplace-dialog .buddy-picker-row { grid-template-columns: 64px minmax(0,1fr); }
  .mobile-marketplace .saved-list-actions { flex-wrap: wrap; grid-column: 1 / -1; }
  .mobile-marketplace .saved-list-actions { grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .mobile-marketplace .saved-list-actions > .tour-compare-choice { grid-column: 1 / -1; }
  .mobile-marketplace .saved-list-actions > button { width: 100%; }
  .mobile-marketplace .currency-gate { padding: 12px; }
  .mobile-marketplace .gate-panel { padding: 20px; width: 100%; max-width: 420px; max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 6px; }
  .mobile-marketplace .currency-gate .searchable-selection-options { position: static; margin-top: 8px; max-height: min(28dvh,220px); box-shadow: none; }
  .mobile-marketplace .modal-brand-header { margin-bottom: 14px; padding: 0; background: transparent; }
  .mobile-marketplace .modal-brand-header > div { display: none; }
  .mobile-marketplace .gate-panel h1 { font-size: 24px; line-height: 1.25; margin: 0 0 10px; }
  .mobile-marketplace .gate-panel > p { font-size: 13px; }
  .mobile-marketplace .gate-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
  .mobile-marketplace footer { display: block; padding: 24px 12px; }
  .mobile-marketplace footer > :is(div,nav) { width: 100%; min-width: 0; }
  .mobile-marketplace footer .mobile-disclosure > summary { color: inherit; }
  .mobile-marketplace footer .mobile-disclosure-body > h3 { display: none; }
  .mobile-marketplace footer .mobile-disclosure-body > a { display: block; min-height: 44px; padding: 10px 0; }
  .mobile-marketplace .destinations-section > .section-heading { width: 100%; max-width: none; }
  .mobile-marketplace .marketplace-tools { width: 100%; margin-top: 12px; }
  .mobile-marketplace :is(.tour-card-body,.buddy-profile-card) > .marketplace-location { align-self: flex-start; }
}

/* Shared public value fields and marketplace actions retain identical geometry. */
:is(.desktop-marketplace,.mobile-marketplace) :is(.tour-card-body,.buddy-profile-card) > .marketplace-location {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  margin-bottom: 7px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  color: #005a94;
  background: #dff0fa;
  box-shadow: none;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 16px;
  text-align: left;
  overflow-wrap: anywhere;
}
.marketplace-tools {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  width: 288px;
  max-width: 100%;
  gap: 8px;
  align-items: stretch;
}
.marketplace-tools > .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}
.marketplace-tools > .ghost-btn:disabled { color: #435b66; background: #e5edf2; opacity: 1; box-shadow: none; }
.marketplace-tools .marketplace-tool-status { grid-column: 1 / -1; margin: 0; }
.marketplace-tools .marketplace-tool-status:empty { display: none; }
.saved-list-actions { display: grid; grid-template-columns: auto repeat(2,120px); gap: 8px; }
.saved-list-actions > button { width: 120px; min-height: 44px; }
body:is(.desktop-marketplace,.mobile-marketplace) .marketplace-dialog button:disabled { color: #435b66; background: #e5edf2; opacity: 1; box-shadow: none; }
body:is(.desktop-marketplace,.mobile-marketplace) :is(.hero-search,.gate-panel,.request-form,.buddy-application-form,.buddy-claim-panel,.buddy-modal-panel,.payment-method-card,.website-chat-start,.availability-alerts,.marketplace-dialog,.review-section,.public-reviews,.conversation-quote) :is(input:not([type="checkbox"],[type="radio"],[type="file"],[type="hidden"],[type="submit"],[type="button"]),select) {
  text-align: center;
  text-align-last: center;
}
body:is(.desktop-marketplace,.mobile-marketplace) :is(.hero-search,.request-form,.availability-alerts) input::-webkit-datetime-edit { text-align: center; }
