/* Retaira: Inter, white canvas, #2a2a2a text, #101010 / #336dde accents */

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans',
    'Noto Sans Arabic', 'Hiragino Sans', 'PingFang SC', 'Microsoft YaHei',
    'Apple SD Gothic Neo', 'Malgun Gothic', Roboto, sans-serif;
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --surface: #ffffff;
  --text: #2a2a2a;
  --text-muted: #737373;
  --border: #e8e8e8;
  --border-strong: #d4d4d4;
  --link: #336dde;
  --brand: #101010;
  --brand-hover: #2a2a2a;
  --black: #101010;
  --on-black: #ffffff;
  --radius: 4px;
  --radius-card: 16px;
  --radius-card-sm: 12px;
  --radius-pill: 999px;
  --header-h: 56px;
  --container: 1120px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 8px 22px rgba(0, 0, 0, 0.08);
  --card-lift: -2px;
  --card-zoom: 1.04;
  --card-transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
  --card-img-transition: transform 0.4s var(--ease);
  --ok: #166534;
  --warn: #9a3412;
  --hover-bg: #f3f3f3;
  color-scheme: light;
}

html[data-theme='dark'] {
  --bg: #121212;
  --bg-subtle: #1a1a1a;
  --surface: #1e1e1e;
  --text: #f3f3f3;
  --text-muted: #c4c4c4;
  --border: #2e2e2e;
  --border-strong: #4a4a4a;
  --link: #8eb0ff;
  --brand: #f2f2f2;
  --brand-hover: #ffffff;
  --black: #f2f2f2;
  --on-black: #121212;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.45);
  --ok: #4ade80;
  --warn: #f59e0b;
  --hover-bg: #242424;
  color-scheme: dark;
}

/* Unified hover + motion for cards on every page */
.experience-card,
.city-tile,
.package-card,
.ep-place-card,
.ep-event-card,
.idea-card,
.recent-card,
.host-card,
.value-card,
.mood-card,
.guide-teaser-card,
.guide-country,
.guide-city,
.city-tip-card,
.city-tip-index-card,
.compare-card {
  box-shadow: var(--card-shadow);
  transition: var(--card-transition);
}

.experience-card:hover,
.city-tile:hover,
.package-card:hover,
.ep-place-card:hover,
.ep-event-card:hover,
.idea-card:hover,
.recent-card:hover,
.host-card:hover,
.value-card:hover,
.mood-card:hover,
.guide-teaser-card:hover,
.guide-country:hover,
.guide-city:hover,
.city-tip-card:hover,
.city-tip-index-card:hover,
.compare-card:hover {
  background: var(--hover-bg);
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(var(--card-lift));
}

.experience-card-media img,
.city-tile-img img,
.package-media img,
.ep-card-media img,
.ep-event-media img,
.idea-card-img,
.recent-card img,
.city-tip-card img,
.city-tip-index-card img,
.compare-card img {
  transition: var(--card-img-transition);
}

.experience-card:hover .experience-card-media img,
.city-tile:hover .city-tile-img img,
.package-card:hover .package-media img,
.ep-place-card:hover .ep-card-media img,
.ep-event-card:hover .ep-event-media img,
.idea-card:hover .idea-card-img,
.recent-card:hover img,
.city-tip-card:hover img,
.city-tip-index-card:hover img,
.compare-card:hover img {
  transform: scale(var(--card-zoom));
}

@media (prefers-reduced-motion: reduce) {
  .experience-card,
  .city-tile,
  .package-card,
  .ep-place-card,
  .ep-event-card,
  .idea-card,
  .recent-card,
  .host-card,
  .value-card,
  .mood-card,
  .guide-teaser-card,
  .guide-country,
  .guide-city,
  .city-tip-card,
  .city-tip-index-card,
  .compare-card,
  .experience-card-media img,
  .city-tile-img img,
  .package-media img,
  .ep-card-media img,
  .ep-event-media img,
  .idea-card-img,
  .recent-card img,
  .city-tip-card img,
  .city-tip-index-card img,
  .compare-card img {
    transition: none;
  }

  .experience-card:hover,
  .city-tile:hover,
  .package-card:hover,
  .ep-place-card:hover,
  .ep-event-card:hover,
  .idea-card:hover,
  .recent-card:hover,
  .host-card:hover,
  .value-card:hover,
  .mood-card:hover,
  .guide-teaser-card:hover,
  .guide-country:hover,
  .guide-city:hover,
  .city-tip-card:hover,
  .city-tip-index-card:hover,
  .compare-card:hover {
    transform: none;
  }

  .experience-card:hover .experience-card-media img,
  .city-tile:hover .city-tile-img img,
  .package-card:hover .package-media img,
  .ep-place-card:hover .ep-card-media img,
  .ep-event-card:hover .ep-event-media img,
  .idea-card:hover .idea-card-img,
  .recent-card:hover img,
  .city-tip-card:hover img,
  .city-tip-index-card:hover img,
  .compare-card:hover img {
    transform: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  text-align: start;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}

body.nav-scroll-lock {
  overflow: hidden;
  touch-action: none;
}

img {
  max-width: 100%;
  display: block;
}

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

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header — Retaira clean bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  min-height: var(--header-h);
  flex-wrap: nowrap;
  padding: 0.35rem 0;
}

.header-top {
  display: contents;
}

.header-search {
  flex: 1 1 12rem;
  max-width: 320px;
  min-width: 0;
  margin: 0;
}

.header-search input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  background: var(--bg-subtle);
}

.header-search input:focus {
  outline: 2px solid var(--link);
  outline-offset: 0;
  background: var(--bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-inline-end: auto;
  flex-shrink: 0;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  border: 2px solid #000;
  border-radius: 2px;
  line-height: 1.1;
}

.header-city {
  position: relative;
  flex-shrink: 1;
  min-width: 0;
}

.city-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 9.5rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}

.city-toggle:hover {
  background: var(--hover-bg);
  border-color: var(--border-strong);
}

.city-toggle[aria-expanded='true'] {
  border-color: var(--border-strong);
  background: var(--bg);
}

.city-toggle-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--text-muted);
}

#city-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-popup {
  min-width: 14rem;
}

.city-popup-hint {
  margin: 0;
  padding: 0.65rem 0.85rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.city-use-location {
  display: block;
  width: calc(100% - 1rem);
  margin: 0.35rem 0.5rem 0.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
}

.city-use-location:hover:not(:disabled) {
  background: var(--hover-bg);
}

.city-use-location:disabled {
  opacity: 0.65;
  cursor: wait;
}

.locale-popup-list [role='option'].is-selected {
  font-weight: 700;
}

html[data-theme='dark'] .logo {
  border-color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}

.nav-toggle-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.125rem;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--black);
  border-radius: 1px;
  transition: transform 0.22s var(--ease), opacity 0.15s var(--ease);
  transform-origin: center;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-scrim {
  display: none;
}

.site-nav-label {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  color: var(--text);
  padding: 0.35rem 0.55rem;
  margin: 0 -0.2rem;
  border-radius: 8px;
  white-space: nowrap;
  text-align: center;
  transition:
    color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}

.site-nav a:hover {
  background: var(--hover-bg);
  color: var(--text);
}

.main {
  flex: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0));
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.footer-meta {
  margin: 0;
}

.footer-ops a {
  color: var(--link);
  padding: 0.2rem 0.4rem;
  margin: 0 -0.4rem;
  border-radius: 6px;
  transition: background-color 0.15s var(--ease);
}

.footer-ops a:hover {
  background: var(--hover-bg);
  text-decoration: none;
}

/* Typography — Retaira hierarchy (single family, weight/size) */
.retaira-h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--black);
}

.retaira-h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.35rem;
  color: var(--black);
}

.retaira-lead {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 42rem;
}

.retaira-muted {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

.retaira-eyebrow,
.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  color: var(--black);
}

.page-sub {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
}

/* Hero */
.retaira-hero-wrap {
  background: var(--bg);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.retaira-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.idea-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .idea-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.idea-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg);
}

.idea-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.idea-card-body {
  padding: 1rem 1.15rem 1.15rem;
}

.idea-step {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
  margin: 0 0 0.35rem;
}

.idea-card-body h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.idea-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.package-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.package-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  overflow: hidden;
}

.package-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.package-card .package-title,
.package-card .package-sub,
.package-card .package-desc,
.package-card .package-list,
.package-card .package-foot {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.package-card .package-title {
  padding-top: 1.15rem;
}

.empty-state-visual {
  text-align: center;
  max-width: 28rem;
}

.saved-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem;
}

.saved-empty-plate {
  fill: var(--bg-subtle);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.saved-empty-heart {
  fill: var(--brand);
  opacity: 0.92;
}

.empty-state-img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-card);
  margin: 0 auto 1.25rem;
  display: block;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* City tiles — Retaira destination cards */
.retaira-cities {
  padding: 2.5rem 0 1rem;
}

.retaira-cities-head {
  margin-bottom: 1.25rem;
}

.retaira-cities-group {
  margin-bottom: 1.75rem;
}

.retaira-cities-group:last-child {
  margin-bottom: 0;
}

