/* =============================================================
   I-BOOIKNG — SHARED HEADER + SEARCH COMPONENT
   Single source of truth for the global header, the search bar,
   the expanded search overlay (date picker / guests / destinations /
   service pills) and the mobile search modal.

   Loaded on EVERY page AFTER css/style.css so these rules layer on
   top of the base header styles. The markup + behaviour live in
   js/header.js — do not duplicate header markup in page HTML.
   ============================================================= */

/* ===== HEADER SHELL ===== */
#main-header {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}
.header-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  height: 80px;
  padding: 0 24px;
  gap: 16px;
}

/* Logo */
.header-logo a { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; object-fit: contain; }

/* ===== CENTER NAV TABS ===== */
.header-nav {
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 0;
  border: none;
  /* transform makes this a stacking context; lift it above the
     position:relative search bar (header-row2) so the Services
     hover dropdown renders on top of the search panel, not under it. */
  z-index: 1000;
}
.nav-tab {
  font-size: 15px;
  font-weight: 500;
  color: #717171;
  padding: 10px 18px;
  position: relative;
  background: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}
.nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: #222;
  border-radius: 999px;
  transition: transform 250ms ease;
}
.nav-tab.active { color: #222; font-weight: 600; }
.nav-tab.active::after { transform: translateX(-50%) scaleX(1); }
.nav-tab:hover { background: #f7f7f7; color: #222; }
/* Anchor-based nav items share the .nav-tab look */
a.nav-tab { text-decoration: none; display: inline-flex; align-items: center; }

/* ----- Services dropdown ----- */
.nav-dd-wrap { position: relative; display: inline-flex; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd-caret { font-size: 11px; transition: transform 200ms ease; }
.nav-dd-wrap:hover .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 210px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  /* Small delay before hiding so a quick mouse move across the gap
     doesn't snap the menu shut. Reset to 0 while hovered (below). */
  transition-delay: 180ms;
  z-index: 1200;
}
/* Invisible bridge spanning the gap between the button and the menu so
   moving the cursor down keeps .nav-dd-wrap hovered (menu stays open). */
.nav-dd-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 18px;
}
.nav-dd-wrap:hover .nav-dd-menu,
.nav-dd-wrap:focus-within .nav-dd-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0ms;
}
.nav-dd-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  font-size: 14px; color: #222; text-decoration: none;
  white-space: nowrap; transition: background 150ms ease;
}
.nav-dd-menu a:hover { background: #f7f7f7; }
.nav-dd-menu a i { font-size: 16px; width: 18px; text-align: center; color: #717171; }

/* Primary nav links inside the avatar dropdown — desktop hides them */
.dd-mobile-nav { display: none; }

/* Tab PRO badge */
.tab-pro-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  background: #222;
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: 3px;
  vertical-align: super;
  letter-spacing: 0.04em;
}

/* ===== RIGHT ACTIONS ===== */
.header-actions { display: flex; align-items: center; gap: 8px; }
.become-host-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 150ms, box-shadow 150ms, background 150ms, color 150ms, border-color 150ms;
}
.become-host-btn i { font-size: 15px; line-height: 1; }

.user-login-btn {
  color: #fff;
  border: none;
  background: var(--primary, #FF385C);
  box-shadow: 0 3px 10px rgba(255, 56, 92, 0.28);
}
.user-login-btn:hover {
  color: #fff;
  background: var(--primary-dark, #E31C5F);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 56, 92, 0.38);
}
.user-login-btn:active { transform: translateY(0); }

.seller-login-btn {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, #0f7d92, #ef5a4d);
  box-shadow: 0 3px 10px rgba(15, 125, 146, 0.28);
}
.seller-login-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 125, 146, 0.38);
}
.seller-login-btn:active { transform: translateY(0); }
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 150ms;
}
.user-menu-btn:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.hamburger-lines { display: flex; flex-direction: column; gap: 3px; }
.hamburger-lines span { display: block; width: 14px; height: 1.5px; background: #222; border-radius: 2px; }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #717171; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}

/* User dropdown menu */
.user-dropdown-wrap { position: relative; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  padding: 8px 0;
  z-index: 700;
  display: none;
}
.user-dropdown.show { display: block; animation: fadeInDown 180ms ease; }
.user-dropdown .dd-item {
  display: flex; align-items: center; gap: 12px;
  margin: 1px 6px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; color: #222; text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.user-dropdown .dd-item:hover { background: var(--primary-light); color: var(--primary); transform: translateX(4px); }
.user-dropdown .dd-item:hover i { color: var(--primary); }
.user-dropdown .dd-item.bold { font-weight: 600; }
.user-dropdown .dd-item i { font-size: 16px; width: 18px; text-align: center; transition: color 180ms ease; }
.user-dropdown .dd-sep { height: 1px; background: #ebebeb; margin: 7px 10px; }

/* ===== SEARCH BAR (Row 2) ===== */
.header-row2 {
  padding: 0 24px 16px;
  display: flex;
  justify-content: center;
  overflow: visible;
}
.search-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 860px;
  height: 66px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  transition: box-shadow 250ms ease;
  overflow: visible;
}
.search-bar:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.14); }

