/* ═══════════════════════════════════
   DESTINAZIONI — page-specific styles
   Estratto da destinazioni.html originale
═══════════════════════════════════ */

/* ── ROUTE STRIP ── */
.route-strip {
  background: var(--ind);
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.route-strip::-webkit-scrollbar { display: none; }
.route-inner {
  display: flex; align-items: center;
  min-width: max-content;
  padding: 1.6rem clamp(1.2rem,5vw,4rem);
  gap: 0; max-width: 1200px; margin: 0 auto;
}
.route-stop {
  display: flex; flex-direction: column; align-items: center;
  min-width: 120px; position: relative;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .25s;
  outline: none;
  border-radius: 6px;
  padding: 4px 8px;
}
.route-stop:hover { transform: translateY(-2px); }
.route-stop:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.map-stop:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.map-stop { outline: none; }
.route-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--gold); background: var(--ind);
  position: relative; z-index: 2;
  transition: background .3s, box-shadow .3s;
}
.route-stop:hover .route-dot,
.route-stop.active .route-dot {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(229,179,64,.2);
}
.route-name {
  font-size: .54rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-top: .6rem;
  white-space: nowrap; transition: color .3s;
}
.route-stop:hover .route-name,
.route-stop.active .route-name { color: var(--gold2); }
.route-line {
  flex: 1; height: 1px; min-width: 40px;
  background: linear-gradient(90deg, var(--gold), rgba(229,179,64,.2));
  position: relative;
}
.route-tag {
  font-size: .48rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.2); margin-top: .25rem;
}

/* ── DESTINATION CARDS ── */
.dest-section { overflow: clip; }
.dest-full {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; min-height: 520px;
  border-bottom: 1px solid var(--gbr);
}
.dest-full.reverse { direction: rtl; }
.dest-full.reverse > * { direction: ltr; }

.dest-visual {
  position: relative; overflow: hidden;
  background: var(--navy); min-height: 400px;
}
/* zoom + luminosità sulla foto all'hover del blocco
   (target .tour-visual-bg: è la classe realmente usata nel markup) */
.dest-visual .tour-visual-bg {
  transition: transform 1.2s cubic-bezier(.25,.46,.45,.94), filter .7s ease;
}
.dest-full:hover .tour-visual-bg { transform: scale(1.06); filter: brightness(1.05); }
.dest-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(2,2,15,.3) 0%, transparent 60%);
  transition: box-shadow .6s ease;
}
/* cornice dorata che incornicia la foto all'hover */
.dest-full:hover .dest-visual::after { box-shadow: inset 0 0 0 2px rgba(229,179,64,.42); }
.dest-visual-num {
  position: absolute; top: 1.5rem; left: 1.5rem; z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem; font-weight: 600; font-style: italic;
  line-height: 1; color: rgba(255,255,255,.06);
}
.dest-content {
  padding: clamp(2rem,4vw,4rem) clamp(1.5rem,4vw,3.5rem);
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(ellipse at 80% 20%, rgba(31,31,128,.12) 0%, transparent 60%), var(--ink);
}
.dest-content .sec-lbl { margin-bottom: .6rem; }
.dest-content .sec-ttl { margin-bottom: 1rem; font-size: clamp(1.8rem,3.5vw,2.8rem); }
.dest-desc {
  font-size: .88rem; line-height: 2;
  color: rgba(255,255,255,.62); font-weight: 300;
  margin-bottom: 1.6rem;
}
.dest-desc strong { color: var(--mist); font-weight: 500; }

.dest-details { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.dest-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.05);
  font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.82); cursor: default;
  transition: border-color .3s, color .3s, background .3s;
}
.dest-pill:hover { border-color: rgba(136,136,224,.6); color: #fff; background: rgba(82,82,204,.12); }
.dest-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--per); flex-shrink: 0;
}
.dest-pill.gold {
  border-color: rgba(235,190,66,.45); background: rgba(229,179,64,.1); color: var(--gold3);
}
.dest-pill.gold:hover { border-color: var(--gold2); background: rgba(229,179,64,.16); }
.dest-pill.gold::before { background: var(--gold2); }