.retaira-cities-sub {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.city-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.city-switcher-pill {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}

.city-switcher-pill:hover:not(.active) {
  background: var(--hover-bg);
  border-color: var(--border-strong);
}

.city-switcher-pill.active {
  background: var(--black);
  color: var(--on-black);
  border-color: var(--black);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--black);
  color: var(--on-black);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.header-top-end {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.header-locale,
.language-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.footer-currency,
.currency-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  vertical-align: middle;
}

.currency-toggle,
.language-toggle {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.45rem 0.55rem;
  margin: 0;
  min-height: 2.75rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.18s ease,
    transform 0.18s ease,
    background-color 0.15s var(--ease);
  touch-action: manipulation;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
}

#language-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.currency-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.currency-toggle-icon svg {
  display: block;
}

.currency-toggle:hover .currency-toggle-icon,
.currency-toggle[aria-expanded='true'] .currency-toggle-icon {
  opacity: 1;
}

.currency-toggle:hover,
.language-toggle:hover {
  background: var(--hover-bg);
  color: var(--text);
  transform: translateY(-1px);
}

.currency-toggle[aria-expanded='true'],
.language-toggle[aria-expanded='true'] {
  color: var(--text);
}

.currency-toggle:active,
.language-toggle:active {
  transform: translateY(0) scale(0.97);
}

.currency-toggle:focus-visible,
.language-toggle:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Extension-style popup: hover + open/close motion */
.currency-popup,
.language-popup,
.locale-popup {
  position: absolute;
  left: 50%;
  z-index: 70;
  width: 11.5rem;
  padding: 0.75rem 0 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition:
    opacity 0.16s ease,
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.2s ease;
}

.currency-popup {
  bottom: calc(100% + 0.65rem);
  width: max-content;
  min-width: 9.25rem;
  max-width: 14rem;
  padding-top: 0.4rem;
  transform: translateX(-50%) translateY(6px) scale(0.96);
  transform-origin: bottom center;
}

.language-popup {
  top: calc(100% + 0.65rem);
  bottom: auto;
  width: max-content;
  min-width: 9.25rem;
  max-width: 11.5rem;
  padding-top: 0.4rem;
  transform: translateX(-50%) translateY(-6px) scale(0.96);
  transform-origin: top center;
}

.currency-popup.is-open,
.language-popup.is-open,
.locale-popup.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.currency-popup.is-closing {
  opacity: 0;
  transform: translateX(-50%) translateY(4px) scale(0.97);
  pointer-events: none;
}

.language-popup.is-closing {
  opacity: 0;
  transform: translateX(-50%) translateY(-4px) scale(0.97);
  pointer-events: none;
}

.currency-popup[hidden],
.language-popup[hidden],
.locale-popup[hidden] {
  display: none;
}

.currency-popup-title,
.locale-popup-title {
  margin: 0 0 0.5rem;
  padding: 0 0.9rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.locale-popup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.currency-popup-list,
.locale-popup-list--reveal {
  /* 5 visible rows; rest reveal on move/auto (no scrollbar) */
  list-style: none;
  margin: 0;
  padding: 0;
  --locale-row-h: 2.35rem;
  max-height: calc(5 * var(--locale-row-h));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.currency-popup-list::-webkit-scrollbar,
.locale-popup-list--reveal::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.locale-popup-list [role='option'] {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.25;
  transform: scale(1);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    filter 0.15s ease;
}

.currency-popup-list [role='option'],
.locale-popup-list--reveal [role='option'] {
  box-sizing: border-box;
  height: var(--locale-row-h);
  padding-top: 0;
  padding-bottom: 0;
}

.locale-popup-list [role='option']:hover,
.locale-popup-list [role='option']:focus {
  background: var(--hover-bg);
  outline: none;
  transform: scale(1.02);
}

.locale-popup-list [role='option']:active {
  transform: scale(0.99);
  filter: brightness(0.97);
}

.locale-popup-list [role='option'].active {
  font-weight: 600;
  background: transparent;
}

.locale-popup-list [role='option'].active:hover,
.locale-popup-list [role='option'].active:focus {
  background: var(--hover-bg);
}

.locale-opt-code {
  display: inline-flex;
  align-items: center;
  justify-content: start;
  min-width: 2.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.locale-opt-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  transition: color 0.15s ease;
}

.locale-popup-list [role='option']:hover .locale-opt-label,
.locale-popup-list [role='option']:focus .locale-opt-label {
  color: var(--text);
}

.locale-opt-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.locale-popup-list [role='option']:hover .locale-opt-meta,
.locale-popup-list [role='option']:focus .locale-opt-meta {
  color: var(--text);
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .currency-toggle,
  .language-toggle,
  .locale-toggle,
  .currency-popup,
  .language-popup,
  .locale-popup,
  .locale-popup-list [role='option'],
  .locale-opt-label,
  .locale-opt-meta {
    transition: none !important;
  }

  .currency-popup.is-open,
  .currency-popup.is-closing,
  .language-popup.is-open,
  .language-popup.is-closing {
    transform: translateX(-50%);
  }

  .locale-popup-list [role='option']:hover,
  .locale-popup-list [role='option']:focus,
  .locale-popup-list [role='option']:active {
    transform: none;
  }
}

html[data-theme='dark'] .currency-popup,
html[data-theme='dark'] .language-popup,
html[data-theme='dark'] .locale-popup {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.5);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--hover-bg);
  border-color: var(--border-strong);
}

.theme-toggle-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--text);
}

.theme-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.15s var(--ease), transform 0.2s var(--ease);
}

.theme-icon-sun {
  opacity: 0;
  transform: scale(0.7) rotate(-30deg);
}

.theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

html[data-theme='dark'] .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

html[data-theme='dark'] .theme-icon-moon {
  opacity: 0;
  transform: scale(0.7) rotate(30deg);
}

@media (min-width: 961px) {
  .header-top-end {
    margin-inline-start: 0;
    order: 4;
  }

  .site-nav .header-locale {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-inline-end: 0.5rem;
  }

  .site-nav-label {
    display: none;
  }

  .site-nav {
    order: 3;
  }

  .header-search {
    order: 2;
  }
}

.discover-city-switcher {
  margin-bottom: 1.25rem;
}

.badge-deal {
  background: #336dde;
  color: #fff;
}

.lookup-form {
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lookup-form .field span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.lookup-form input,
.lookup-form select,
.lookup-form textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
}

.demo-bookings-card {
  margin-top: 2rem;
  max-width: 28rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg-subtle);
}

.demo-bookings-card .section-label {
  margin-bottom: 0.35rem;
}

.demo-bookings-card .hint-text {
  margin: 0 0 0.85rem;
}

.demo-bookings-card .hint-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  font-weight: 600;
}

.booking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.booking-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0.65rem;
  margin: 0 -0.65rem;
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
  transition: background-color 0.15s var(--ease);
}

.legal-page {
  max-width: 46rem;
}

.legal-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
  margin: 0 0 1rem;
}

.legal-body ul,
.legal-body ol {
  padding-inline-start: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.35rem;
}

.legal-body h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-body a {
  color: var(--link);
}

.legal-meta {
  color: var(--text);
}

.legal-note {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card-sm);
  background: var(--bg-subtle);
  font-size: 0.875rem;
}

.package-dialog {
  border: none;
  border-radius: var(--radius-card);
  padding: 1.25rem;
  max-width: 24rem;
  width: calc(100% - 2rem);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--card-shadow-hover);
}

.package-dialog::backdrop {
  background: rgba(16, 16, 16, 0.45);
}

.package-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: stretch;
  margin-top: 1.25rem;
  width: 100%;
}

.package-dialog-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

.package-dialog-actions .btn-primary {
  border: 1px solid transparent;
}

.checkbox-field,
label.field.checkbox-field,
.field .checkbox-field {
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.checkbox-field input,
label.field.checkbox-field input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.15rem 0 0;
  justify-self: center;
  accent-color: var(--black);
  cursor: pointer;
}

.retaira-cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .retaira-cities-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.city-tile {
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.city-tile.is-active {
  border-color: var(--black);
}

.city-tile-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-subtle);
  position: relative;
}

.city-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.5rem 0.55rem;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.65) 100%);
  color: #fff;
  pointer-events: none;
}

.city-tile-overlay .city-tile-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

.city-tile-overlay .city-tile-country {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.city-tile-capital {
  align-self: flex-start;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 0.25rem;
}

.city-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-tile-copy {
  padding: 0.65rem 0.75rem 0.85rem;
}

.city-tile-tag {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.city-tile-places {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.city-tile-places li::before {
  content: '· ';
  color: var(--border-strong);
}

.city-tile-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--link);
}

.places-visit {
  padding: 0 0 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.places-visit-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.places-visit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.places-visit-list li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg-subtle);
}

/* Mood / filter chips — Retaira style */
.retaira-moods {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
}

.mood-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mood-card {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: var(--card-transition);
}


.mood-card[aria-pressed='true'],
.mood-card:focus-visible {
  background: var(--black);
  border-color: var(--black);
  color: var(--on-black);
}

.mood-icon,
.mood-tagline {
  display: none;
}

.mood-label {
  font-weight: 600;
}

/* Category chips */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.55rem 0.95rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  transition: all 0.15s var(--ease);
  touch-action: manipulation;
}

.chip:hover:not(.active) {
  background: var(--hover-bg);
  border-color: var(--border-strong);
}

.chip.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--on-black);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.btn-primary {
  position: relative;
  background: var(--brand);
  color: var(--on-black);
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--brand) 82%, var(--on-black));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--on-black) 8%, transparent) inset,
    0 2px 8px color-mix(in srgb, var(--brand) 28%, transparent);
}