.sf {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 999px;
  transition: background 150ms;
  position: relative;
  min-width: 0;
}
.sf::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: #ddd;
}
.sf:last-of-type::after { display: none; }
.sf:hover { background: #f7f7f7; }
.sf.active { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.14); z-index: 2; }
.sf.active + .sf::after, .sf:hover + .sf::after { opacity: 0; }

.sf-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  margin-bottom: 2px;
}
.sf-val {
  font-size: 13.5px;
  color: #717171;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-val.set { color: #222; }
.sf-who { flex: 1.3; }

.search-btn-area { display: flex; align-items: center; padding: 7px; flex-shrink: 0; }
.search-btn-round {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #FF385C;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 150ms, transform 150ms;
  flex-shrink: 0;
}
.search-btn-round:hover { background: #D93B30; transform: scale(1.05); }

/* Compact pill (shown on scroll) */
.search-compact-pill {
  display: none;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  padding: 10px 10px 10px 18px;
  cursor: pointer;
  gap: 0;
  transition: box-shadow 150ms;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.search-compact-pill:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.14); }
.scp-text { font-size: 14px; font-weight: 600; color: #222; }
.scp-sep { width: 1px; height: 18px; background: #ddd; margin: 0 12px; flex-shrink: 0; }
.scp-sub { font-size: 13px; color: #717171; }
.scp-icon {
  width: 32px; height: 32px; border-radius: 50%; background: #FF385C; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  margin-left: 14px; flex-shrink: 0; border: none; cursor: pointer;
}

/* Mobile search button (header) */
.mobile-search-btn {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 1;
  margin: 0 8px;
  padding: 11px 16px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  font-size: 13px;
  color: #717171;
  font-weight: 500;
  font-family: inherit;
}

/* Scrolled state */
#main-header.scrolled .header-row2 {
  height: 0; padding: 0; overflow: hidden; opacity: 0; pointer-events: none;
  transition: all 250ms ease;
}
#main-header.scrolled .header-nav { opacity: 0; visibility: hidden; pointer-events: none; }
#main-header.scrolled .search-compact-pill { display: flex; }
#main-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.12); }

/* ===== SEARCH OVERLAY / PANEL ===== */
.search-overlay { z-index: 600 !important; }
#searchPanel {
  top: 88px;
  left: 50%;
  right: auto;
  margin: 0;
  width: calc(100% - 48px);
  max-width: 880px;
  border-radius: 28px;
  padding: 22px 24px 26px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.24);
  transform: translateX(-50%) translateY(-16px);
}
.search-overlay.active #searchPanel { transform: translateX(-50%) translateY(0); }

/* ===== "WHO" GUEST POPOVER ===== */
.spf-stays, .spf-exp { overflow: visible !important; position: relative; }
.guests-popover {
  width: 420px;
  max-width: calc(100vw - 32px);
  padding: 4px 28px;
  border-radius: 28px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #ebebeb;
  top: calc(100% + 16px);
  right: 0;
}
.guests-popover .guest-type-row { padding: 22px 0; border-bottom: 1px solid #ebebeb; }
.guests-popover .guest-type-row:last-child { border-bottom: none; }
.guests-popover .guest-type-name { font-size: 16px; font-weight: 600; color: #222; }
.guests-popover .guest-type-desc { font-size: 14px; color: #717171; margin-top: 2px; }
.guests-popover .guest-type-link {
  font-size: 14px; color: #717171; text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer; display: inline-block; margin-top: 2px;
}
.guests-popover .guest-type-link:hover { color: #222; }
.guests-popover .counter-group { gap: 14px; }
.guests-popover .counter-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid #b0b0b0; background: #fff; color: #717171;
  font-size: 20px; line-height: 1;
  transition: border-color 150ms, color 150ms, background 150ms;
}
.guests-popover .counter-btn:hover:not(:disabled) { border-color: #222; color: #222; }
.guests-popover .counter-btn:disabled { border-color: #ebebeb; color: #dcdcdc; cursor: default; }
.guests-popover .counter-val { min-width: 28px; text-align: center; font-size: 16px; font-weight: 400; color: #222; }
.sp-field[data-guest-field] { position: relative; }
.guests-panel-value.set, [data-guests-display].set { color: #222 !important; font-weight: 500; }

/* ===== CHECK-IN / CHECK-OUT CALENDAR ===== */
.sp-field-value { font-size: 14px; color: #717171; white-space: nowrap; }
.sp-field-value.set { color: #222; font-weight: 500; }
.date-popover {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 28px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  padding: 26px 32px 22px;
  width: 740px;
  max-width: calc(100vw - 32px);
  z-index: 620;
  display: none;
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
}
.date-popover.show { display: block; opacity: 1; transform: translateX(-50%) translateY(0); }
.dp-cal { position: relative; }
.dp-nav {
  position: absolute; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: none; color: #222; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms;
}
.dp-nav:hover:not(:disabled) { background: #f2f2f2; }
.dp-nav:disabled { color: #dcdcdc; cursor: default; }
.dp-prev { left: 0; }
.dp-next { right: 0; }
.dp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.dp-month-title { text-align: center; font-size: 16px; font-weight: 600; color: #222; margin-bottom: 16px; }
.dp-weekdays, .dp-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.dp-weekday { text-align: center; font-size: 12px; color: #b0b0b0; font-weight: 400; padding-bottom: 8px; }
.dp-day {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0; cursor: pointer;
}
.dp-day.empty { cursor: default; }
.dp-day-inner {
  width: 42px; height: 42px; max-width: 100%; max-height: 100%;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #222;
  transition: background 120ms, color 120ms, box-shadow 120ms;
}
.dp-day:hover:not(.disabled):not(.empty) .dp-day-inner { box-shadow: inset 0 0 0 1.5px #222; }
.dp-day.disabled { cursor: default; }
.dp-day.disabled .dp-day-inner { color: #dddddd; }
.dp-day.in-range { background: #f2f2f2; }
.dp-day.range-start { background: linear-gradient(to right, transparent 50%, #f2f2f2 50%); }
.dp-day.range-end { background: linear-gradient(to left, transparent 50%, #f2f2f2 50%); }
.dp-day.selected .dp-day-inner { background: #222; color: #fff; box-shadow: none; }
.dp-flex { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; padding-top: 4px; }
.dp-chip {
  padding: 9px 16px; border: 1px solid #dddddd; border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 500; color: #222; cursor: pointer;
  transition: border-color 150ms, box-shadow 150ms;
}
.dp-chip:hover { border-color: #222; }
.dp-chip.active { border-color: #222; box-shadow: inset 0 0 0 1px #222; }

/* ===== "WHERE" SUGGESTED DESTINATIONS ===== */
.sp-field[data-dest-field] { position: relative; }
.dest-popover {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: min(58vh, 460px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 28px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px 10px 12px;
  z-index: 630;
  display: none;
}
.dest-popover.show { display: block; animation: fadeInDown 180ms ease; }
.dest-popover::-webkit-scrollbar { width: 8px; }
.dest-popover::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 8px; }
.dest-head { font-size: 13px; font-weight: 600; color: #717171; padding: 8px 16px 14px; }
.dest-item {
  display: flex; align-items: center; gap: 16px;
  padding: 9px 16px; border-radius: 16px; cursor: pointer;
  transition: background 120ms;
}
.dest-item:hover, .dest-item:focus-visible { background: #f7f7f7; outline: none; }
.dest-ic {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.04);
}
.dest-text { min-width: 0; }
.dest-name { font-size: 15px; font-weight: 600; color: #222; }
.dest-sub { font-size: 14px; color: #717171; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== SINGLE-DATE PICKER (Holidays / Services) ===== */
.sp-field[data-date1-field] { position: relative; }
.d1-pop {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  display: none;
  gap: 36px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 28px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  padding: 28px 32px;
  width: 720px;
  max-width: calc(100vw - 32px);
  z-index: 630;
}
.d1-pop.show { display: flex; }
.d1-presets { display: flex; flex-direction: column; gap: 16px; width: 230px; flex-shrink: 0; padding-top: 40px; }
.d1-preset {
  text-align: left; border: 1px solid #dddddd; border-radius: 16px; background: #fff;
  padding: 18px 20px; cursor: pointer;
  transition: border-color 150ms, box-shadow 150ms;
  display: flex; flex-direction: column; gap: 4px;
}
.d1-preset:hover { border-color: #222; }
.d1-preset.active { border-color: #222; box-shadow: inset 0 0 0 1px #222; }
.d1-preset-name { font-size: 17px; font-weight: 600; color: #222; }
.d1-preset-sub { font-size: 14px; color: #717171; }
.d1-cal { position: relative; width: 360px; flex-shrink: 0; }

/* ===== SERVICE TYPE PILLS (Services tab) ===== */
.sp-field[data-svc-field] { position: relative; }
.svc-pop {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 540px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 28px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  padding: 28px;
  z-index: 630;
  display: none;
}
.svc-pop.show { display: block; animation: fadeInDown 180ms ease; }
.svc-list { display: flex; flex-wrap: wrap; gap: 14px; }
.svc-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  border: 1px solid #dddddd; border-radius: 999px; background: #fff;
  font-size: 15px; font-weight: 500; color: #222; cursor: pointer;
  transition: border-color 150ms, box-shadow 150ms, background 150ms;
  white-space: nowrap;
}
.svc-chip i { font-size: 18px; }
.svc-chip:hover { border-color: #222; }
.svc-chip.active { border-color: #222; box-shadow: inset 0 0 0 1px #222; background: #f7f7f7; }

/* =============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================= */
@media (max-width: 980px) {
  .search-bar { max-width: 720px; }
}

@media (max-width: 768px) {
  .header-row1 { height: 62px !important; padding: 0 16px !important; gap: 10px; }
  .header-row2 { display: none !important; }
  .header-nav { display: none !important; }
  .become-host-btn { display: none !important; }
  .brand-logo { height: 30px; }
  /* Surface the primary menu inside the avatar dropdown on mobile */
  .dd-mobile-nav { display: block; }
  /* The dropdown gets long on mobile — make it fit the viewport, scroll if
     needed, and tighten spacing so every item is reachable. */
  .user-dropdown {
    width: min(320px, calc(100vw - 20px));
    right: -4px;
    top: calc(100% + 8px);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .user-dropdown::-webkit-scrollbar { width: 6px; }
  .user-dropdown::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 999px; }
  .user-dropdown .dd-item { padding: 9px 12px; font-size: 13.5px; }
  .user-dropdown .dd-sep { margin: 5px 10px; }

  /* Centered search pill replaces the full bar on mobile */
  .mobile-search-btn {
    display: flex !important;
    align-items: center;
    gap: 11px;
    flex: 1;
    max-width: 340px;
    margin: 0 auto;
    height: 52px;
    padding: 7px 8px;
    border-radius: 999px;
    border: 1px solid #ececec;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: box-shadow .2s ease, transform .12s ease;
  }
  .mobile-search-btn:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.14); }
  .mobile-search-btn:active { transform: scale(.985); }
  .mobile-search-btn .msb-ic {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
    background: linear-gradient(135deg, #ff5b78, #FF385C); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    box-shadow: 0 4px 10px rgba(255,56,92,.35);
  }
  .mobile-search-btn .msb-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; overflow: hidden; }
  .mobile-search-btn .msb-title { font-size: 14px; font-weight: 700; color: #222; white-space: nowrap; }
  .mobile-search-btn .msb-sub { font-size: 11.5px; font-weight: 500; color: #717171; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .header-actions { gap: 0; flex-shrink: 0; }
  .user-menu-btn { padding: 4px 4px 4px 10px; }
  .search-compact-pill { display: none !important; }
  #main-header.scrolled .search-compact-pill { display: none !important; }

  #searchPanel { top: 74px; width: calc(100% - 24px); padding: 18px 16px 20px; }
}

@media (max-width: 740px) {
  .date-popover { width: calc(100vw - 24px); padding: 20px 18px 18px; }
  .dp-months { grid-template-columns: 1fr; gap: 28px 0; }
}

@media (max-width: 720px) {
  .d1-pop { width: calc(100vw - 24px); flex-direction: column; gap: 20px; padding: 20px 18px; }
  .d1-presets { width: 100%; flex-direction: row; padding-top: 0; overflow-x: auto; }
  .d1-preset { flex: 1 0 auto; min-width: 130px; }
  .d1-cal { width: 100%; }
}

@media (max-width: 560px) {
  .svc-pop { width: calc(100vw - 24px); padding: 20px 18px; }
  .svc-chip { padding: 11px 16px; font-size: 14px; }
}

@media (max-width: 480px) {
  .dest-popover { width: calc(100vw - 24px); }
  .dest-sub { font-size: 13px; }
  .user-dropdown { width: min(320px, calc(100vw - 16px)); right: -4px; }
}
