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

   In the style of agoda.com: a white header with dark links and an outlined
   blue button; a slate-blue night-sky hero (no picture, a few small stars)
   with round bottom corners and a bold white heading in capitals; the module
   tabs as a white bar that sits on the top edge of the search card (blue
   words, a blue line under the chosen one); the search card white with a soft
   shadow and a blue round Search button. Colours are in theme.json. 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 {
  --ag-blue: #2067da;        /* buttons, tabs, links */
  --ag-blue-dark: #1a56b8;
  --ag-ink: #2a2a2e;
  --ag-line: #dddfe2;
  --ag-sky: #57658f;         /* the hero */
  --ag-sky-2: #6f7da6;
  --ag-star: #f6c343;
  --ag-white-h: 230px;       /* how much of the hero bottom is white */
}

/* ------------------------------------------------------------ HEADER
   White on every page, dark bold links, an outlined blue round button. */
body .site-header,
body .site-header.is-scrolled,
body .site-header.is-overlay:not(.is-scrolled):not(.is-open) {
  background: #fff !important;
  color: var(--ag-ink);
  border-bottom: 1px solid var(--ag-line);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  --hd-fill: transparent;
  --hd-fill-hover: #f2f4f7;
  --hd-line: transparent;
}
body .site-header.is-overlay:not(.is-scrolled):not(.is-open)::before { content: none; }
body .site-header.is-overlay:not(.is-scrolled):not(.is-open) .hd-logo img,
body .site-header .hd-logo img { filter: none; }
body .site-header .hd-link,
body .site-header.is-overlay:not(.is-scrolled):not(.is-open) .hd-link { color: var(--ag-ink); font-size: 16px; font-weight: 600; }
body .site-header .hd-link:hover,
body .site-header .hd-link[aria-expanded="true"] { background: #f2f4f7; color: var(--ag-blue); }
body .site-header .hd-group,
body .site-header .hd-chip { border-color: transparent; background: transparent; }
body .site-header .hd-chip:hover,
body .site-header .hd-group .hd-chip:hover { background: #f2f4f7; }
body .site-header .btn {
  border-radius: 999px; font-weight: 600;
  background-color: #fff !important; color: var(--ag-blue) !important; border: 1px solid var(--ag-line) !important;
}
body .site-header .btn:hover { background-color: #f2f6fd !important; border-color: var(--ag-blue) !important; }

/* ------------------------------------------------------------ HERO / BACKGROUND
   A slate-blue night sky with a few small stars and round bottom corners; the
   last part of the hero is white, so the search card runs onto the page. */
body .hr-bg, body .hr-shade, body .hr-curve { display: none !important; }
body .hr { min-height: 0; background: #fff; overflow-x: clip; }
body .hr::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: var(--ag-white-h); z-index: 0;
  border-radius: 0 0 72px 72px; pointer-events: none;
  background:
    radial-gradient(circle at 7% 34%, var(--ag-star) 0 3px, transparent 4px),
    radial-gradient(circle at 15% 62%, var(--ag-star) 0 2px, transparent 3px),
    radial-gradient(circle at 23% 26%, rgba(255, 255, 255, .7) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 30%, var(--ag-star) 0 3px, transparent 4px),
    radial-gradient(circle at 93% 58%, var(--ag-star) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .7) 0 2px, transparent 3px),
    linear-gradient(180deg, var(--ag-sky) 0%, var(--ag-sky-2) 100%);
}
body .hr { padding-top: calc(var(--header-height, 64px) + 8px); padding-bottom: 40px; }
@media (min-width: 768px) {
  body .hr { padding-top: calc(var(--header-height, 64px) + 40px); padding-bottom: 48px; }
}

/* ------------------------------------------------------------ HERO / HEADING
   Bold white capitals in the middle; no second line, no badges. */
body .hr-head { align-items: center; text-align: center; margin-bottom: 26px; }
body .hr-title {
  max-width: 1000px; color: #fff; text-shadow: none; text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; line-height: 1.15; letter-spacing: .01em;
}
body .hr-sub { display: none; }
body .hr-badges { display: none; }

/* ------------------------------------------------------------ HERO / TABS
   A white bar in the middle that sits on the top edge of the card. */
body .hr-frame { width: 100%; max-width: 1100px; margin-inline: auto; padding: 0; border-radius: 0; }
body .hr-frame::before { content: none; }
body .hr-tabs-row {
  --hr-tab-h: 52px;
  position: relative; z-index: 21;
  width: max-content; max-width: calc(100% - 48px); margin: 0 auto -26px;
  justify-content: center; align-items: center; gap: 6px; padding: 0 12px;
  border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(42, 42, 46, .14);
}
body .hr-tabs-row:has(.hr-tabs.is-compact) { --hr-tab-h: 52px; }
body .hr-tab-ind { display: none; }
body .hr-tabs { gap: 2px; align-items: stretch; }
body .hr-tab,
body .hr-tabs.is-compact .hr-tab {
  width: auto; height: 52px; padding: 0;
  border: 0; border-radius: 0; background: transparent; color: var(--ag-blue); box-shadow: none;
}
body .hr-tab-in,
body .hr-tabs.is-compact .hr-tab-in { position: relative; flex-direction: row; gap: 6px; padding: 0 16px; border-radius: 0; }
body .hr-tab-in::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent;
}
body .hr-tab .material-symbols-outlined.hr-tab-icon,
body .hr-tabs.is-compact .hr-tab .material-symbols-outlined.hr-tab-icon {
  font-size: 20px !important; line-height: 20px; width: 20px; height: 20px; text-shadow: none;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
body .hr-tab-label,
body .hr-tabs.is-compact .hr-tab-label { font-size: 16px; font-weight: 600; line-height: 22px; text-shadow: none; }
body .hr-tab:not(.is-active):hover .hr-tab-in { background: #f2f6fd; }
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: var(--ag-blue); background: transparent; }
body .hr-tab.is-active .hr-tab-in::after { background: var(--ag-blue); }
body .hr-tab:focus-visible .hr-tab-in { box-shadow: inset 0 0 0 2px var(--ag-blue); }
body .hr-tabs-bar::before { background: var(--ag-line); }
body .hr-tabs-bar i { background: var(--ag-blue); box-shadow: none; }
@media (min-width: 768px) {
  body .hr-tabs-box.has-more .hr-tabs-bar { display: none; }
}

/* the AI Trip Planner: a word tab at the end of the bar */
body .hr-ai {
  height: 36px; margin-bottom: 0; padding: 0 12px; gap: 6px;
  border: 1px solid var(--ag-line); border-radius: 999px; background: #fff; color: var(--ag-blue);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-size: 15px; font-weight: 600;
}
body .hr-ai:hover { background: #f2f6fd; }
body .hr-ai.is-active { border-color: var(--ag-blue); background: #f2f6fd; }
body .hr-ai .hr-ai-icon { width: 20px; height: 20px; background: none; box-shadow: none; color: inherit; }
body .hr-ai .hr-ai-icon .material-symbols-outlined { font-size: 20px !important; }
body .hr-ai-shine, body .hr-ai-arrow { display: none; }

/* ------------------------------------------------------------ HERO / SEARCH CARD
   White with round corners and a soft shadow, room at the top for the tabs
   bar; the Search button blue, round, in capitals. */
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: 16px; }
body .hr-card { color: var(--ag-ink); box-shadow: 0 4px 20px rgba(42, 42, 46, .16); }
body .hr-panel { padding: 48px 32px 28px; }
body .hr-panel-ai { padding: 30px 0 0; }
body .hr-card .search-btn { border-radius: 999px; text-transform: uppercase; letter-spacing: .02em; font-weight: 700; }
body .hr-card .swap-btn { color: var(--ag-blue); }
body .hr-panel .segmented { border-radius: 999px; background: transparent; gap: 8px; }
body .hr-panel .segmented-item { border-radius: 999px; border: 1px solid var(--ag-line); }
body .hr-panel .segmented-item.is-active { border-color: var(--ag-blue); background: #f2f6fd !important; color: var(--ag-blue) !important; box-shadow: none; }

/* ------------------------------------------------------------ HERO / SHORTCUTS */
body .hr-shortcuts {
  border: 1px solid var(--ag-line); background: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
body .hr-shortcut { color: var(--ag-ink); text-shadow: none; font-weight: 600; }
body .hr-shortcut + .hr-shortcut::before { background: var(--ag-line); }
body .hr-shortcut-badge { background: #f2f6fd; color: var(--ag-blue); box-shadow: none; }
body .hr-shortcut:hover { background: #f7f8fa; }
body .hr-shortcut:hover .hr-shortcut-badge { background: var(--ag-blue); color: #fff; }
body .hr-shortcut:focus-visible { box-shadow: 0 0 0 2px var(--ag-blue); }

/* ------------------------------------------------------------ PHONES
   The tabs bar spans the width above the card; the search first, then the
   heading and the shortcuts on white. */
@media (max-width: 767px) {
  :root { --ag-white-h: 55%; }
  body .hr::before { border-radius: 0 0 40px 40px; }
  body .hr-tabs-row { flex-direction: column; align-items: stretch; width: auto; max-width: none; margin: 0 0 -12px; padding: 4px 8px 8px; gap: 6px; }
  body .hr-ai { align-self: center; }
  body .hr-panel { padding: 28px 16px 16px; }
}
@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: var(--ag-ink); font-size: 24px; }
  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: var(--ag-blue); }
  body .hr-tab.is-active { box-shadow: none; }
  body .hr-tab-in, body .hr-tabs.is-compact .hr-tab-in { padding-inline: 10px; }
  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 { border-radius: 14px; }
  body .hr-ai { color: var(--ag-blue); background: #fff; border-color: var(--ag-line); }
  body .hr-shortcut { border-color: var(--ag-line); background: #fff; color: var(--ag-ink); }
}