@media (hover: hover) {
  .btn-primary:hover:not(:disabled) {
    background: var(--brand-hover);
    border-color: color-mix(in srgb, var(--brand-hover) 78%, var(--on-black));
    box-shadow: 0 1px 0 color-mix(in srgb, var(--on-black) 10%, transparent) inset,
      0 6px 16px color-mix(in srgb, var(--brand) 38%, transparent);
    transform: translateY(-1px);
  }
}

.btn-primary:active:not(:disabled) {
  background: var(--brand-hover);
  transform: translateY(1px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--on-black) 14%, transparent) inset,
    0 1px 4px color-mix(in srgb, var(--brand) 22%, transparent);
}

.btn-primary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 55%, var(--bg));
  outline-offset: 2px;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--hover-bg);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--link);
  padding: 0.5rem 0.65rem;
  margin: 0 -0.65rem;
  border-radius: 8px;
  font-weight: 600;
}

.btn-ghost:hover {
  background: var(--hover-bg);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

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

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
}

/* Experience cards — compact-medium + rounded */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .experience-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .experience-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 0.85rem;
  }
}

.experience-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.experience-card-media {
  aspect-ratio: 4 / 3;
  max-height: 158px;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg-subtle);
  position: relative;
  margin-bottom: 0;
}

.experience-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 4.75rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #2a2a2a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  line-height: 1.2;
  white-space: nowrap;
}

.badge-featured {
  background: rgba(255, 255, 255, 0.95);
  color: #2a2a2a;
}

.card-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0.35rem;
}

.card-trait {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.card-trait-instant {
  border-color: color-mix(in srgb, var(--ok) 35%, var(--border));
  background: color-mix(in srgb, var(--ok) 12%, var(--bg));
  color: var(--ok);
}

.card-trait-weather {
  border-color: var(--border-strong);
  color: var(--text-muted);
}

.experience-card-body {
  padding: 0.55rem 0.65rem 0.65rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.experience-city {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.experience-place {
  font-size: 0.75rem;
  color: var(--link);
  font-weight: 500;
  margin: 0 0 0.25rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.experience-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

.experience-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.experience-title a:hover {
  color: var(--link);
}

.experience-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.15rem;
}

.price {
  font-weight: 700;
  font-size: 0.9375rem;
}

.experience-card .price {
  font-size: 0.875rem;
}

.experience-card .btn-sm {
  padding: 0.45rem 0.95rem;
  min-height: 2.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  min-width: 3.75rem;
}

.experience-card .btn-primary.btn-sm {
  box-shadow: 0 1px 0 color-mix(in srgb, var(--on-black) 8%, transparent) inset,
    0 2px 6px color-mix(in srgb, var(--brand) 24%, transparent);
}

@media (hover: hover) {
  .experience-card .btn-primary.btn-sm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--on-black) 10%, transparent) inset,
      0 8px 18px color-mix(in srgb, var(--brand) 36%, transparent);
  }
}

.price span {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Discover / page */
.page-head {
  padding: 2rem 0 1.25rem;
}

.page-intro {
  margin-bottom: 1.5rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.result-count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.trust-row span::before {
  content: '·';
  margin-right: 0.5rem;
  color: var(--border-strong);
}

.trust-row span:first-child::before {
  content: none;
}

/* Back navigation */
.back-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.55rem 0.35rem 0.3rem;
  border: 0;
  border-radius: var(--radius-card-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease),
    transform 0.15s var(--ease),
    color 0.15s ease;
}

.back-nav:hover {
  background: var(--hover-bg);
  color: var(--text);
}

.back-nav:active {
  transform: translateX(-2px);
}

.back-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text);
  transition:
    background-color 0.15s var(--ease),
    transform 0.18s var(--ease);
}

.back-nav:hover .back-nav-arrow {
  background: color-mix(in srgb, var(--text) 10%, var(--bg-subtle));
  transform: translateX(-2px);
}

.back-nav-label {
  letter-spacing: -0.01em;
}

/* Detail */
.detail-layout {
  padding: 2rem 0 3rem;
}

@media (min-width: 768px) {
  .detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    padding-bottom: 3rem;
  }
}

.detail-gallery {
  display: grid;
  gap: 0.55rem;
}

.detail-gallery-feature {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.detail-gallery-feature img {
  width: 100%;
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: block;
  transition: transform 0.35s var(--ease);
}

.detail-gallery-feature:hover img {
  transform: scale(1.02);
}

.detail-gallery-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  height: 1.75rem;
  padding: 0 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 16, 16, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.detail-gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(4.5rem, 1fr);
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.detail-gallery-thumb,
.media-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
}

.detail-gallery-thumb img,
.media-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.detail-gallery-thumb[aria-current='true'] {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.detail-gallery-ord {
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 16, 16, 0.72);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
}

.detail-gallery-thumb:focus-visible,
.media-gallery-item:focus-visible,
.detail-gallery-feature:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.photo-lightbox {
  padding: 0;
  border: none;
  background: rgba(8, 8, 8, 0.94);
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  inset: 0;
  z-index: 80;
}

.photo-lightbox::backdrop {
  background: rgba(8, 8, 8, 0.72);
}

.photo-lightbox-inner {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 3.25rem 3.5rem 2.5rem;
  display: grid;
  place-items: center;
}

.photo-lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: min(78dvh, 760px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-card-sm);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  background: #0a0a0a;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.photo-lightbox-close {
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
}

.photo-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.75rem;
  line-height: 1;
}

.photo-lightbox-prev {
  inset-inline-start: 0.35rem;
}

.photo-lightbox-next {
  inset-inline-end: 0.35rem;
}

.photo-lightbox-count {
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.compare-card-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.compare-card-media-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.package-media-link {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.package-media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-content {
  padding-top: 1.5rem;
}

.detail-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.provider-link {
  color: var(--link);
  font-weight: 600;
  font-size: 0.9375rem;
}

.provider-link:hover {
  text-decoration: underline;
}

.detail-desc {
  color: var(--text-muted);
  margin: 1.25rem 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.includes-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.includes-list li {
  font-size: 0.9375rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.policy-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
}

.policy-box h3 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.booking-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem);
}

.booking-panel h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.field input:not([type='radio']):not([type='checkbox']),
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.9375rem;
}

.field textarea {
  resize: vertical;
  min-height: 4rem;
}

.field input:not([type='radio']):not([type='checkbox']):focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--link);
  outline-offset: 0;
  border-color: var(--link);
}

.slot-list {
  display: grid;
  gap: 0.35rem;
  max-height: 200px;
  overflow-y: auto;
}

/* Beat `.field label { display: block }` so radios stay in one column */
.field label.slot-option,
.slot-option {
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.65rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  touch-action: manipulation;
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}

.slot-option input[type='radio'] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  justify-self: center;
  accent-color: var(--black);
  cursor: pointer;
  flex-shrink: 0;
}

.slot-option input[type='radio']:focus {
  outline: none;
}

.slot-option > span {
  line-height: 1.35;
  min-width: 0;
}

.slot-option:has(input:checked) {
  border-color: var(--black);
  background: var(--bg-subtle);
}

.slot-option:has(input:focus-visible) {
  border-color: var(--link);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--link) 35%, transparent);
}

.payment-mode-chips {
  margin-top: 0.35rem;
}

.quote-box {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.quote-row.total {
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.checkbox-field {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 1rem 0;
  line-height: 1.45;
}

/* Events & places */
.ep-section {
  margin: 2rem 0;
}

.ep-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ep-places-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .ep-places-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ep-events-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ep-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ep-events-grid:not(.ep-events-grid-compact) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ep-events-grid-compact {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ep-events-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .ep-events-grid-compact {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ep-place-card,
.ep-event-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg);
}

.ep-card-media,
.ep-event-media {
  display: block;
  position: relative;
  overflow: hidden;
}

.ep-card-media img,
.ep-event-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.ep-card-badge {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-card-sm);
  background: rgba(255, 255, 255, 0.92);
  color: #2a2a2a;
}

.ep-card-body {
  padding: 0.85rem 1rem 1rem;
}

.ep-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.ep-card-title a {
  color: var(--black);
}

.ep-card-blurb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.ep-event-when {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
  margin: 0 0 0.25rem;
}

.ep-event-place {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

/* Providers */
.split-section {
  padding: 2rem 0 3rem;
}

.value-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.value-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pricing table uses shared .data-table styles */

.success-card {
  max-width: 480px;
  margin: 3rem auto;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
}

.success-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.ref-code {
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  letter-spacing: 0.06em;
  background: var(--bg-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  display: inline-block;
  margin: 1rem 0;
  border: 1px solid var(--border);
}

.loading,
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.toast {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--black);
  color: var(--on-black);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 100;
  transition: transform 0.25s var(--ease);
  max-width: min(calc(100vw - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)), 360px);
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Dashboards (host/admin) */
.container.narrow {
  max-width: 440px;
}

.auth-card {
  margin: 2.5rem auto 3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.stack-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  resize: vertical;
}

.hint-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.hint-text code {
  font-size: 0.85em;
  background: var(--bg-subtle);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

.dashboard {
  padding: 1.75rem 0 3rem;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-head .btn {
  flex-shrink: 0;
  align-self: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dash-section {
  margin-bottom: 2.5rem;
}

.table-wrap,
.compare-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg);
  box-shadow: var(--card-shadow);
}

.data-table,
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.data-table thead th,
.pricing-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: start;
  padding: 0.75rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td,
.pricing-table tbody th,
.pricing-table tbody td {
  text-align: start;
  padding: 0.8rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover,
.pricing-table tbody tr:hover {
  background: color-mix(in srgb, var(--hover-bg) 85%, transparent);
}

.data-table.compact thead th,
.data-table.compact tbody td,
.data-table.compact tbody th {
  padding: 0.6rem 0.85rem;
  font-size: 0.8125rem;
}

.data-table.compact thead th {
  font-size: 0.625rem;
  letter-spacing: 0.07em;
}

.data-table td code,
.pricing-table td code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
}

.data-table input[type='checkbox'] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--black);
  vertical-align: middle;
  cursor: pointer;
}

.data-table .btn-link {
  white-space: nowrap;
}

.data-table .num,
.data-table th.num,
.data-table td.num,
.pricing-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-table .status-badge {
  display: inline-block;
  vertical-align: middle;
}

.data-table td.muted,
.data-table .muted {
  color: var(--text-muted);
}

.table-empty {
  margin: 0;
  padding: 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.status-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  background: var(--bg-subtle);
}

.badge-ok {
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, var(--bg-subtle));
}

