/* ─── The home page's top, larger (the owner, 2026-11-18) ───────────────────────────────────────────────────────────────────
   "Make this larger to almost fill the whole screen. larger image above the box and larger box as well", and "leave a gap
   between this and the box above" for the strip under it; a preview on beta's page approved ("Proceed with B"). docs/HOME_TOP.md.

   Loaded on index.php after landing.css, whose band rules this follows on (the band was cut to its content on 2026-10-01 so the
   next section showed on the first screen; the owner now wants the photo and the box to take that screen), and before
   tailwind.css. The box's own fields are picked by their Tailwind classes, so the pop-ups inside it (airports, travellers,
   calendars) keep their size. */

/* The room under the band for the box's overhang, and the gap before the strip: about 52px on a phone, 48px on a computer. */
#home-card-room { height: 6.5rem; }

@media (min-width: 768px) {
  /* The photo, headline and box take almost the whole first screen: the window's height less the header (4rem), the box's
     overhang below the photo (6rem) and the gap with a peek of the strip (5.5rem). A floor: the band still grows with its
     content on a short window. */
  .hero-band { min-height: calc(100vh - 4rem - 6rem - 5.5rem); }
  .hero-band h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
  .hero-band h1 br { display: inline; }
  .hero-band .max-w-3xl > p { display: block; font-size: 1.2rem; margin-top: 1rem; }
  .hero-band .max-w-3xl { margin-bottom: .5rem; }

  /* The box: larger tabs, fields, words and button, and more room inside. */
  #search-card { border-radius: calc(1.5rem * var(--radius-k, 1)); }
  #search-card .home-tab { min-width: 7.25rem; padding: .85rem 1.6rem; font-size: 1rem; }
  #search-card .home-tab svg { width: 1.75rem; height: 1.75rem; }
  #search-card .search-tab { padding: 1.75rem 2rem 2rem; }
  #search-card .search-tab input[class~="py-2.5"],
  #search-card .search-tab button[class~="py-2.5"],
  #search-card .search-tab select[class~="py-2.5"] { padding-top: .95rem; padding-bottom: .95rem; font-size: 1rem; }
  #search-card .search-tab label[class~="text-[10px]"] { font-size: 11px; margin-bottom: .45rem; }
  #search-card .search-tab button[class~="rounded-full"][class~="px-5"] { padding: .6rem 1.5rem; font-size: .95rem; }
  #search-card .search-tab button.grad-gold[class~="px-7"] { padding: 1.05rem 2.75rem; font-size: 1.05rem; }

  #home-card-room { height: 8.25rem; }
}

/* A short laptop window (about 650–700px tall once the browser's bars are off): the headline a size down, so the box and its
   Search button still show on the first screen. */
@media (min-width: 768px) and (max-height: 700px) {
  .hero-band h1 { font-size: 2.75rem; }
  .hero-band .max-w-3xl > p { font-size: 1rem; margin-top: .5rem; }
}

/* The strip under the box as four cards (the owner's choice B, words from ate.travel): a figure in the brand's gold over a
   line (partials/home/under_card.php). A card whose figure is switched off in Site Content is a one-line chip, as before. */
.trust-card { flex-direction: column; align-items: flex-start; gap: 2px; padding: .875rem 1.125rem; }
.trust-figure { font-size: 1.3rem; line-height: 1.15; font-weight: 600; color: rgb(var(--brand-1-rgb)); }
.trust-line { font-size: .85rem; color: rgb(var(--c-neutral-600)); }
.dark .trust-line { color: rgb(var(--c-neutral-300)); }

/* ── The rows' three buttons (2026-11-18, the owner: "Left arrow, right arrow, double right arrow") ──
   ‹ and › as before (shown on a row whose cards do not all fit, landing.css), now greyed at either end of the row
   (index.php watchRailScroll() marks data-at-start / data-at-end); » opens the full list, always shown. */
.home-rail[data-at-start] .rail-prev, .home-rail[data-at-end] .rail-next { opacity: .35; pointer-events: none; }
.rail-all { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; padding-bottom: 2px; background: rgb(var(--c-neutral-900)); color: #fff; border: 1px solid rgb(var(--c-neutral-900));
  transition: background-color .15s, transform .15s; }
