/* ================================================================
   LEFKADA GUIDE — Excursions page
   ----------------------------------------------------------------
   Riusa le CSS variables di styles.css (--c-bg, --c-primary, ecc.).
   Mobile-first; il layout cresce a partire da 720px.
   ================================================================ */

/* Reset/Override del corpo per la pagina escursioni:
   styles.css fissa l'app principale a position:fixed, qui invece
   serve scroll naturale della pagina. */
.exc-body {
  position: static;
  height: auto;
  min-height: 100%;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(40px + var(--safe-bottom));
}
.exc-body .app { position: static; display: block; }

/* ---------- Header (ricreato per la pagina) --------------------- */
.exc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.exc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 8px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  transition: background 0.18s ease;
}
.exc-back:hover { background: var(--c-bg-alt); }
.exc-back svg { width: 18px; height: 18px; }
.exc-header-brand {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.exc-header-brand small {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--c-ink-soft);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- Hero ------------------------------------------------ */
.exc-hero {
  position: relative;
  padding: 36px 22px 28px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14, 124, 138, 0.10), transparent 70%),
    var(--c-bg);
  overflow: hidden;
}
.exc-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.exc-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
}
.exc-hero-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(34px, 7vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin: 0 0 8px;
}
.exc-hero-subtitle {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--c-ink-soft);
  margin: 0;
}
.exc-hero-deco {
  position: absolute;
  right: -40px; bottom: -50px;
  width: 220px; height: 220px;
  background:
    radial-gradient(closest-side, rgba(217, 119, 87, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Intro ----------------------------------------------- */
.exc-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 22px 8px;
}
.exc-intro p {
  margin: 0 0 14px;
  line-height: 1.55;
  color: var(--c-ink);
}
.exc-intro .booking-note {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--c-ink);
}
.exc-intro .booking-note::before {
  content: "📌 ";
}

/* ---------- Nav (sticky tabs) ----------------------------------- */
.exc-nav {
  position: sticky;
  top: 56px;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(250, 246, 238, 0.95);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.exc-nav::-webkit-scrollbar { display: none; }
.exc-nav-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  border: 1.5px solid var(--c-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.exc-nav-link:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.exc-nav-link.is-active {
  background: var(--c-ink);
  color: var(--c-white);
  border-color: var(--c-ink);
}

/* ---------- Main: lista escursioni in barca ---------------------- */
.exc-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0;
}

/* ---------- Card singola escursione ----------------------------- */
.exc-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  margin: 18px 14px;
  overflow: hidden;
  box-shadow: var(--sh-1);
  scroll-margin-top: 110px;
}

/* Galleria foto in alto (carosello orizzontale su mobile, griglia su desktop) */
.exc-card-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: var(--c-bg-alt);
  position: relative;
}
.exc-card-gallery::-webkit-scrollbar { display: none; }
.exc-card-gallery img {
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.exc-card-gallery.has-many img { width: 90%; }

/* Featured ribbon */
.exc-card.is-featured { border-color: var(--c-accent); }
.exc-card.is-featured::before {
  content: attr(data-featured-label);
  display: block;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 12px;
}

/* Header della card */
.exc-card-head {
  padding: 18px 20px 6px;
}
.exc-card-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  margin: 0 0 4px;
}
.exc-card-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-primary);
  margin: 0 0 12px;
  line-height: 1.35;
}
.exc-card-tagline {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-ink);
}

/* Highlights chips */
.exc-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 20px 4px;
}
.exc-highlight-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: var(--c-bg-alt);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-soft);
  white-space: nowrap;
}
.exc-highlight-chip::before {
  content: "✓ ";
  color: var(--c-primary);
  margin-right: 4px;
  font-weight: 800;
}

/* Schedule grid */
.exc-schedule {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 14px 14px 0;
  padding: 0;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.exc-schedule-cell {
  background: var(--c-white);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.exc-schedule-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.exc-schedule-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.25;
}
.exc-schedule-cell.is-wide {
  grid-column: 1 / -1;
}

/* Price banner */
.exc-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 20px 4px;
  font-family: var(--f-display);
}
.exc-price-adult {
  font-size: 28px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}
.exc-price-adult small {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-soft);
  margin-left: 4px;
  text-transform: lowercase;
}
.exc-price-child {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-soft);
  font-family: var(--f-body);
}

/* Lunch info inline */
.exc-lunch {
  margin: 8px 20px 0;
  padding: 10px 14px;
  background: var(--c-bg-alt);
  border-left: 3px solid var(--c-accent);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-ink);
}
.exc-lunch::before {
  content: "🍽 ";
}

