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

   In the style of tripadvisor.com: everything white and black, no picture. A
   white header with black links; a very large black heading in the middle;
   the module tabs as plain black words (a black line under the chosen one);
   the search as a white box with a thin dark border, round fields and the
   bright green Search button with black text. 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 {
  --ta-green: #34e0a1;       /* the Search button */
  --ta-green-dark: #00aa6c;
  --ta-ink: #000;
  --ta-text: #333;
  --ta-line: #e0e0e0;
}

/* ------------------------------------------------------------ HEADER
   White on every page, black logo colours as they are, black bold links. */
body .site-header,
body .site-header.is-scrolled,
body .site-header.is-overlay:not(.is-scrolled):not(.is-open) {
  background: #fff !important;
  color: var(--ta-ink);
  border-bottom: 0;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  --hd-fill: transparent;
  --hd-fill-hover: #f2f2f2;
  --hd-line: transparent;
}
body .site-header.is-scrolled { box-shadow: 0 1px 0 var(--ta-line); }
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(--ta-ink); font-size: 16px; font-weight: 700; }
body .site-header .hd-link:hover,
body .site-header .hd-link[aria-expanded="true"] { background: #f2f2f2; color: var(--ta-ink); border-radius: 999px; }
body .site-header .hd-group,
body .site-header .hd-chip { border-color: transparent; background: transparent; font-weight: 700; }
body .site-header .hd-chip:hover,
body .site-header .hd-group .hd-chip:hover { background: #f2f2f2; }
body .site-header .btn { border-radius: 999px; font-weight: 700; background-color: #000 !important; border-color: #000 !important; color: #fff !important; }
body .site-header .btn:hover { background-color: #333 !important; }

/* ------------------------------------------------------------ HERO / BACKGROUND
   White, no picture. */
body .hr-bg, body .hr-shade, body .hr-curve { display: none !important; }
body .hr { min-height: 0; background: #fff; }
body .hr { padding-top: calc(var(--header-height, 64px) + 8px); padding-bottom: 32px; }
@media (min-width: 768px) {
  body .hr { padding-top: calc(var(--header-height, 64px) + 64px); padding-bottom: 40px; }
}
body .hr-loader > span { background: rgba(0, 0, 0, .6); }

/* ------------------------------------------------------------ HERO / HEADING
   Very large, very bold, black, in the middle; no second line, no badges. */
body .hr-head { align-items: center; text-align: center; margin-bottom: 36px; }
body .hr-title {
  max-width: 1000px; color: var(--ta-ink); text-shadow: none; text-transform: none;
  font-size: clamp(34px, 4.6vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
}
body .hr-sub { display: none; }
body .hr-badges { display: none; }

/* ------------------------------------------------------------ HERO / TABS
   Plain black words with icons, a black line under the chosen one. */
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: 48px; justify-content: center; align-items: center; gap: 12px; margin-bottom: 16px; }
body .hr-tabs-row:has(.hr-tabs.is-compact) { --hr-tab-h: 48px; }
body .hr-tab-ind { display: none; }
body .hr-tabs { gap: 4px; align-items: center; }
body .hr-tab,
body .hr-tabs.is-compact .hr-tab {
  width: auto; height: 48px; padding: 0;
  border: 0; border-radius: 0; background: transparent; color: var(--ta-ink); box-shadow: none;
}
body .hr-tab-in,
body .hr-tabs.is-compact .hr-tab-in { position: relative; flex-direction: row; gap: 8px; padding: 0 14px; border-radius: 999px; }
body .hr-tab-in::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; 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: 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: 16px; font-weight: 700; line-height: 22px; text-shadow: none; }
body .hr-tab:not(.is-active):hover .hr-tab-in { background: #f2f2f2; }
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(--ta-ink); background: transparent; }
body .hr-tab.is-active .hr-tab-in::after { background: var(--ta-ink); }
body .hr-tab:focus-visible .hr-tab-in { box-shadow: 0 0 0 2px var(--ta-ink); }
body .hr-tabs-bar::before { background: var(--ta-line); }
body .hr-tabs-bar i { background: var(--ta-ink); box-shadow: none; }
@media (min-width: 768px) {
  body .hr-tabs-box.has-more .hr-tabs-bar { display: none; }
}

/* the AI Trip Planner: the green-glow pill, as "Plan with AI" */
body .hr-ai {
  height: 46px; margin-bottom: 0; padding: 0 18px; gap: 8px;
  border: 1px solid var(--ta-line); border-radius: 999px; background: #fff; color: var(--ta-ink);
  box-shadow: 0 0 14px rgba(52, 224, 161, .55);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-size: 16px; font-weight: 700;
}
body .hr-ai:hover { box-shadow: 0 0 18px rgba(52, 224, 161, .8); }
body .hr-ai.is-active { border-color: var(--ta-ink); }
body .hr-ai .hr-ai-icon { width: 22px; height: 22px; background: none; box-shadow: none; color: var(--ta-ink); }
body .hr-ai .hr-ai-icon .material-symbols-outlined { font-size: 22px !important; }
body .hr-ai-shine, body .hr-ai-arrow { display: none; }

/* ------------------------------------------------------------ HERO / SEARCH CARD
   White with a thin dark border and a soft shadow; round fields; the green
   Search button with black text. */
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: 32px; }
body .hr-card { color: var(--ta-ink); border: 1px solid #b8b8b8; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
body .hr-panel { padding: 20px 24px; }
body .hr-panel-ai { padding: 0; }
body .hr-card .search-btn { border-radius: 999px; font-weight: 700; color: #000 !important; }
body .hr-card .search-btn * { color: #000 !important; }
body .hr-card .swap-btn { color: var(--ta-ink); }
body .hr-panel .field-box,
body .hr-panel .input,
body .hr-panel select,
body .hr-panel input:not([type="checkbox"]):not([type="radio"]),
body .hr-panel .segmented,
body .hr-panel .segmented-item,
body .hr-panel [class*="h-[67px]"][class*="border"],
body .hr-panel [class*="h-[42px]"][class*="border"] { border-radius: 999px !important; }
body .hr-panel .segmented-item.is-active { color: var(--ta-ink) !important; }

/* ------------------------------------------------------------ HERO / SHORTCUTS */
body .hr-shortcuts {
  border: 1px solid var(--ta-line); background: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
body .hr-shortcut { color: var(--ta-ink); text-shadow: none; font-weight: 700; }
body .hr-shortcut + .hr-shortcut::before { background: var(--ta-line); }
body .hr-shortcut-badge { background: #e8fbf3; color: var(--ta-green-dark); box-shadow: none; }
body .hr-shortcut:hover { background: #f2f2f2; }
body .hr-shortcut:hover .hr-shortcut-badge { background: var(--ta-green); color: #000; }
body .hr-shortcut:focus-visible { box-shadow: 0 0 0 2px var(--ta-ink); }

/* ------------------------------------------------------------ PHONES */
@media (max-width: 767px) {
  body .hr-tabs-row { flex-direction: column; align-items: stretch; gap: 10px; }
  body .hr-ai { align-self: center; height: 42px; }
  body .hr-panel { padding: 16px; }
  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: 24px; }
}
@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(--ta-ink); font-size: 30px; }
  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(--ta-ink); }
  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-ai { color: var(--ta-ink); background: #fff; border-color: var(--ta-line); }
  body .hr-shortcut { border-color: var(--ta-line); background: #fff; color: var(--ta-ink); }
}