.badge-pending {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, var(--bg-subtle));
}

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

.btn-link {
  background: none;
  border: none;
  padding: 0.25rem 0.4rem;
  margin: 0 -0.4rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
  transition: background-color 0.15s var(--ease);
}

.btn-link:hover {
  background: var(--hover-bg);
  text-decoration: none;
}

.btn-link.danger {
  color: var(--brand);
}

.footer-ops {
  font-size: 0.8125rem;
}

/* Ratings, favorites, filters, packages */
.rating-line {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0.5rem;
}

.rating-star {
  color: #eab308;
}

.rating-count {
  color: var(--text-muted);
}

.experience-card-media {
  position: relative;
}

.experience-card-media-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.experience-card-media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-card-choices {
  position: absolute;
  top: 0.45rem;
  right: 0.4rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.fav-btn,
.card-choice.fav-btn {
  position: static;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #525252;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  display: inline-grid;
  place-items: center;
  touch-action: manipulation;
}

html[data-theme='dark'] .fav-btn,
html[data-theme='dark'] .card-choice.fav-btn {
  background: rgba(18, 18, 18, 0.88);
  color: #e5e5e5;
}

.fav-btn.active {
  color: var(--brand);
}

/* Cards: refined SVG icons over media */
.experience-card-choices .fav-btn,
.experience-card-choices .card-choice.fav-btn,
.experience-card-choices .compare-choice {
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 10px;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  color: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.experience-card-choices .fav-btn:hover,
.experience-card-choices .card-choice.fav-btn:hover,
.experience-card-choices .compare-choice:hover {
  background: rgba(0, 0, 0, 0.22);
  transform: scale(1.06);
}

.experience-card-choices .fav-btn:active,
.experience-card-choices .compare-choice:active {
  transform: scale(0.94);
}

.experience-card-choices .card-icon {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.experience-card-choices .card-icon-heart-path {
  fill: rgba(255, 255, 255, 0.18);
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linejoin: round;
  transition:
    fill 0.22s var(--ease),
    stroke 0.22s var(--ease),
    transform 0.28s var(--ease);
  transform-origin: center;
}

.experience-card-choices .fav-btn.active .card-icon-heart-path {
  fill: var(--brand);
  stroke: var(--brand);
  animation: cardHeartPop 0.38s var(--ease);
}

.experience-card-choices .card-icon-compare-back,
.experience-card-choices .card-icon-compare-front {
  fill: rgba(255, 255, 255, 0.14);
  stroke: #fff;
  stroke-width: 1.6;
  transition:
    fill 0.2s var(--ease),
    stroke 0.2s var(--ease),
    transform 0.22s var(--ease);
  transform-origin: center;
}

.experience-card-choices .compare-choice:hover .card-icon-compare-front {
  transform: translate(0.5px, -0.5px);
}

.experience-card-choices .compare-choice.active .card-icon-compare-back,
.experience-card-choices .compare-choice.active .card-icon-compare-front {
  fill: #fff;
  stroke: #fff;
}

.experience-card-choices .compare-choice.active .card-icon-compare-front {
  fill: color-mix(in srgb, var(--brand) 75%, #fff);
  stroke: color-mix(in srgb, var(--brand) 75%, #fff);
}

@keyframes cardHeartPop {
  0% {
    transform: scale(0.82);
  }
  55% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .experience-card-choices .fav-btn,
  .experience-card-choices .compare-choice,
  .experience-card-choices .card-icon-heart-path,
  .experience-card-choices .card-icon-compare-back,
  .experience-card-choices .card-icon-compare-front {
    transition: none;
    animation: none;
  }

  .experience-card-choices .fav-btn:hover,
  .experience-card-choices .compare-choice:hover,
  .experience-card-choices .fav-btn:active,
  .experience-card-choices .compare-choice:active {
    transform: none;
  }
}

html[data-theme='dark'] .experience-card-choices .fav-btn,
html[data-theme='dark'] .experience-card-choices .card-choice.fav-btn,
html[data-theme='dark'] .experience-card-choices .compare-choice {
  background: transparent;
  color: #fff;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.detail-fav {
  position: static;
  width: auto;
  height: auto;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-card-sm);
  font-size: 0.8125rem;
  font-weight: 600;
}

.discover-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.discover-sort-by {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.discover-sort-by select {
  font-weight: 500;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
}

.filter-dialog {
  box-sizing: border-box;
  width: min(
    52rem,
    calc(100vw - 1.25rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))
  );
  height: min(
    52rem,
    calc(100dvh - 1.25rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))
  );
  max-height: 100dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.filter-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
}

.filter-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.filter-dialog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 1.75rem 1.75rem 1.25rem;
  margin: 0;
  position: relative;
}

.filter-dialog-card .modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.filter-dialog-card .modal-sub {
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.discover-panel {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.discover-panel-popup {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg-subtle);
}

.filter-dialog-actions {
  flex-shrink: 0;
  margin-top: 0.85rem;
  padding-top: 0;
  background: var(--bg);
  justify-content: space-between;
  gap: 0.5rem;
}

.filter-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

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

.filter-row-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-top: 0;
  line-height: 1.2;
}

.filter-row-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-row-chips a.chip {
  text-decoration: none;
}

.filter-row-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.filter-row-details select,
.filter-row-details .filter-price-input {
  width: 100%;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
}

.filter-price-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.filter-price-field-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-price-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Custom date picker — matches ui-select */
.ui-date {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.ui-date-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ui-date-trigger {
  width: 100%;
}

.ui-date-icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.ui-date.is-open .ui-date-icon {
  color: var(--text);
}

.ui-date-menu.locale-popup {
  left: 0;
  right: auto;
  top: calc(100% + 0.4rem);
  bottom: auto;
  width: min(19.5rem, calc(100vw - 2rem));
  min-width: 17.5rem;
  max-width: none;
  padding: 0.65rem 0.7rem 0.55rem;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  z-index: 200;
}

.ui-date-menu.locale-popup.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.ui-date-menu.locale-popup.is-closing {
  opacity: 0;
  pointer-events: none;
  transform: none;
}

.ui-date-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.ui-date-month {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.18s var(--ease), transform 0.22s var(--ease);
}

.ui-date-month.is-swap {
  opacity: 0;
  transform: translateY(4px);
}

.ui-date-nav {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    color 0.15s ease;
}

.ui-date-nav:hover {
  background: var(--hover-bg);
  border-color: var(--border-strong);
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ui-date-nav:active {
  transform: scale(0.94);
}

.ui-date-weekdays,
.ui-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.ui-date-weekdays {
  margin-bottom: 0.25rem;
}

.ui-date-weekdays span {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.15s ease, transform 0.18s var(--ease);
}

.ui-date-menu:hover .ui-date-weekdays span {
  color: color-mix(in srgb, var(--text-muted) 70%, var(--text));
}

.ui-date-pad {
  min-height: 2rem;
}

.ui-date-grid {
  position: relative;
}

.ui-date-day {
  position: relative;
  z-index: 0;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  touch-action: manipulation;
  font-size: 0.8125rem;
  cursor: pointer;
  opacity: 0;
  animation: uiDateDayIn 0.32s var(--ease) forwards;
  transition:
    background-color 0.16s var(--ease),
    color 0.16s var(--ease),
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    opacity 0.18s var(--ease),
    font-weight 0.15s ease;
}

@keyframes uiDateDayIn {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ui-date-day.is-ready {
  animation: none;
  opacity: 1;
}

.ui-date-day:hover:not(:disabled) {
  z-index: 2;
  background: var(--hover-bg);
  transform: scale(1.14);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent),
    0 4px 12px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.ui-date-day:active:not(:disabled) {
  transform: scale(0.96);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.ui-date-grid:hover .ui-date-day.is-ready:not(:hover):not(.is-selected):not(:disabled) {
  opacity: 0.48;
  transform: scale(0.94);
}

.ui-date-day.is-today {
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.ui-date-day.is-today:hover:not(:disabled) {
  box-shadow:
    inset 0 0 0 1px var(--border-strong),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.ui-date-day.is-selected {
  z-index: 1;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  opacity: 1;
  transform: none;
  animation: none;
}

.ui-date-day.is-selected:hover:not(:disabled) {
  background: var(--text);
  color: var(--bg);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.ui-date-day:disabled,
.ui-date-day.is-disabled {
  opacity: 0.32;
  cursor: not-allowed;
  animation: none;
  transform: none;
}

.ui-date-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.ui-date-clear {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  border-radius: 0.35rem;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    transform 0.16s var(--ease);
}

.ui-date-clear:hover {
  color: var(--text);
  background: var(--hover-bg);
  transform: translateY(-1px);
}

.ui-date-clear:active {
  transform: translateY(0) scale(0.97);
}

html[data-theme='dark'] .ui-date-menu.locale-popup {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 14px 32px rgba(0, 0, 0, 0.5);
}

html[data-theme='dark'] .ui-date-day:hover:not(:disabled) {
  background: var(--hover-bg);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent),
    0 6px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .ui-date-nav:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .ui-date-menu.locale-popup,
  .ui-date-menu.locale-popup.is-open,
  .ui-date-menu.locale-popup.is-closing,
  .ui-date-day,
  .ui-date-nav,
  .ui-date-month,
  .ui-date-clear,
  .ui-date-weekdays span {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .ui-date-day,
  .ui-date-day.is-ready {
    opacity: 1;
  }

  .ui-date-grid:hover .ui-date-day.is-ready:not(:hover):not(.is-selected):not(:disabled) {
    opacity: 1;
    transform: none;
  }
}

.filter-row-details select:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.discover-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.discover-results-bar .result-count {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.discover-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0 0.5rem;
  padding: 0.75rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}

.discover-filters input[type='search'] {
  flex: 1 1 12rem;
  min-width: 10rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
}

.discover-filters select {
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--surface);
  color: var(--text);
}

.package-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .package-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.package-title {
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
}

.package-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.package-desc {
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.package-list {
  font-size: 0.8125rem;
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.package-foot {
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  padding-bottom: 1.15rem;
  min-width: 0;
}

.package-foot-meta {
  min-width: 0;
}

.package-foot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.package-foot-actions .btn,
.package-foot-actions .package-mood-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 2.5rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0 0.65rem;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.package-foot-actions .btn-primary {
  border: 1px solid transparent;
}

.package-price {
  font-weight: 700;
  margin: 0;
}

.package-price span {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.package-save {
  font-size: 0.8125rem;
  color: var(--ok);
  margin: 0.25rem 0 0;
}

.review-box {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-card);
}

.review-highlight {
  font-style: italic;
  margin: 0.5rem 0;
}

.review-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.waitlist-box label {
  font-size: 0.8125rem;
  font-weight: 600;
}

.waitlist-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.waitlist-row input {
  flex: 1;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
}

.faq-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  color: var(--text);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
}

.faq-item p {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 961px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 1rem 1.5rem;
  }

  .header-search {
    flex: 1 1 auto;
    max-width: 300px;
  }

  .site-nav {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 0;
  }
}

@media (min-width: 1100px) {
  .site-nav {
    gap: 1rem 1.75rem;
    font-size: 0.9375rem;
  }

  .header-search {
    max-width: 320px;
  }
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }

  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
  }

  .header-brand {
    margin-inline-end: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .city-toggle {
    max-width: min(8.5rem, 42vw);
    min-height: 2.5rem;
  }

  .theme-toggle {
    padding: 0.45rem;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .header-search {
    flex: 1 1 100%;
    max-width: none;
    order: 2;
  }

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(16, 16, 16, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .site-header.nav-open .nav-scrim {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    bottom: 0;
    z-index: 60;
    width: min(20rem, calc(100vw - 2.5rem));
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(0.75rem + env(safe-area-inset-top, 0)) 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0));
    background: var(--bg);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(105%);
    transition: transform 0.28s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html[dir='rtl'] .site-nav {
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(-105%);
  }

  .site-header.nav-open .site-nav,
  html[dir='rtl'] .site-header.nav-open .site-nav {
    transform: translateX(0);
  }

  .site-nav-label {
    display: block;
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: start;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: start;
    min-height: 2.85rem;
    padding: 0.85rem 0;
    font-size: 1.0625rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    text-align: start;
    white-space: nowrap;
  }

  .site-nav a.site-nav-hosts {
    margin-top: 0.5rem;
    border-bottom: none;
    color: var(--link);
  }

  .site-nav .header-locale,
  .site-nav .language-picker {
    display: flex;
    padding: 0.25rem 0 0.85rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .site-nav .language-toggle {
    font-size: 1.0625rem;
    font-weight: 600;
  }

  .site-nav .language-popup {
    inset-inline-start: 0;
    left: auto;
    right: auto;
    transform: translateY(-6px) scale(0.96);
  }

  .site-nav .language-popup.is-open {
    transform: translateY(0) scale(1);
  }

  .site-nav .language-popup.is-closing {
    transform: translateY(-4px) scale(0.97);
  }
}

.fx-note {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin: -0.35rem 0 0.85rem;
  line-height: 1.35;
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .site-nav {
    transition: none;
  }
}

.footer-quick {
  margin-top: 1.25rem;
}

.footer-quick-label {
  margin: 0 0 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1.125rem;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.25;
}

.footer-nav-quick {
  margin-bottom: 0.75rem;
}

.footer-nav-quick a {
  color: var(--text);
  font-weight: 500;
}

.footer-nav-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  line-height: 1.25;
}

.footer-nav-legal > a,
.footer-nav-legal .footer-currency,
.footer-nav-legal .currency-picker {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  min-height: 2.5rem;
}

.footer-nav-legal > a,
.footer-nav-legal .currency-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 -0.35rem;
  padding: 0 0.45rem;
  height: 2.5rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  box-sizing: border-box;
  white-space: nowrap;
  transition:
    color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}

.footer-nav-legal .currency-toggle {
  min-height: 2.5rem;
  cursor: pointer;
}

.footer-nav-legal > a:hover,
.footer-nav-legal .currency-toggle:hover {
  background: var(--hover-bg);
  color: var(--text);
  transform: none;
}

@media (max-width: 420px) {
  .footer-nav-legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    column-gap: 1.25rem;
    row-gap: 0.15rem;
    justify-content: start;
  }
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.25rem 0.4rem;
  margin: 0 -0.4rem;
  white-space: nowrap;
  line-height: 1.25;
  text-align: start;
  transition:
    color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}

.footer-nav a:hover {
  background: var(--hover-bg);
  color: var(--text);
}

.footer-nav-quick a:hover {
  background: var(--hover-bg);
  color: var(--text);
}

.home-section {
  margin: 2.5rem 0;
}

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.text-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--link);
}

.experience-grid-home {
  margin-bottom: 0.5rem;
}

.recent-scroller {
  position: relative;
}

.recent-viewport {
  overflow: hidden;
  width: 100%;
}

.recent-track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transition: none;
}

.recent-track.is-sliding {
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.recent-set,
.recent-set-clone {
  display: flex;
  gap: 0.85rem;
  padding-inline-end: 0.85rem;
}

.recent-slide {
  flex: 0 0 var(--recent-slide-w, calc((100% - 0.85rem) / 2));
  width: var(--recent-slide-w, calc((100% - 0.85rem) / 2));
  min-width: 0;
}

.recent-slide .experience-card {
  height: 100%;
}

@media (min-width: 640px) {
  .recent-set,
  .recent-set-clone {
    gap: 1rem;
    padding-inline-end: 1rem;
  }
}

@media (min-width: 1024px) {
  .recent-set,
  .recent-set-clone {
    gap: 0.85rem;
    padding-inline-end: 0.85rem;
  }
}

.recent-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 2.85rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s var(--ease), color 0.15s var(--ease);
}

.recent-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 2.25rem;
  height: 2.25rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition:
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.recent-arrow-prev::after,
.recent-arrow-next::after {
  content: '';
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 0.55rem;
  height: 0.55rem;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  pointer-events: none;
  transition: transform 0.18s var(--ease);
}

.recent-arrow-prev::after {
  transform: rotate(-135deg);
  margin-inline-start: 0.2rem;
}

.recent-arrow-next::after {
  transform: rotate(45deg);
  margin-inline-end: 0.2rem;
}

.recent-arrow-prev {
  inset-inline-start: 0;
}

.recent-arrow-next {
  inset-inline-end: 0;
}

@media (hover: hover) {
  .recent-arrow:hover:not(:disabled) {
    color: var(--text);
  }

  .recent-arrow:hover:not(:disabled)::before {
    background: var(--hover-bg);
    border-color: var(--text);
    box-shadow: var(--card-shadow), 0 4px 14px color-mix(in srgb, var(--text) 12%, transparent);
    transform: translate(-50%, -50%) scale(1.08);
  }

  .recent-arrow-prev:hover:not(:disabled)::after {
    transform: rotate(-135deg) translate(-1px, -1px);
  }

  .recent-arrow-next:hover:not(:disabled)::after {
    transform: rotate(45deg) translate(1px, -1px);
  }

  .recent-arrow:focus-visible:not(:disabled)::before {
    background: var(--hover-bg);
    border-color: var(--text);
    box-shadow: var(--card-shadow), 0 4px 14px color-mix(in srgb, var(--text) 12%, transparent);
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.recent-arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.recent-scroller:not(.is-scrollable) .recent-arrow {
  visibility: hidden;
  pointer-events: none;
}

.recent-card {
  /* legacy compact card — homepage uses .recent-slide .experience-card */
  flex: 0 0 140px;
}

.mood-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.75rem 0 0.25rem;
}

.ep-places-filters {
  margin: 1rem 0 0.5rem;
}

.ep-places-filters .ep-section-head {
  margin-bottom: 0.5rem;
}

.place-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

a.chip.place-chip {
  text-decoration: none;
}

.mood-strip-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.sort-label select {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  font-size: 0.8125rem;
}

.related-section {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.host-directory {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .host-directory {
    grid-template-columns: repeat(2, 1fr);
  }
}

.host-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1rem 1.15rem;
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem);
  background: var(--bg);
}

.host-card h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.host-card-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.host-card-bio {
  font-size: 0.875rem;
  margin: 0 0 0.65rem;
  color: var(--text-muted);
}

.modal-dialog {
  border: none;
  padding: 0;
  max-width: min(420px, calc(100vw - 2rem));
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.modal-card {
  padding: 1.5rem;
  position: relative;
  background: var(--bg);
  color: var(--text);
}

.modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  touch-action: manipulation;
}

.modal-title {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.modal-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

html[data-theme='dark'] .badge,
html[data-theme='dark'] .badge-featured {
  background: rgba(18, 18, 18, 0.92);
  color: #f3f3f3;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

html[data-theme='dark'] .badge-deal {
  background: #1d4ed8;
  color: #fff;
}

html[data-theme='dark'] .card-trait-instant {
  background: color-mix(in srgb, var(--ok) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--ok) 40%, var(--border));
  color: #86efac;
}

html[data-theme='dark'] input:not([type='checkbox']):not([type='radio']),
html[data-theme='dark'] select,
html[data-theme='dark'] textarea {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme='dark'] .header-search input {
  background-color: var(--bg-subtle);
}

html[data-theme='dark'] .header-search input:focus {
  background-color: var(--bg);
}

html[data-theme='dark'] ::placeholder {
  color: #8a8a8a;
  opacity: 1;
}

.slot-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.5rem;
}

.slot-hint-muted {
  font-style: italic;
}

.slot-urgent {
  color: var(--brand);
  font-weight: 600;
}

.experience-foot-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.compare-btn.active {
  border-color: var(--black);
  background: var(--bg-subtle);
}

.detail-actions .compare-btn.active {
  color: var(--text);
  font-weight: 600;
}

.header-search {
  position: relative;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow-hover);
  z-index: 60;
  max-height: 280px;
  overflow-y: auto;
}

.search-suggest li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.65rem;
}

.search-suggest li button {
  border: none;
  background: none;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
  color: var(--black);
}

.search-suggest li span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-suggest li:hover {
  background: var(--hover-bg);
}

.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 0.75rem max(0px, env(safe-area-inset-right, 0px))
    calc(0.75rem + env(safe-area-inset-bottom, 0px)) max(0px, env(safe-area-inset-left, 0px));
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.08);
}

