/* Sicilia — trip dashboard.
   Direction: Catania's black lava stone against limestone, with Caltagirone
   majolica blue and sulfur amber. Light page for sunlight legibility; the dark
   plaque treatment is spent only on the hero and on today's card. */

:root {
  /* color */
  --basalt: #16110F;
  --basalt-2: #241D19;
  --basalt-3: #352C26;
  --glaze: #EAEEEC;
  --card: #FFFFFF;
  --ink: #16110F;
  --ink-2: #5F5952;
  --ink-3: #8A837B;
  --maiolica: #1F5C86;
  --maiolica-2: #16405E;
  --alga: #2E6F55;
  --zolfo: #E8A317;
  --zolfo-2: #C4880C;
  --fico: #B23A2E;
  --line: rgba(22, 17, 15, .10);
  --line-2: rgba(22, 17, 15, .06);

  /* spacing — 4px grid */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  --s12: 48px; --s16: 64px;

  --r: 14px;
  --r-sm: 10px;

  --font-body: 'Heebo', system-ui, sans-serif;
  --font-display: 'Frank Ruhl Libre', 'Heebo', Georgia, serif;
  --font-util: 'Archivo', 'Heebo', system-ui, sans-serif;

  --daybar-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--daybar-h) + var(--s3));
}

body {
  margin: 0;
  background: var(--glaze);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--zolfo);
  outline-offset: 2px;
  border-radius: 4px;
}

.defs { position: absolute; width: 0; height: 0; }

/* ---------- hero ---------- */

.hero {
  background: var(--basalt);
  color: #F5F1EA;
  padding-block: calc(var(--s10) + env(safe-area-inset-top)) var(--s8);
  padding-inline: var(--s5);
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* a faint tile grid, like glazed majolica behind the plaque */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 163, 23, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 163, 23, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; max-width: 620px; margin-inline: auto; }

.hero__eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--zolfo);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 21vw, 7rem);
  line-height: .92;
  margin-block: var(--s2) var(--s2);
}

.hero__sub {
  font-size: 15px;
  color: rgba(245, 241, 234, .70);
  font-weight: 400;
}

.hero__status {
  margin-block-start: var(--s5);
  font-family: var(--font-util);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(245, 241, 234, .82);
  border-block-start: 1px solid rgba(245, 241, 234, .14);
  padding-block-start: var(--s4);
}

.hero__status b { color: var(--zolfo); font-weight: 600; }

/* ---------- the atlas ---------- */

.atlas { margin: var(--s6) 0 0; }

.atlas__svg { width: 100%; height: auto; display: block; overflow: visible; }

.atlas__isle path {
  fill: #2E2621;
  stroke: rgba(232, 163, 23, .34);
  stroke-width: 2;
}

.atlas__route {
  fill: none;
  stroke: var(--zolfo);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}

.atlas__stop { cursor: pointer; }
.atlas__stop circle {
  fill: var(--basalt);
  stroke: var(--zolfo);
  stroke-width: 4;
  transition: fill .2s ease;
}
.atlas__stop text {
  font-family: var(--font-util);
  font-size: 28px;
  font-weight: 600;
  fill: #F5F1EA;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.atlas__stop:hover circle, .atlas__stop:focus-visible circle { fill: var(--basalt-3); }
.atlas__stop--now circle { fill: var(--zolfo); stroke: #FFF5DF; }
.atlas__stop--now text { fill: var(--basalt); }

.atlas__label {
  font-family: var(--font-util);
  font-size: 22px;
  font-weight: 500;
  fill: rgba(245, 241, 234, .55);
  letter-spacing: .04em;
}

.atlas__hint {
  margin-block-start: var(--s3);
  font-size: 12.5px;
  color: rgba(245, 241, 234, .5);
}

/* page-load draw */
@media (prefers-reduced-motion: no-preference) {
  .atlas__route { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s .25s cubic-bezier(.65, 0, .35, 1) forwards; }
  .atlas__stop { opacity: 0; animation: pop .4s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: calc(.35s + var(--i) * .11s); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
  .atlas__stop { transform-box: fill-box; transform-origin: center; }
}

/* ---------- sticky day bar ---------- */

.daybar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(234, 238, 236, .94);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--line);
}

.daybar__track {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--s2) var(--s4);
  scroll-snap-type: x proximity;
}
.daybar__track::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  min-width: 52px;
  min-height: 50px;
  padding: var(--s1) var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  scroll-snap-align: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.chip__dow { font-size: 12px; line-height: 1; }
.chip__num { font-family: var(--font-util); font-size: 17px; font-weight: 600; line-height: 1; }
.chip[aria-current='true'] { background: var(--basalt); border-color: var(--basalt); color: #F5F1EA; }
.chip[aria-current='true'] .chip__num { color: var(--zolfo); }
.chip--now { border-color: var(--zolfo); }

/* ---------- sections ---------- */

.section { max-width: 620px; margin-inline: auto; padding: var(--s10) var(--s4) 0; }
.section:last-of-type { padding-block-end: var(--s6); }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  margin-block-end: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- day card ---------- */

.day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-block-end: var(--s4);
  overflow: hidden;
  scroll-margin-top: calc(var(--daybar-h) + var(--s3));
}

