/* ============================================================
   Travolyo — Hotel pages design system
   Shared across hotels/index, hotels/show, hotels/rooms,
   hotels/checkout, hotels/confirmation.

   Palette matched to travolyob2b's hotel pages (search results,
   hotel detail, checkout) so the two products read as one family:
   brand teal #05a8c7, navy accent #1f3b4d, gold star rating.
   Typography also matched to travolyob2b's own body font (Nunito
   Sans) for these pages specifically — the site-wide font stays
   as-is everywhere else, this @import (same technique travolyob2b
   itself uses for its own fonts) only takes effect within .tvl-page
   and its modals/popups, not the rest of the site.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --tvl-primary:      #05a8c7;
  --tvl-primary-dark: #048aa3;
  --tvl-primary-light: #e6f7fa;
  --tvl-accent:       #1f3b4d;
  --tvl-accent-dark:  #14293650;
  --tvl-ink:          #1f2b33;
  --tvl-muted:        #5f6b76;
  --tvl-muted-light:  #94a3b8;
  --tvl-border:       #e2e8f0;
  --tvl-bg:           #f5f7fb;
  --tvl-star:         #f5b23c;
  --tvl-danger:       #dc2626;
  --tvl-success:      #059669;
  --tvl-amber:        #d97706;
  --tvl-radius-lg:    14px;
  --tvl-radius-md:    10px;
  --tvl-radius-sm:    8px;
  --tvl-shadow-sm:    0 2px 8px rgba(31, 43, 51, .06);
  --tvl-shadow-md:    0 10px 24px rgba(31, 43, 51, .08);
  --tvl-shadow-lg:    0 18px 40px rgba(29, 45, 56, .12);
}

.tvl-page,
.tvl-lightbox,
#roomDetailsModal {
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
}
.tvl-page { background: var(--tvl-bg); min-height: 60vh; }

/* ── Star rating (shared glyph style everywhere) ───────────── */
.tvl-stars { color: var(--tvl-star); letter-spacing: 1px; }
.tvl-stars .bi-star { color: #d8dee8; }

/* ── Badges ─────────────────────────────────────────────────── */
.tvl-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .01em;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
  text-transform: capitalize;
}
.tvl-badge--teal    { background: var(--tvl-primary-light); color: var(--tvl-primary-dark); }
.tvl-badge--success { background: #dcfce7; color: #166534; }
.tvl-badge--danger  { background: #fef2f2; color: #dc2626; }
.tvl-badge--amber   { background: #fef3c7; color: #92400e; }
.tvl-badge--neutral { background: #f1f5f9; color: #475569; }
.tvl-badge--source  { background: rgba(17,34,17,.72); color: #fff; text-transform: none; }

/* ── Buttons ────────────────────────────────────────────────── */
.tvl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--tvl-primary); color: #fff; border: none;
  border-radius: var(--tvl-radius-sm); padding: 10px 22px;
  font-size: .88rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 10px 25px rgba(5, 168, 199, .22);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tvl-btn:hover   { background: var(--tvl-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(5, 168, 199, .28); }
.tvl-btn:active  { transform: scale(.98); }
.tvl-btn:disabled,
.tvl-btn.disabled { opacity: .6; transform: none; box-shadow: none; cursor: default; }
.tvl-btn--outline { background: #fff; color: var(--tvl-primary); border: 1.5px solid var(--tvl-primary); box-shadow: none; }
.tvl-btn--outline:hover { background: var(--tvl-primary-light); color: var(--tvl-primary-dark); box-shadow: none; }
.tvl-btn--navy { background: var(--tvl-accent); box-shadow: none; }
.tvl-btn--navy:hover { background: #14293d; box-shadow: none; }
.tvl-btn--sm { padding: 7px 16px; font-size: .82rem; }

/* ── Generic surface card ──────────────────────────────────── */
.tvl-card {
  background: #fff; border: 1px solid var(--tvl-border);
  border-radius: var(--tvl-radius-lg); box-shadow: var(--tvl-shadow-sm);
}

/* ── Skeleton loading ───────────────────────────────────────── */
.tvl-skeleton {
  background: linear-gradient(90deg, #eef1f6 25%, #e3e7ee 50%, #eef1f6 75%);
  background-size: 200% 100%; animation: tvl-shimmer 1.4s infinite;
  border-radius: var(--tvl-radius-sm);
}
@keyframes tvl-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.tvl-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--tvl-primary-light); border-top-color: var(--tvl-primary);
  animation: tvl-spin .7s linear infinite; margin: 0 auto;
}
@keyframes tvl-spin { to { transform: rotate(360deg); } }

/* ================================================================
   1) SEARCH RESULTS (hotels/index)
   ================================================================ */
.tvl-filters {
  position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto;
  padding: 22px; display: flex; flex-direction: column; gap: 4px;
}
.tvl-filters__head {
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: -22px; background: #fff; margin: -22px -22px 4px; padding: 22px 22px 14px;
  border-bottom: 1px solid var(--tvl-border); z-index: 1;
}
.tvl-filters__title {
  font-size: 1rem; font-weight: 800; color: var(--tvl-ink);
  display: flex; align-items: center; gap: 8px;
}
.tvl-filters__count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 999px; background: var(--tvl-primary); color: #fff;
  font-size: .72rem; font-weight: 800;
}
.tvl-filters__clear {
  display: inline-flex; align-items: center; gap: 5px; background: none; border: none;
  color: var(--tvl-danger); font-size: .8rem; font-weight: 700; padding: 4px 0; cursor: pointer;
}
.tvl-filters__clear:hover { text-decoration: underline; }

/* Collapsible filter groups (<details>/<summary>) — every checkbox/input
   inside keeps its original id/class so the search JS (which only queries
   by those selectors) is unaffected by this being collapsible. */
.tvl-filters__group { border-top: 1px solid var(--tvl-border); padding-top: 16px; margin-top: 16px; }
.tvl-filters__head + .tvl-filters__group { border-top: none; margin-top: 0; }
.tvl-filters__label {
  font-size: .92rem; font-weight: 800; color: var(--tvl-accent);
  display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none;
}
.tvl-filters__label::-webkit-details-marker { display: none; }
.tvl-filters__label i.tvl-filters__icon { color: var(--tvl-primary); font-size: .9rem; width: 16px; text-align: center; }
.tvl-filters__chevron { margin-left: auto; font-size: .75rem; color: var(--tvl-muted-light); transition: transform .15s ease; }
details[open] > .tvl-filters__label .tvl-filters__chevron { transform: rotate(180deg); }
.tvl-filters__body { padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }

/* Mobile "Filters" trigger + full-screen overlay (Booking.com-style).
   Desktop (>=992px, matching col-lg-3) is completely untouched — every rule
   below is scoped to the same breakpoint the sidebar already stacks at. */
.tvl-filters-trigger {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: #fff; border: 1px solid var(--tvl-border); border-radius: var(--tvl-radius-md);
  box-shadow: var(--tvl-shadow-sm, 0 2px 8px rgba(15,30,40,.06));
  padding: 12px 16px; font-weight: 800; font-size: .92rem; color: var(--tvl-ink); cursor: pointer;
}
.tvl-filters-trigger i { color: var(--tvl-primary); }
.tvl-filters-trigger__badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 999px; background: var(--tvl-primary); color: #fff;
  font-size: .72rem; font-weight: 800;
}
.tvl-filters__mobile-close {
  display: none; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--tvl-bg); border: none; color: var(--tvl-ink); font-size: .9rem;
}
.tvl-filters__mobile-footer { display: none; }

@media (max-width: 991.98px) {
  #filters-col { display: none; }
  #filters-col.tvl-filters-mobile-open {
    display: block; position: fixed; inset: 0; z-index: 2000; background: #fff;
    overflow-y: auto; padding: 0; margin: 0; max-width: 100%;
  }
  #filters-col.tvl-filters-mobile-open .tvl-filters {
    position: static; max-height: none; height: 100%; border-radius: 0; box-shadow: none;
    padding: 0 18px 96px; display: flex; flex-direction: column;
  }
  #filters-col.tvl-filters-mobile-open .tvl-filters__head { top: 0; margin: 0 -18px 4px; padding: 18px; }
  .tvl-filters__mobile-close { display: flex; }
  #filters-col.tvl-filters-mobile-open .tvl-filters__mobile-footer {
    display: flex; align-items: center; gap: 14px; position: fixed; left: 0; right: 0; bottom: 0;
    background: #fff; border-top: 1px solid var(--tvl-border); padding: 14px 18px;
    box-shadow: 0 -6px 20px rgba(15,30,40,.08); z-index: 1;
  }
  .tvl-filters__mobile-clear {
    background: none; border: none; font-weight: 800; font-size: .9rem; color: var(--tvl-ink); padding: 12px 0;
  }
  .tvl-filters__mobile-apply {
    flex: 1; background: var(--tvl-primary); color: #fff; border: none; border-radius: var(--tvl-radius-md);
    font-weight: 800; font-size: .92rem; padding: 13px 20px;
  }
  .tvl-filters__mobile-apply:hover { background: var(--tvl-primary-dark); }
}