.compare-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.compare-bar-count {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
}

.compare-bar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.compare-bar-actions .btn {
  min-width: 5.5rem;
  justify-content: center;
}

.compare-page {
  padding-bottom: 2rem;
}

.compare-intro {
  margin-bottom: 1.35rem;
}

.compare-stage {
  position: relative;
  margin-bottom: 1.5rem;
}

.compare-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
}

.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.compare-vs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--card-shadow);
}

.compare-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--card-transition);
}

.compare-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow-hover);
}

.compare-card-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
}

.compare-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: var(--card-img-transition);
}

.compare-card:hover .compare-card-media img {
  transform: scale(var(--card-zoom));
}

.compare-card-index {
  position: absolute;
  top: 0.65rem;
  inset-inline-start: 0.65rem;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}

.compare-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem 1rem;
  flex: 1;
  min-width: 0;
}

.compare-card-city {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.compare-card-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.compare-card-title a {
  color: inherit;
  text-decoration: none;
}

.compare-card-title a:hover {
  color: var(--brand);
}

.compare-card-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compare-card-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.compare-card-price {
  font-weight: 700;
  color: var(--text);
}

.compare-card-dot {
  opacity: 0.5;
}

.compare-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.compare-card-actions .btn {
  width: 100%;
  min-width: 0;
  padding-inline: 0.5rem;
  justify-content: center;
}

.compare-matrix {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.compare-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-strong);
  padding: 0.85rem 1rem;
  text-align: start;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.compare-table .compare-attr-col {
  width: 8.5rem;
  min-width: 7.5rem;
}

.compare-table .compare-value-col {
  width: 40%;
}

.compare-th-title {
  display: block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 0.875rem;
  font-weight: 700;
}

.compare-table tbody tr:hover th,
.compare-table tbody tr:hover td {
  background: color-mix(in srgb, var(--hover-bg) 85%, transparent);
}

.compare-table tbody tr:hover th {
  background: color-mix(in srgb, var(--hover-bg) 70%, var(--surface));
}

.compare-table tbody th,
.compare-table tbody td {
  padding: 0.9rem 1rem;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  width: 8.5rem;
  min-width: 7.5rem;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-inline-end: 1px solid var(--border);
}

.compare-table tbody td {
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.compare-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.compare-row-same tbody td,
.compare-row-same td {
  color: var(--text-muted);
  font-weight: 400;
}

.compare-row-diff th {
  color: var(--text);
}

.compare-row-diff td {
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  font-weight: 600;
}

.compare-row-diff td .compare-cell {
  color: var(--text);
}

.compare-rating-score {
  font-weight: 700;
  color: var(--text);
}

.compare-rating-count {
  color: var(--text-muted);
  font-weight: 400;
}

.compare-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.compare-pill-ok {
  border-color: color-mix(in srgb, var(--ok) 35%, var(--border));
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok);
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.compare-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
}

.compare-legend-diff {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 3px;
  background: color-mix(in srgb, var(--brand) 28%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  flex: 0 0 auto;
}

.compare-empty .page-sub {
  max-width: 28rem;
  margin-inline: auto;
}

.collections-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.collection-block {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.collection-estimate {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.footer-newsletter {
  margin: 1rem 0;
  max-width: 28rem;
}

.footer-newsletter label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.footer-newsletter-row {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter-row input {
  flex: 1;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .compare-grid {
    gap: 0.55rem;
  }

  .compare-vs span {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.625rem;
  }

  .compare-card-sub {
    display: none;
  }

  .compare-card-actions .btn {
    font-size: 0.75rem;
    min-height: 2.25rem;
    height: 2.25rem;
  }

  .compare-table {
    min-width: 24rem;
    font-size: 0.8125rem;
  }

  .compare-table thead th,
  .compare-table tbody th,
  .compare-table tbody td {
    padding: 0.75rem 0.7rem;
  }

  .experience-foot {
    flex-wrap: wrap;
  }
}

/* Country & city guide (/explore) */
.guide-teaser-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
}

.guide-teaser-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
}


.guide-teaser-country {
  font-weight: 700;
  font-size: 1rem;
}

.guide-teaser-capital {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.guide-teaser-cities {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.guide-toolbar {
  margin-bottom: 1.25rem;
}

.guide-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
}

.guide-filter-field-grow {
  grid-column: 1 / -1;
}

.guide-filter-field-actions {
  display: flex;
  align-items: flex-end;
}

.guide-filter-field-actions .btn[hidden] {
  display: none;
}

@media (min-width: 720px) {
  .guide-filters {
    grid-template-columns: minmax(10rem, 14rem) minmax(10rem, 16rem) minmax(14rem, 1fr) auto;
  }

  .guide-filter-field-grow {
    grid-column: auto;
  }
}

.guide-filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.guide-toolbar input[type='search'],
.guide-toolbar select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.guide-toolbar-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

.guide-empty {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
}

.guide-continent-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.guide-continent-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.guide-continent-chip:hover:not(.is-active) {
  background: var(--hover-bg);
  border-color: var(--border-strong);
  color: var(--text);
}

.guide-continent-chip.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.guide-continents {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.guide-continent-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: calc(var(--header-h, 4rem) + 0.75rem);
}

.guide-continent-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.guide-continent-count {
  margin: 0;
  font-size: 0.8125rem;
}

.guide-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.guide-country {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}

.guide-country.is-live {
  border-color: rgba(16, 16, 16, 0.18);
}

.guide-country-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 600;
  transition: background 0.2s var(--ease);
}

.guide-country-summary::-webkit-details-marker {
  display: none;
}

.guide-country-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  transition: color 0.2s var(--ease);
}

.guide-country-meta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  flex: 1 1 12rem;
}

.guide-country-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}