/* Details (expandable sections) */
.exc-details {
  border-top: 1px solid var(--c-line);
  margin-top: 16px;
}
.exc-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  -webkit-tap-highlight-color: transparent;
}
.exc-details summary::-webkit-details-marker { display: none; }
.exc-details summary::after {
  content: "▾";
  font-size: 14px;
  color: var(--c-ink-soft);
  transition: transform 0.2s ease;
}
.exc-details[open] summary::after { transform: rotate(180deg); }

.exc-details-body {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-ink);
}

/* Itinerary list (numerata, accent) */
.exc-itinerary {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.exc-itinerary li {
  position: relative;
  padding: 0 0 14px 38px;
  counter-increment: step;
}
.exc-itinerary li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exc-itinerary li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12.5px;
  top: 28px;
  bottom: 4px;
  width: 1.5px;
  background: var(--c-line);
}
.exc-itinerary-step-title {
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 2px;
}
.exc-itinerary-step-desc {
  color: var(--c-ink-soft);
  line-height: 1.45;
  font-size: 13.5px;
}

/* Lista bullet semplice (a bordo, on board) */
.exc-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.exc-bullet-list li {
  position: relative;
  padding: 4px 0 4px 22px;
  line-height: 1.5;
}
.exc-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 4px;
  color: var(--c-primary);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

/* Sub-headings dentro le sezioni dettagli */
.exc-sub-h {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin: 14px 0 6px;
}

/* Map link */
.exc-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--c-line);
}
.exc-show-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.18s ease;
}
.exc-show-map:hover { background: var(--c-primary-dk); }
.exc-show-map svg { width: 18px; height: 18px; }

/* ---------- Sezione Serata Greca (event) ----------------------- */
.exc-event {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 14px;
}
.exc-event-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  scroll-margin-top: 110px;
}
.exc-event-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.exc-event-body { padding: 20px 22px 22px; }
.exc-event-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.exc-event-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 4px 0 4px;
}
.exc-event-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 12px;
}
.exc-event-tagline {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.92);
}
.exc-event .exc-highlights { padding: 0; }
.exc-event .exc-highlight-chip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
.exc-event .exc-highlight-chip::before { color: var(--c-accent); }
.exc-event-info {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 14px;
}

/* ---------- Sezione "Altre esperienze" ------------------------- */
.exc-others {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 0 22px;
}
.exc-others-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 14px;
  color: var(--c-ink);
}
.exc-others-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.exc-other-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.exc-other-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.exc-other-text h3 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14.5px;
  margin: 0 0 2px;
  color: var(--c-ink);
}
.exc-other-text p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-ink-soft);
  margin: 0;
}

/* ---------- Info comuni a tutte le escursioni ------------------ */
.exc-common {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 0 22px;
}
.exc-common-box {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.exc-common-title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin: 0 0 10px;
}
.exc-common-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-ink);
}
.exc-common-list li {
  position: relative;
  padding: 4px 0 4px 22px;
}
.exc-common-list li::before {
  content: "ℹ";
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--c-primary);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- CTA finale (WhatsApp) ------------------------------ */
.exc-cta {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 0 22px;
}
.exc-cta-box {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dk) 100%);
  color: var(--c-white);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--sh-2);
}
.exc-cta-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.exc-cta-text {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
}
.exc-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-white);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}
.exc-cta-button:hover {
  background: var(--c-accent-dk);
  transform: translateY(-1px);
}
.exc-cta-button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.exc-cta-button svg { width: 22px; height: 22px; }

/* ---------- Footer --------------------------------------------- */
.exc-footer {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 0 22px;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: 14px;
  color: var(--c-ink-soft);
}
.exc-footer .exc-footer-mark {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  margin: 0 8px;
  transform: translateY(-2px);
}

/* ---------- Skeleton (loading) --------------------------------- */
.exc-skeleton {
  text-align: center;
  padding: 60px 22px;
  color: var(--c-ink-soft);
  font-size: 14px;
}

/* ---------- Larger viewport ------------------------------------ */
@media (min-width: 720px) {
  .exc-card-gallery { aspect-ratio: auto; }
  .exc-card-gallery.has-many { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2px; overflow: hidden; }
  .exc-card-gallery.has-many img { width: 100%; aspect-ratio: 4/3; }
  .exc-card-gallery.has-many img:nth-child(n+3) { display: none; }

  .exc-schedule { grid-template-columns: repeat(4, 1fr); }
  .exc-schedule-cell.is-wide { grid-column: 1 / -1; }

  .exc-event-card {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .exc-event-card img { height: 100%; aspect-ratio: auto; }

  .exc-others-list { grid-template-columns: repeat(3, 1fr); }
  .exc-other-item { flex-direction: column; }
}

/* ---------- Reduced motion ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .exc-details summary::after,
  .exc-cta-button,
  .exc-show-map { transition: none; }
}