.day__head {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
  border-inline-start: 4px solid var(--zolfo);
}

.day__mini { flex: 0 0 auto; width: 40px; margin-block-start: 2px; }
.day__mini svg { width: 100%; height: auto; display: block; overflow: visible; }
.day__mini .isle { fill: rgba(22, 17, 15, .10); }
.day__mini .mark { fill: var(--zolfo); stroke: var(--card); stroke-width: 10; }

.day__heading { flex: 1; min-width: 0; }

.day__when {
  font-family: var(--font-util);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.day__when span { font-family: var(--font-body); letter-spacing: 0; }

.day__he {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 27px;
  line-height: 1.2;
  margin-block: 2px 0;
}

.day__it {
  font-family: var(--font-util);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--maiolica);
  direction: ltr;
  text-align: start;
}

.day__lead {
  padding: 0 var(--s4) var(--s4);
  color: var(--ink-2);
  font-size: 15px;
}

.day__badge {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  background: var(--zolfo);
  color: var(--basalt);
  padding: 2px var(--s2);
  border-radius: 999px;
}

/* today */
.day--now { border-color: var(--basalt); box-shadow: 0 10px 30px -12px rgba(22, 17, 15, .45); }
.day--now .day__head { background: var(--basalt); border-inline-start-color: var(--zolfo); }
.day--now .day__he { color: #F5F1EA; }
.day--now .day__when { color: rgba(245, 241, 234, .6); }
.day--now .day__it { color: var(--zolfo); }
.day--now .day__mini .isle { fill: rgba(245, 241, 234, .16); }
.day--now .day__mini .mark { stroke: var(--basalt); }
.day--now .day__lead { background: var(--basalt); color: rgba(245, 241, 234, .78); }

/* blocks inside a day */
.block { border-block-start: 1px solid var(--line-2); padding: var(--s4); }
.block__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-3);
  margin-block-end: var(--s3);
}

/* schedule */
.sched { display: flex; flex-direction: column; gap: var(--s3); }
.sched__row { display: flex; gap: var(--s3); align-items: flex-start; }
.sched__time {
  flex: 0 0 52px;
  font-family: var(--font-util);
  font-size: 15px;
  font-weight: 600;
  color: var(--basalt);
  padding-block-start: 1px;
  direction: ltr;
  text-align: start;
}
.sched__time--none { color: var(--ink-3); font-size: 13px; }
.sched__body { flex: 1; min-width: 0; border-inline-start: 2px solid var(--line); padding-inline-start: var(--s3); }
.sched__label { font-weight: 500; font-size: 15px; }
.sched__note { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* link rows */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 52px;
  padding: var(--s2) 0;
  text-decoration: none;
  border-block-end: 1px solid var(--line-2);
  transition: opacity .15s ease;
}
.row:last-child { border-block-end: 0; }
.row:active { opacity: .6; }

.row__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-util);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}
.row__icon svg { width: 19px; height: 19px; }
.i-park { background: var(--maiolica); }
.i-walk { background: var(--alga); }
.i-sight { background: var(--zolfo-2); }
.i-map { background: var(--basalt-2); }
.i-call { background: var(--alga); }
.i-boat { background: var(--maiolica-2); }
.i-flight { background: var(--basalt-2); }

.row__body { flex: 1; min-width: 0; }
.row__label { font-size: 15px; font-weight: 500; }
.row__note { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.row__addr {
  font-family: var(--font-util);
  font-size: 12.5px;
  color: var(--ink-2);
  direction: ltr;
  text-align: start;
}
.row__go {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(31, 92, 134, .28);
  color: var(--maiolica);
  display: grid;
  place-items: center;
}
.row__go svg { width: 13px; height: 13px; }

/* notes */
.notes { display: flex; flex-direction: column; gap: var(--s2); }
.notes li {
  font-size: 14.5px;
  color: var(--ink-2);
  padding-inline-start: var(--s4);
  position: relative;
  line-height: 1.6;
}
.notes li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--maiolica);
  transform: rotate(45deg);
}

/* alert */
.alert {
  margin: 0 var(--s4) var(--s4);
  background: #FDF3EF;
  border: 1px solid rgba(178, 58, 46, .25);
  border-inline-start: 4px solid var(--fico);
  border-radius: var(--r-sm);
  padding: var(--s3) var(--s4);
}
.alert__title { font-weight: 700; font-size: 14.5px; color: var(--fico); }
.alert__body { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* photo thumb */
.thumb {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--r-sm);
  overflow: hidden;
  text-align: start;
}
.thumb img { width: 100%; display: block; border-radius: var(--r-sm); border: 1px solid var(--line); }
.thumb__cap { font-size: 12px; color: var(--ink-3); margin-block-start: var(--s2); }