.guide-country-lead {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1rem;
}

.guide-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.guide-city {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg);
}

.guide-attractions li {
  border-radius: 6px;
  padding: 0.15rem 0.35rem;
  margin: 0 -0.35rem;
  transition: background 0.15s var(--ease);
}

/* App-wide soft background on hover (fine pointers) */
@media (hover: hover) and (pointer: fine) {
  .guide-country:hover .guide-country-summary {
    background: transparent;
  }

  .guide-attractions li:hover,
  .site-nav a:hover,
  .footer-nav a:hover,
  .footer-nav-quick a:hover,
  .footer-nav-legal > a:hover,
  .footer-nav-legal .currency-toggle:hover,
  .footer-ops a:hover,
  .currency-toggle:hover,
  .language-toggle:hover,
  .theme-toggle:hover,
  .chip:hover:not(.active),
  .chip-link:hover,
  .guide-continent-chip:hover:not(.is-active),
  .btn-secondary:hover,
  .btn-ghost:hover,
  .btn-link:hover,
  .profile-stat:hover,
  a.profile-stat:hover,
  .host-exp-card:hover,
  .profile-saved-card:hover,
  .stat-card:hover,
  .slot-option:hover:not(:has(input:checked)),
  .booking-list-item:hover,
  .search-suggest li:hover,
  .back-nav:hover,
  .ui-select-trigger:hover,
  .ui-select-list [role='option']:hover,
  .ui-select-list [role='option']:focus,
  .ui-select-list [role='option'].is-focus,
  .locale-popup-list [role='option']:hover,
  .locale-popup-list [role='option']:focus,
  .ui-date-nav:hover,
  .ui-date-clear:hover,
  .ui-date-day:hover:not(:disabled):not(.is-selected),
  .nav-toggle:hover,
  .city-switcher-pill:hover:not(.active) {
    background: var(--hover-bg);
  }
}