.dest-quote {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1rem; line-height: 1.65;
  color: rgba(255,255,255,.4);
  border-left: 2px solid rgba(229,179,64,.3);
  padding-left: 1.2rem; margin-top: auto;
}

@media (max-width: 860px) {
  .dest-full,
  .dest-full.reverse { grid-template-columns: 1fr; direction: ltr; }
  .dest-full.reverse > * { direction: ltr; }
  .dest-visual { min-height: 280px; }
  .dest-visual-num { font-size: 3.5rem; }
}

/* ── MAP SECTION ── */
.map-sec {
  padding: clamp(3rem,6vw,6rem) clamp(1.2rem,5vw,4rem);
  background: radial-gradient(ellipse at 50% 0%, rgba(31,31,128,.15) 0%, transparent 55%), var(--deep);
  text-align: center; overflow: clip;
}
.map-container {
  max-width: 600px; margin: 2rem auto 0;
  position: relative;
  background: radial-gradient(ellipse at 30% 60%, rgba(14,14,90,.5) 0%, transparent 60%), rgba(6,6,36,.6);
  border: 1px solid var(--gbr); border-radius: 4px; overflow: hidden;
}
.map-svg { width: 100%; height: auto; display: block; }

.map-land { fill: rgba(14,14,72,.6); stroke: rgba(255,255,255,.08); stroke-width: .5; }
.map-land-inner { fill: rgba(20,20,90,.4); }
.map-sea-label {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  fill: rgba(80,80,202,.18); font-size: 42px; font-weight: 300;
  user-select: none; pointer-events: none;
}
.map-land-label {
  font-family: 'DM Sans', sans-serif;
  fill: rgba(255,255,255,.12); font-size: 11px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  user-select: none; pointer-events: none;
}
.map-route {
  fill: none; stroke: var(--gold); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 8 4; opacity: .5;
}
.map-route-glow {
  fill: none; stroke: rgba(229,179,64,.15); stroke-width: 12;
  stroke-linecap: round; stroke-linejoin: round;
}
.map-route-anim {
  fill: none; stroke: var(--gold2); stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 640; stroke-dashoffset: 640;
  opacity: 0; transition: none;
}
.map-container.in-view .map-route-anim {
  animation: mapDraw 3s ease-out .5s forwards;
}
@keyframes mapDraw {
  0% { stroke-dashoffset: 640; opacity: .8; }
  100% { stroke-dashoffset: 0; opacity: .8; }
}

.map-stop { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.map-stop-ring {
  fill: rgba(6,6,36,.7); stroke: var(--gold); stroke-width: 2;
  transition: fill .3s, stroke-width .3s;
}
.map-stop:hover .map-stop-ring { fill: var(--gold); stroke-width: 2.5; }
.map-stop-pulse {
  fill: none; stroke: rgba(229,179,64,.35); stroke-width: 1.5;
  r: 0; opacity: 0;
}
.map-stop.active .map-stop-pulse { animation: mapPulse 2s ease-out infinite; }
.map-stop.active .map-stop-ring { fill: var(--gold); }
@keyframes mapPulse {
  0% { r: 8; opacity: .6; }
  100% { r: 22; opacity: 0; }
}
.map-stop-dot { fill: var(--ink); r: 3; pointer-events: none; }
.map-stop.active .map-stop-dot { fill: var(--ink); }
.map-stop:hover .map-stop-dot { fill: var(--ink); }
.map-stop-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  fill: rgba(255,255,255,.4); transition: fill .3s;
  pointer-events: none; user-select: none;
}
.map-stop:hover .map-stop-label,
.map-stop.active .map-stop-label { fill: var(--gold2); }
.map-stop-num {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 22px; fill: rgba(255,255,255,.04);
  pointer-events: none; user-select: none;
}