.tvl-price-range input[type=range] {
  -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--tvl-primary) 100%, #e5e7eb 100%);
}
.tvl-price-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--tvl-primary); cursor: pointer; box-shadow: 0 0 0 4px var(--tvl-primary-light);
}
.tvl-price-range input[type=range]::-moz-range-thumb {
  width: 17px; height: 17px; border-radius: 50%; border: none;
  background: var(--tvl-primary); cursor: pointer; box-shadow: 0 0 0 4px var(--tvl-primary-light);
}

/* Dual-handle price range: two range inputs stacked on the same track.
   Each input's own groove is transparent so only .tvl-dual-range__fill
   paints the track — pointer-events is disabled on the input body and
   re-enabled on just the thumb, so whichever handle you grab responds,
   with no z-index juggling needed. */
.tvl-dual-range { position: relative; height: 17px; display: flex; align-items: center; }
.tvl-dual-range__track {
  position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: #e5e7eb;
}
.tvl-dual-range__fill { position: absolute; top: 0; bottom: 0; height: 4px; border-radius: 2px; background: var(--tvl-primary); }
.tvl-dual-range input[type=range] {
  position: absolute; left: 0; right: 0; width: 100%; height: 17px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; outline: none;
}
.tvl-dual-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%; margin-top: 0;
  background: var(--tvl-primary); cursor: pointer; box-shadow: 0 0 0 4px var(--tvl-primary-light); pointer-events: auto;
}
.tvl-dual-range input[type=range]::-moz-range-thumb {
  width: 17px; height: 17px; border-radius: 50%; border: none;
  background: var(--tvl-primary); cursor: pointer; box-shadow: 0 0 0 4px var(--tvl-primary-light); pointer-events: auto;
}
.tvl-dual-range input[type=range]::-moz-range-track { background: transparent; border: none; }

