/* =====================================================================
   tour.css — tour detail page (/it/tour/…, /en/tour/…)
   Port of the old Assets/CSS/main/tour.css (+ the tour bits of videos.css).

   Sections: 1 local tokens · 2 hero · 3 share menu · 4 suspended notice
             5 layout & sections · 6 route, map, map dialog · 7 aside
             8 BOOKING WIDGET (fallback now + legacy calendar/slot styles kept
               for the booking phase) · 9 video card · 10 discover carousel
             11 mobile bottom bar · 12 photo viewer
   ===================================================================== */

/* ===== 1. Local tokens (old --p/--s/--dk… names, mapped to the site palette) ===== */
.tp-wrap {
  --tp-p: var(--rx-teal);          /* #2D95A3 — fills, borders, icons */
  --tp-p-ink: #1f6f7a;             /* teal for small text (AA on white) */
  --tp-s: var(--rx-brand);         /* #2F8C62 */
  --tp-s-ink: var(--rx-brand-dark);
  --tp-dk: #0f1a20;
  --tp-text: #2c3a44;
  --tp-soft: #f6f4f0;
  --tp-soft2: #fbfaf7;
  --tp-mt: #5f6f7a;
  --tp-lt: #aab4bd;
  --tp-bd: rgba(15, 26, 32, .08);
  --tp-bd2: rgba(15, 26, 32, .16);
  --tp-r: 18px;
  --tp-rs: 12px;
  --tp-sh: 0 4px 14px rgba(0, 0, 0, .07);
  --tp-shh: 0 14px 38px rgba(0, 0, 0, .16);
  --tp-grad: linear-gradient(135deg, #23808c, var(--rx-brand-dark));

  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--tp-dk);
}
.tp-price-amount { font-family: var(--rx-font-head); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.015em; }

