.news-ticker .ticker-label {
  min-height: 43px;
  padding: 5px clamp(12px, 2vw, 23px);
  gap: .32em;
  border-right: 1px solid #b28a61;
  color: #142735;
  background: #f3d3a6;
  font-size: clamp(.92rem, 1vw, 1.02rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.news-ticker .ticker-label span { font-size: inherit; letter-spacing: .025em; }
.news-ticker .ticker-label:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.news-ticker.is-scrolling .ticker-window:not(:focus-within) {
  mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}

.daily-grid { gap: 18px; }
.daily-card {
  --daily-accent: #823d2a;
  --daily-hover: #653023;
  --daily-border: #e8c6af;
  --daily-tint: #f8e6d5;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 228px;
  padding: 9px;
  border: 1px solid var(--daily-border);
  border-radius: 19px;
  background: linear-gradient(140deg, #fffdf7, var(--daily-tint));
  box-shadow: 0 5px 14px #2f2b2110;
}
.daily-card:last-child {
  --daily-accent: #205b51;
  --daily-hover: #16473f;
  --daily-border: #b9d8cc;
  --daily-tint: #dcefe9;
  border-color: var(--daily-border);
  background: linear-gradient(140deg, #fffdf7, var(--daily-tint));
}
.daily-card:has(.daily-figure) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.daily-figure { width: auto; }
.daily-figure img { border-radius: 12px; min-height: 170px; }
.daily-figure figcaption { padding: 0 3px 1px; line-height: 1.3; }
.daily-copy { padding: 11px clamp(11px, 1.6vw, 22px); }
.daily-meta { color: var(--daily-accent); font-weight: 600; }
.daily-copy h3 { color: #142735; line-height: 1.02; }
.daily-routes { gap: 4px 14px; color: var(--daily-accent); }
.daily-routes > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 7px 13px;
  border-radius: 24px;
  background: var(--daily-accent);
  color: #fff;
  text-decoration: none;
}
.daily-routes > a:hover { background: var(--daily-hover); }
.daily-routes button { min-height: 44px; color: inherit; }

@media (max-width: 540px) {
  .daily-card:has(.daily-figure) { grid-template-columns: minmax(0, 1fr); }
  .daily-figure img { flex: none; aspect-ratio: 16 / 9; }
  .daily-copy { padding: 10px 6px 3px; }
}

.scoperte-home h2,
.scoperta-panel h2,
.comparison h2 {
  margin: 0;
  color: #152d3d;
  font: 400 clamp(2.45rem, 5vw, 4.5rem)/1 var(--serif);
}
.scoperte-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 23px;
}
.scoperta-card {
  position: relative;
  min-height: 10.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 24px 58px 24px 25px;
  border-radius: 13px;
  border: 1px solid #203f4b;
  background: linear-gradient(135deg, #122738, #214b56);
  color: #fff8e9;
  text-decoration: none;
}
.scoperta-card:nth-child(2) { background: #eadac2; border-color: #c5a179; color: #302a20; }
.scoperta-card:nth-child(3) { background: #d7e7dc; border-color: #95b5a3; color: #19372e; }
.scoperta-card h3 { margin: 0; font: 400 clamp(1.9rem, 3.5vw, 3rem)/1 var(--serif); }
.scoperta-card p { margin: 0; font-size: .91rem; max-width: 32ch; }
.scoperta-card > span { position: absolute; top: 22px; right: 22px; font-size: 1.45rem; }
.scoperta-card:is(:hover, :focus-visible) h3 { text-decoration: underline; text-decoration-thickness: 1px; }

.scoperta-page .guide-top { background: linear-gradient(122deg, #132738, #245760); }
.scoperta-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.scoperta-tabs a {
  padding: 8px 13px;
  color: #fff9ef;
  border: 1px solid #ffffff60;
  border-radius: 22px;
  font-size: .88rem;
  text-decoration: none;
}
.scoperta-tabs a[aria-current] { color: #152d3d; border-color: #f1c38e; background: #f1c38e; }
.scoperta-tabs a:hover { text-decoration: underline; }
.scoperta-loading { margin-block: 2.4rem; }
.scoperta-loading:empty { display: none; }
.planner-layout,
.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr);
  align-items: start;
  gap: 20px;
  margin-block: clamp(24px, 4vw, 65px);
}
.scoperta-panel {
  display: grid;
  min-width: 0;
  gap: 13px;
  padding: clamp(16px, 2.4vw, 29px);
  background: #fffbf3;
  border: 1px solid #d8cfbc;
  border-radius: 14px;
  box-shadow: 0 12px 28px #233a420b;
}
.scoperta-panel h2 { font-size: clamp(2rem, 3vw, 3rem); }
.scoperta-panel :is(p, figure) { margin: 0; }
.planner-top, .planner-find-row, .planner-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.planner-top label { flex: 1; min-width: min(100%, 14ch); }
.planner-top select, .planner-find-row input { width: 100%; }
.planner-find-row input { flex: 1; min-width: 12ch; }
.scoperta-panel label { display: block; font-weight: 700; }
.planner-controls input, .planner-controls select {
  min-width: 0;
  min-height: 44px;
  padding: .5rem .7rem;
  color: #152d3d;
  background: white;
  border: 1px solid #9aa9a3;
  border-radius: 7px;
}
.planner-top select { display: block; }
.planner-note { font-size: .87rem; color: #4b5a50; }
.planner-shared { padding: 12px; border-radius: 8px; background: #e4efe8; }
.planner-shared .button { margin-top: 8px; }
.planner-matches, .planner-stops { margin: 0; padding: 0; list-style: none; }
.planner-matches { border: 1px solid #d5dfd6; background: #f3f7f1; border-radius: 8px; }
.planner-matches li + li { border-top: 1px solid #d5dfd6; }
.planner-matches button { width: 100%; padding: .62rem .8rem; text-align: left; border: 0; background: transparent; }
.planner-matches button:hover { background: #e3ede4; }
.planner-matches small { display: block; color: #45554e; }
.planner-stops-header { display: flex; gap: .6rem; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.planner-stops { display: grid; gap: 8px; }
.planner-stop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 11px;
  padding: 9px 10px;
  border: 1px solid #ded9cb;
  border-radius: 8px;
}
.planner-stop-number { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #214e54; color: white; font-weight: 700; }
.planner-stop h3 { margin: 0; font-size: .97rem; line-height: 1.32; overflow-wrap: anywhere; }
.planner-stop .planner-note { font-size: .82rem; }
.planner-stop-controls { display: flex; flex-wrap: wrap; gap: 3px; }
.planner-stop-controls button {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 44px;
  padding: .15rem .35rem;
  background: #f6f2e8;
  color: #163b47;
  border: 1px solid #cbc9bb;
  border-radius: 7px;
}
.planner-stop-controls button:not(:disabled):hover { background: #ece1cc; }
.planner-controls :disabled { cursor: default; opacity: .54; }
.planner-share input { width: 100%; }
.planner-map { height: min(59vh, 540px); min-height: 285px; border-radius: 10px; background: #e1eae4; overflow: hidden; }
.planner-marker { background: #214e54; border: 2px solid #fff; border-radius: 50%; color: #fff; text-align: center; font-weight: 700; line-height: 23px; }
#trip-map-status:empty, #trip-status:empty, #trip-find-status:empty, #quiz-photo-status:empty { display: none; }

.comparison-gallery { margin-block: clamp(25px, 4vw, 65px); max-width: 1060px; }
.comparison-intro { margin: 0 0 27px; color: #455950; }
.comparison + .comparison { margin-top: clamp(36px, 6vw, 70px); padding-top: 24px; border-top: 1px solid #c7b89f; }
.comparison-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.comparison h2 { font-size: clamp(2.4rem, 4vw, 3.65rem); }
.comparison > p { max-width: 73ch; color: #4b5a50; }
.comparison-figure { margin: 0; }
.comparison-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: #192e37;
  aspect-ratio: 1.78;
  border-radius: 13px;
}
.comparison-stage img { width: 100%; height: 100%; object-fit: cover; object-position: center 39%; }
.comparison-stage:not(.is-ready) .comparison-before { order: -1; }
.comparison-stage.is-ready { display: block; cursor: ew-resize; touch-action: pan-y; }
.comparison-stage.is-ready img { position: absolute; inset: 0; user-select: none; pointer-events: none; }
.comparison-stage.is-ready .comparison-before { clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.comparison-stage.is-ready .comparison-handle {
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  left: var(--split, 50%);
  transform: translate(-50%, -50%);
  width: 43px;
  height: 43px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: #152d3d;
  color: #fff;
  pointer-events: none;
}
.comparison-stage.is-ready::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 var(--split, 50%);
  width: 1px;
  background: #fff;
  pointer-events: none;
}
.comparison-stage.is-ready:is(.show-before, .show-after) .comparison-handle { display: none; }
.comparison-handle { display: none; }
.comparison-label { position: absolute; bottom: 12px; padding: 5px 10px; border-radius: 16px; background: #132738e8; color: #fff; font-weight: 700; font-size: .81rem; }
.comparison-label.earlier { left: 12px; }
.comparison-label.later { right: 12px; }
.show-before .later, .show-after .earlier { display: none; }
.comparison-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 10px; }
.comparison-controls input { width: 100%; min-height: 44px; margin: 0; accent-color: #28555b; }
.comparison-figure figcaption { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 20px; margin: 12px 0 0; color: #4b5a50; font-size: .82rem; }
.comparison-figure figcaption span { font-weight: 700; }

.quiz-layout { grid-template-columns: minmax(0, 1.24fr) minmax(0, .76fr); }
.quiz-figure { margin: 0; }
.quiz-figure img { width: 100%; height: clamp(260px, 48vw, 575px); border-radius: 14px; object-fit: cover; object-position: center; background: #192e37; }
.quiz-figure figcaption { margin-block: 8px; color: #465d51; font-size: .82rem; }
.quiz-date { color: #465d51; font-size: .88rem; }
.quiz-panel details { padding: 10px 12px; border: 1px solid #d6d5c4; border-radius: 8px; background: #f0f2e9; }
.quiz-panel summary { font-weight: 700; cursor: pointer; }
.quiz-panel details p { margin-top: 6px; }
.quiz-options { display: grid; gap: 8px; }
.quiz-options button {
  min-height: 46px;
  padding: 9px 13px;
  border: 1px solid #a4b2a7;
  border-radius: 8px;
  color: #183b43;
  background: #fffdf8;
  text-align: left;
  font-weight: 700;
}
.quiz-options button:not(:disabled):hover { background: #e4efe8; }
.quiz-options button:disabled { cursor: default; }
.quiz-options .correct { border-color: #367347; background: #d9eedc; color: #16482b; }
.quiz-options .incorrect { border-color: #986551; background: #f6e4d9; color: #6f382a; }
.quiz-result { padding: .65rem .8rem; background: #f3eddf; border-radius: 8px; }
.quiz-panel > .button { justify-self: start; }

@media (max-width: 850px) {
  .planner-layout, .quiz-layout { grid-template-columns: minmax(0, 1fr); }
  .planner-map { height: 350px; }
}
@media (max-width: 620px) {
  .scoperte-cards { grid-template-columns: minmax(0, 1fr); }
  .scoperta-card { min-height: 0; padding-block: 19px; }
  .comparison-stage { aspect-ratio: 1.28; }
  .comparison-figure figcaption { grid-template-columns: minmax(0, 1fr); }
  .planner-stop { grid-template-columns: auto minmax(0, 1fr); }
  .planner-stop-controls { grid-column: 2; }
}