.tvl-pill {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--tvl-radius-sm);
  cursor: pointer; transition: background .15s; font-size: .87rem; color: #374151;
}
.tvl-pill:hover { background: #f4f7fb; }
.tvl-pill input { accent-color: var(--tvl-primary); width: 15px; height: 15px; }

/* Star-rating chips: a real toggle button, not a checkbox row — the checked
   state is driven by :has() on the hidden native input so no JS class
   bookkeeping is needed beyond the input's own checked state. */
.tvl-star-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tvl-star-chip { cursor: pointer; }
.tvl-star-chip input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.tvl-star-chip span {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px;
  border-radius: 8px; border: 1.5px solid var(--tvl-star); background: #fff;
  color: var(--tvl-ink); font-size: .84rem; font-weight: 700;
  transition: background .15s ease, color .15s ease;
}
.tvl-star-chip span i { color: var(--tvl-star); font-size: .74rem; transition: color .15s ease; }
.tvl-star-chip:hover span { background: #fffaf0; }
.tvl-star-chip:has(input:checked) span { background: var(--tvl-star); color: #fff; }
.tvl-star-chip:has(input:checked) span i { color: #fff; }
/* Live per-option result count, Booking.com-style ("5 ★ 12") */
.tvl-count { font-weight: 700; opacity: .65; font-size: .78em; margin-left: 1px; }
.tvl-star-chip:has(input:checked) .tvl-count { opacity: .9; }

/* Property-type tabs, sitting above the results list rather than buried in
   the sidebar — a segmented control with a live count per type. */
.tvl-type-tabs {
  display: flex; gap: 4px; background: #fff; border: 1px solid var(--tvl-border);
  border-radius: var(--tvl-radius-md); padding: 6px; margin-bottom: 18px;
  box-shadow: var(--tvl-shadow-sm); width: fit-content; max-width: 100%; overflow-x: auto;
}
.tvl-type-tab {
  background: none; border: none; padding: 9px 18px; border-radius: 8px;
  font-size: .85rem; font-weight: 700; color: var(--tvl-muted); white-space: nowrap;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.tvl-type-tab:hover { color: var(--tvl-ink); }
.tvl-type-tab.is-active { background: var(--tvl-primary-light); color: var(--tvl-primary-dark); }
.tvl-type-tab__count { font-weight: 600; opacity: .75; }

.tvl-results-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--tvl-border); padding-bottom: 14px; margin-bottom: 18px;
}
.tvl-results-head h2 { font-size: 1.15rem; font-weight: 800; color: var(--tvl-ink); margin: 0; }
.tvl-results-head p  { font-size: .84rem; color: var(--tvl-muted); margin: 2px 0 0; }

.btn-white { background: #fff; color: var(--tvl-ink); border: 1px solid var(--tvl-border); }
.btn-white:hover { background: #f8fafc; }
.btn-white.active { background: var(--tvl-primary); color: #fff; border-color: var(--tvl-primary); }

.tvl-sort {
  border: 1px solid var(--tvl-border); border-radius: var(--tvl-radius-sm);
  padding: 6px 12px; font-size: .84rem; color: #374151; background: #fff;
}

.tvl-hcard {
  background: #fff; border: 1px solid var(--tvl-border); border-radius: var(--tvl-radius-md);
  box-shadow: var(--tvl-shadow-sm); margin-bottom: 16px; overflow: hidden;
  display: grid; grid-template-columns: 260px 1fr auto;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.tvl-hcard:hover { box-shadow: var(--tvl-shadow-md); border-color: #d7deea; }
.tvl-hcard__media { position: relative; min-height: 190px; overflow: hidden; }
.tvl-hcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tvl-hcard:hover .tvl-hcard__media img { transform: scale(1.05); }
.tvl-hcard__media--empty {
  background: linear-gradient(135deg, #eef2fb, #e4ecf9);
  display: flex; align-items: center; justify-content: center; color: #a7b4cc; font-size: 2.2rem;
}
.tvl-hcard__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tvl-hcard__photo-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.65); color: #fff; text-transform: none; display: inline-flex; align-items: center; gap: 4px; }
.tvl-hcard__body { padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.tvl-hcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tvl-hcard__name { font-size: 1.05rem; font-weight: 700; color: var(--tvl-accent); margin: 0; }
.tvl-hcard__addr { font-size: .8rem; color: var(--tvl-muted); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.tvl-hcard__addr i { color: var(--tvl-primary); }
.tvl-hcard__head > div:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

/* Award-ribbon + score badge, Booking.com-style, anchored top-right of the
   name/address block instead of stacked below it. */
.tvl-hcard__rating-badge { align-items: center; display: flex; flex-shrink: 0; gap: 8px; }
.tvl-hcard__rating-ribbon { color: var(--tvl-primary); font-size: 1.3rem; opacity: .85; }
.tvl-hcard__rating-text { text-align: right; }
.tvl-hcard__rating-text strong { color: var(--tvl-ink); display: block; font-size: .82rem; font-weight: 700; }
.tvl-hcard__rating-text span { color: var(--tvl-muted); font-size: .72rem; }
.tvl-hcard__rating-score {
  background: var(--tvl-accent); color: #fff; font-weight: 800; border-radius: 8px;
  padding: 6px 10px; font-size: 1rem; line-height: 1; display: inline-flex;
  align-items: center; justify-content: center; min-width: 36px;
}

/* Real trust bullets (free cancellation / instant confirmation) — only
   rendered when the offer actually has that data, never invented copy. */
.tvl-hcard__trust { color: var(--tvl-muted); font-size: .8rem; list-style: none; margin: 6px 0 0; padding: 0; }
.tvl-hcard__trust li { align-items: center; display: flex; gap: 6px; margin-top: 3px; }
.tvl-hcard__trust li i { color: var(--tvl-success); }

.tvl-hcard__amenities { font-size: .78rem; color: var(--tvl-muted); margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.tvl-hcard__foot { display: none; } /* price moved into its own column — see .tvl-hcard__pricing */
.tvl-hcard__pricing {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 6px;
  padding: 20px 24px; border-left: 1px solid var(--tvl-border); text-align: right; min-width: 180px;
}
.tvl-hcard__price-label { font-size: .7rem; color: var(--tvl-muted); }
.tvl-hcard__price { font-size: 1.6rem; font-weight: 800; color: var(--tvl-success); line-height: 1.1; white-space: nowrap; }
.tvl-hcard__price-note { font-size: .7rem; color: var(--tvl-muted); font-weight: 500; margin-bottom: 4px; }
.tvl-hcard__select-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  background: var(--tvl-primary); color: #fff; border: none; border-radius: var(--tvl-radius-sm);
  padding: 10px 22px; font-size: .84rem; font-weight: 700;
  transition: background .15s ease, transform .15s ease;
}
.tvl-hcard__select-btn:hover { background: var(--tvl-primary-dark); transform: translateY(-1px); }

@media (max-width: 767.98px) {
  .tvl-hcard { grid-template-columns: 1fr; }
  .tvl-hcard__media, .tvl-hcard__media--empty { width: 100%; min-width: unset; height: 180px; }
  .tvl-hcard__pricing { border-left: none; border-top: 1px solid var(--tvl-border); flex-direction: row; justify-content: space-between; padding: 14px 20px; }
  .tvl-hcard__head { flex-direction: column; }
  .tvl-hcard__rating-badge { align-self: flex-start; }
  .tvl-filters { position: static; }
}

/* ================================================================
   2) HOTEL DETAIL (hotels/show)
   ================================================================ */
.tvl-hero { background: #fff; border-bottom: 1px solid var(--tvl-border); padding: 20px 0 36px; }
.tvl-breadcrumb { font-size: .85rem; margin-bottom: 18px; }
.tvl-breadcrumb a { color: var(--tvl-primary-dark); text-decoration: none; font-weight: 500; }
.tvl-breadcrumb a:hover { text-decoration: underline; }

.tvl-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.tvl-hero__name { font-size: 2rem; font-weight: 800; color: var(--tvl-ink); margin: 0 0 8px; letter-spacing: -.01em; }
.tvl-hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.tvl-hero__loc { font-size: .95rem; color: var(--tvl-muted); display: flex; align-items: center; gap: 6px; margin: 0; }

.tvl-price-box {
  background: var(--tvl-bg); border: 1px solid var(--tvl-border); border-radius: var(--tvl-radius-md);
  padding: 18px 22px; min-width: 230px; text-align: center;
}
.tvl-price-box__label { font-size: .8rem; color: var(--tvl-muted); display: block; margin-bottom: 4px; }
.tvl-price-box__value { font-size: 1.6rem; font-weight: 800; color: var(--tvl-ink); margin-bottom: 14px; }

.tvl-gallery {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 10px; height: 420px;
  border-radius: var(--tvl-radius-lg); overflow: hidden;
}
.tvl-gallery--single { grid-template-columns: 1fr; }
.tvl-gallery__main { position: relative; }
.tvl-gallery__side {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 10px;
  height: 100%; overflow-y: auto; align-content: start; padding-right: 2px;
}
.tvl-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tvl-gallery a:hover img { transform: scale(1.03); }
.tvl-gallery__thumb { position: relative; overflow: hidden; background: #f1f5f9; aspect-ratio: 1 / 1; }
.tvl-gallery__thumb--empty { display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 1.6rem; }
.tvl-gallery__thumb--btn { display: block; width: 100%; border: none; padding: 0; cursor: pointer; }
.tvl-gallery__thumb--btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvl-gallery__more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .55); color: #fff; font-size: .85rem; font-weight: 700;
}
.tvl-gallery__clickable { display: block; width: 100%; height: 100%; border: none; padding: 0; cursor: pointer; }
.tvl-gallery__clickable img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Photo lightbox popup (hero gallery + room photos) ─────── */
.tvl-lightbox .modal-dialog { max-width: 90vw; }
.tvl-lightbox__content {
  background: #000; border: none; border-radius: var(--tvl-radius-lg); overflow: hidden;
  position: relative; min-height: 60vh; display: flex; align-items: center; justify-content: center;
}
.tvl-lightbox__content img { max-width: 100%; max-height: 82vh; object-fit: contain; display: block; margin: 0 auto; }
.tvl-lightbox__close, .tvl-lightbox__nav {
  position: absolute; z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: none;
  border-radius: 50%; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; transition: background .15s;
}
.tvl-lightbox__close:hover, .tvl-lightbox__nav:hover { background: rgba(255,255,255,.25); }
.tvl-lightbox__close { top: 14px; right: 14px; }
.tvl-lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.tvl-lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }
.tvl-lightbox__counter {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
}

.tvl-rcard__photo-count {
  position: absolute; bottom: 6px; right: 6px; background: rgba(15,23,42,.65); color: #fff;
  font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 12px;
}
.js-room-photo { cursor: pointer; }

.tvl-section {
  background: #fff; border: 1px solid rgba(15, 23, 42, .08); border-radius: var(--tvl-radius-lg);
  box-shadow: var(--tvl-shadow-lg); padding: 28px; margin-bottom: 24px;
}
/* Orange/teal left-border section titles — travolyob2b's signature heading style */
.tvl-section__title {
  border-left: 4px solid var(--tvl-primary); padding-left: .7rem;
  font-size: 1.15rem; font-weight: 700; color: var(--tvl-accent); margin: 0 0 18px;
}

/* Two-column detail layout — fixed sidebar width (not a fluid Bootstrap
   column split), matching travolyob2b's .hd-layout grid exactly. */
.tvl-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.75rem; }
@media (max-width: 991.98px) { .tvl-detail-layout { grid-template-columns: 1fr; } }
.tvl-prose { color: #445066; line-height: 1.75; font-size: 1rem; }

.tvl-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tvl-amenity { display: flex; align-items: center; gap: 10px; color: #384457; font-weight: 500; font-size: .92rem; }
.tvl-amenity i { color: var(--tvl-primary); font-size: 1.15rem; }

.tvl-booking-bar { background: var(--tvl-bg); border: 1px solid var(--tvl-border); border-radius: var(--tvl-radius-md); padding: 18px; margin-bottom: 22px; }
.tvl-booking-bar__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 130px; gap: 14px; align-items: flex-end; }
.tvl-booking-bar label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tvl-muted); margin-bottom: 5px; display: block; }
@media (max-width: 767.98px) { .tvl-booking-bar__grid { grid-template-columns: 1fr 1fr; } .tvl-booking-bar__action { grid-column: span 2; } }

.tvl-sidebar { position: sticky; top: 96px; }

.tvl-hero__actions { display: flex; gap: 8px; flex-shrink: 0; }
.tvl-icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--tvl-border);
  background: #fff; color: var(--tvl-muted); display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.tvl-icon-btn:hover { background: var(--tvl-bg); color: var(--tvl-ink); }
.tvl-icon-btn.is-active { color: var(--tvl-danger); border-color: #fecaca; background: #fef2f2; }

.tvl-offers__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tvl-offer-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px;
  border: 1px solid var(--tvl-border); border-radius: var(--tvl-radius-md); background: var(--tvl-primary-light);
}
.tvl-offer-card__icon { color: var(--tvl-primary-dark); font-size: 1.3rem; flex-shrink: 0; }
.tvl-offer-card__name { font-weight: 700; color: var(--tvl-ink); font-size: .95rem; }
.tvl-offer-card__badge { font-size: .82rem; color: var(--tvl-primary-dark); font-weight: 600; margin-top: 2px; }
.tvl-offer-card__code { font-size: .82rem; color: #445066; margin-top: 6px; }

.tvl-star-input { font-size: 1.4rem; color: var(--tvl-star); display: flex; gap: 4px; cursor: pointer; }
.tvl-star-input i { color: #d8dee8; }
.tvl-star-input i.bi-star-fill { color: var(--tvl-star); }
.tvl-review-form { padding-bottom: 20px; border-bottom: 1px solid var(--tvl-border); }
.tvl-sidebar-map {
  height: 170px; border-radius: var(--tvl-radius-md); margin-bottom: 14px;
  background: linear-gradient(135deg, #eef2fb, #e4ecf9);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #94a3b8;
  text-decoration: none;
}
.tvl-sidebar-map--embed { display: block; position: relative; padding: 0; overflow: hidden; }
.tvl-sidebar-map--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tvl-policy-list { list-style: none; padding: 0; margin: 0; }
.tvl-policy-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .89rem; color: #445066; padding: 9px 0; border-bottom: 1px solid var(--tvl-bg); }
.tvl-policy-list li:last-child { border-bottom: none; }
.tvl-policy-list i { color: var(--tvl-primary); margin-top: 1px; }

@media (max-width: 991.98px) {
  .tvl-hero__top { flex-direction: column; }
  .tvl-price-box { width: 100%; }
  .tvl-gallery { height: 320px; }
  .tvl-sidebar { position: static; }
}

/* ================================================================
   3) ROOMS + shared room-card (show + rooms pages)
   ================================================================ */
.tvl-rooms-hero {
  background: linear-gradient(135deg, var(--tvl-primary) 0%, var(--tvl-primary-dark) 100%);
  padding: 30px 0 56px; color: #fff;
}
.tvl-rooms-hero__back { color: rgba(255,255,255,.9); font-size: .87rem; text-decoration: none; }
.tvl-rooms-hero__back:hover { color: #fff; text-decoration: underline; }
.tvl-rooms-hero__thumb { width: 64px; height: 64px; border-radius: var(--tvl-radius-sm); object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255,255,255,.4); }
.tvl-rooms-hero__thumb--empty {
  width: 64px; height: 64px; border-radius: var(--tvl-radius-sm); flex-shrink: 0;
  background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.tvl-rooms-hero__title { font-size: 1.5rem; font-weight: 800; margin: 0 0 4px; }
.tvl-rooms-hero__meta { font-size: .88rem; opacity: .9; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tvl-rooms-hero .tvl-stars .bi-star { color: rgba(255,255,255,.35); }

.tvl-stat-bar { background: #fff; border-radius: var(--tvl-radius-lg); padding: 18px 24px; box-shadow: var(--tvl-shadow-md); margin-top: -2.25rem; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 28px; }
.tvl-stat { display: flex; align-items: center; gap: 10px; }
.tvl-stat i { color: var(--tvl-primary); font-size: 1.1rem; }
.tvl-stat__label { font-size: .68rem; color: var(--tvl-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tvl-stat__value { font-weight: 700; font-size: .92rem; color: var(--tvl-ink); }
.tvl-stat__value small { font-weight: 400; color: var(--tvl-muted); font-size: .8rem; }

.tvl-rcard {
  background: #fff; border: 1.5px solid var(--tvl-border); border-radius: var(--tvl-radius-md);
  padding: 20px; margin-bottom: 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.tvl-rcard:hover { border-color: var(--tvl-primary); box-shadow: var(--tvl-shadow-md); }
.tvl-rcard__media { position: relative; width: 150px; min-width: 150px; height: 112px; border-radius: var(--tvl-radius-sm, 8px); overflow: hidden; background: var(--tvl-bg); flex-shrink: 0; }
.tvl-rcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvl-rcard__media--empty { display: flex; align-items: center; justify-content: center; color: var(--tvl-muted-light); font-size: 1.5rem; }
.tvl-rcard-row > .flex-fill { min-width: 0; }
.tvl-rcard__name { font-weight: 700; font-size: 1rem; color: var(--tvl-ink); overflow-wrap: break-word; word-break: break-word; }
.tvl-rcard__meta { font-size: .82rem; color: var(--tvl-muted); margin: 6px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; }
.tvl-rcard__meta i { color: var(--tvl-muted-light); }
.tvl-rcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tvl-rcard__tag { font-size: .72rem; background: var(--tvl-bg); border: 1px solid var(--tvl-border); color: #475569; padding: 3px 9px; border-radius: 20px; }
.tvl-rcard__desc { font-size: .84rem; color: var(--tvl-muted); margin: 8px 0 0; overflow-wrap: break-word; word-break: break-word; white-space: normal; }
.tvl-rcard__price-col { text-align: right; min-width: 165px; flex-shrink: 0; }
.tvl-rcard__original { font-size: .78rem; color: var(--tvl-danger); text-decoration: line-through; }
.tvl-rcard__price { font-size: 1.25rem; font-weight: 800; color: var(--tvl-primary-dark); }
.tvl-rcard__total { font-size: .78rem; color: var(--tvl-muted); margin-top: 2px; }

.tvl-board-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tvl-board-pill {
  font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 20px;
  border: 1.5px solid var(--tvl-border); background: #fff; color: #475569; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.tvl-board-pill:hover { border-color: var(--tvl-primary); color: var(--tvl-primary-dark); }
.tvl-board-pill.is-active { border-color: var(--tvl-primary); background: var(--tvl-primary-light); color: var(--tvl-primary-dark); }

@media (max-width: 767.98px) {
  .tvl-rcard .tvl-rcard-row { flex-direction: column; align-items: stretch !important; }
  .tvl-rcard__price-col { text-align: left; margin-top: 10px; }
  .tvl-rcard__media { width: 100%; height: 160px; }
}

.tvl-empty {
  background: #fff; border: 1px dashed var(--tvl-border); border-radius: var(--tvl-radius-lg);
  padding: 48px 24px; text-align: center; color: var(--tvl-muted);
}
.tvl-empty i { font-size: 2.4rem; color: #c7d0dd; margin-bottom: 12px; display: block; }

/* Room name is a button (opens the details popup) but should read as text */
.tvl-rcard__name-link {
  background: none; border: none; padding: 0; text-align: left; cursor: pointer;
  font-weight: 700; font-size: 1rem; color: var(--tvl-ink);
}
.tvl-rcard__name-link:hover { color: var(--tvl-primary-dark); text-decoration: underline; }

/* ================================================================
   4) ROOM DETAILS POPUP (hero photos + full info + all board-type rates)
   ================================================================ */
.tvl-room-modal .modal-body { padding: 24px; }
.tvl-room-modal__gallery { display: flex; gap: 8px; margin-bottom: 18px; height: 280px; }
.tvl-room-modal__main-photo {
  flex: 2; height: 100%; border: none; padding: 0; border-radius: var(--tvl-radius-md);
  overflow: hidden; position: relative; cursor: pointer; background: var(--tvl-bg);
}
.tvl-room-modal__main-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Scrollable sidebar listing EVERY remaining photo (not capped), matching
   the hero gallery's .tvl-gallery__side pattern for consistency. */
.tvl-room-modal__thumbs {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 8px;
  height: 100%; overflow-y: auto; align-content: start; padding-right: 2px;
}
.tvl-room-modal__thumbs button {
  border: none; padding: 0; border-radius: var(--tvl-radius-sm); overflow: hidden; cursor: pointer;
  aspect-ratio: 1 / 1;
}
.tvl-room-modal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvl-room-modal__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--tvl-muted); margin-bottom: 12px; }
.tvl-room-modal__meta i { color: var(--tvl-primary); margin-right: 4px; }
.tvl-room-modal__desc { color: #445066; font-size: .92rem; line-height: 1.6; }
.tvl-room-modal__amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tvl-room-modal__rates-title { font-size: 1rem; font-weight: 800; color: var(--tvl-ink); margin: 20px 0 10px; }

.tvl-rate-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  border: 1.5px solid var(--tvl-border); border-radius: var(--tvl-radius-md); padding: 14px 16px; margin-bottom: 10px;
}
.tvl-rate-row__board { font-weight: 700; color: var(--tvl-ink); font-size: .94rem; }
.tvl-rate-row__price { text-align: right; flex-shrink: 0; }

@media (max-width: 767.98px) {
  .tvl-room-modal__gallery { flex-direction: column; height: auto; }
  .tvl-room-modal__main-photo { height: 200px; flex: none; }
  .tvl-room-modal__thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70px; height: 70px; overflow-x: auto; overflow-y: hidden; }
  .tvl-rate-row { flex-direction: column; }
  .tvl-rate-row__price { text-align: left; }
}

/* ── Share modal + toast (shared/_share_widget) ─────────────── */
.tvl-share-modal { position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center; }
.tvl-share-modal[hidden] { display: none; }
.tvl-share-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); opacity: 0; transition: opacity .15s ease; }
.tvl-share-modal.is-open .tvl-share-modal__backdrop { opacity: 1; }
.tvl-share-modal__panel {
  position: relative; background: #fff; border-radius: var(--tvl-radius-lg); box-shadow: var(--tvl-shadow-lg);
  width: min(380px, 92vw); padding: 26px 24px; transform: translateY(10px) scale(.98); opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.tvl-share-modal.is-open .tvl-share-modal__panel { transform: translateY(0) scale(1); opacity: 1; }
.tvl-share-modal__close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: none;
  background: #f1f5f9; color: var(--tvl-muted); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.tvl-share-modal__close:hover { background: #e2e8f0; }
.tvl-share-modal__title { font-size: 1.1rem; font-weight: 800; color: var(--tvl-ink); margin: 0 0 16px; }
.tvl-share-modal__link-row { display: flex; gap: 8px; margin-bottom: 20px; }
.tvl-share-modal__input {
  flex: 1; min-width: 0; border: 1px solid var(--tvl-border); border-radius: var(--tvl-radius-sm);
  padding: 9px 12px; font-size: .84rem; color: var(--tvl-muted); background: var(--tvl-bg);
}
.tvl-share-modal__copy {
  border: none; border-radius: var(--tvl-radius-sm); padding: 9px 16px; font-size: .84rem; font-weight: 700;
  background: var(--tvl-primary); color: #fff; cursor: pointer; white-space: nowrap; transition: background .15s;
}
.tvl-share-modal__copy:hover { background: var(--tvl-primary-dark); }
.tvl-share-modal__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tvl-share-modal__option {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none;
  color: var(--tvl-ink); font-size: .74rem; font-weight: 600; cursor: pointer;
}
.tvl-share-modal__icon {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
}
.tvl-share-modal__icon--whatsapp { background: #25d366; }
.tvl-share-modal__icon--facebook { background: #1877f2; }
.tvl-share-modal__icon--twitter  { background: #000; }
.tvl-share-modal__icon--email    { background: var(--tvl-muted-light); }

.tvl-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px);
  background: #1f2b33; color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .86rem; font-weight: 600; box-shadow: var(--tvl-shadow-lg); z-index: 1090;
  opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.tvl-toast[hidden] { display: none; }
.tvl-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Expandable long text (description, house rules) ────────── */
.tvl-expandable {
  position: relative; overflow: hidden;
  max-height: var(--tvl-expandable-collapsed-height, 140px);
  transition: max-height .25s ease;
}
.tvl-expandable.is-expanded { max-height: 4000px; }
.tvl-expandable:not(.is-expanded)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  background: linear-gradient(180deg, transparent, #fff); pointer-events: none;
}
.tvl-expandable-toggle {
  background: none; border: none; color: var(--tvl-primary); font-weight: 700;
  font-size: .86rem; padding: 8px 0 0; cursor: pointer; display: block;
}
.tvl-expandable-toggle:hover { color: var(--tvl-primary-dark); text-decoration: underline; }

/* ================================================================
   5) CHECKOUT (hotels/checkout)
   ================================================================ */
.co-hero {
  background: linear-gradient(135deg, var(--tvl-primary) 0%, var(--tvl-primary-dark) 100%);
  padding: 2rem 0 4rem; color: #fff;
}
.co-hero__title { font-size: 1.5rem; font-weight: 700; }
.co-hero__sub   { font-size: .9rem; opacity: .85; }

.co-steps { display: flex; align-items: center; margin-top: 1.5rem; }
.co-step { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.55); }
.co-step.is-active { color: #fff; }
.co-step.is-done   { color: rgba(255,255,255,.75); }
.co-step__num { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.co-step.is-active .co-step__num { background: #fff; color: var(--tvl-primary); }
.co-step.is-done   .co-step__num { background: rgba(255,255,255,.4); color: #fff; }
.co-step__sep { flex: 1; height: 1px; background: rgba(255,255,255,.25); margin: 0 .5rem; max-width: 48px; }

/* Generic white card — shared by checkout and confirmation */
.co-card { background: #fff; border-radius: var(--tvl-radius-md); box-shadow: var(--tvl-shadow-sm); border: 1px solid var(--tvl-border); overflow: hidden; margin-bottom: 1.25rem; }
.co-card__header { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--tvl-border); display: flex; align-items: center; gap: .75rem; }
.co-card__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--tvl-primary-light); display: flex; align-items: center; justify-content: center; color: var(--tvl-primary); font-size: 1rem; flex-shrink: 0; }
.co-card__title    { font-size: 1rem; font-weight: 700; color: var(--tvl-ink); margin: 0; }
.co-card__subtitle { font-size: .8rem; color: var(--tvl-muted); margin: 0; }
.co-card__body     { padding: 1.5rem; }

.co-label { font-size: .8rem; font-weight: 500; color: var(--tvl-muted); margin-bottom: .35rem; }
.co-input {
  border: 1px solid var(--tvl-border); border-radius: .5rem; padding: .6rem .9rem; font-size: .9rem;
  width: 100%; transition: border-color .15s, box-shadow .15s; background: #fff;
}
.co-input:focus { outline: none; border-color: var(--tvl-primary); box-shadow: 0 0 0 3px rgba(5,168,199,.12); }
.co-select {
  border: 1px solid var(--tvl-border); border-radius: .5rem; padding: .6rem .9rem; font-size: .9rem; background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E")
    no-repeat right .75rem center/12px;
  -webkit-appearance: none; appearance: none; width: 100%; transition: border-color .15s;
}
.co-select:focus { outline: none; border-color: var(--tvl-primary); box-shadow: 0 0 0 3px rgba(5,168,199,.12); }

.co-payment { border: 1.5px solid var(--tvl-border); border-radius: .75rem; padding: 1rem 1.25rem; cursor: pointer; transition: border-color .15s, background .15s; display: flex; align-items: center; gap: .875rem; margin-bottom: .75rem; }
.co-payment:hover { border-color: var(--tvl-primary); }
.co-payment.is-selected { border-color: var(--tvl-primary); background: var(--tvl-primary-light); }
.co-payment input[type="radio"] { accent-color: var(--tvl-primary); width: 16px; height: 16px; }
.co-payment__logo { width: 42px; height: 28px; border-radius: .35rem; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; flex-shrink: 0; }
.co-payment__logo--card    { background: #1a1a2e; color: #fff; }
.co-payment__logo--ngenius { background: #1a3a6e; color: #fff; }
.co-payment__name { font-size: .9rem; font-weight: 600; }
.co-payment__sub  { font-size: .78rem; color: var(--tvl-muted); }

.co-btn-pay {
  background: var(--tvl-primary); color: #fff; border: none; border-radius: .75rem; padding: .875rem 2rem;
  font-size: 1rem; font-weight: 700; width: 100%; transition: background .15s, transform .15s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.co-btn-pay:hover { background: var(--tvl-primary-dark); transform: translateY(-1px); color: #fff; }

.co-terms { font-size: .83rem; color: var(--tvl-muted); }
.co-terms a { color: var(--tvl-primary); }

/* Shared "hotel + stay details" summary widget — used by both checkout
   (right sidebar) and confirmation (left column). */
.co-summary-card__photo  { width: 100%; height: 140px; object-fit: cover; display: block; }
.co-summary-card__banner { background: var(--tvl-accent); padding: 1.25rem 1.5rem; color: #fff; border-radius: 12px 12px 0 0; }
.co-summary-card__name   { font-size: 1.05rem; font-weight: 700; }
.co-summary-card__meta   { font-size: .82rem; opacity: .85; margin-top: .35rem; }
.co-summary-card__body   { padding: 1.25rem 1.5rem; }
.co-summary-card__row    { display: flex; align-items: flex-start; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--tvl-border); }
.co-summary-card__row:last-child { border-bottom: none; padding-bottom: 0; }
.co-summary-card__icon   { width: 30px; height: 30px; border-radius: 50%; background: var(--tvl-primary-light); display: flex; align-items: center; justify-content: center; color: var(--tvl-primary); font-size: .85rem; flex-shrink: 0; }

.co-field-label { font-size: .73rem; color: var(--tvl-muted); font-weight: 500; }
.co-field-value { font-size: .9rem; font-weight: 600; color: var(--tvl-ink); }

.co-price-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--tvl-muted); padding: .45rem 0; }
.co-price-row.is-total { font-size: 1.1rem; font-weight: 700; color: var(--tvl-ink); border-top: 2px solid var(--tvl-border); margin-top: .5rem; padding-top: .75rem; }
.co-price-row.is-total span:last-child { color: var(--tvl-primary); }
.co-price-row--discount span:last-child { color: #16a34a; font-weight: 600; }

.co-summary-sticky { position: sticky; top: 80px; }

.co-alert-success {
  display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-radius: .5rem;
  background: #f0fdf4; border: 1px solid #bbf7d0; font-size: .82rem; color: #15803d;
}

.co-alert-info {
  display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-radius: .5rem;
  background: #eff6ff; border: 1px solid #bfdbfe; font-size: .82rem; color: #1d4ed8;
}

.co-alert-warning {
  display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-radius: .5rem;
  background: #fffbeb; border: 1px solid #fde68a; font-size: .82rem; color: #92400e;
}

.co-trust-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.co-trust-badge {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .65rem .5rem; border-radius: .5rem; background: #f8fafc; border: 1px solid var(--tvl-border);
  font-size: .74rem; font-weight: 600; color: var(--tvl-ink); text-align: center;
}
.co-trust-badge i { font-size: 1.05rem; color: var(--tvl-primary); }

/* ================================================================
   6) CONFIRMATION (hotels/confirmation)
   ================================================================ */
.co-status-hero { background: var(--tvl-accent); padding: 2.5rem 0 4.5rem; color: #fff; }
.co-status-hero__icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin-bottom: 1rem; }
.co-status-hero__title { font-size: 1.6rem; font-weight: 800; margin-bottom: .35rem; }
.co-status-hero__sub   { font-size: .9rem; opacity: .85; }

.co-status-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1.1rem; border-radius: 2rem; font-size: .85rem; font-weight: 700; letter-spacing: .03em; }
.co-status-badge--completed { background: #dcfce7; color: #15803d; }
.co-status-badge--draft     { background: #fef9c3; color: #a16207; }
.co-status-badge--failed    { background: #fee2e2; color: #b91c1c; }

.co-btn-action { border-radius: .65rem; padding: .65rem 1.25rem; font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; transition: all .2s; }
.co-btn-action--primary { background: var(--tvl-primary); color: #fff; border: none; }
.co-btn-action--primary:hover { background: var(--tvl-primary-dark); color: #fff; }
.co-btn-action--outline { background: transparent; color: var(--tvl-primary); border: 1.5px solid var(--tvl-primary); }
.co-btn-action--outline:hover { background: var(--tvl-primary-light); }

.co-activity-card { display: flex; gap: .8rem; padding: .85rem; border: 1px solid var(--tvl-border); border-radius: 12px; text-decoration: none; color: inherit; transition: all .2s ease; }
.co-activity-card + .co-activity-card { margin-top: .85rem; }
.co-activity-card:hover { border-color: #b6eff5; box-shadow: 0 10px 22px rgba(14, 154, 167, .12); transform: translateY(-1px); }
.co-activity-card__image { width: 86px; height: 86px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #f1f5f9; }
.co-activity-card__title { font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--tvl-ink); margin: 0 0 .2rem; }
.co-activity-card__meta { font-size: .77rem; color: var(--tvl-muted); margin-bottom: .35rem; }
.co-activity-card__tag { display: inline-flex; align-items: center; gap: .25rem; padding: .24rem .55rem; border-radius: 999px; background: #ecfeff; color: #0f766e; font-size: .72rem; font-weight: 600; margin-right: .35rem; margin-bottom: .35rem; }
.co-activity-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .45rem; }
.co-activity-card__price { font-size: .72rem; color: var(--tvl-muted); }
.co-activity-card__price strong { display: block; color: var(--tvl-primary); font-size: 1.05rem; line-height: 1.1; }
.co-activity-card__cta { display: inline-flex; align-items: center; justify-content: center; min-width: 102px; padding: .45rem .8rem; border-radius: 999px; background: #dff9fd; color: #11bcd6; font-size: .8rem; font-weight: 700; }
.co-activity-sidebar-btn { width: 100%; justify-content: center; margin-top: 1rem; }

/* ================================================================
   7) SHARED SEARCH BAR + DATE PICKER
   Used by every product's search bar (packages first; hotels/activities/
   flights reuse the same classes + custom/date_picker.js's vanilla-JS
   [data-date-picker] contract — this app's public layout doesn't load
   Stimulus/importmap, only plain custom/*.js files).
   ================================================================ */
.tvl-search-bar {
  background: #fff; border-radius: 20px; box-shadow: var(--tvl-shadow-lg);
  padding: 22px; display: flex; flex-wrap: wrap; gap: 16px 14px; align-items: flex-end;
}
.tvl-search-bar__row { display: flex; flex-wrap: wrap; gap: 14px; width: 100%; }

.tvl-search-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; text-align: left; position: relative; }

/* The .tvl-dp popup is `position: absolute`, anchored to its nearest
   positioned ancestor — every [data-date-picker] container needs
   `position: relative` for that anchor to actually be the field itself
   rather than some much larger ancestor (the whole search bar/widget),
   which is what made the calendar render in the wrong place entirely
   (e.g. the activities widget's plain .trav-field has no position set of
   its own) instead of right under the date field that opened it. Matches
   any product's date field regardless of what other classes it carries. */
[data-date-picker] { position: relative; }
.tvl-search-field__label {
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--tvl-muted);
}
.tvl-search-field__control {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--tvl-border);
  border-radius: var(--tvl-radius-md); height: 48px; padding: 0 14px; cursor: pointer; transition: border-color .15s ease;
}
.tvl-search-field__control:hover,
.tvl-search-field__control:focus-within { border-color: var(--tvl-primary); }
.tvl-search-field__icon { color: var(--tvl-muted-light); font-size: .95rem; flex: 0 0 auto; }
.tvl-search-field__input {
  border: 0; outline: 0; background: transparent; width: 100%; font-size: .92rem; color: var(--tvl-ink); cursor: pointer;
}
.tvl-search-field__input::placeholder { color: var(--tvl-muted-light); }
.tvl-search-field__control select.tvl-search-field__input { cursor: pointer; appearance: none; padding-right: 4px; }
.tvl-search-btn-cell { flex: 0 0 auto; }
.tvl-search-btn-cell .tvl-btn { height: 48px; width: 100%; white-space: nowrap; }

/* Star row (search bar) — plain toggleable icons, distinct from the older
   chip-style .tvl-star-chip used in the packages sidebar. */
.tvl-star-row { display: flex; align-items: center; gap: 6px; height: 48px; }
.tvl-star-row__item { cursor: pointer; display: inline-flex; }
.tvl-star-row__item input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.tvl-star-row__item i { color: var(--tvl-primary); opacity: .35; font-size: 1.25rem; transition: opacity .15s ease, color .15s ease; }
.tvl-star-row__item:hover i { opacity: .7; }
.tvl-star-row__item.is-active i { color: var(--tvl-star); opacity: 1; }
/* Packages' star row doesn't auto-submit per click like the old sidebar
   chips did (it batches with the rest of the bar behind one "Search
   Packages" button) — server-rendered .is-active only reflects the URL's
   star[] params from the LAST submit, so clicking a star produced no visual
   change at all until the whole form was submitted. This gives instant
   feedback straight from the (still real, still submitted) checkbox's own
   :checked state, no JS needed. */
.tvl-star-row__item input:checked ~ i { color: var(--tvl-star); opacity: 1; }

/* Date picker popup */
.tvl-dp {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 300px;
  background: #fff; border-radius: var(--tvl-radius-lg); box-shadow: var(--tvl-shadow-lg);
  border: 1px solid var(--tvl-border); overflow: hidden;
}
.tvl-dp__header {
  background: var(--tvl-primary); color: #fff; font-weight: 700; font-size: .85rem;
  padding: 10px 16px;
}
.tvl-dp__nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 4px; }
.tvl-dp__nav span { font-weight: 700; font-size: .9rem; color: var(--tvl-ink); }
.tvl-dp__navbtn {
  border: 1px solid var(--tvl-border); background: #fff; border-radius: 50%; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--tvl-ink); font-size: .9rem; line-height: 1;
}
.tvl-dp__navbtn:hover { border-color: var(--tvl-primary); color: var(--tvl-primary); }
.tvl-dp__weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px 12px 0;
  font-size: .68rem; font-weight: 700; color: var(--tvl-muted-light); text-align: center;
}
.tvl-dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 6px 12px 14px; }
.tvl-dp__cell { width: 100%; aspect-ratio: 1; }
.tvl-dp__day {
  border: 0; background: transparent; border-radius: 50%; font-size: .82rem; color: var(--tvl-ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.tvl-dp__day:hover:not(:disabled) { background: var(--tvl-primary-light); }
.tvl-dp__day--today { border: 1.5px solid var(--tvl-primary); }
.tvl-dp__day--selected { background: var(--tvl-primary); color: #fff; }
.tvl-dp__day--disabled { color: var(--tvl-muted-light); cursor: not-allowed; }

@media (max-width: 767.98px) {
  .tvl-search-bar { flex-direction: column; align-items: stretch; }
  .tvl-search-btn-cell { width: 100%; }
  .tvl-dp { left: 0; right: 0; width: auto; }
}