/* ---------- bookings ---------- */

.booking {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-block-end: var(--s4);
  padding: var(--s4);
}
.booking__tag {
  font-family: var(--font-util);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--maiolica);
}
.booking__title { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-block: var(--s1) 2px; }
.booking__ref { font-family: var(--font-util); font-size: 12.5px; color: var(--ink-3); direction: ltr; text-align: start; }

.kv { margin-block-start: var(--s4); display: flex; flex-direction: column; }
.kv__row { display: flex; gap: var(--s3); padding-block: var(--s2); border-block-end: 1px solid var(--line-2); }
.kv__row:last-child { border-block-end: 0; }
.kv__k { flex: 0 0 76px; font-size: 13px; color: var(--ink-3); }
.kv__v { flex: 1; font-size: 14.5px; }

.pills { display: flex; flex-wrap: wrap; gap: var(--s2); margin-block-start: var(--s4); }
.pill {
  font-size: 12.5px;
  color: var(--alga);
  background: rgba(46, 111, 85, .09);
  border-radius: 999px;
  padding: 4px var(--s3);
}
.bring {
  margin-block-start: var(--s4);
  font-size: 14px;
  color: var(--ink-2);
  background: rgba(232, 163, 23, .12);
  border-radius: var(--r-sm);
  padding: var(--s3);
}
.bring b { color: var(--ink); }

.booking__photos { display: flex; gap: var(--s2); margin-block-start: var(--s4); }
.booking__photos .thumb { flex: 1; }

/* ---------- contacts ---------- */

.calls { display: flex; flex-direction: column; gap: var(--s2); }
.call {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 60px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s3) var(--s4);
  text-decoration: none;
}
.call__name { flex: 1; font-size: 15px; font-weight: 500; }
.call__num { font-family: var(--font-util); font-size: 13.5px; color: var(--ink-2); direction: ltr; }
.call__icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--alga); color: #fff;
  display: grid; place-items: center;
}
.call__icon svg { width: 18px; height: 18px; }
.call--urgent .call__icon { background: var(--fico); }

/* ---------- tips ---------- */

.tips { display: flex; flex-direction: column; gap: var(--s3); }
.tip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s4);
}
.tip__title { font-weight: 700; font-size: 15.5px; margin-block-end: var(--s1); }
.tip__body { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- archive ---------- */

.archive {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.archive__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 56px;
  padding: var(--s3) var(--s4);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
}
.archive__summary::-webkit-details-marker { display: none; }
.archive__count { font-family: var(--font-util); font-size: 13px; color: var(--ink-3); }
.archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  padding: 0 var(--s4) var(--s4);
}
.archive__grid .thumb img { aspect-ratio: 1; object-fit: cover; }

/* ---------- footer ---------- */

.foot {
  max-width: 620px;
  margin-inline: auto;
  padding: var(--s10) var(--s4) calc(var(--s12) + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.7;
}
.foot__meta { margin-block-start: var(--s2); }
.foot a { color: var(--maiolica); }

/* ---------- image viewer ---------- */

.viewer[hidden], .install[hidden] { display: none; }

.viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(22, 17, 15, .96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  padding: var(--s4);
}
.viewer__img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--r-sm); }
.viewer__cap { color: rgba(245, 241, 234, .7); font-size: 13.5px; text-align: center; }
.viewer__close {
  position: absolute;
  top: calc(var(--s4) + env(safe-area-inset-top));
  inset-inline-end: var(--s4);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 234, .25);
  background: rgba(245, 241, 234, .08);
  color: #F5F1EA;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- install prompt ---------- */

.install {
  position: fixed;
  inset-inline: var(--s4);
  bottom: calc(var(--s4) + env(safe-area-inset-bottom));
  z-index: 70;
  background: var(--basalt);
  color: #F5F1EA;
  border-radius: var(--r);
  padding: var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  box-shadow: 0 16px 40px -12px rgba(22, 17, 15, .6);
  max-width: 588px;
  margin-inline: auto;
}
.install__text { flex: 1; min-width: 160px; font-size: 14.5px; }
.install__actions { display: flex; gap: var(--s2); }
.btn {
  min-height: 44px;
  padding: 0 var(--s4);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--solid { background: var(--zolfo); color: var(--basalt); font-weight: 700; }
.btn--ghost { background: transparent; color: rgba(245, 241, 234, .7); border-color: rgba(245, 241, 234, .25); }

/* ---------- wider screens ---------- */

@media (min-width: 700px) {
  .hero { padding-block: var(--s16) var(--s12); }
  .section { padding-inline: var(--s6); }
  .day__he { font-size: 30px; }
  .section__title { font-size: 30px; }
  .archive__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