.map-tooltip {
  position: absolute;
  background: rgba(5,5,30,.92);
  border: 1px solid rgba(229,179,64,.35);
  backdrop-filter: blur(16px);
  padding: .8rem 1.1rem; border-radius: var(--r);
  pointer-events: none; opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
  z-index: 10; white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.map-tooltip.on { opacity: 1; transform: translateY(0); }
.map-tooltip-name {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.05rem; color: var(--white); margin-bottom: .15rem;
}
.map-tooltip-tag {
  font-size: .5rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold2);
}
.map-tooltip::after {
  content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; rotate: 45deg;
  background: rgba(5,5,30,.92);
  border-right: 1px solid rgba(229,179,64,.35);
  border-bottom: 1px solid rgba(229,179,64,.35);
}

.map-legend {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
  margin-top: 1.2rem;
}
.map-legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .56rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.map-legend-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--gold); flex-shrink: 0;
}
.map-legend-line {
  width: 20px; height: 0;
  border-top: 2px dashed var(--gold); opacity: .5; flex-shrink: 0;
}
.map-note {
  font-size: .66rem; letter-spacing: .06em;
  color: rgba(255,255,255,.3); margin-top: 1rem; font-weight: 300;
}

/* ── HIGHLIGHTS GRID ── */
.hi-sec {
  padding: clamp(3rem,6vw,6rem) clamp(1.2rem,5vw,4rem);
  background: var(--ink); overflow: clip;
}
.hi-grid {
  max-width: 1200px; margin: 2rem auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
@media (max-width: 700px) { .hi-grid { grid-template-columns: 1fr; } }
.hi-card {
  padding: 2.2rem 1.8rem;
  background: rgba(14,14,72,.28); border: 1px solid var(--gbr);
  position: relative; overflow: hidden; cursor: default;
  transition: background .35s, border-color .35s, transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s cubic-bezier(.16,1,.3,1);
}
.hi-card:hover {
  background: rgba(31,31,128,.22); border-color: rgba(229,179,64,.28);
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -22px rgba(2,2,15,.75);
}
.hi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform .5s;
}
.hi-card:hover::before { transform: scaleX(1); }
.hi-ico { font-size: 1.6rem; margin-bottom: 1rem; display: block; opacity: .6; transition: opacity .35s, transform .45s cubic-bezier(.16,1,.3,1); }
.hi-card:hover .hi-ico { opacity: 1; transform: translateY(-2px); }
.hi-t {
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  color: var(--white); margin-bottom: .5rem; font-weight: 400;
}
.hi-d { font-size: .72rem; line-height: 1.85; color: rgba(255,255,255,.5); font-weight: 300; }
.hi-card-photo { padding-top: 0; text-align: center; }
.hi-img {
  display: block;
  width: calc(100% + 3.6rem);
  height: 190px;
  margin: 0 -1.8rem 1.4rem;
  object-fit: cover; object-position: center 45%;
  filter: saturate(1.05);
}
.hi-card-photo .hi-d { min-height: 5.4rem; }

/* ── MAP MOBILE ── */
@media (max-width: 860px) {
  .map-sec { padding-left: 0; padding-right: 0; }
  .map-container {
    max-width: 100%; margin-left: 0; margin-right: 0;
    border-left: none; border-right: none; border-radius: 0;
  }
  .map-sec .sec-lbl, .map-sec .sec-ttl,
  .map-legend, .map-note { padding-left: 1.2rem; padding-right: 1.2rem; }
  .map-sec .sec-lbl { display: flex; justify-content: center; }
  .map-sec .sec-ttl { text-align: center; }
  .map-note { text-align: center; }
}

@media (max-width: 600px) {
  .map-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .map-svg { min-width: 520px; }
  .map-stop-label { font-size: 10px; }
  .map-stop-ring { stroke-width: 2.5; }
  .map-stop-dot { r: 3.5; }
  .map-stop-num { font-size: 24px; }
  .map-sea-label { font-size: 46px; }
  .map-route { stroke-width: 3; }
  .map-route-glow { stroke-width: 14; }
  .map-route-anim { stroke-width: 3.5; }
  .map-note { font-size: .62rem; }
}
