:root {
  --bg: #f1f7fb;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-hover: #f8fafc;
  --input-bg: #f4f8fb;
  --border: #d5e3ee;
  --border-focus: #0284c7;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #475569;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-text: #0f172a;
  --ocean: #0284c7;
  --ocean-dark: #0c4a6e;
  --ocean-tint: #e0f2fe;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow: 0 18px 42px rgba(12, 74, 110, 0.12);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", "Tahoma", Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

/* Rotating Scenic Riviera Hero */
.hero {
  position: relative;
  background-color: #072f4f;
  background-image: url("/images/hero-beach.jpg");
  background-size: cover;
  background-position: center;
  padding: 20px 16px 40px;
  transition: background-image 0.4s ease;
}

body.is-native-app .hero {
  padding-top: 12px;
}

body.is-native-app .topbar .brand {
  display: none;
}

.hero[data-hero-theme="beach"] {
  background-image: url("/images/hero-beach.jpg");
}

.hero[data-hero-theme="skylines"] {
  background-image: url("/images/hero-skylines.jpg");
}

.hero[data-hero-theme="culture"] {
  background-image: url("/images/hero-culture.jpg");
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 34, 59, 0.58) 0%,
    rgba(7, 45, 76, 0.72) 68%,
    rgba(241, 247, 251, 0.98) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}

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

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

.currency-select {
  background-color: #0c2d48;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 11px;
  padding: 0 12px;
  height: 48px;
  min-height: 48px;
  min-width: 48px;
  line-height: 46px;
  font-size: 0.84rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.currency-select option {
  background-color: #ffffff;
  color: #0f172a;
}

.hero-copy {
  margin-bottom: 18px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(12, 45, 72, 0.76);
  backdrop-filter: blur(8px);
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.35);
  margin-bottom: 9px;
}

.hero-copy h1 {
  margin: 0 0 6px;
  font-size: 1.68rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
  margin: 0;
  color: #f0f9ff;
  font-size: 0.94rem;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
}

/* Large, Distinctive 5-Vertical Category Tabs */
.tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  background: rgba(8, 35, 62, 0.78);
  backdrop-filter: blur(14px);
  padding: 7px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(7, 34, 59, 0.28);
}

.tab-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #ffffff;
  padding: 10px 4px 9px;
  min-height: 78px;
  min-width: 48px;
  border-radius: 13px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tab-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, background 0.16s ease;
}

.tab-icon-badge svg {
  width: 27px;
  height: 27px;
}

