/* Phone header (Oct 2026, Trip.com-style) + its destination search sheet —
   js/mobile-head.js. Literal values: it sits above pages with different
   token sets. Only at ≤880px, where the site hides the desktop navbar. */

.mh { display: none; }
@media (max-width: 880px) { body:has(#mobileHead) .navbar { display: none !important; } }
/* TRANSPARENT on every page, as on the homepage: no background of its own,
   lying over the top of the page and scrolling away with it. It sits in the
   64px the pages already leave for the (now hidden) fixed navbar, so nothing
   below moves. On a dark top (blue hero, photo) it is white — the default;
   on a light top js/mobile-head.js adds .mh--dark (dark logo, grey pill, dark
   icons). The homepage (.mh--over) sits over its hub hero, which makes room
   for it (css/hub.css). */
@media (max-width: 880px) {
  .mh {
    display: flex; align-items: center; gap: 10px;
    position: absolute; top: 0; left: 0; right: 0; z-index: 60;
    height: calc(64px + env(safe-area-inset-top, 0px)); box-sizing: border-box;
    padding: env(safe-area-inset-top, 0px) 14px 0;
    background: none; box-shadow: none; border: 0;
  }
  .mh.mh--over {
    height: auto;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  }
}
/* Light page top: the same header in dark ink. */
.mh--dark .mh-logo .o { color: #0B5BD3; }
.mh--dark .mh-logo .b { color: #FF5722; }
.mh--dark .mh-search { background: #f1f3f8; border-color: #e3e8f2; color: #6b7280; }
.mh--dark .mh-search svg, .mh--dark .mh-ic { color: #1a1d2e; }
/* Wordmark on the blue band: white Otel, orange Bilet. */
.mh-logo { flex-shrink: 0; font: 900 22px/1 Inter, system-ui, sans-serif; letter-spacing: -.6px; text-decoration: none; }
.mh-logo .o { color: #fff; }
/* Same gradient as the orange buttons. */
.mh-logo .b {
  color: #FF5722;
  background: linear-gradient(135deg, #ff7a45 0%, #ff5722 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mh-search {
  flex: 1 1 auto; min-width: 0; height: 40px; display: flex; align-items: center; gap: 8px;
  padding: 0 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  background: rgba(255,255,255,.16); color: rgba(255,255,255,.88);
  font: 500 15px/1 Inter, system-ui, sans-serif; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mh-search svg { flex-shrink: 0; color: #fff; }
.mh-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-ic {
  flex-shrink: 0; width: 38px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: #fff; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.mh-ic:active, .mh-search:active { opacity: .7; }
.mh-ic svg { width: 24px; height: 24px; }

/* ── Destination search: full screen ─────────────────────────────────────── */
.mhs {
  position: fixed; inset: 0; z-index: 1600; background: #fff; display: flex; flex-direction: column;
  transform: translateY(16px); opacity: 0; transition: transform .2s ease, opacity .2s ease;
  font-family: Inter, system-ui, sans-serif; color: #1a1d2e;
}
.mhs[hidden] { display: none; }
.mhs.open { transform: none; opacity: 1; }
html.mhs-lock, html.mhs-lock body { overflow: hidden; }
.mhs-top {
  display: flex; align-items: center; gap: 6px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px 6px; border-bottom: 1px solid #eef1f6;
}
.mhs-back { width: 40px; height: 40px; border: 0; background: none; color: #1a1d2e; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mhs-field { flex: 1; position: relative; }
.mhs-field input {
  width: 100%; height: 44px; box-sizing: border-box; border: 1.5px solid #0B3AD6; border-radius: 12px;
  padding: 0 40px 0 14px; font: 600 16px/1 Inter, system-ui, sans-serif; color: #1a1d2e; outline: none;
  -webkit-appearance: none; appearance: none; background: #fff;
}
.mhs-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mhs-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eef1f6; color: #5b6880; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mhs-clear[hidden] { display: none; }
.mhs-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.mhs-h { padding: 16px 18px 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.mhs-note { padding: 28px 18px; text-align: center; color: #94a3b8; font-size: 14px; font-weight: 600; }
.mhs-row {
  display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
  padding: 11px 18px; border: 0; background: none; text-align: left; font: inherit; color: inherit;
}
button.mhs-row { cursor: pointer; }
button.mhs-row:active { background: #f4f7ff; }
.mhs-ic { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: #f1f4fb; color: #0B3AD6; display: inline-flex; align-items: center; justify-content: center; }
.mhs-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mhs-t b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhs-t small { font-size: 12.5px; color: #8893a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhs-code { flex-shrink: 0; font-size: 12px; font-weight: 800; color: #5b6880; background: #f1f3f8; border-radius: 6px; padding: 4px 7px; }
/* Travel-guide rows: country (flag · name · visa · city count) + its cities as chips. */
.mhs-h { display: flex; align-items: baseline; justify-content: space-between; }
.mhs-h a { font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #0B3AD6; text-decoration: none; }
a.mhs-row { text-decoration: none; }
a.mhs-row:active { background: #f4f7ff; }
.mhs-ic-flag { background: #f1f4fb; overflow: hidden; }
.mhs-flag { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15,27,51,.08); display: block; }
.mhs-chev { flex-shrink: 0; color: #c3cbda; display: inline-flex; }
.mhs-country { border-bottom: 1px solid #f1f3f8; padding-bottom: 10px; }
.mhs-cities { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 18px 0 66px; }
.mhs-cities::-webkit-scrollbar { display: none; }
.mhs-city {
  flex-shrink: 0; display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border: 1px solid #e3e8f2; border-radius: 999px; background: #fff; color: #334155;
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.mhs-city:active { background: #eef3ff; border-color: #c9d6f5; }
