/*
 * Travel Platform brand override.
 * Loaded after the GoTrip theme's main.css. The theme drives its primary colour
 * through the `--color-blue-1` custom property, so re-pointing it recolours the
 * whole UI (buttons, links, accents) to the Travel Platform teal palette.
 */
:root {
  --color-blue-1: #22bfc8;

  --bs-primary-rgb: 34, 191, 200;
  --bs-primary-50: #e3f8f9;
  --bs-primary-100: #c7f1f3;
  --bs-primary-200: #8fe4e7;
  --bs-primary-300: #57d6db;
  --bs-primary-400: #2fc9cf;
  --bs-primary-500: #22bfc8;
  --bs-primary-600: #1eaab3;
  --bs-primary-700: #1a959e;
  --bs-primary-800: #178089;
  --bs-primary-900: #136b74;
  --bs-body-color: #212927;
  --bs-form-control-bg: #fff;
  --bs-primary-green: #0b7d82;
  --bs-primary-gray: #383838;
}

/* Keep hover/darker accents inside the teal family. */
.button.-dark-1 {
  background-color: var(--bs-primary-600);
  border-color: var(--bs-primary-600);
}
.button.-dark-1:hover {
  background-color: var(--bs-primary-700);
  border-color: var(--bs-primary-700);
}

body {
  color: var(--bs-body-color);
  /* Sticky footer: keep the footer pinned to the bottom even on short pages. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}
.footer {
  flex-shrink: 0;
}

/* Brand wordmark sizing in the header. */
.header-logo img {
  height: 44px;
  width: auto;
}

/*
 * The vendored theme ships no width utility, so `w-100` (used on full-width buttons /
 * inputs on mobile) was a no-op — the Search button never filled its column. Define it.
 */
.w-100 { width: 100% !important; }

/* The theme ships h-50/h-60 only; the floating-label .form-input is 70px tall, so a button
   sitting next to one needs h-70 to line up. */
.h-70 { height: 70px !important; }

/* The theme ships no height-percentage utility (only w-100 above), so `h-100` on hotel-card
   wrappers was a no-op — cards in the same grid row didn't stretch to equal height. Define it. */
.h-100 { height: 100% !important; }

/* Comfortable tap targets + no overflow for form controls on small screens. */
.form-control { max-width: 100%; }
@media (max-width: 767px) {
  /* Buttons that opt into full width on mobile via .w-100 already stretch; ensure the
     hero search + filter controls never spill past the viewport. */
  .dest-suggest { max-height: 260px; }
}

/*
 * Footer: the theme's bg-dark-3 is a navy blue. Use a neutral dark charcoal with a
 * subtle teal tint so it complements the brand instead of reading as blue.
 */
.footer--tp {
  background-color: #1d2a2b;
}
.footer--tp .text-white-80 { color: rgba(255, 255, 255, 0.80); }
.footer--tp .text-white-60 { color: rgba(255, 255, 255, 0.60); }

/* Lightweight loading spinner (async rooms / lists). */
.tp-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--bs-primary-100, #c7f1f3);
  border-top-color: var(--color-blue-1);
  border-radius: 50%;
  animation: tp-spin 0.8s linear infinite;
}
@keyframes tp-spin { to { transform: rotate(360deg); } }

/* Inline spinner shown after the first click on a data-tp-loading control (login / reserve /
   view-details / checkout) to block double submits. Uses currentColor so it works on any button. */
/* noUiSlider price handles: the theme shrank the handle to 20px but kept noUiSlider's default
   -17px offset (half of the original 34px), so the bullets sat ~7px off the rail end. Offset by
   half the real width so each handle centres on its value / the connect-bar ends. */
.noUi-horizontal .noUi-handle { right: -10px; left: auto; }

.button.is-loading, a.is-loading { pointer-events: none; opacity: .9; cursor: default; }
.tp-btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  vertical-align: -3px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tp-spin 0.7s linear infinite;
}

/* Home hero: extra room below the search form so the date / guests dropdowns open without
   overlapping the footer (their popovers are ~340px tall). */
.masthead.-type-1 {
  padding-bottom: 380px;
}
@media (max-width: 991px) {
  .masthead.-type-1 {
    padding-bottom: 380px;
  }
}

/* Softer overlay over the Rio hero photo: dark enough for white text + the search card,
   light enough to keep the city/bay visible. Overrides the theme's heavier left gradient. */