.badge-flights   { background: rgba(56, 189, 248, 0.22); color: #7dd3fc; }
.badge-hotels    { background: rgba(251, 191, 36, 0.22); color: #fde68a; }
.badge-cars      { background: rgba(52, 211, 153, 0.22); color: #6ee7b7; }
.badge-transfers { background: rgba(251, 146, 60, 0.24); color: #fdba74; }
.badge-esim      { background: rgba(167, 139, 250, 0.24); color: #ddd6fe; }

.tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 8px 22px rgba(7, 34, 59, 0.28);
  transform: translateY(-1px);
}

.tab-btn.active .tab-label {
  color: #0f172a;
}

.tab-btn.active .badge-flights   { background: #e0f2fe; color: #0284c7; }
.tab-btn.active .badge-hotels    { background: #fef3c7; color: #d97706; }
.tab-btn.active .badge-cars      { background: #d1fae5; color: #059669; }
.tab-btn.active .badge-transfers { background: #ffedd5; color: #ea580c; }
.tab-btn.active .badge-esim      { background: #ede9fe; color: #7c3aed; }

.tab-label {
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
}

.main-wrap {
  position: relative;
  z-index: 5;
  max-width: 920px;
  margin: -18px auto 0;
  padding: 0 16px 48px;
}

/* Search Card: Strictly z-index 50 and NO backdrop-filter so dropdowns NEVER clip */
.search-card {
  position: relative;
  z-index: 50;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.trip-toggle {
  display: inline-flex;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 3px;
  margin-bottom: 14px;
}

.trip-pill {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 10px 15px;
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}

.trip-pill.active {
  background: var(--ocean-tint);
  color: var(--ocean-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.route-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Reserve inline-end space on mobile so swap button never overlaps text */
.route-pair > .field {
  padding-inline-end: 60px;
}

.swap-btn {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ocean);
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.swap-btn:hover {
  border-color: var(--ocean);
  background: var(--ocean-tint);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  position: relative;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field:focus-within {
  border-color: var(--border-focus);
  background: #ffffff;
}

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 3px;
  line-height: 1.25;
}

.field input,
.field select {
  width: 100%;
  min-height: 26px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  padding: 2px 0;
  text-overflow: ellipsis;
  color-scheme: light;
}

.field select {
  background-color: var(--input-bg);
  cursor: pointer;
}

.field:focus-within select {
  background-color: #ffffff;
}

select option {
  background-color: #ffffff;
  color: #0f172a;
  font-weight: 600;
}

select optgroup {
  background-color: #f1f5f9;
  color: #0c4a6e;
  font-weight: 800;
}

/* Custom Searchable High-Contrast eSIM Country Dropdown */
.field.esim-field-enhanced {
  padding: 0;
}

.esim-picker-btn {
  width: 100%;
  min-height: 58px;
  min-width: 48px;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  text-align: start;
}

.esim-picker-top {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.esim-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.esim-picker-chevron {
  color: var(--ocean);
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}

.esim-picker-btn[aria-expanded="true"] .esim-picker-chevron {
  transform: rotate(180deg);
}

/* Solid Opaque z-index 100 Dropdown Surface */
.autocomplete-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background-color: #ffffff;
  border: 1.5px solid #0284c7;
  border-radius: 14px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.24);
  display: none;
}

.autocomplete-list.open {
  display: block;
}

.esim-dropdown {
  max-height: 320px;
}

.esim-search-box {
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: #f8fafc;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}

.esim-search-box input {
  width: 100%;
  background-color: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 0.88rem;
  font-weight: 600;
}

.esim-search-box input:focus {
  border-color: var(--ocean);
}

.esim-group-header {
  padding: 8px 12px 5px;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ocean-dark);
  background-color: #f1f7fb;
  border-bottom: 1px solid var(--border);
}

.ac-item {
  padding: 10px 12px;
  min-height: 48px;
  background-color: #ffffff;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.ac-item:last-child {
  border-bottom: none;
}

.ac-item:hover,
.ac-item:active,
.ac-item.selected {
  background-color: #e0f2fe;
}

.ac-main {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.ac-sub {
  font-size: 0.77rem;
  color: var(--muted);
}

.ac-code {
  background: var(--ocean-tint);
  color: var(--ocean-dark);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 7px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ac-check {
  color: var(--ocean);
  font-weight: 900;
  font-size: 0.95rem;
}

.field input::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.primary-btn {
  margin-top: 6px;
  width: 100%;
  min-height: 52px;
  min-width: 48px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.32);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.primary-btn:hover {
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.42);
}

.primary-btn:active {
  transform: translateY(1px);
}

.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.results-drawer {
  display: none;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.results-drawer.visible {
  display: block;
}

.results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.results-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ocean-dark);
}

.results-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.results-primary-cta {
  margin-bottom: 10px;
}

.provider-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

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

.provider-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 54px;
  min-width: 48px;
  text-decoration: none;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.provider-link:hover {
  border-color: var(--ocean);
  background: #ffffff;
}

.provider-link.featured {
  border-color: #f59e0b;
  background: #fffbeb;
}

.provider-link span.badge {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
}

.perks-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.perk-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 4px 14px rgba(12, 74, 110, 0.05);
}

.perk-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ocean-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.perk-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
}

.perk-sub {
  font-size: 0.76rem;
  color: var(--muted);
}

.lower-section {
  position: relative;
  z-index: 1;
}

.section-title {
  margin: 26px 0 12px;
  font-size: 1.12rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-header-wrap {
  margin: 28px 0 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading {
  margin: 0 0 2px;
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 500;
}

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

.collection-pill {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.collection-pill:hover {
  border-color: var(--ocean);
  color: var(--ocean-dark);
}

.collection-pill.active {
  background: var(--ocean-dark);
  color: #ffffff;
  border-color: var(--ocean-dark);
  box-shadow: 0 4px 12px rgba(12, 74, 110, 0.2);
}

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

.recent-chip {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* Scenic Postcard Destination Cards: 1-col on narrow phones so 3 >=48px pills never collide */
.destinations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

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

.dest-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(12, 74, 110, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 74, 110, 0.13);
}

.dest-photo {
  position: relative;
  height: 142px;
  background-color: #cbd5e1;
  background-size: cover;
  background-position: center;
}

.dest-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.18) 0%,
    transparent 45%,
    rgba(15, 23, 42, 0.58) 100%
  );
}

.dest-iata {
  position: absolute;
  top: 9px;
  inset-inline-end: 9px;
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(12, 45, 72, 0.86);
  backdrop-filter: blur(6px);
  color: #fde68a;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.dest-vibe-tag {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 9px;
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.dest-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
}

.dest-city {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 2px;
}

.dest-country {
  font-size: 0.77rem;
  color: var(--muted);
  font-weight: 600;
}

.dest-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.dest-btn {
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 9px;
  padding: 10px 6px;
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.dest-btn:hover,
.dest-btn:active {
  border-color: var(--ocean);
  background: var(--ocean-tint);
  color: var(--ocean-dark);
}

/* ux8: Postcard 1-Tap Flight+Hotel+eSIM Bundle CTA */
.dest-bundle-btn {
  width: 100%;
  margin-top: 2px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(2, 132, 199, 0.35);
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: var(--ocean-dark);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.dest-bundle-btn:hover,
.dest-bundle-btn:active {
  border-color: var(--ocean);
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  transform: translateY(-1px);
}

/* ux8: Auto-Surfaced Roaming Savings Pill Badge inside Results Drawer */
.roaming-badge-slot {
  margin: 8px 0 6px;
}
.roaming-savings-pill {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.roaming-savings-pill:hover,
.roaming-savings-pill:active {
  background: #fde68a;
  border-color: #d97706;
}

/* ux8: WhatsApp / Share Itinerary Bar for Diaspora Cardholders */
.share-itinerary-row {
  margin: 8px 0 10px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.share-itinerary-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #166534;
}
.share-itinerary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.share-btn {
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
}
.share-btn-wa {
  background: #16a34a;
  color: #ffffff;
}
.share-btn-wa:hover,
.share-btn-wa:active {
  background: #15803d;
}
.share-btn-copy {
  background: #ffffff;
  color: #166534;
  border-color: #86efac;
}
.share-btn-copy:hover,
.share-btn-copy:active {
  background: #dcfce7;
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
}

.footer a {
  color: var(--ocean-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 10px;
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .tab-btn {
    min-height: 70px;
    font-size: 0.75rem;
    padding: 8px 2px;
  }
  .tab-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .tab-icon-badge svg {
    width: 23px;
    height: 23px;
  }
  .row-2.stack-xs {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 680px) {
  .route-pair {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .route-pair > .field:first-child {
    padding-inline-end: 30px;
  }
  .route-pair > .field:last-child {
    padding-inline-end: 12px;
    padding-inline-start: 30px;
  }
  .swap-btn {
    left: 50%;
    right: auto;
    inset-inline-end: auto;
    transform: translate(-50%, -50%);
  }
  .perks-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .provider-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

/* ==========================================================================
   v=20261204-ux7: B278-02 HoA Language Pill, B278-04 CTA Spinner/Debounce,
   B278-05 Monetized Drawer Priority & Inline Roaming Savings Calculator
   ========================================================================== */

.hoa-lang-pill-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.hoa-lang-pill {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(12, 45, 72, 0.72);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.1s ease;
}

.hoa-lang-pill:hover,
.hoa-lang-pill:active {
  background: rgba(2, 132, 199, 0.92);
  border-color: #fde68a;
}

.hoa-lang-pill.active {
  background: #f59e0b;
  color: #0f172a;
  border-color: #fde68a;
}

/* B278-04: Partner CTA loading spinner & debounce visual lock */
.is-loading-partner {
  pointer-events: none !important;
  opacity: 0.86;
  cursor: wait !important;
}

.partner-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2.2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: fhfSpin 0.72s linear infinite;
  flex-shrink: 0;
  vertical-align: middle;
}

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

/* B278-05: Subtle secondary unmonetized reference row below monetized TP cards */
.secondary-ref-row {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.secondary-ref-label {
  font-weight: 700;
  color: var(--muted);
}

.secondary-ref-link {
  color: var(--text-secondary);
  text-decoration: underline;
  font-weight: 600;
  padding: 6px 4px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.secondary-ref-link:hover {
  color: var(--ocean-dark);
}

/* B278-05c: Inline Flight Drawer Roaming Savings Calculator strip */
.inline-roam-strip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(3, 105, 161, 0.24);
}

.inline-roam-toggle {
  border: 1px solid rgba(3, 105, 161, 0.32);
  background: #ffffff;
  color: var(--ocean-dark);
  border-radius: 10px;
  padding: 9px 13px;
  min-height: 48px;
  min-width: 48px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-roam-toggle:hover {
  background: #e0f2fe;
}

.inline-roam-panel {
  margin-top: 9px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.inline-roam-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.inline-roam-controls select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  background: #f8fafc;
}

.inline-roam-result {
  font-size: 0.85rem;
  font-weight: 800;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9px;
  padding: 8px 10px;
}

/* Regional curated postcard photo fallback gradients (zero external hotlinks) */
.dest-photo.bg-cai {
  background-image: linear-gradient(135deg, #92400e 0%, #d97706 48%, #0284c7 100%) !important;
}
.dest-photo.bg-doh {
  background-image: linear-gradient(135deg, #312e81 0%, #0369a1 52%, #f59e0b 100%) !important;
}
.dest-photo.bg-nbo {
  background-image: linear-gradient(135deg, #064e3b 0%, #059669 52%, #d97706 100%) !important;
}
.dest-photo.bg-mad {
  background-image: linear-gradient(135deg, #991b1b 0%, #ea580c 52%, #f59e0b 100%) !important;
}
.dest-photo.bg-bog {
  background-image: linear-gradient(135deg, #1e3a8a 0%, #0284c7 52%, #10b981 100%) !important;
}