.rail-all:hover { background: rgb(var(--brand-1-rgb)); border-color: rgb(var(--brand-1-rgb)); color: rgb(15 23 42); transform: translateX(2px); }
.dark .rail-all { background: rgb(var(--c-neutral-100)); border-color: rgb(var(--c-neutral-100)); color: rgb(var(--c-neutral-900)); }

/* ── Under the strip: recent searches, then the most searched (2026-11-18, migration 143; partials/home/searches.php) ── */
.ms { max-width: 80rem; margin: 6px auto 16px; padding: 0 2rem; }
.ms-block { margin-bottom: 20px; }   /* each block is in its own <template>, so no sibling rule can space them */
.ms h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 700; color: rgb(var(--c-neutral-900)); }
.ms h3 svg { color: rgb(var(--brand-1-rgb)); }
.ms h3 small { font-weight: 500; font-size: 13px; color: rgb(var(--c-neutral-500)); }
.ms-clear { margin-left: auto; font-size: 12.5px; font-weight: 500; color: rgb(var(--c-neutral-500)); text-decoration: underline; text-underline-offset: 2px; }
.ms-recent { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-recent a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: calc(999px * var(--radius-k, 1)); background: #fff; border: 1px solid rgb(var(--c-neutral-200));
  font-size: 13.5px; font-weight: 600; color: rgb(var(--c-neutral-800)); white-space: nowrap; transition: border-color .15s; }
.ms-recent a:hover, .ms-grid a:hover { border-color: rgb(var(--brand-1-rgb)); }
.ms-recent a small { font-weight: 500; color: rgb(var(--c-neutral-500)); }
.ms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ms-grid a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: calc(14px * var(--radius-k, 1)); background: #fff; border: 1px solid rgb(var(--c-neutral-200)); min-width: 0; transition: border-color .15s; }
.ms-grid .n { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; background: rgb(var(--brand-1-rgb) / .15); color: rgb(146 64 14); }
.ms-txt { min-width: 0; }
.ms-grid b { display: block; font-size: 14px; color: rgb(var(--c-neutral-900)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-grid small { font-size: 12px; color: rgb(var(--c-neutral-500)); }
.ms-grid em { font-style: normal; font-weight: 700; color: rgb(21 128 61); }
@media (max-width: 1023px) { .ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ms { padding: 0 16px; }
  .ms-recent { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  /* Two to a row on a phone (2026-11-19, the owner: "Okay"): a long route wraps, never cut off. A word too long for the
     tile ("Thiruvananthapuram") breaks with a hyphen (homeSearches().label()), so a third line is allowed. */
  .ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ms-grid a { align-items: flex-start; gap: 8px; padding: 10px; }
  .ms-grid .n { width: 20px; height: 20px; font-size: 11px; margin-top: 1px; }
  .ms-grid b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
  .ms-grid small { font-size: 11.5px; }
}
.dark .ms h3, .dark .ms-grid b { color: rgb(var(--c-neutral-50)); }
.dark .ms-recent a, .dark .ms-grid a { background: rgb(var(--c-neutral-900)); border-color: rgb(var(--c-neutral-700)); color: rgb(var(--c-neutral-100)); }
.dark .ms-grid em { color: rgb(74 222 128); }

/* ─── The box one size on every tab (the owner, 2026-11-23: "Size of that Block changes when clicking Hotel and Holidays Tab.
   Size should be Fixed"; a preview approved, "Go ahead"). index.php's fitTabs() measures each shown tab's form at its own
   height and puts the tallest in --tab-h on the box; every form takes at least that, and its last row (the Search button's)
   sits at the bottom, so the button stays in one place and nothing below the box moves. (A fixed height was used until
   2026-10-01 and dropped for the empty band it left on Flights; this one is measured, so the tallest tab has none.) The
   padding keeps the gap the row's own margin gave. Multi-city's extra flights still grow the box while they are added. */
#search-card .search-tab { min-height: var(--tab-h, 0); }
#search-card .search-tab > :last-child { margin-top: auto !important; padding-top: 1.25rem; }
