/* ==========================================================================
   BOOKING THEME (style.css)

   A blue header and a plain blue hero: no picture, the heading on the left,
   the search tabs as pills on the blue, and the search card sitting on the
   bottom edge of the blue (half on blue, half on the page). The colours are
   in theme.json (header, button, primary). Only the header and the hero are
   styled here; every other page keeps the default theme.

   The header and the hero print their own <style> later in the page, so every
   rule here starts with "body" to win over them.
   ========================================================================== */

:root {
  --bk-blue: #003b95;        /* the header and the hero */
  --bk-action: #006ce4;      /* buttons, links, active states */
  --bk-yellow: #ffb700;      /* the frame of the search card */
}

/* ------------------------------------------------------------ HEADER
   Solid blue on every page (no see-through glass), white logo and links. */
body .site-header,
body .site-header.is-scrolled {
  background: var(--bk-blue) !important;
  border-bottom: 0;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  --hd-fill: rgba(255, 255, 255, .08);
  --hd-fill-hover: rgba(255, 255, 255, .16);
  --hd-line: rgba(255, 255, 255, .28);
}
body .site-header::after { box-shadow: 0 2px 8px rgba(0, 34, 79, .25); }
/* on the home page the bar lies over the hero, which is blue too: no shade on top of it */
body .site-header.is-overlay:not(.is-scrolled):not(.is-open) { background: transparent !important; }
body .site-header.is-overlay:not(.is-scrolled):not(.is-open)::before { content: none; }
body .site-header .hd-logo img { filter: brightness(0) invert(1); }
body .site-header .hd-link { color: #fff; }
body .site-header .hd-link:hover,
body .site-header .hd-link[aria-expanded="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
/* the sign-in / register buttons: white with blue text */
body .site-header .btn {
  background-color: #fff !important; color: var(--bk-action) !important; border: 1px solid #fff !important;
}
body .site-header .btn:hover { background-color: #f0f6ff !important; }

/* ------------------------------------------------------------ HERO / BACKGROUND
   No picture: plain blue. Once the search is shown, the blue is painted by the
   search frame (below), so it always ends in the middle of the search card,
   whatever its height. While the hero is still loading the whole hero is blue. */
body .hr { min-height: 0; background: var(--bk-blue); overflow-x: clip; }
body .hr:has(> .hr-wrap.is-rendered) { background: #fff; }
body .hr-bg, body .hr-shade, body .hr-curve { display: none !important; }

body .hr-frame { position: relative; z-index: 20; padding: 0; border-radius: 0; }
body .hr-frame::before {
  content: "";
  position: absolute;
  top: -4000px; bottom: 50%; left: -100vw; right: -100vw;
  z-index: -1;
  border: 0; border-radius: 0;
  background: var(--bk-blue);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  pointer-events: none;
}

/* ------------------------------------------------------------ HERO / LAYOUT */
body .hr { padding-top: calc(var(--header-height, 64px) + 8px); padding-bottom: 28px; }
@media (min-width: 768px) {
  body .hr { padding-top: calc(var(--header-height, 64px) + 24px); padding-bottom: 36px; }
}

/* ------------------------------------------------------------ HERO / HEADING
   Left aligned, large and bold, the line under it larger; no badges. Above the
   blue of the frame, which comes later in the page. */
body .hr-head {
  position: relative; z-index: 21;
  align-items: flex-start; text-align: left;
  margin-bottom: 0; padding: 56px 0 64px;
}
[dir="rtl"] body .hr-head { text-align: right; }
body .hr-title {
  max-width: 900px; color: #fff; text-shadow: none; text-transform: none;
  font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; line-height: 1.12; letter-spacing: -1px;
}
body .hr-sub {
  max-width: 900px; margin-top: 8px; color: #fff; text-shadow: none;
  font-size: clamp(17px, 1.9vw, 24px); line-height: 1.35;
}
body .hr-badges { display: none; }

/* ------------------------------------------------------------ HERO / TABS
   Pills on the blue: white text, the selected one framed in white. */
body .hr-tabs-row { --hr-tab-h: 44px; margin-bottom: 16px; align-items: center; }
body .hr-tab-ind { display: none; }
body .hr-tabs { gap: 6px; padding: 2px; align-items: center; }
body .hr-tab,
body .hr-tabs.is-compact .hr-tab {
  width: auto; height: 44px; padding: 0;
  border: 1px solid transparent; border-radius: 999px; background: transparent; color: #fff; box-shadow: none;
}
body .hr-tab-in,
body .hr-tabs.is-compact .hr-tab-in { flex-direction: row; gap: 8px; padding: 0 16px; border-radius: 999px; }
body .hr-tab .material-symbols-outlined.hr-tab-icon,
body .hr-tabs.is-compact .hr-tab .material-symbols-outlined.hr-tab-icon {
  font-size: 22px !important; line-height: 22px; width: 22px; height: 22px; text-shadow: none;
}
body .hr-tab-label,
body .hr-tabs.is-compact .hr-tab-label { font-size: 15px; font-weight: 500; line-height: 20px; text-shadow: none; }
body .hr-tab:not(.is-active):hover .hr-tab-in { background: rgba(255, 255, 255, .1); }
body .hr-tab.is-active,
body .hr-tabs:not(.is-measured) .hr-tab.is-active,
body .hr-tabs.is-compact .hr-tab.is-active { color: #fff; border-color: #fff; background: transparent; }
body .hr-tab.is-active .hr-tab-in { background: rgba(255, 255, 255, .1); }
body .hr-tab:focus-visible .hr-tab-in { box-shadow: 0 0 0 2px #fff; }
body .hr-tabs-bar::before { background: rgba(255, 255, 255, .3); }

/* the AI Trip Planner button: one more pill */
body .hr-ai {
  height: 44px; margin-bottom: 0; padding: 0 16px; gap: 8px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  background: transparent; color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-size: 15px; font-weight: 500;
}
body .hr-ai:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
body .hr-ai.is-active { border-color: #fff; background: rgba(255, 255, 255, .14); color: #fff; }
body .hr-ai .hr-ai-icon { width: 22px; height: 22px; background: none; box-shadow: none; color: inherit; }
body .hr-ai .hr-ai-icon .material-symbols-outlined { font-size: 22px !important; }
body .hr-ai-arrow { display: none; }

/* ------------------------------------------------------------ HERO / SEARCH CARD
   Rounded on every corner (the tabs no longer touch it), framed in yellow. */
body .hr-card,
body .hr-card.is-first,
body .hr-card.is-last,
body .hr-tabs-row + .hr-card,
body .hr-tabs-row:has(> .hr-ai) + .hr-card,
body .hr-tabs-row:has(> .hr-ai.is-active) + .hr-card { border-radius: 10px; }
body .hr-card { border: 4px solid var(--bk-yellow); box-shadow: 0 2px 8px rgba(26, 26, 26, .16); }
body .hr-panel { padding: 16px; }

/* ------------------------------------------------------------ HERO / SHORTCUTS
   Under the card the page is white: a light bar with dark text. */
body .hr-shortcuts {
  border: 1px solid #e7e7e7; background: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 2px 8px rgba(26, 26, 26, .08);
}
body .hr-shortcut { color: #1a1a1a; text-shadow: none; }
body .hr-shortcut + .hr-shortcut::before { background: #e7e7e7; }
body .hr-shortcut-badge { background: #f0f6ff; color: var(--bk-action); box-shadow: none; }
body .hr-shortcut:hover { background: #f5f5f5; }
body .hr-shortcut:hover .hr-shortcut-badge { background: var(--bk-action); color: #fff; }
body .hr-shortcut:focus-visible { box-shadow: 0 0 0 2px var(--bk-action); }

/* ------------------------------------------------------------ PHONES
   The page stacks as in the default theme: the search first (on the blue),
   then the heading and the shortcuts on white. */
@media (max-width: 639px) {
  body .hr { padding-top: calc(var(--header-height, 64px) + 12px); padding-bottom: 0; }
  body .hr-wrap { padding: 0 12px; }
  body .hr-wrap > .hr-head { padding: 24px 4px 0; background: transparent; }
  body .hr-head .hr-title { color: #1a1a1a; font-size: 26px; }
  body .hr-head .hr-sub { color: #474747; font-size: 16px; }
  body .hr-wrap > .hr-shortcuts-row { padding: 16px 0; background: transparent; }
  body .hr-tabs-box { background: transparent; border-bottom: 0; }
  body .hr-tabs { padding-inline: 0; }
  body .hr-tab { color: #fff; }
  body .hr-tab.is-active { box-shadow: none; }
  body .hr-tab-in,
  body .hr-tabs.is-compact .hr-tab-in { padding-inline: 12px; }
  body .hr-ai { align-self: flex-start; min-height: 0; margin-bottom: 0; }
  body .hr-shortcut { border-color: #e7e7e7; background: #fff; }
}