/* ===== 2. Hero ===== */
.tp-hero {
  position: relative; isolation: isolate;
  margin: 1.25rem 1.5rem 2.5rem; border-radius: var(--tp-r);
  min-height: clamp(420px, 56vw, 560px);
  display: flex;
}
.tp-hero-img {
  position: absolute; inset: 0; z-index: 0; border-radius: var(--tp-r); overflow: hidden;
  background: linear-gradient(135deg, #1a3040, #2D95A3 55%, #2F8C62);
}
.tp-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.tp-hero-img.is-empty { display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .45); font-size: 5rem; }
.tp-hero-overlay {
  position: absolute; inset: 0; z-index: 1; border-radius: var(--tp-r); pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .10) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .55) 82%, rgba(0, 0, 0, .82) 100%);
}
.tp-hero-content {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; min-width: 0;
  padding: 1.6rem 2rem 1.8rem; color: #fff;
}
.tp-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.tp-breadcrumb { font-size: .78rem; font-weight: 600; letter-spacing: .02em; line-height: 1.4; text-shadow: 0 1px 6px rgba(0, 0, 0, .25); min-width: 0; }
.tp-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.tp-breadcrumb li { color: #fff; }
.tp-breadcrumb li + li::before { content: '/'; margin: 0 .4rem; opacity: .55; }
.tp-breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .15s; }
.tp-breadcrumb a:hover { color: #fff; text-decoration: underline; }

.tp-hero-actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.tp-hero-action {
  height: 2.4rem; min-width: 2.4rem; padding: 0 .9rem; border-radius: var(--rx-pill);
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-size: .82rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: all .2s;
}
.tp-hero-action.is-icon { padding: 0; width: 2.4rem; }
.tp-hero-action .i { font-size: 1rem; }
.tp-hero-action:hover, .tp-share[open] > .tp-hero-action { background: #fff; color: var(--tp-dk); border-color: #fff; }

.tp-hero-bottom { display: flex; margin-top: auto; padding-top: 2rem; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.tp-hero-bottom-l { flex: 1 1 480px; min-width: 0; }
.tp-hero-category {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem;
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--rx-pill);
  padding: .35rem .85rem; color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
}
.tp-hero-category .i { font-size: .78rem; }
.tp-hero-category--off { background: rgba(180, 35, 24, .78); border-color: rgba(255, 255, 255, .35); }
.tp-hero-title {
  font-family: var(--rx-font-head); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05;
  color: #fff; margin: 0 0 1.1rem; text-shadow: 0 2px 14px rgba(0, 0, 0, .28); max-width: 22ch; letter-spacing: -.01em;
}
.tp-hero-stats { display: flex; flex-wrap: wrap; gap: .9rem 1.5rem; align-items: center; }
.tp-hero-stat {
  display: inline-flex; align-items: center; gap: .5rem; position: relative;
  font-size: .9rem; font-weight: 600; color: #fff; text-decoration: none;
}
.tp-hero-stat .i { font-size: 1.05rem; opacity: .9; }
.tp-hero-stat + .tp-hero-stat::before {
  content: ''; position: absolute; left: -.75rem; top: 50%; transform: translateY(-50%);
  width: 1px; height: 18px; background: rgba(255, 255, 255, .32);
}
a.tp-hero-stat:hover { color: #fff; text-decoration: underline; }

.tp-hero-price {
  flex: 0 0 auto; text-align: right; line-height: 1; color: var(--tp-dk);
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 14px; padding: .7rem 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.tp-hero-price-from, .tp-hero-price-per { display: block; font-size: .64rem; font-weight: 700; color: var(--tp-mt); text-transform: uppercase; letter-spacing: .1em; }
.tp-hero-price-from { margin-bottom: .25rem; }
.tp-hero-price-val { display: block; font-size: 1.95rem; color: var(--tp-s); line-height: 1; }
.tp-hero-price-per { margin-top: .3rem; }

@media (max-width: 860px) {
  .tp-hero { margin: .75rem .85rem 1.6rem; min-height: clamp(380px, 78vw, 480px); }
  .tp-hero-content { padding: 1.1rem 1.1rem 1.3rem; }
  .tp-hero-title { max-width: 100%; }
  .tp-hero-bottom { gap: 1rem; }
  .tp-hero-price-val { font-size: 1.7rem; }
  .tp-hero-overlay { background: linear-gradient(to bottom, rgba(0, 0, 0, .48) 0%, rgba(0, 0, 0, .18) 30%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .55) 82%, rgba(0, 0, 0, .82) 100%); }
  .tp-hero-action--label { display: none; }
}
/* Phone: text block on top, photo below, no overlay */
@media (max-width: 540px) {
  .tp-hero { margin: 0; border-radius: 0; min-height: 0; flex-direction: column; background: #fff; }
  .tp-hero-img { position: static; order: 2; width: 100%; height: 56.25vw; max-height: 280px; border-radius: 0; flex-shrink: 0; }
  .tp-hero-overlay { display: none; }
  .tp-hero-content { order: 1; color: var(--tp-dk); padding: 1rem 1rem 1.25rem; }
  .tp-hero-bottom { display: block; margin-top: 0; padding-top: 1rem; }
  .tp-breadcrumb { text-shadow: none; }
  .tp-breadcrumb li { color: var(--tp-dk); }
  .tp-breadcrumb a { color: var(--tp-mt); }
  .tp-breadcrumb a:hover { color: var(--tp-dk); }
  .tp-hero-category { display: none; }
  .tp-hero-category--off { display: inline-flex; background: var(--rx-danger); }
  .tp-hero-title { color: var(--tp-dk); text-shadow: none; }
  .tp-hero-stats { gap: .6rem 1.2rem; }
  .tp-hero-stat, a.tp-hero-stat:hover { color: var(--tp-mt); }
  .tp-hero-stat + .tp-hero-stat::before { display: none; }
  .tp-hero-action { border-color: var(--tp-bd2); background: var(--tp-soft); color: var(--tp-dk); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tp-hero-action:hover, .tp-share[open] > .tp-hero-action { background: var(--tp-dk); color: #fff; border-color: var(--tp-dk); }
  .tp-hero-price { display: none; }
}

/* ===== 3. Share menu (<details>) ===== */
.tp-share { position: relative; }
.tp-share > summary { list-style: none; }
.tp-share > summary::-webkit-details-marker { display: none; }
.tp-share-menu {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 30;
  min-width: 220px; padding: .5rem; border-radius: 14px;
  background: #fff; box-shadow: var(--tp-shh); border: 1px solid var(--tp-bd);
  display: flex; flex-direction: column; gap: .25rem;
}
.tp-share-link {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  border: 1px solid transparent; border-radius: 9px; background: #fff; color: var(--tp-dk);
  text-decoration: none; font-size: .84rem; font-weight: 700; padding: .55rem .65rem;
  transition: background .15s, border-color .15s;
}
.tp-share-link:hover { border-color: rgba(45, 149, 163, .25); background: #f6fbfc; color: var(--tp-dk); }
.tp-share-link .i { color: var(--tp-p); font-size: 1rem; }

/* ===== 4. Suspended tour notice ===== */
.tp-suspended {
  display: flex; gap: 1rem; align-items: flex-start;
  margin: 0 2rem 2.5rem; padding: 1.3rem 1.5rem;
  background: #fdf3e6; border: 1px solid #f0d2a6; border-left: 5px solid var(--rx-gold); border-radius: var(--tp-rs);
  color: #4a3410;
}
.tp-suspended-icon { flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #fff; color: var(--rx-gold); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.tp-suspended-title { font-size: clamp(1.2rem, 2.2vw, 1.45rem); margin: .2rem 0 .4rem; color: #3b2a0c; }
.tp-suspended p { margin: 0 0 1rem; line-height: 1.6; }
.tp-suspended-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 980px) { .tp-suspended { margin: 0 1.5rem 2rem; } }
@media (max-width: 540px) { .tp-suspended { margin: 1.25rem 1rem 0; flex-direction: column; } }

/* ===== 5. Layout & sections ===== */
.tp-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; padding: 0 2rem; align-items: start; }
@media (max-width: 980px) { .tp-main { grid-template-columns: 1fr; padding: 0 1.5rem; gap: 2rem; } }
@media (max-width: 540px) { .tp-main { padding: 0 1rem; margin-top: 1.5rem; } }

.tp-content { display: flex; flex-direction: column; gap: 2.6rem; min-width: 0; }
.tp-section { position: relative; scroll-margin-top: calc(var(--rx-header-h) + 1rem); }
.tp-section-eyebrow { display: inline-block; font-size: .7rem; font-weight: 800; color: var(--tp-p-ink); text-transform: uppercase; letter-spacing: .16em; margin-bottom: .55rem; }
.tp-section-title {
  font-family: var(--rx-font-head); font-size: clamp(1.55rem, 2.5vw, 2.05rem); font-weight: 700; color: var(--tp-dk);
  line-height: 1.18; margin: 0 0 1.1rem; letter-spacing: -.005em; display: flex; align-items: center; gap: .6rem;
}
.tp-title-icon { color: var(--tp-p); font-size: .85em; }
.tp-section-text { font-size: 1.04rem; line-height: 1.78; color: var(--tp-text); }
.tp-section-text > :last-child { margin-bottom: 0; }
.tp-section-text p { margin: 0 0 1em; }
.tp-section-text ul { margin: 0 0 1em; padding: 0; list-style: none; }
.tp-section-text li { position: relative; padding-left: 1.4rem; }
.tp-section-text li + li { margin-top: .45rem; }
.tp-section-text li::before {
  content: ''; position: absolute; left: .2rem; top: .7em; width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--tp-s); box-shadow: 0 0 0 3px rgba(47, 140, 98, .15);
}
.tp-section-text a, .tp-route-stop-desc a { color: var(--tp-p-ink); font-weight: 600; text-decoration: underline; text-underline-offset: .15em; }
.tp-section-text a:hover, .tp-route-stop-desc a:hover { color: var(--rx-brand-deeper); }
.tp-section-empty { color: var(--tp-mt); font-style: italic; font-size: .98rem; }
.tp-included-card, .tp-additional-card { background: var(--tp-soft2); border: 1px solid var(--tp-bd); border-radius: var(--tp-rs); padding: 1.4rem 1.6rem; }
@media (max-width: 540px) { .tp-included-card, .tp-additional-card { padding: 1.1rem 1.1rem; } }

/* ===== 6. Route: map + numbered stops ===== */
.tp-route { border: 1px solid var(--tp-bd); border-radius: var(--tp-r); background: #fff; overflow: hidden; box-shadow: var(--tp-sh); }
.tp-route-map-wrap { position: relative; height: 320px; background: linear-gradient(135deg, #1a3040, #2D95A3 60%, #2F8C62); isolation: isolate; }
@media (min-width: 981px) { .tp-route-map-wrap { height: 450px; } }
.tp-map-canvas { position: absolute; inset: 0; z-index: 1; }
.tp-map-canvas[hidden] { display: none; }

/* Click-to-load placeholder: no request to OpenStreetMap before this button */
.tp-map-placeholder {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  padding: 1.5rem; text-align: center; color: #fff;
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, .10) 0 2px, transparent 3px) 0 0 / 28px 28px,
    linear-gradient(135deg, #1a3040, #2D95A3 60%, #2F8C62);
}
.tp-map-placeholder[hidden] { display: none; }
.tp-map-placeholder-icon { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: rgba(255, 255, 255, .16); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.tp-map-placeholder p { margin: 0; max-width: 34ch; font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.tp-map-placeholder.is-loading .rx-btn { opacity: .7; pointer-events: none; }
.tp-map-placeholder .tp-map-error { font-weight: 700; color: #fff; }

.tp-map-fs-btn {
  position: absolute; top: .7rem; right: .7rem; z-index: 1000;
  width: 2.3rem; height: 2.3rem; border: 0; border-radius: .65rem;
  background: rgba(255, 255, 255, .96); color: var(--tp-dk); box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.tp-map-fs-btn[hidden] { display: none; }
.tp-map-fs-btn:hover { background: #fff; color: var(--tp-p-ink); }

.tp-route-stops { list-style: none; padding: 1.2rem 1.4rem 1.4rem; margin: 0; display: flex; flex-direction: column; }
.tp-route-stop { position: relative; display: flex; align-items: flex-start; gap: 1rem; padding: .85rem 0; }
.tp-route-stop:not(:last-child)::before {
  content: ''; position: absolute; left: 17px; top: 44px; bottom: -6px; width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, rgba(45, 149, 163, .35), rgba(47, 140, 98, .18));
}
.tp-route-stop-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; z-index: 1;
  background: #fff; border: 2px solid var(--tp-p); color: var(--tp-p-ink);
  font-size: .9rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(45, 149, 163, .18);
}
.tp-route-stop:first-child .tp-route-stop-num { background: #23808c; border-color: #23808c; color: #fff; }
.tp-route-stop:last-child:not(:first-child) .tp-route-stop-num { background: var(--tp-s-ink); color: #fff; border-color: var(--tp-s-ink); box-shadow: 0 2px 6px rgba(47, 140, 98, .22); }
.tp-route-stop-content { flex: 1; min-width: 0; padding-top: .35rem; }
.tp-route-stop-name { font-family: var(--rx-font-body); font-weight: 700; font-size: 1rem; color: var(--tp-dk); line-height: 1.35; margin: 0; letter-spacing: 0; }
.tp-route-stop-time { display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; font-size: .74rem; font-weight: 700; color: var(--tp-p-ink); background: rgba(45, 149, 163, .09); border-radius: var(--rx-pill); padding: .15rem .6rem; }
.tp-route-stop-desc { font-size: .88rem; color: var(--tp-mt); margin-top: .3rem; line-height: 1.55; }
.tp-route-stop-desc p, .tp-route-stop-desc ul { margin: 0 0 .5em; }
.tp-route-stop-desc > :last-child { margin-bottom: 0; }
@media (max-width: 540px) { .tp-route-stops { padding: 1rem 1rem 1.2rem; } }

/* Fullscreen map: native <dialog> */
.tp-map-modal {
  position: fixed; inset: .75rem; width: auto; height: auto; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: .9rem; overflow: hidden; background: #fff;
}
.tp-map-modal::backdrop { background: rgba(0, 0, 0, .62); }
.tp-map-modal-canvas { width: 100%; height: 100%; }
.tp-map-modal-close {
  position: absolute; top: .65rem; right: .65rem; z-index: 1000;
  width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .96); color: var(--tp-dk); box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 993px) { .tp-map-modal { inset: 1.4rem; } }

/* Leaflet bits (markers are divIcons, popups built by tour.js) */
.tp-wrap .leaflet-container { font-family: var(--rx-font-body); }
.tp-marker { background: none; border: 0; }
.lf-popup .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--tp-shh); padding: 0; overflow: hidden; }
.lf-popup .leaflet-popup-content { margin: 0; }
.lf-popup .leaflet-popup-tip-container { display: none; }
.stop-popup { padding: .8rem 1rem; font-family: var(--rx-font-body); }
.stop-popup-n { font-weight: 700; font-size: .9rem; color: var(--tp-dk); }
.stop-popup-d { font-size: .76rem; color: var(--tp-mt); margin-top: .28rem; line-height: 1.45; }

/* ===== 7. Aside ===== */
.tp-aside { align-self: start; min-width: 0; }

/* ===== 8. BOOKING WIDGET =====================================================
   Card shell + header + price/facts + child note + mount point #booking.
   Now: #booking holds a WhatsApp / contact fallback (.bw-fallback).
   Booking phase: tour.js / booking.js replaces .bw-fallback with the calendar,
   steppers and slot list — their styles are kept below (8b), same class names
   as the old widget so the rebuilt UI looks the same.
   ========================================================================== */
.bw-card { background: #fff; border-radius: var(--tp-r); border: 1px solid var(--tp-bd); padding: 1.6rem 1.5rem 1.7rem; box-shadow: var(--tp-sh); }
.tour-booking { scroll-margin-top: calc(var(--rx-header-h) + 1rem); }
.bw-section-title {
  font-family: var(--rx-font-body); font-size: .8rem; font-weight: 800; color: var(--tp-dk);
  text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1rem; display: flex; align-items: center; gap: .55rem; line-height: 1.3;
}
.bw-section-title .i { color: var(--tp-p); font-size: .95rem; }
.bw-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .5rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--tp-bd); }
.bw-price-from, .bw-price-per { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--tp-mt); }
.bw-price-val { font-size: 2.1rem; line-height: 1; color: var(--tp-s); }
.bw-facts { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .45rem; }
.bw-facts li { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--tp-text); }
.bw-facts .i { color: var(--tp-p); font-size: 1rem; }
.bw-facts strong { font-weight: 700; color: var(--tp-dk); }
.bw-discount-note { display: flex; align-items: flex-start; gap: .45rem; margin: .35rem 0 1.4rem; font-size: .76rem; line-height: 1.4; color: var(--tp-mt); font-weight: 600; background: var(--tp-soft); border-radius: 10px; padding: .65rem .8rem; }
.bw-discount-note .i { color: var(--tp-p); flex-shrink: 0; margin-top: .1rem; font-size: .8rem; }
.bw-text { font-size: .9rem; line-height: 1.55; color: var(--tp-text); margin: 0 0 1rem; }

/* Main CTA (old "Cerca disponibilità" button) and fallback buttons */
.bw-cerca {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  padding: .95rem 1rem; margin-top: 1rem; border: 0; border-radius: var(--rx-pill);
  background: var(--tp-grad); color: #fff; text-decoration: none;
  font-size: .95rem; font-weight: 700; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 6px 16px rgba(45, 149, 163, .22); transition: all .25s;
}
.bw-cerca:hover, .bw-cerca:focus-visible { color: #fff; filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(45, 149, 163, .28); }
.bw-cerca:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
.bw-cerca .i { font-size: 1.15em; }
.bw-fallback .bw-cerca { margin-top: 0; }
.bw-secondary { margin-top: .6rem; padding-top: .8rem; padding-bottom: .8rem; }

/* ----- 8b. Legacy widget UI (calendar, steppers, slots) — for the booking phase ----- */
.bw-section { margin-bottom: 1.25rem; }
.bw-label { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-mt); margin-bottom: .55rem; display: block; }
/* selected date pill */
.bw-range { background: rgba(45, 149, 163, .07); border: 1.5px solid rgba(45, 149, 163, .22); border-radius: 10px; padding: .7rem 1rem; display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; gap: .5rem; }
.bw-range[hidden] { display: none; }
.bw-range-dates { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .85rem; color: var(--tp-dk); }
.bw-range-clear { background: none; border: 0; color: var(--tp-mt); font-size: .95rem; padding: 0 .3rem; }
.bw-range-clear:hover { color: var(--rx-danger); }
/* month calendar */
.bw-month-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; padding: 0 .15rem; }
.bw-month-lbl { font-family: var(--rx-font-head); font-weight: 700; font-size: 1.08rem; color: var(--tp-dk); text-align: center; flex: 1; text-transform: capitalize; }
.bw-nav-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--tp-bd); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--tp-dk); transition: all .15s; flex: 0 0 auto; }
.bw-nav-btn:hover { background: var(--tp-p); border-color: var(--tp-p); color: #fff; transform: translateY(-1px); }
.bw-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bw-dow { text-align: center; font-size: .65rem; font-weight: 800; color: var(--tp-mt); text-transform: uppercase; padding-bottom: .55rem; letter-spacing: .06em; }
.bw-day {
  aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; background: none; position: relative;
  font-size: .92rem; font-weight: 600; color: var(--tp-dk);
  display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.bw-day:hover:not(.dis):not(.em) { background: rgba(45, 149, 163, .12); color: var(--tp-p-ink); }
.bw-day.dis { color: var(--tp-lt); cursor: default; }
.bw-day.em { cursor: default; }
.bw-day.td { box-shadow: inset 0 0 0 1.5px var(--tp-p); }               /* today */
.bw-day.rs, .bw-day.re { background: #23808c; color: #fff; }            /* selected */
.bw-day.rs.td, .bw-day.re.td { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .95); }
.bw-day.in-r { background: rgba(45, 149, 163, .12); border-radius: 0; color: var(--tp-p-ink); }
.bw-day.has-avail::after { content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--tp-s); }
.bw-day.rs.has-avail::after, .bw-day.re.has-avail::after { background: #fff; }
.bw-cal-hint { font-size: .72rem; color: var(--tp-mt); margin: .6rem 0 1rem; display: flex; align-items: flex-start; gap: .4rem; line-height: 1.45; }
.bw-cal-hint .i { color: var(--tp-p); margin-top: 1px; }
/* participant steppers */
.bw-stepper-row { display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem; background: var(--tp-soft); border-radius: 10px; margin-bottom: .5rem; border: 1px solid transparent; transition: border-color .15s; }
.bw-stepper-row:hover { border-color: var(--tp-bd); }
.bw-step-info .sn { font-weight: 700; font-size: .88rem; }
.bw-step-info .ss { font-size: .72rem; color: var(--tp-mt); margin-top: .1rem; }
.bw-step-ctrl { display: flex; align-items: center; gap: .6rem; }
.bw-step-btn { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--tp-bd2); background: #fff; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; color: var(--tp-dk); transition: all .18s; line-height: 1; }
.bw-step-btn:hover:not(:disabled) { border-color: var(--tp-p); color: var(--tp-p-ink); }
.bw-step-btn:disabled { opacity: .3; cursor: not-allowed; }
.bw-step-val { font-weight: 800; font-size: 1.1rem; min-width: 22px; text-align: center; }
/* results: one collapsible section per day, slot rows inside */
.bw-results { margin-top: 1rem; }
.bw-day-section { margin-bottom: .6rem; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--tp-bd); }
.bw-day-section.has-slots { border-color: rgba(45, 149, 163, .28); }
.bw-day-hdr { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: .75rem .95rem; background: #fff; border: 0; text-align: left; }
.bw-day-hdr:hover { background: #fafaf9; }
.bw-day-name { font-weight: 700; font-size: .85rem; }
.bw-day-chip { font-size: .66rem; font-weight: 800; border-radius: var(--rx-pill); padding: .2rem .65rem; text-transform: uppercase; letter-spacing: .04em; }
.bw-day-chip.ok { background: #e6f5ee; color: #1f6c4a; }
.bw-day-chip.no { background: rgba(0, 0, 0, .05); color: var(--tp-mt); }
.bw-day-chev { font-size: .75rem; color: var(--tp-mt); transition: transform .25s; }
.bw-day-section.open .bw-day-chev { transform: rotate(180deg); }
.bw-day-body { display: none; padding: .6rem .7rem .75rem; background: #fdf9f7; border-top: 1px solid rgba(45, 149, 163, .1); }
.bw-day-section.open .bw-day-body { display: block; }
.bw-day-loading, .no-slots { text-align: center; padding: 1rem; color: var(--tp-mt); font-size: .8rem; }
.bw-slot { display: flex; align-items: center; gap: .85rem; padding: .7rem .85rem; border-radius: 10px; border: 2px solid var(--tp-bd); margin-bottom: .45rem; cursor: pointer; transition: all .2s; background: #fff; }
.bw-slot:hover:not(.bw-slot-un) { border-color: var(--tp-p); background: #f0f9fb; }
.bw-slot.selected { border-color: var(--tp-p); background: #f0f9fb; box-shadow: inset 0 0 0 1px var(--tp-p); }
.bw-slot-un { opacity: .5; cursor: not-allowed; background: #fafafa; }
.bw-slot-radio { accent-color: var(--tp-p); width: 16px; height: 16px; flex-shrink: 0; }
.bw-slot-body { flex: 1; min-width: 0; }
.bw-slot-time { font-family: var(--rx-font-head); font-size: 1rem; font-weight: 700; color: var(--tp-p-ink); }
.bw-slot-seats { font-size: .72rem; color: var(--tp-mt); margin-top: .15rem; }
.bw-slot-warn { font-size: .65rem; font-weight: 700; color: #7a5600; background: #fff8e6; border-radius: var(--rx-pill); padding: .2rem .6rem; }
.bw-slot-price { text-align: right; flex-shrink: 0; }
.bw-slot-price-val { font-weight: 800; font-size: .98rem; color: var(--tp-p-ink); }
.bw-slot-price-sub { font-size: .64rem; color: var(--tp-mt); text-transform: uppercase; letter-spacing: .06em; margin-top: .1rem; }
.bw-book-btn { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; padding: .78rem; background: var(--tp-grad); color: #fff; border: 0; border-radius: var(--rx-pill); font-size: .85rem; font-weight: 700; transition: all .2s; margin-top: .7rem; box-shadow: 0 6px 16px rgba(45, 149, 163, .22); }
.bw-book-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.bw-book-btn[hidden] { display: none; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
.bw-spin { animation: tp-spin 1s linear infinite; }

/* ===== 10. Discover carousel ===== */
.tp-discover { margin-top: 3.4rem; padding: 0 2rem; scroll-margin-top: calc(var(--rx-header-h) + 1rem); }
@media (max-width: 980px) { .tp-discover { padding: 0 1.5rem; margin-top: 2.4rem; } }
@media (max-width: 540px) { .tp-discover { padding: 0 1rem; } }
.tp-discover-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.tp-discover-titlewrap .tp-section-eyebrow { display: block; }
.tp-discover-title { font-family: var(--rx-font-head); font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 700; color: var(--tp-dk); margin: 0; line-height: 1.2; }
.tp-discover-nav { display: flex; align-items: center; gap: .45rem; }
.tp-discover-arrow { width: 2.45rem; height: 2.45rem; border: 1px solid var(--tp-bd); border-radius: 50%; background: #fff; color: var(--tp-dk); display: inline-flex; align-items: center; justify-content: center; transition: all .15s; }
.tp-discover-arrow:hover { background: var(--tp-soft); border-color: var(--tp-p); color: var(--tp-p-ink); }
.tp-discover-track {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-behavior: smooth;
  padding: .25rem .25rem .75rem; margin: -.25rem; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.tp-discover-track::-webkit-scrollbar { height: 6px; }
.tp-discover-track::-webkit-scrollbar-thumb { background: var(--tp-bd2); border-radius: 4px; }
.tp-discover-card {
  flex: 0 0 min(300px, 78vw); display: flex; flex-direction: column; position: relative;
  text-decoration: none; color: var(--tp-dk); background: #fff;
  border: 1px solid var(--tp-bd); border-radius: 16px; overflow: hidden;
  scroll-snap-align: start; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.tp-discover-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); border-color: rgba(45, 149, 163, .28); color: var(--tp-dk); }
.tp-discover-card:hover .tp-discover-img { transform: scale(1.06); }
.tp-discover-card:hover .tp-discover-cta { color: var(--tp-s-ink); }
.tp-discover-card:hover .tp-discover-cta .i { transform: translateX(4px); }
.tp-discover-media { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #1a3040, #2D95A3 60%, #2F8C62); }
.tp-discover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.tp-discover-img-empty { display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .55); font-size: 3rem; }
.tp-discover-media-overlay { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .45) 78%, rgba(0, 0, 0, .78) 100%); }
.tp-discover-name {
  position: absolute; bottom: .9rem; left: 1rem; right: 1rem; margin: 0;
  font-family: var(--rx-font-head); font-size: 1.15rem; font-weight: 700; color: #fff; line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35); letter-spacing: -.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tp-discover-price-badge {
  position: absolute; top: .85rem; right: .85rem; display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, .96); color: var(--tp-s-ink); font-size: .92rem; font-weight: 800; line-height: 1;
  padding: .42rem .75rem; border-radius: var(--rx-pill); box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.tp-discover-cta {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .85rem 1.1rem;
  font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--tp-p-ink);
  border-top: 1px solid var(--tp-bd); background: #fff; transition: color .2s;
}
.tp-discover-cta .i { font-size: 1rem; transition: transform .25s; }
@media (max-width: 860px) { .tp-discover-nav { display: none; } }
@media (max-width: 540px) { .tp-discover-card { flex-basis: min(280px, 80vw); } .tp-discover-name { font-size: 1.05rem; } }

/* ===== 11. Mobile bottom bar (price + book + WhatsApp) ===== */
.tp-mobile-bottom-bar { display: none; }
@media (max-width: 860px) {
  /* The bar carries its own WhatsApp button: hide the floating one */
  body.tp-mobile-bar-enabled .wa-float { display: none; }
  .tp-mobile-bottom-bar {
    position: fixed; left: .65rem; right: .65rem; bottom: calc(.65rem + env(safe-area-inset-bottom, 0px)); z-index: 2250;
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    background: rgba(255, 255, 255, .98); border: 1px solid var(--tp-bd); border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16); padding: .55rem .6rem .55rem .6rem;
    transition: transform .22s ease, opacity .22s ease;
  }
  .tp-mobile-bottom-bar.is-hidden { opacity: 0; transform: translateY(130%); pointer-events: none; }
  .tp-mobile-bottom-left { display: flex; align-items: center; gap: .5rem; min-width: 0; }
  .tp-mobile-bottom-btn { border: 0; border-radius: var(--rx-pill); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
  .tp-mobile-bottom-wa { width: 2.5rem; height: 2.5rem; background: #25D366; color: #fff; font-size: 1.3rem; }
  .tp-mobile-bottom-wa:hover { color: #fff; filter: brightness(1.05); }
  .tp-mobile-bottom-availability { height: 2.5rem; padding: 0 1rem; gap: .45rem; background: var(--tp-grad); color: #fff; font-size: .88rem; font-weight: 800; white-space: nowrap; }
  .tp-mobile-bottom-availability:hover { color: #fff; }
  .tp-mobile-bottom-price { font-size: 1.3rem; color: var(--tp-s); line-height: 1; white-space: nowrap; padding-right: .35rem; }
}

/* ── Aside video: small dark panel around the shared .rp player (partials/player.php, site.css) ── */
.tp-reel {
  margin-top: 1.25rem; padding: 1.1rem 1.1rem 1.25rem; border-radius: 20px; color: #fff; text-align: center;
  background: radial-gradient(420px 220px at 0% 0%, rgba(47, 140, 98, .35), transparent 60%), #0d1511;
}
.tp-reel-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .35rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.tp-reel-title { font-family: var(--rx-font-head); font-size: 1.2rem; color: #fff; margin: 0 0 .9rem; }
.tp-reel-vid { max-width: 260px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 40px -18px rgba(0, 0, 0, .8); }
@media (max-width: 991.98px) { .tp-reel-vid { max-width: 280px; } }

/* ===== 12. Photo viewer openers (the viewer itself: site.css "Photo viewer", photos.js) =====
   Opened from the "N foto" pill on the cover (and, on phones, by tapping the cover itself). */
.tp-hero-action[hidden] { display: none; }
@media (max-width: 540px) { .tp-hero-img.has-photos img { cursor: zoom-in; } }