.guide-city-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.guide-city-name {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
}

.guide-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.guide-badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.guide-badge-live {
  background: var(--black);
  color: var(--on-black);
  border-color: var(--black);
}

.guide-badge-soon {
  background: transparent;
}

.guide-badge-capital {
  background: rgba(16, 16, 16, 0.06);
}

.guide-attractions {
  margin: 0 0 0.65rem;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.guide-foot {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
}

/* Feature pack: map, tips, presets, reviews, host trust */
.discover-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.chip-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.host-verified {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.host-trust-line {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin: 0.25rem 0 0.75rem;
}
.review-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}
.sold-out-waitlist {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.sold-out-label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.sold-out-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  padding: 0.25rem 0;
}
.quote-cancel-countdown {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 0.75rem 0 0;
}
.quote-row.promo {
  color: var(--ink);
  font-weight: 600;
}
.gift-line {
  font-size: 1rem;
  margin: 0.25rem 0 0.5rem;
}
.map-page .map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.map-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
  min-height: min(420px, 55dvh);
}
.retaira-map {
  min-height: min(420px, 55dvh);
  border-radius: 8px;
  border: 1px solid var(--border);
  z-index: 0;
}
.map-side-list {
  max-height: 420px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.map-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: var(--surface, transparent);
}
.map-list-item span {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.city-tips-hero img,
.city-tip-card img,
.city-tip-index-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.city-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.city-tip-card {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  overflow: hidden;
}

.city-tip-card h2 {
  font-size: 1.05rem;
  margin: 0.75rem 0 0.35rem;
}
.city-tip-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.city-tips-index {
  display: grid;
  gap: 1rem;
}
.city-tip-index-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  align-items: center;
  overflow: hidden;
}
.city-tip-index-card strong {
  display: block;
  margin-bottom: 0.25rem;
}
.city-tip-index-card span {
  font-size: 0.875rem;
  color: var(--ink-muted);
}
@media (max-width: 800px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  .city-tip-index-card {
    grid-template-columns: 1fr;
  }
}

/* Custom select — same feel as locale popups */
.ui-select {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.discover-sort-by .ui-select,
.sort-label .ui-select {
  width: auto;
  min-width: 10.5rem;
}

.ui-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ui-select-trigger {
  box-sizing: border-box;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 2.4rem;
  padding: 0.5rem 0.7rem 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s var(--ease),
    background-color 0.15s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.15s var(--ease);
}

.ui-select-trigger:hover {
  border-color: var(--border-strong);
  background: var(--hover-bg);
}

.ui-select-trigger:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}

.ui-select.is-open .ui-select-trigger {
  border-color: var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.08);
}

.ui-select.is-disabled .ui-select-trigger,
.ui-select-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ui-select.is-placeholder .ui-select-value {
  color: var(--text-muted);
  font-weight: 500;
}

.ui-select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select-chevron {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--text-muted);
  transition: transform 0.18s var(--ease), color 0.15s ease;
}

.ui-select.is-open .ui-select-chevron {
  transform: rotate(180deg);
  color: var(--text);
}

.ui-select-menu.locale-popup {
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  bottom: auto;
  width: auto;
  min-width: 100%;
  max-width: none;
  padding: 0.35rem 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  z-index: 200;
}

.ui-select-menu.locale-popup.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.ui-select-menu.locale-popup.is-closing {
  opacity: 0;
  pointer-events: none;
  transform: none;
}

.ui-select-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(16rem, 50vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.ui-select-list [role='option'] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  color: var(--text);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.ui-select-list [role='option'] .ui-select-opt-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.ui-select-list [role='option']:hover,
.ui-select-list [role='option']:focus,
.ui-select-list [role='option'].is-focus {
  background: var(--hover-bg);
  outline: none;
}

.ui-select-list [role='option'].active {
  font-weight: 600;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.ui-select-list [role='option'].active:hover,
.ui-select-list [role='option'].active.is-focus {
  background: color-mix(in srgb, var(--text) 10%, transparent);
}

.ui-select-list [role='option'][aria-disabled='true'] {
  opacity: 0.4;
  cursor: not-allowed;
}

.field .ui-select-trigger,
.guide-toolbar .ui-select-trigger,
.lookup-form .ui-select-trigger {
  min-height: 2.55rem;
  padding: 0.65rem 0.75rem;
  border-color: var(--border-strong);
  background: var(--bg);
  font-size: 0.9375rem;
}

.discover-sort-by .ui-select-trigger {
  min-height: 2.15rem;
  padding: 0.4rem 0.55rem 0.4rem 0.7rem;
  font-size: 0.875rem;
}

html[data-theme='dark'] .ui-select.is-open .ui-select-trigger {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.45);
}

html[data-theme='dark'] .ui-select-menu.locale-popup {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 14px 32px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .ui-select-trigger,
  .ui-select-chevron,
  .ui-select-menu.locale-popup,
  .ui-select-list [role='option'] {
    transition: none !important;
  }

  .ui-select-menu.locale-popup,
  .ui-select-menu.locale-popup.is-open,
  .ui-select-menu.locale-popup.is-closing {
    transform: none;
  }
}

/* Guest profile dashboard */
.profile-page {
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.profile-hero-gate {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.25rem;
}

.profile-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-black);
  background: var(--black);
  flex-shrink: 0;
}

.profile-hero-copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.profile-hero-copy .page-title {
  margin-bottom: 0.15rem;
}

.profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .profile-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Admin (5 metrics) — match account tile style with a fifth column on wide screens */
  .profile-stats:has(> :nth-child(5)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .profile-stats:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg-subtle);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

a.profile-stat:hover {
  background: var(--hover-bg);
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow);
  transform: translateY(-1px);
}

.profile-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1.1;
}

.profile-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 900px) {
  .profile-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.profile-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 1.15rem 1.25rem 1.25rem;
  margin-bottom: 1rem;
}

.profile-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.profile-panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

.profile-panel-head .profile-panel-title {
  margin: 0;
}

.profile-panel-sub {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.profile-empty a {
  color: var(--link);
}

.profile-trip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-trip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.profile-trip:first-child {
  border-top: none;
  padding-top: 0;
}

.profile-trip-title {
  margin: 0 0 0.2rem;
  font-weight: 600;
  color: var(--black);
}

.profile-trip-meta,
.profile-trip-ref {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.profile-saved-grid {
  display: grid;
  gap: 0.65rem;
}

.profile-saved-card {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-card-sm);
  padding: 0.35rem;
  margin: -0.35rem;
  transition: background 0.15s var(--ease);
}

.profile-saved-card:hover {
  background: var(--hover-bg);
}

.profile-saved-card img {
  width: 4.5rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-subtle);
}

.profile-saved-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.profile-saved-card em {
  display: block;
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.profile-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.profile-dev-hint {
  margin-top: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .profile-stat,
  a.profile-stat:hover {
    transition: none;
    transform: none;
  }
}

/* Host studio dashboard */
.host-dash .host-direct-line {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.host-dash .host-direct-line a {
  color: var(--link);
  word-break: break-all;
}

.host-avatar {
  background: linear-gradient(145deg, #2a2a2a 0%, #101010 100%);
}

html[data-theme='dark'] .host-avatar {
  background: linear-gradient(145deg, #3a3a3a 0%, #1a1a1a 100%);
  color: #f2f2f2;
}

.host-panel-count {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.host-guest-list,
.host-slot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.host-guest,
.host-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}

.host-guest:first-child,
.host-slot:first-child {
  border-top: none;
  padding-top: 0.15rem;
}

.host-guest-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.2rem;
}

.host-guest-title,
.host-slot-title {
  margin: 0;
  font-weight: 600;
  color: var(--black);
  font-size: 0.9375rem;
}

.host-guest-meta,
.host-slot-meta,
.host-guest-contact {
  margin: 0.1rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.host-guest-contact a {
  color: var(--link);
}

.host-guest-ref {
  font-variant-numeric: tabular-nums;
}

.host-slot.is-blocked {
  opacity: 0.72;
}

.host-exp-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.host-exp-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding: 0.65rem 0.55rem;
  margin: 0 -0.55rem;
  border-radius: var(--radius-card-sm);
  transition: background 0.15s var(--ease);
}

.host-exp-card:hover {
  background: var(--hover-bg);
}

.host-exp-copy strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.host-exp-copy em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.host-exp-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
}

.host-inline-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  .host-inline-form {
    grid-template-columns: 1.4fr 1.2fr 5.5rem auto;
    align-items: end;
  }

  .host-inline-form .btn {
    margin-bottom: 0.05rem;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .host-inline-form {
    grid-template-columns: 1fr 1fr;
  }

  .host-inline-form .btn {
    grid-column: 1 / -1;
  }
}

.host-inline-form .field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.host-inline-form input,
.host-inline-form select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg);
  color: var(--text);
}