.masthead.-type-1 .masthead__bg::after {
  background: linear-gradient(180deg, rgba(5, 16, 54, 0.50) 0%, rgba(5, 16, 54, 0.66) 100%);
  opacity: 1;
}

/* Range date-picker (tp-calendar.js) — theme-styled popover calendar. */
.tp-cal { position: relative; }
.tp-cal__display { cursor: pointer; background: #fff; }
.tp-cal__pop {
  display: none;
  position: absolute;
  z-index: 40;
  top: 100%;
  left: 0;
  margin-top: 6px;
  width: 320px;
  max-width: 92vw;
  padding: 18px;
  background: #fff;
  border: 1px solid #e3eaea;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.tp-cal.is-open .tp-cal__pop { display: block; }
.tp-cal__row--wd, .tp-cal__days { display: grid; grid-template-columns: repeat(7, 1fr); }
.tp-cal__wd { text-align: center; padding: 6px 0; }
.tp-cal__cell {
  text-align: center;
  line-height: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}
.tp-cal__cell--empty { cursor: default; }
.tp-cal__cell:not(.tp-cal__cell--empty):not(.is-disabled):hover { background: var(--bs-primary-50, #e3f8f9); }
.tp-cal__cell.is-disabled { color: #c7cfce; cursor: not-allowed; }
.tp-cal__cell.is-in-range { background: var(--bs-primary-50, #e3f8f9); border-radius: 0; }
.tp-cal__cell.-is-active { background: var(--color-blue-1, #22bfc8); color: #fff; }

/* Theme-styled select dropdown (tp-dropdown.js). */
.tp-dd { position: relative; }
.tp-dd__btn { cursor: pointer; background: #fff; text-align: left; }
.tp-dd__menu {
  display: none;
  position: absolute;
  z-index: 40;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e3eaea;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}
.tp-dd.is-open .tp-dd__menu { display: block; }
.tp-dd__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: none;
  border: 0;
  font-size: 14px;
  cursor: pointer;
}
.tp-dd__item:hover { background: var(--bs-primary-50, #e3f8f9); }
.tp-dd__item.is-active { color: var(--color-blue-1, #22bfc8); font-weight: 500; }

/* Guests selector (tp-guests.js) — theme-styled popover with +/- counters. */
.tp-guests { position: relative; }
.tp-guests__display { cursor: pointer; background: #fff; }
.tp-guests__pop {
  display: none;
  position: absolute;
  z-index: 40;
  top: 100%;
  left: 0;
  margin-top: 6px;
  width: 300px;
  max-width: 92vw;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.tp-guests.is-open .tp-guests__pop { display: block; }

/* Maintenance snackbar (API unreachable). Uses the brand teal + Jost via the theme body font. */
.tp-snackbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 200%);
  z-index: 1000;
  display: flex;
  align-items: center;
  max-width: 92vw;
  padding: 14px 22px;
  border-radius: 8px;
  background: #1d2a2b;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: transform .35s cubic-bezier(.165,.84,.44,1), opacity .35s;
  pointer-events: none;
}
.tp-snackbar.is-shown {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Destination autocomplete. */
.dest-autocomplete {
  position: relative;
}
.dest-suggest {
  display: none;
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e3eaea;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
  max-height: 320px;
  overflow-y: auto;
}
.dest-suggest__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}
.dest-suggest__item:hover {
  background: var(--bs-primary-50, #e3f8f9);
}
.dest-suggest__kind {
  font-size: 12px;
  color: #8a969b;
  text-transform: uppercase;
  letter-spacing: .3px;
}
/* Group header separating Destinations from Hotels in the autocomplete list. */
.dest-suggest__group {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #8a969b;
}
.dest-suggest__group:not(:first-child) {
  border-top: 1px solid #eef1f2;
  margin-top: 4px;
}

/* ---------------------------------------------------------------------------
   Results map (Google Maps + clustering). Collapsible; the canvas hides while
   collapsed. The info window shows a compact hotel card.
   --------------------------------------------------------------------------- */
.tp-map__canvas {
  width: 100%;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
}
.tp-map.is-collapsed .tp-map__canvas { display: none; }

/* Info window: a compact vertical hotel card. Full-bleed image on top, then body. */
.tp-map-info { width: 216px; max-width: 216px; }
.tp-map-info__media { margin: 0; line-height: 0; }
.tp-map-info__img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  display: block;
}
.tp-map-info__body { padding: 10px 12px 12px; }
.tp-map-info__stars { color: #f6b100; font-size: 12px; line-height: 1; letter-spacing: 1px; margin-bottom: 4px; }
.tp-map-info__name { font-weight: 600; font-size: 14px; color: #212927; line-height: 1.3; }
.tp-map-info__price { font-size: 13px; margin-top: 6px; color: #212927; }
.tp-map-info__link {
  display: inline-block;
  margin-top: 8px;
  color: var(--color-blue-1, #22bfc8);
  font-size: 13px;
  font-weight: 600;
}

/* Strip Google's default InfoWindow chrome so the card sits edge-to-edge — removes the empty gap
   above the title and the scrollbar. The close button becomes a floating white pill over the image. */
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 28px rgba(16, 42, 43, 0.22) !important;
  overflow: hidden !important;
}
.gm-style .gm-style-iw-d { overflow: hidden !important; padding: 0 !important; max-height: none !important; }
.gm-style .gm-style-iw-c button.gm-ui-hover-effect {
  top: 4px !important;
  right: 4px !important;
  width: 26px !important;
  height: 26px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.gm-style .gm-style-iw-c button.gm-ui-hover-effect > span { margin: 6px !important; }

/* ---------------------------------------------------------------------------
   Minimum-rating star picker (results sidebar). A row of 5 star icons; the ones
   at or below the chosen rating fill gold. Clearer than numeric pills.
   --------------------------------------------------------------------------- */
.tp-stars__btn {
  background: none;
  border: 0;
  padding: 3px;
  margin: 0;
  cursor: pointer;
  line-height: 1;
}
.tp-stars__btn .icon-star { font-size: 22px; color: #dfe5e4; transition: color 0.12s ease, transform 0.12s ease; display: block; }
.tp-stars__btn.is-on .icon-star { color: #f6b100; }
.tp-stars__btn:hover .icon-star { transform: scale(1.08); }
.tp-stars__btn:focus-visible { outline: 2px solid var(--color-blue-1); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------------------
   Search-result hotel card: the whole card routes to the detail page — image,
   title and the View-details button are all links. Hover lifts + zooms the photo.
   --------------------------------------------------------------------------- */
.tp-hotel-card { transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.tp-hotel-card:hover { box-shadow: 0 6px 22px rgba(16, 42, 43, 0.10); border-color: #d7dedd; }
.tp-hotel-card__media { position: relative; }
.tp-hotel-card__media img { transition: transform 0.3s ease; }
.tp-hotel-card:hover .tp-hotel-card__media img { transform: scale(1.05); }
.tp-hotel-card__title { color: #212927; transition: color 0.12s ease; }
.tp-hotel-card__title:hover { color: var(--color-blue-1); }

/* ---------------------------------------------------------------------------
   Back / breadcrumb navigation chips (checkout, etc). The old faint teal text
   links were too easy to miss; these are larger charcoal chips (footer tone).
   --------------------------------------------------------------------------- */
.tp-backlink {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: #1d2a2b;
  padding: 9px 16px;
  border: 1px solid #d7dedd;
  border-radius: 8px;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tp-backlink:hover { background: #f2f6f6; border-color: #1d2a2b; color: #1d2a2b; }
.tp-backlink i { color: var(--color-blue-1); }

/* Outline "cancel" button — used in My reservations while free cancellation is open. */
.tp-btn-cancel {
  border: 1px solid #e3908b;
  color: #cf3b32;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tp-btn-cancel:hover { background: #fdeceb; border-color: #cf3b32; color: #cf3b32; }

/* ---------------------------------------------------------------------------
   Reservation status pill + reservation-card layout (My reservations + Confirmation).
   The pill reads at a glance and colour-codes the state; the card footer keeps the
   total and the actions on one line on desktop and stacks them full-width on phones.
   --------------------------------------------------------------------------- */
.tp-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.tp-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tp-status--confirmed { background: #e6f6ef; color: #128a5a; }
.tp-status--processing { background: #eaf0fb; color: #2b5bd7; }
.tp-status--cancelled { background: #eef1f1; color: #5f6b6b; }
.tp-status--failed { background: #fdecec; color: #cf3b32; }

/* Real flex gap for rows of styled buttons. The theme's x-gap-* puts its padding INSIDE each
   .button (the styled element is the direct child), so adjacent borders touch — this keeps them apart. */
.tp-btn-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
@media (max-width: 479px) { .tp-btn-row .button { width: 100%; } }

/* Light red circle behind the failed-booking icon (mirrors the theme's bg-blue-1-05 / bg-green-1 tints). */
.bg-red-1-05 { background-color: rgba(207, 59, 50, 0.08); }

/* Main-search "additional parameters": collapsible quick pre-filters (stars / meals / free cancellation),
   RateHawk-style. Pill toggles feed hidden stars/meals inputs that seed the results sidebar. */
/* The toggle is a clear pill so guests notice the extra options (was a bare text link). */
.tp-adv-toggle {
  display: inline-flex; align-items: center; cursor: pointer;
  border: 1px solid #d5dcdc; background: #f7f9f9; border-radius: 999px;
  padding: 9px 20px; font-size: 14px; font-weight: 500; color: var(--color-blue-1, #22bfc8);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tp-adv-toggle:hover { background: #eef4f4; border-color: var(--color-blue-1, #22bfc8); }
.tp-adv-toggle .icon-plus { transition: transform 0.2s ease; }
.tp-adv-toggle[aria-expanded="true"] .icon-plus { transform: rotate(45deg); }
.tp-adv-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding-bottom: 8px; }
.tp-adv-check span { white-space: nowrap; }
/* Group titles sit clearly above their pills (not touching); groups spaced generously. */
.tp-adv__label { font-size: 13px; font-weight: 500; color: #7a8686; margin-bottom: 14px; }
/* Shown inline (no toggle): stars | meal plan | free cancellation, bottom-aligned on one row. */
.tp-adv__grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 48px; }

/* ── Unified checkbox ────────────────────────────────────────────────────────────────────────────
   Every plain checkbox renders as the same teal box the results filters use (.form-checkbox mark), so
   the search bar's "Free cancellation" and every facet match. .form-checkbox keeps its own invisible
   full-size input + separate mark (reset below at higher specificity), so it stays untouched. */
input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  flex: 0 0 auto;
  width: 16px; height: 16px; margin: 0;
  border: 1px solid var(--color-dark-1, #051036);
  border-radius: 4px; background: #fff;
  position: relative; cursor: pointer; vertical-align: middle;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
input[type="checkbox"]:checked {
  background-color: var(--color-blue-1, #22bfc8);
  border-color: var(--color-blue-1, #22bfc8);
}
input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(34, 191, 200, 0.25); }
.form-checkbox input[type="checkbox"] {
  width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0;
  background: none; position: absolute; opacity: 0;
}
.form-checkbox input[type="checkbox"]::after { content: none; }
/* Big, centered primary CTA on its own line; full-width on phones. */
.tp-search-btn { min-width: 340px; padding-left: 50px; padding-right: 50px; }
@media (max-width: 575px) { .tp-search-btn { width: 100%; min-width: 0; } }
.tp-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-pill {
  border: 1px solid #dfe4e4; background: #fff; border-radius: 999px;
  padding: 8px 18px; font-size: 13px; font-weight: 500; color: #4a5654;
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tp-pill:hover { border-color: var(--color-blue-1, #22bfc8); color: var(--color-blue-1, #22bfc8); }
.tp-pill.is-active { background: var(--color-blue-1, #22bfc8); border-color: var(--color-blue-1, #22bfc8); color: #fff; }
/* Star glyph inside a rating pill — spaced off the number (no "3★") and gold, turning white when active. */
.tp-pill__star { color: #f6b100; font-size: 11px; margin: 0 3px 0 5px; }
.tp-pill.is-active .tp-pill__star { color: #fff; }

.tp-resv-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.tp-resv-actions .button { white-space: nowrap; }
.tp-resv-actions form { margin: 0; }

@media (max-width: 575px) {
  /* Stack the footer: total on its own line, actions full-width and easy to tap. */
  .tp-resv-foot { flex-direction: column; align-items: stretch !important; }
  .tp-resv-actions { width: 100%; flex-direction: column; }
  .tp-resv-actions .button, .tp-resv-actions form { width: 100%; }
}

/* ---------------------------------------------------------------------------
   Destination picker modal (main search). Full-screen on mobile, centered card
   on desktop. Searches cities + hotels and fills the hidden scope inputs.
   --------------------------------------------------------------------------- */
.tp-dest-trigger { cursor: pointer; background: #fff; }

/* ---------------------------------------------------------------------------
   Mobile filter drawer: the results sidebar is inline on lg+, and a slide-in
   drawer (opened by a "Filters" button) below lg, so the long facet list doesn't
   push the results far down on phones.
   --------------------------------------------------------------------------- */
.tp-filters-toggle { display: none; }
.tp-filters__head, .tp-filters__foot { display: none; }
.tp-filters-backdrop { display: none; }
@media (max-width: 991px) {
  .tp-filters-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .tp-filters {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 6000;
    width: 90%; max-width: 380px; background: #fff; overflow-y: auto;
    transform: translateX(-100%); transition: transform 0.25s ease;
    padding: 16px 16px 24px !important; box-shadow: 0 0 40px rgba(16, 42, 43, 0.25);
  }
  .tp-filters.is-open { transform: none; }
  .tp-filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; padding-bottom: 12px; border-bottom: 1px solid #eef2f2; }
  .tp-filters__close { border: 0; background: #f4f7f7; width: 38px; height: 38px; border-radius: 8px; cursor: pointer; color: #4a5654; }
  .tp-filters__close:hover { background: #e7eeee; }
  .tp-filters__foot { display: block; margin-top: 24px; }
  .tp-filters-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 5999; background: rgba(16, 42, 43, 0.5); }
  body.tp-filters-open { overflow: hidden; }
}

/* Nationality select in the main search bar — borderless to match the other fields, native arrow kept. */
.tp-nat-select {
  border: 0;
  background: transparent;
  padding: 0;
  height: auto;
  min-height: 26px;
  font-size: 16px;
  color: #212927;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
}
.tp-nat-select:focus { outline: none; }
body.tp-modal-open { overflow: hidden; }
.tp-destmodal { position: fixed; inset: 0; z-index: 6000; display: flex; align-items: center; justify-content: center; }
.tp-destmodal[hidden] { display: none; }
.tp-destmodal__backdrop { position: absolute; inset: 0; background: rgba(16, 42, 43, 0.55); }
.tp-destmodal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(16, 42, 43, 0.30);
  display: flex;
  flex-direction: column;
  max-height: 82vh;
  overflow: hidden;
  animation: tp-modal-in 0.18s ease;
}
@keyframes tp-modal-in { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }
.tp-destmodal__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #eef2f2; }
.tp-destmodal__search { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; background: #f4f7f7; border-radius: 8px; padding: 0 14px; height: 48px; }
.tp-destmodal__input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-size: 16px; outline: none; color: #212927; }
.tp-destmodal__close { flex: 0 0 auto; width: 40px; height: 40px; border: 0; background: #f4f7f7; border-radius: 8px; color: #4a5654; cursor: pointer; }
.tp-destmodal__close:hover { background: #e7eeee; }
.tp-destmodal__results { overflow-y: auto; padding: 8px; }
.tp-destmodal__hint { padding: 26px 16px; text-align: center; color: #8a9694; font-size: 14px; }
.tp-destmodal__group { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #8a9694; padding: 12px 12px 6px; }
.tp-destmodal__item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; padding: 11px 12px; border-radius: 8px; cursor: pointer; }
.tp-destmodal__item:hover { background: #f2f6f6; }
.tp-destmodal__icon { color: var(--color-blue-1); font-size: 16px; flex: 0 0 auto; }
.tp-destmodal__text { display: flex; flex-direction: column; min-width: 0; }
.tp-destmodal__name { font-size: 15px; color: #212927; font-weight: 500; }
.tp-destmodal__meta { font-size: 12.5px; color: #8a9694; }
/* Mobile-first: the picker is a bottom sheet that slides up from the bottom edge. */
@media (max-width: 767px) {
  .tp-destmodal { align-items: flex-end; }
  .tp-destmodal__panel {
    margin: 0;
    max-width: none;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    animation: tp-sheet-up 0.24s ease;
  }
  /* Grab handle. */
  .tp-destmodal__panel::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #d7dedd;
    margin: 8px auto 2px;
    flex: 0 0 auto;
  }
}
@keyframes tp-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------------------------------------------------------------------------
   Hotel gallery (detail page): a hero with a 2×2 thumbnail grid whose total
   height matches the hero. Images are absolutely positioned so the side grid
   stretches to the hero's height instead of being driven by image dimensions.
   --------------------------------------------------------------------------- */
.tp-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}
/* With no side thumbnails, cap the hero so it stays roughly the size it would be alongside the
   2x2 grid (~the 2fr column width) instead of stretching across the whole row. */
.tp-gallery--single { grid-template-columns: 1fr; max-width: 860px; }
.tp-gallery__main,
.tp-gallery__cell {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: #eef1f1;
  border-radius: 12px;
  overflow: hidden;
}
.tp-gallery__main,
.tp-gallery__cell:not(.tp-gallery__cell--empty) { cursor: pointer; }
.tp-gallery__main { aspect-ratio: 16 / 10; }
.tp-gallery__main img,
.tp-gallery__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.tp-gallery__main:hover img,
.tp-gallery__cell:hover img { transform: scale(1.05); }
.tp-gallery__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.tp-gallery__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 16, 54, .5);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  pointer-events: none;
}
@media (max-width: 767px) {
  .tp-gallery { grid-template-columns: 1fr; }
  .tp-gallery__side { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; }
  .tp-gallery__cell { aspect-ratio: 1 / 1; }
}

/* Fullscreen image lightbox (hotel gallery). */
.tp-lb { position: fixed; inset: 0; z-index: 2000; display: none; }
.tp-lb.is-open { display: block; }
.tp-lb__backdrop { position: absolute; inset: 0; background: rgba(5, 16, 54, .92); }
.tp-lb__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 84px;
}
.tp-lb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .5);
}
.tp-lb__count {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 2;
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  letter-spacing: .3px;
}
.tp-lb__close {
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.tp-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.tp-lb__nav:hover { background: rgba(255, 255, 255, .24); }
.tp-lb__nav--prev { left: 18px; }
.tp-lb__nav--next { right: 18px; }
.tp-lb--single .tp-lb__nav { display: none; }
@media (max-width: 767px) {
  .tp-lb__stage { padding: 64px 12px; }
  .tp-lb__nav { width: 44px; height: 44px; font-size: 28px; }
  .tp-lb__nav--prev { left: 6px; }
  .tp-lb__nav--next { right: 6px; }
}

/* Available rooms: Booking.com-style rows with full rate detail + a quantity selector.
   The buy column (rooms → price → reserve) stays to the right of the content down to phones. */
.tp-rooms { display: flex; flex-direction: column; gap: 16px; }
/* Rooms grouped by room type: a header (photo, bed, capacity, facilities) and that type's rates underneath. */
.tp-roomgroup { overflow: hidden; background: #fff; }
.tp-roomgroup__head { display: flex; gap: 20px; padding: 20px 24px; background: #f7f8fb; align-items: flex-start; }
.tp-roomgroup__thumb { flex: 0 0 200px; width: 200px; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: #e9ecf3; }
.tp-roomgroup__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-roomgroup__info { min-width: 0; flex: 1; }
.tp-rates { display: flex; flex-direction: column; }
.tp-rate { padding: 18px 24px; border-top: 1px solid #e5e8f0; }
.tp-rate:first-child { border-top: 0; }
.tp-rate__name { margin-bottom: 6px; }
@media (max-width: 575px) {
  .tp-roomgroup__head { flex-direction: column; padding: 16px; }
  .tp-roomgroup__thumb { flex-basis: auto; width: 100%; }
  .tp-rate { padding: 16px; }
}
/* Summary + quick filters above the available rooms. */
.tp-rooms-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.tp-rooms-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-rooms-filter {
  height: 36px; padding: 0 14px; border-radius: 100px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--tp-border, #dddddd); background: #fff; color: #05073c; cursor: pointer;
}
.tp-rooms-filter:hover { border-color: #3554d1; }
.tp-room__buy .text-red-1 { color: #d93025; }
[data-room-card].is-gone { opacity: .65; }
.tp-rooms-filter.is-active { background: #3554d1; border-color: #3554d1; color: #fff; }
.tp-room {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 18px 28px;
  align-items: start;
}
.tp-room__info { display: flex; gap: 18px; min-width: 0; align-items: flex-start; }
/* Media column: a squarer (4:3) photo top-aligned with the room name, with the rate terms beneath. */
.tp-room__media { width: 180px; flex-shrink: 0; }
.tp-room__thumb { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #eef1f1; }
.tp-room__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-room__details { flex: 1; min-width: 0; }
.tp-room__name { line-height: 1.3; }

.tp-room__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; }
.tp-fact { display: inline-flex; align-items: center; font-size: 14px; color: #5a6672; }
.tp-fact i { margin-right: 8px; }

/* Auth pages (login): the Rio hero photo as a full-bleed background with a dark overlay so the
   white card stays readable — same image as the home masthead. */
.tp-auth { position: relative; background-color: #0b1f33; }
.tp-auth::before {
  content: ""; position: absolute; inset: 0;
  background: url("/img/masthead/rio.jpg") center / cover no-repeat;
}
.tp-auth::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 16, 54, .55) 0%, rgba(5, 16, 54, .72) 100%);
}
.tp-auth > .container { position: relative; z-index: 1; }

/* Inline alert component (booking confirmation / error / warning / info messaging). */
.tp-alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: 8px; border: 1px solid transparent; margin-bottom: 20px; }
.tp-alert__icon { font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.tp-alert__body { min-width: 0; }
.tp-alert__title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.tp-alert__msg { font-size: 14px; line-height: 1.45; }
.tp-alert--error { color: #a32130; background: #fdecee; border-color: #f7c9ce; }
.tp-alert--warning { color: #8a5a00; background: #fff6e6; border-color: #ffe0a3; }
.tp-alert--success { color: #157347; background: #e8f6ee; border-color: #bfe6cd; }
.tp-alert--info { color: #1a5f9e; background: #eaf2fc; border-color: #c4ddf7; }

/* Board (meal plan) headline: bold, no icon, flush to the left. Green when a meal is included. */
.tp-room__board { font-weight: 600; font-size: 13px; line-height: 1.35; margin-top: 12px; }
.tp-room__board--ok { color: #157347; }
.tp-room__board--muted { color: #4a5560; }

/* Rate terms (cancellation, payment, late-cancellation fee): compact icon+text lines stacked under
   the board. flex-start + a small top offset keeps the icon aligned with wrapped text. */
.tp-room__terms { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.tp-room__term { display: flex; align-items: flex-start; font-size: 13px; line-height: 1.35; }
.tp-room__term i { margin-right: 8px; margin-top: 2px; flex-shrink: 0; }
.tp-room__term span { min-width: 0; }
/* Aligns icon-less term lines (e.g. "Room only") with the iconned ones above/below. */
.tp-room__term-spacer { display: inline-block; width: 21px; flex-shrink: 0; }
.tp-room__term--ok { color: #157347; }
.tp-room__term--muted { color: #6b7785; }
.tp-room__term--info { color: var(--bs-primary-700, #1a959e); }

.tp-room__amen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tp-chip { font-size: 12px; color: #4a5560; background: #f5f7f8; border: 1px solid #eef1f1; border-radius: 20px; padding: 4px 11px; }
.tp-chip--more { color: var(--color-blue-1, #22bfc8); background: transparent; border-color: transparent; font-weight: 500; padding-left: 4px; }

.tp-room__tax { display: flex; align-items: flex-start; margin-top: 12px; }
.tp-room__tax i { margin-right: 8px; margin-top: 2px; flex-shrink: 0; }
/* One tax per line: the lines live in a single flex child so they stack vertically (min-width:0 lets long
   lines wrap instead of overflowing). Mirrors the cart's tax layout. */
.tp-room__tax-lines { min-width: 0; }
.tp-room__tax-lines > div { line-height: 1.5; }
.tp-room__tax-title { font-weight: 700; }

/* Right-hand buy column: rooms → price → reserve, then the urgency cue beneath the button (CTA). */
.tp-room__aside { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.tp-room__buy { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.tp-room__buy .tp-qty-select { width: 100%; }
.tp-room__buy .button { width: 100%; justify-content: center; }
/* Urgency cue reinforces the call to action — centred directly beneath the Reserve button. */
.tp-room__left { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #c0392b; }
.tp-room__left i { margin-right: 6px; }

.tp-room__price { text-align: right; white-space: nowrap; }
.tp-room__price-from { font-size: 13px; color: #8a969b; }
.tp-room__price-amount { font-size: 22px; font-weight: 600; }
.tp-room__pernight { font-size: 13px; color: #8a969b; margin-top: 2px; }
.tp-room__price-note { font-size: 12px; color: #8a969b; margin-top: 2px; }
.tp-room__qty-label { font-size: 12px; color: #8a969b; margin-bottom: 5px; }
.tp-qty-select {
  height: 44px;
  border: 1px solid var(--color-border, #dddddd);
  border-radius: 8px;
  padding: 0 38px 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-dark-1, #051036);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23697488' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}
.tp-qty-select:focus {
  outline: none;
  border-color: var(--color-blue-1, #22bfc8);
  box-shadow: 0 0 0 3px rgba(34, 191, 200, 0.15);
}
/* On phones the buy column drops below, and the photo sits beside its rate terms (a row spanning the
   full width) so the longer cancellation line doesn't crush under a narrow thumbnail. */
@media (max-width: 575px) {
  .tp-room { grid-template-columns: 1fr; }
  .tp-room__info { flex-direction: column; gap: 14px; }
  .tp-room__media { width: 100%; display: flex; gap: 14px; align-items: flex-start; }
  .tp-room__thumb { width: 44%; max-width: 200px; }
  .tp-room__media .tp-room__terms { flex: 1; margin-top: 0; }
}

/* Mobile menu: the theme forces a permanent vertical scrollbar on the open nav list
   (.header-menu.is-menu-active .-is-active { overflow-y: scroll }) even when the few links
   fit, which shows as an empty scroll gutter on the right of the menu. Scroll only when the
   content actually overflows. */
@media (max-width: 1199px) {
  .header .header-menu.is-menu-active .menu__nav.-is-active { overflow-y: auto; }
}

/* Transient toasts (add-to-cart, errors). GoTrip palette; bottom-right, stacked. */
.tp-toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.tp-toast { padding: 12px 16px; border-radius: 8px; color: #fff; font-size: 14px; line-height: 1.4; box-shadow: 0 6px 20px rgba(0,0,0,.18); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.tp-toast.is-shown { opacity: 1; transform: translateY(0); }
.tp-toast--success { background: #157347; }
.tp-toast--error { background: #c0341d; }
.tp-toast--warning { background: #b8860b; }
.tp-toast--info { background: var(--color-blue-1, #3554D1); }
@media (max-width: 575px) { .tp-toast-host { left: 12px; right: 12px; max-width: none; } }

/* Link colour fix. Bootstrap Reboot (vendors.css) hard-codes a{color:#0d6efd} and a:hover{#0a58ca};
   GoTrip only neutralizes the base color (a{color:inherit}), so links turn Bootstrap blue ON HOVER.
   Keep links on the Ada palette: bare links inherit on hover; the .text-* utilities keep their colour
   (the a.text-*:hover selectors outrank Bootstrap's a:hover). Buttons set color !important, so the
   inherit rule never touches them. */
a:hover, a:focus { color: inherit; }
a.text-blue-1:hover, a.text-blue-1:focus { color: var(--color-blue-1); }
a.text-dark-1:hover, a.text-dark-1:focus { color: var(--color-dark-1); }
a.text-light-1:hover, a.text-light-1:focus { color: var(--color-light-1); }
a.text-white:hover, a.text-white:focus { color: #fff; }


/* ── Amenities / generic collapse ──────────────────────────────────────────────────────────────────
   A [data-tp-collapse] block clips to a few rows; its toggle button expands it. Fade hints there's more. */
.tp-collapse { max-height: 176px; overflow: hidden; position: relative; }
.tp-collapse.is-open { max-height: none; }
.tp-collapse:not(.is-open)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none;
}
.tp-collapse-toggle { display: inline-flex; align-items: center; background: none; border: 0; cursor: pointer; padding: 4px 0; }
.tp-collapse-toggle .icon-chevron-down { transition: transform 0.2s ease; }
.tp-collapse-toggle.is-open .icon-chevron-down { transform: rotate(180deg); }

/* Property-info card follows the scroll on desktop; static once the columns stack (< lg). */
@media (min-width: 992px) { .tp-sticky-card { position: sticky; top: 100px; } }

/* Rendered supplier description (About this property): keep light inline formatting tidy. */
.tp-prose em { font-style: italic; }
.tp-prose strong, .tp-prose b { font-weight: 600; }
.tp-prose p { margin: 0 0 12px; }
.tp-prose a { color: var(--color-blue-1, #22bfc8); }

/* Room-type amenity tags — compact, with clear gaps so they never touch. */
.tp-roomtype-tags { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.tp-roomtype-tag {
  font-size: 12px; line-height: 1.5; padding: 3px 10px; border-radius: 6px;
  background: #eef1f1; color: #4a5654; white-space: nowrap;
}