.host-dash-gate {
  max-width: 28rem;
  margin: 0 auto;
}

.host-dash-gate .profile-panel {
  margin-bottom: 0;
}

/* ===== Cross-device / mobile platform ===== */
:root {
  --tap: 2.75rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

button,
a,
[role='button'],
input,
select,
textarea,
.chip,
.btn {
  touch-action: manipulation;
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.5rem 0.95rem;
}

.btn {
  min-height: var(--tap);
}

.theme-toggle {
  min-width: var(--tap);
  min-height: var(--tap);
  touch-action: manipulation;
}

.nav-toggle {
  touch-action: manipulation;
}

.compare-choice {
  touch-action: manipulation;
}


.recent-viewport {
  -webkit-overflow-scrolling: touch;
}

/* Hover transforms only on fine pointers */
@media (hover: none), (pointer: coarse) {
  .experience-card:hover,
  .city-tile:hover,
  .package-card:hover,
  .ep-place-card:hover,
  .ep-event-card:hover,
  .idea-card:hover,
  .recent-card:hover,
  .host-card:hover,
  .value-card:hover,
  .mood-card:hover,
  .guide-teaser-card:hover,
  .guide-country:hover,
  .guide-city:hover,
  .city-tip-card:hover,
  .city-tip-index-card:hover,
  .compare-card:hover,
  a.profile-stat:hover {
    transform: none;
  }

  .experience-card:hover .experience-card-media img,
  .city-tile:hover .city-tile-img img,
  .package-card:hover .package-media img,
  .ep-place-card:hover .ep-card-media img,
  .ep-event-card:hover .ep-event-media img,
  .idea-card:hover .idea-card-img,
  .recent-card:hover img,
  .city-tip-card:hover img,
  .city-tip-index-card:hover img,
  .compare-card:hover img {
    transform: none;
  }

  .ui-date-grid:hover .ui-date-day.is-ready:not(:hover):not(.is-selected):not(:disabled) {
    opacity: 1;
    transform: none;
  }

  .currency-toggle:hover,
  .language-toggle:hover {
    transform: none;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .ep-places-grid {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .filter-dialog {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: none;
  }

  .filter-dialog-card {
    padding: 1.1rem 1rem calc(1rem + var(--safe-bottom));
  }

  .filter-dialog-card .modal-title {
    font-size: 1.25rem;
    padding-right: 2.5rem;
  }

  .discover-filters input[type='search'],
  .discover-filters .field,
  .discover-filters .ui-select {
    min-width: 0;
    flex: 1 1 100%;
  }

  .profile-hero-actions {
    margin-left: 0;
    width: 100%;
  }

  .profile-hero-actions .btn {
    flex: 1 1 auto;
  }

  .host-dash .profile-hero-actions {
    width: 100%;
  }

  .booking-panel {
    position: static;
    top: auto;
  }

  .modal-dialog {
    max-width: calc(100vw - 1rem - var(--safe-left) - var(--safe-right));
    margin: auto;
  }

  .modal-card {
    padding: 1.25rem 1rem calc(1rem + var(--safe-bottom));
  }

  .compare-bar-inner {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .compare-bar-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }

  .compare-bar-actions .btn {
    flex: 1;
  }

  .site-nav {
    width: min(20rem, calc(100vw - 2.5rem - var(--safe-right)));
    padding-left: calc(1.25rem + var(--safe-left));
    padding-right: calc(1.25rem + var(--safe-right));
  }

  .toast.show {
    bottom: calc(1.25rem + var(--safe-bottom));
  }

  body.has-compare-bar .toast,
  body:has(.compare-bar) .toast {
    bottom: calc(4.5rem + var(--safe-bottom));
  }

  .header-search input {
    font-size: 16px; /* prevent iOS zoom on focus */
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .detail-layout .booking-panel {
    margin-top: 0.5rem;
  }
}

/* Landscape phones with notch */
@media (orientation: landscape) and (max-height: 480px) {
  .filter-dialog {
    height: 100%;
    max-height: 100dvh;
  }

  .retaira-hero-wrap {
    padding-top: 1.25rem;
    padding-bottom: 1rem;
  }

  .profile-page {
    padding-top: 1rem;
  }
}

/* Tablet polish */
@media (min-width: 641px) and (max-width: 960px) {
  .experience-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(0px, var(--safe-left));
    padding-right: max(0px, var(--safe-right));
  }

  .site-footer {
    padding-left: max(0px, var(--safe-left));
    padding-right: max(0px, var(--safe-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  .recent-track {
    transform: none !important;
  }
}

/* Trip tools + messaging + media kit */
.tools-page { padding-bottom: 3rem; }
.tools-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
}
.tools-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.tools-tab:hover { background: var(--hover-bg); color: var(--text); }
.tools-tab.is-active {
  background: var(--black);
  border-color: var(--black);
  color: var(--on-black);
}
.tools-section { max-width: 40rem; }
.tools-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 1rem 1.1rem;
  margin: 0.85rem 0;
}
.tools-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tools-list-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-sm);
  background: var(--bg);
}
.tools-list-index {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-muted);
  flex-shrink: 0;
}
.tools-list-copy { flex: 1; min-width: 0; }
.tools-list-copy strong { display: block; font-size: 0.9rem; }
.tools-list-copy em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.tools-actions, .tools-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.tools-add-block { margin-top: 1.5rem; }
.tools-warn {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--warn) 12%, var(--bg));
  color: var(--warn);
  font-size: 0.875rem;
}
.tools-code {
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0.5rem 0;
}
.trust-line {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.media-kit-grid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}
@media (min-width: 640px) {
  .media-kit-grid { grid-template-columns: 1fr 1fr; }
}
.media-kit-block h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9375rem;
}
.msg-thread {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 18rem;
  overflow-y: auto;
  margin: 0.75rem 0;
  padding: 0.25rem;
}
.msg-bubble {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  max-width: 92%;
}
.msg-bubble strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.msg-bubble p { margin: 0; font-size: 0.875rem; line-height: 1.4; }
.msg-guest { align-self: flex-start; }
.msg-host {
  align-self: flex-end;
  background: color-mix(in srgb, var(--link) 10%, var(--bg));
  border-color: color-mix(in srgb, var(--link) 25%, var(--border));
}
.msg-compose {
  display: grid;
  gap: 0.5rem;
}
.msg-compose textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}
.host-guest-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
}
.host-msg-panel {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.inline-form.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: flex-end;
}

.dashboard .inline-form.wrap > .field {
  margin-bottom: 0;
  min-width: 10.5rem;
  flex: 1 1 10.5rem;
}

.dashboard .inline-form.wrap > .field-cta {
  flex: 0 0 auto;
  min-width: 0;
}

.dashboard .inline-form .field-cta-spacer {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.dashboard .inline-form .field-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding-inline: 1.15rem;
  white-space: nowrap;
}

.tools-inline-form {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.tools-inline-form .tools-inline-field,
.tools-inline-form > .field {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
}

.tools-inline-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
}

.tools-inline-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.9375rem;
}

.tools-inline-row .tools-inline-btn,
.tools-inline-row > .btn {
  flex: 0 0 auto;
  align-self: stretch;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.stack-form { display: grid; gap: 0.75rem; }

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}
.media-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}
.host-media-panel { margin-top: 1rem; }

/* RTL (Arabic) — keep chrome mirrored without shifting baselines */
html[dir='rtl'] .locale-popup-list [role='option'],
html[dir='rtl'] .currency-popup-list [role='option'] {
  direction: rtl;
}

html[dir='rtl'] .locale-opt-code {
  justify-content: end;
}

html[dir='rtl'] .site-nav,
html[dir='rtl'] .footer-nav,
html[dir='rtl'] .footer-nav-legal,
html[dir='rtl'] .header-brand,
html[dir='rtl'] .header-top-end,
html[dir='rtl'] .back-nav,
html[dir='rtl'] .nav-links,
html[dir='rtl'] .footer-cols,
html[dir='rtl'] .profile-grid,
html[dir='rtl'] .discover-toolbar,
html[dir='rtl'] .experience-card-choices,
html[dir='rtl'] .tools-tabs,
html[dir='rtl'] .host-hero-actions {
  direction: rtl;
}

html[dir='rtl'] .btn-icon svg,
html[dir='rtl'] .back-nav svg {
  transform: scaleX(-1);
}

html[dir='rtl'] .data-table thead th,
html[dir='rtl'] .data-table tbody td,
html[dir='rtl'] .data-table tbody th,
html[dir='rtl'] .pricing-table thead th,
html[dir='rtl'] .pricing-table tbody td {
  text-align: start;
}

html[dir='rtl'] .data-table .num,
html[dir='rtl'] .data-table th.num,
html[dir='rtl'] .data-table td.num {
  text-align: end;
}
