/* ====================================================================
   Greece 2026 — Components
   ==================================================================== */

/* -------------------- App header -------------------- */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.app-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--aegean-deep);
  letter-spacing: -0.01em;
}
.countdown-chip {
  background: var(--sand);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.edit-toggle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--aegean);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: transparent;
  transition: background 160ms ease;
}
.edit-toggle:active { background: var(--sand); }
.edit-toggle.is-active { color: var(--coral); }

/* -------------------- Bottom tab bar -------------------- */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--hairline);
}
.tab-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--tabbar-h);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.tab-bar a {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  color: var(--ink-muted);
  font-size: var(--fs-tab);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: color 200ms ease;
}
.tab-bar a svg { width: 22px; height: 22px; stroke-width: 1.75; }
.tab-bar a.is-active { color: var(--aegean); }
.tab-bar a.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 24px; height: 3px;
  border-radius: var(--r-pill);
  background: var(--coral);
}

/* -------------------- Section wrapper -------------------- */
.tab-section {
  padding: var(--space-5) 0 var(--space-7);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-5);
  padding: 0 var(--space-1);
}

/* -------------------- Trip hero -------------------- */
.hero {
  position: relative;
  margin: 0 calc(-1 * var(--space-4)) var(--space-6);
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--sand);
  isolation: isolate;
}
.hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14, 90, 133, 0.18) 0%, transparent 28%, transparent 55%, rgba(14, 90, 133, 0.62) 100%),
    linear-gradient(to top, rgba(14, 90, 133, 0.10), transparent 40%);
  pointer-events: none;
}
/* Subtle film-grain wash for editorial feel */
.hero__grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.22 0 0 0 0 0.40 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 160px 160px;
}
/* Soft fade where hero meets body */
.hero__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: linear-gradient(to bottom, rgba(251, 249, 244, 0), var(--whitewash) 95%);
  pointer-events: none;
  z-index: 2;
}
.hero__text {
  position: absolute;
  left: var(--space-5); right: var(--space-5);
  bottom: calc(var(--space-6) + 8px);
  color: #fff;
  z-index: 3;
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 12px rgba(14, 90, 133, 0.35);
}
.hero__rule {
  width: 44px;
  height: 1px;
  background: var(--coral);
  margin: 12px 0 10px;
  opacity: 0.95;
}
.hero__sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* -------------------- Family avatar row -------------------- */
.avatar-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px var(--space-4) 14px;
  margin: 0 calc(-1 * var(--space-4)) var(--space-6);
  scrollbar-width: none;
  /* Hairline group separators every 4 avatars via repeating background line */
  position: relative;
}
.avatar-row::-webkit-scrollbar { display: none; }
.avatar {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 6px; min-width: 56px;
  flex: 0 0 auto;
  position: relative;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.avatar:active { transform: translateY(-2px); }
.avatar__circle {
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 2px var(--whitewash),
    0 0 0 3px rgba(23, 136, 208, 0.08),
    0 2px 6px rgba(23, 136, 208, 0.12);
  position: relative;
}
.avatar__name {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
/* Group dividers between the 3 families (each is 4 people: positions 5 and 9) */
.avatar:nth-child(4n+1):not(:first-child)::before {
  content: "";
  position: absolute;
  left: -8px; top: 8px; bottom: 22px;
  width: 1px;
  background: var(--hairline);
}

/* -------------------- Generic card -------------------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1), var(--shadow-inset), var(--shadow-hairline);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
  margin-bottom: var(--space-4);
}
.card:active { transform: scale(0.99); box-shadow: var(--shadow-2), var(--shadow-inset), var(--shadow-hairline); }
.card__body { padding: var(--space-5); }
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 6px;
}
.card__desc {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

/* -------------------- Pinned action banner -------------------- */
.banner {
  background:
    linear-gradient(135deg, rgba(201, 98, 46, 0.14) 0%, rgba(201, 98, 46, 0.06) 60%, rgba(201, 98, 46, 0.03) 100%),
    var(--surface);
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-3);
  margin: 0 calc(-1 * var(--space-4)) var(--space-3);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  box-shadow: var(--shadow-1);
}
.banner__icon {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: rgba(201, 98, 46, 0.14);
  color: var(--warn);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.banner__icon svg { width: 16px; height: 16px; }
.banner__content { flex: 1; min-width: 0; }
.banner__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warn);
  margin-bottom: 3px;
}
.banner__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--ink);
  margin: 0 0 3px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.banner__body { font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.5; margin: 0; }
.banner--info {
  background:
    linear-gradient(135deg, rgba(23, 136, 208, 0.10) 0%, rgba(23, 136, 208, 0.04) 60%, rgba(23, 136, 208, 0.02) 100%),
    var(--surface);
  border-left-color: var(--aegean);
}
.banner--info .banner__icon { background: rgba(23, 136, 208, 0.10); color: var(--aegean); }
.banner--info .banner__tag { color: var(--aegean); }

/* -------------------- Flight card -------------------- */
.flight {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1), var(--shadow-inset), var(--shadow-hairline);
  padding: var(--space-5);
  margin-bottom: var(--space-3);
  position: relative;
}
.flight__tagline {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-3);
}
.flight__tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--r-pill);
}
.flight__tag--out { background: rgba(122, 139, 92, 0.15); color: var(--olive); }
.flight__tag--ret { background: rgba(232, 112, 79, 0.15); color: var(--coral); }
.flight__no {
  font-family: var(--font-display);
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  font-feature-settings: "tnum";
}
.flight__route {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--space-3);
}
.flight__col { display: flex; flex-direction: column; gap: 2px; }
.flight__col--right { text-align: right; align-items: flex-end; }
.flight__time {
  font-family: var(--font-display);
  font-weight: 500; font-size: 28px;
  color: var(--ink); letter-spacing: -0.02em;
  line-height: 1;
  font-feature-settings: "tnum", "lnum";
}
.flight__airport { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.flight__city { font-size: var(--fs-xs); color: var(--ink-muted); }
.flight__connector {
  display: flex; flex-direction: column; align-items: center;
  color: var(--ink-muted);
}
.flight__connector::before, .flight__connector::after {
  content: ""; width: 100%; height: 1px;
  background: repeating-linear-gradient(to right, var(--hairline) 0 4px, transparent 4px 8px);
  margin: 4px 0;
}
.flight__connector svg { width: 18px; height: 18px; }
.flight__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--fs-xs); color: var(--ink-muted);
}
.flight__meta span strong { color: var(--ink); font-weight: 600; }

/* -------------------- Hotel card -------------------- */
.hotel-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1), var(--shadow-inset), var(--shadow-hairline);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.hotel-card__media {
  aspect-ratio: 16 / 10;
  background: var(--sand);
}
.hotel-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hotel-card__body { padding: var(--space-5); }
.hotel-card__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h2); letter-spacing: -0.01em;
  margin: 0 0 6px; line-height: 1.2;
  position: relative;
}
.hotel-card__title::after {
  content: "";
  display: block;
  width: 28px; height: 1px;
  background: var(--coral);
  margin-top: 8px;
  opacity: 0.7;
}
.hotel-card__sub { font-size: var(--fs-sm); color: var(--ink-muted); margin: var(--space-3) 0; line-height: 1.5; }
.hotel-card__meta {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
  margin-bottom: var(--space-4);
}
.hotel-card__meta-row { display: flex; gap: 6px; align-items: center; color: var(--ink-muted); }
.hotel-card__meta-row svg { width: 14px; height: 14px; flex: 0 0 auto; }
.hotel-card__meta-row strong { color: var(--ink); font-weight: 600; }
.hotel-card__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* -------------------- Pill buttons -------------------- */
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, transform 120ms ease;
  border: 1px solid transparent;
}
.pill-btn svg { width: 14px; height: 14px; }
.pill-btn--primary { background: var(--aegean); color: #fff; }
.pill-btn--primary:active { background: var(--aegean-deep); transform: scale(0.97); }
.pill-btn--outline { background: transparent; color: var(--aegean); border-color: var(--aegean); }
.pill-btn--outline:active { background: rgba(23, 136, 208, 0.08); }
.pill-btn--ghost { background: var(--sand); color: var(--ink); }
.pill-btn--ghost:active { background: var(--sand-deep); }

/* -------------------- Day card -------------------- */
.day-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1), var(--shadow-inset), var(--shadow-hairline);
  overflow: hidden;
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: box-shadow 200ms ease;
}
.day-card.is-expanded { box-shadow: var(--shadow-2), var(--shadow-inset), var(--shadow-hairline); }
.day-card__head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  align-items: center;
}
.day-card__date {
  width: 64px; height: 64px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--sand) 0%, var(--sand-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(23, 136, 208, 0.06),
    inset 0 0 0 1px rgba(232, 228, 219, 0.6);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.day-card__date-num {
  font-family: var(--font-display);
  font-weight: 600; font-size: 30px;
  color: var(--aegean-deep); line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "lnum", "tnum";
}
.day-card__date-wk {
  font-size: 10px;
  font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}
.day-card__info { min-width: 0; }
.day-card__title {
  font-family: var(--font-body);
  font-weight: 600; font-size: var(--fs-body);
  color: var(--ink);
  margin: 0 0 2px;
}
.day-card__region {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent;
  color: var(--olive);
  padding: 0;
  display: inline-flex; align-items: center; gap: 5px;
  margin-bottom: 6px;
}
.day-card__region::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--olive);
  opacity: 0.7;
}
.day-card__summary {
  font-size: var(--fs-xs); color: var(--ink-muted);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.day-card__chevron {
  color: var(--ink-muted); flex: 0 0 auto;
  transition: transform 240ms ease;
}
.day-card.is-expanded .day-card__chevron { transform: rotate(180deg); }
.day-card__body {
  display: none;
  padding: 0 var(--space-4) var(--space-4) var(--space-4);
  border-top: 1px solid var(--hairline);
  margin-top: 0;
}
.day-card.is-expanded .day-card__body { display: block; padding-top: var(--space-4); }

/* Timeline rail inside expanded day */
.day-card__body { position: relative; }
.day-card.is-expanded .day-card__body::before {
  content: "";
  position: absolute;
  left: 22px;
  top: var(--space-4);
  bottom: var(--space-4);
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--hairline) 8%, var(--hairline) 92%, transparent);
  pointer-events: none;
}
.day-card.is-expanded .day-card__body .card {
  position: relative;
  margin-left: 36px;
  border-radius: var(--r-md);
}
.day-card.is-expanded .day-card__body .card::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 18px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--coral);
}

/* -------------------- Place card -------------------- */
.places-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 600px) {
  .places-grid { grid-template-columns: repeat(2, 1fr); }
}
.place-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1), var(--shadow-inset), var(--shadow-hairline);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.place-card:active { transform: scale(0.98); box-shadow: var(--shadow-2), var(--shadow-inset), var(--shadow-hairline); }
.place-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-deep) 100%);
}
.place-card__media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.place-card__region {
  position: absolute; top: 12px; left: 12px;
  background: rgba(251, 249, 244, 0.94);
  color: var(--ink);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--r-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 1px 2px rgba(14, 90, 133, 0.10);
}
.place-card__credit {
  position: absolute; bottom: 10px; left: 12px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.place-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.place-card__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h2); letter-spacing: -0.01em;
  margin: 0; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.place-card__desc {
  font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.5;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.place-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: var(--space-2);
}
.place-card__maplink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--ink-muted); text-decoration: none;
}
.place-card__maplink svg { width: 14px; height: 14px; }
.place-card__add {
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: var(--sand); color: var(--aegean);
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
}
.place-card__add:active { background: var(--sand-deep); transform: scale(0.95); }
.place-card__add svg { width: 18px; height: 18px; }

/* -------------------- Restaurant card -------------------- */
.eats-list { display: flex; flex-direction: column; gap: var(--space-4); }
.eats-region {
  font-family: var(--font-display);
  font-weight: 500; font-size: var(--fs-h3);
  letter-spacing: -0.005em;
  margin: var(--space-5) 0 var(--space-3);
  color: var(--ink);
  position: relative;
  padding-top: 10px;
}
.eats-region::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 1px;
  background: var(--olive);
  opacity: 0.85;
}
.restaurant-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow:
    0 1px 2px rgba(122, 139, 92, 0.06),
    0 3px 10px rgba(122, 139, 92, 0.08),
    inset 0 0 0 1px rgba(232, 228, 219, 0.7);
  overflow: hidden;
  display: grid;
  grid-template-columns: 110px 1fr;
  transition: transform 200ms ease;
}
.restaurant-card:active { transform: scale(0.99); }
.restaurant-card__media {
  aspect-ratio: 1; background: var(--sand);
}
.restaurant-card__media img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-card__body { padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.restaurant-card__pills { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 4px; align-items: center; }
.pill-sm {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; color: var(--ink-muted);
  padding: 3px 0; border-radius: 0;
  border-right: 1px solid var(--hairline);
  padding-right: 8px; margin-right: 3px;
  line-height: 1;
}
.pill-sm:last-of-type, .restaurant-card__pills .pill-sm:last-child {
  border-right: none; padding-right: 0; margin-right: 0;
}
.pill-sm--kid { color: var(--olive); }
.restaurant-card__title {
  font-family: var(--font-display);
  font-weight: 500; font-size: var(--fs-h3); letter-spacing: -0.005em;
  margin: 0; line-height: 1.2;
  position: relative;
  padding-bottom: 5px;
}
.restaurant-card__title::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0; left: 0;
  width: 18px; height: 1px;
  background: var(--coral);
  opacity: 0.7;
}
.restaurant-card__desc {
  font-size: var(--fs-xs); color: var(--ink-muted);
  line-height: 1.4; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -------------------- Filter chips -------------------- */
.chips {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.chip {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: var(--fs-sm); font-weight: 600;
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: all 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.chip.is-active {
  background: var(--aegean); color: #fff; border-color: var(--aegean);
}
.chip:active { transform: scale(0.96); }

/* -------------------- Packing -------------------- */
.pack-list { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1), var(--shadow-inset); margin-bottom: var(--space-4); }
.pack-cat {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted);
  padding: var(--space-3) var(--space-4) 4px;
}
.pack-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pack-item:last-child { border-bottom: none; }
.pack-checkbox {
  width: 22px; height: 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--hairline);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: all 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
  flex: 0 0 auto;
}
.pack-checkbox svg { width: 14px; height: 14px; opacity: 0; transition: opacity 200ms ease; }
.pack-item.is-checked .pack-checkbox {
  background: var(--olive); border-color: var(--olive);
}
.pack-item.is-checked .pack-checkbox svg { opacity: 1; }
.pack-item__label { font-size: var(--fs-body); flex: 1; transition: color 200ms ease; }
.pack-item.is-checked .pack-item__label {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

/* -------------------- WhatsApp highlight bubble -------------------- */
.wa-card {
  background:
    linear-gradient(180deg, var(--whitewash-warm) 0%, var(--sand) 100%);
  border-radius: 20px 20px 20px 6px;
  padding: var(--space-5) var(--space-5) var(--space-4);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(23, 136, 208, 0.05),
    inset 0 0 0 1px rgba(232, 228, 219, 0.8);
}
.wa-card__quote {
  position: absolute;
  top: -14px; left: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 110px;
  color: var(--coral);
  opacity: 0.20;
  line-height: 1;
  margin: 0;
  pointer-events: none;
  user-select: none;
  font-feature-settings: "ss01";
}
.wa-card__title {
  font-family: var(--font-display);
  font-weight: 500; font-size: var(--fs-h3);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
}
.wa-card__body {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px; line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  font-feature-settings: "onum";
  position: relative;
  z-index: 1;
}
.wa-card__meta {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-muted);
  border-top: 1px solid rgba(232, 228, 219, 0.9);
  position: relative;
  z-index: 1;
}
.wa-card__meta span:first-child { color: var(--aegean-deep); }

/* -------------------- Must-do card -------------------- */
.mustdo-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1), var(--shadow-inset), var(--shadow-hairline);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.mustdo-card__media {
  aspect-ratio: 16 / 9;
  background: var(--sand);
}
.mustdo-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mustdo-card__body { padding: var(--space-4) var(--space-5); }
.mustdo-card__title {
  font-family: var(--font-display);
  font-weight: 500; font-size: var(--fs-h2);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
  position: relative;
  padding-bottom: 8px;
}
.mustdo-card__title::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 1px;
  background: var(--coral);
  opacity: 0.8;
}
.mustdo-card__body p {
  font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.55;
  margin: 0 0 var(--space-2); white-space: pre-wrap;
}

/* -------------------- Bottom sheet modal -------------------- */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(14, 90, 133, 0.4);
  z-index: 100;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 101;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-3);
  max-height: 92vh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-open { transform: translateY(0); }
.sheet__handle {
  width: 36px; height: 4px;
  background: var(--hairline);
  border-radius: var(--r-pill);
  margin: 8px auto 0;
  flex: 0 0 auto;
}
.sheet__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--hairline);
  flex: 0 0 auto;
}
.sheet__cancel, .sheet__save {
  font-family: var(--font-body);
  font-weight: 600; font-size: var(--fs-sm);
  padding: 6px 12px; border-radius: var(--r-pill);
  background: transparent; border: none; cursor: pointer;
}
.sheet__cancel { color: var(--ink-muted); }
.sheet__save { color: #fff; background: var(--aegean); padding: 8px 16px; }
.sheet__save.is-saving { background: var(--coral); }
.sheet__title {
  font-family: var(--font-display);
  font-weight: 500; font-size: var(--fs-h3);
}
.sheet__body {
  padding: var(--space-5);
  overflow-y: auto;
  flex: 1;
}
.sheet__field { margin-bottom: var(--space-4); }
.sheet__field label {
  display: block;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.sheet__field input, .sheet__field textarea {
  width: 100%;
  padding: 14px var(--space-4);
  font-family: var(--font-body); font-size: 16px;
  background: var(--sand); border: none;
  border-radius: var(--r-md);
  color: var(--ink);
  -webkit-appearance: none;
}
.sheet__field textarea { min-height: 100px; resize: vertical; }
.sheet__field input:focus, .sheet__field textarea:focus {
  outline: 2px solid var(--aegean);
  outline-offset: -2px;
}

/* -------------------- Edit mode -------------------- */
body.is-editing {
  background: var(--whitewash-warm);
  transition: background-color 200ms ease;
}
body.is-editing .place-card,
body.is-editing .restaurant-card,
body.is-editing .mustdo-card,
body.is-editing .day-card,
body.is-editing .hotel-card,
body.is-editing .flight,
body.is-editing .wa-card,
body.is-editing .banner {
  outline: 1.5px dashed rgba(232, 112, 79, 0.5);
  outline-offset: 2px;
}

/* Floating action button — edit mode */
.fab {
  position: fixed;
  right: var(--space-4);
  bottom: calc(env(safe-area-inset-bottom) + var(--tabbar-h) + var(--space-4));
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: var(--r-pill);
  background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-3);
  border: none; cursor: pointer;
  opacity: 0; transform: scale(0);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
body.is-editing .fab { opacity: 1; transform: scale(1); pointer-events: auto; }
.fab svg { width: 24px; height: 24px; }

/* -------------------- Toast -------------------- */
.toast {
  position: fixed;
  top: calc(env(safe-area-inset-top) + var(--header-h) + 8px);
  left: 50%; transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500;
  box-shadow: var(--shadow-2);
  z-index: 200;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; }
.toast--success { background: var(--olive); }
.toast--warn { background: var(--warn); }

/* -------------------- Recent edits feed -------------------- */
.feed { display: flex; flex-direction: column; }
.feed-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--hairline);
}
.feed-row:last-child { border-bottom: none; }
.feed-row__avatar {
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: var(--aegean); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
}
.feed-row__text { font-size: var(--fs-sm); color: var(--ink); line-height: 1.4; }
.feed-row__text strong { font-weight: 600; }
.feed-row__time { font-size: var(--fs-xs); color: var(--ink-muted); margin-top: 2px; }

/* -------------------- Empty states -------------------- */
.empty {
  text-align: center;
  padding: var(--space-9) var(--space-4);
  color: var(--ink-muted);
}
.empty svg { width: 56px; height: 56px; opacity: 0.3; margin: 0 auto var(--space-4); display: block; }
.empty h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h2); color: var(--ink); margin: 0 0 var(--space-2);
}
.empty p { font-size: var(--fs-sm); margin: 0 0 var(--space-4); }

/* -------------------- Skeletons -------------------- */
.skel {
  background: linear-gradient(90deg, var(--sand) 0%, var(--sand-deep) 50%, var(--sand) 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 2.4s linear infinite;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(232, 228, 219, 0.6);
}
.skel--line { height: 12px; border-radius: var(--r-pill); margin: 6px 0; }
.skel--line-1 { width: 92%; }
.skel--line-2 { width: 78%; }
.skel--line-3 { width: 65%; }
.skel--line-4 { width: 84%; }
.skel--card { height: 168px; margin-bottom: var(--space-4); border-radius: var(--r-lg); }
@keyframes skel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* -------------------- Tab entrance motion -------------------- */
.tab-section { animation: tab-in 240ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.tab-section > * { animation: card-rise 280ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.tab-section > *:nth-child(1) { animation-delay: 0ms; }
.tab-section > *:nth-child(2) { animation-delay: 40ms; }
.tab-section > *:nth-child(3) { animation-delay: 80ms; }
.tab-section > *:nth-child(4) { animation-delay: 120ms; }
.tab-section > *:nth-child(5) { animation-delay: 160ms; }
.tab-section > *:nth-child(6) { animation-delay: 200ms; }
.tab-section > *:nth-child(7) { animation-delay: 240ms; }
.tab-section > *:nth-child(n+8) { animation-delay: 280ms; }
@keyframes tab-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tab-section,
  .tab-section > * { animation: none !important; }
  .skel { animation: none; }
  .hero__grain { display: none; }
}

/* -------------------- Map section (Leaflet container, shared design language) -------------------- */
/* Coordinator owns .map-section / #trip-map / .map-legend / .map-pin-* — only adding
   complementary outer chrome that matches the rest of the design language. */
.map-section {
  margin-bottom: var(--space-5);
}
.map-section__inner {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1), var(--shadow-inset), var(--shadow-hairline);
}
#trip-map {
  border-radius: var(--r-lg);
  /* Aspect ratio fallback if not sized inline */
  min-height: 240px;
}
/* Tone down Leaflet's default attribution to fit editorial palette */
.map-section .leaflet-control-attribution {
  background: rgba(251, 249, 244, 0.85) !important;
  color: var(--ink-muted) !important;
  font-family: var(--font-body) !important;
  font-size: 10px !important;
}
.map-section .leaflet-control-attribution a { color: var(--aegean) !important; }

/* -------------------- Section header -------------------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 var(--space-1);
  margin: var(--space-6) 0 var(--space-4);
  position: relative;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h2); letter-spacing: -0.01em;
  position: relative;
  padding-top: 10px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 1px;
  background: var(--coral);
  opacity: 0.85;
}
.section-head .sub {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  font-style: italic;
  font-family: var(--font-display);
  font-feature-settings: "onum";
}

/* Section title (top-of-tab variant) — match underline treatment */
.section-title {
  position: relative;
  padding-top: 10px;
}
.section-title::before {
  content: "";
  position: absolute;
  top: 0; left: var(--space-1);
  width: 40px; height: 1px;
  background: var(--coral);
  opacity: 0.85;
}

/* Image fallback placeholder pattern */
.img-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-deep) 100%);
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 24px;
  width: 100%; height: 100%;
}

/* -------------------- Trip Map (Leaflet + OpenStreetMap) -------------------- */
.map-section {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1), var(--shadow-inset), var(--shadow-hairline, none);
  overflow: hidden;
  margin-bottom: var(--space-5);
}
#trip-map {
  width: 100%;
  height: 380px;
  background: var(--sand);
}
@media (min-width: 600px) {
  #trip-map { height: 440px; }
}

/* Reset-view button (top-right of map) */
.trip-map__reset button {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--aegean);
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.trip-map__reset button:hover { background: var(--aegean-pale); }
.trip-map__reset button svg { width: 16px; height: 16px; }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--hairline);
  background: var(--whitewash);
}
.map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.map-pin-dot {
  width: 10px; height: 10px;
  border-radius: var(--r-pill);
  display: inline-block;
  box-shadow: 0 0 0 2px var(--whitewash), 0 1px 2px rgba(0,0,0,0.12);
}
.map-pin-dot--mustdo { background: #E8704F; }
.map-pin-dot--beach  { background: #1788D0; }
.map-pin-dot--town   { background: #0E5A85; }
.map-pin-dot--food   { background: #7A8B5C; }
.map-pin-dot--hotel  { background: #C9622E; }

/* Leaflet custom divIcon — teardrop pins */
.trip-pin {
  background: transparent !important;
  border: none !important;
}
.trip-pin__svg {
  display: block;
  transform-origin: 50% 100%;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(14, 90, 133, 0.18));
}
.trip-pin--confirmed .trip-pin__svg {
  filter: drop-shadow(0 4px 8px rgba(14, 90, 133, 0.30)) drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.leaflet-marker-icon:hover .trip-pin__svg,
.leaflet-marker-icon:focus .trip-pin__svg {
  transform: scale(1.12) translateY(-2px);
}

/* Leaflet popup styled to match the rest of the site */
.leaflet-container {
  font-family: var(--font-body) !important;
  font-size: var(--fs-sm) !important;
}
.leaflet-popup-content-wrapper {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 0;
}
.leaflet-popup-content {
  margin: 14px 16px 12px;
  line-height: 1.45;
}
.leaflet-popup-tip { background: var(--surface); }
.leaflet-container a.leaflet-popup-close-button {
  color: var(--ink-muted);
  font-size: 18px;
  padding: 6px 8px 0 0;
}
.trip-popup__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.trip-popup h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  margin: 0 0 4px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.trip-popup p {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  margin: 0 0 8px;
  line-height: 1.4;
}
.trip-popup a {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--aegean);
  text-decoration: none;
}

/* -------------------- Family picker modal -------------------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(14, 90, 133, 0.50);
  z-index: 200;
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }

.family-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 201;
  width: min(92vw, 380px);
  max-height: 92vh;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 60px rgba(14, 90, 133, 0.35), 0 4px 12px rgba(0,0,0,0.10);
  padding: var(--space-6) var(--space-5) var(--space-4);
  opacity: 0;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.family-modal.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.family-modal__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
  text-align: center;
}
.family-modal__sub {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin: 0 0 var(--space-5);
  text-align: center;
  line-height: 1.45;
}
.family-modal__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-4);
}
.family-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 2px solid var(--hairline);
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 180ms ease;
  text-align: left;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.family-btn:hover, .family-btn:active {
  border-color: var(--fam-color, var(--aegean));
  background: color-mix(in srgb, var(--fam-color, var(--aegean)) 6%, var(--surface));
  transform: translateY(-1px);
}
.family-btn__init {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--fam-color, var(--aegean));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--fam-color, var(--aegean)) 35%, transparent);
}
.family-btn__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.family-modal__cancel {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--r-pill);
}
.family-modal__cancel:hover { background: var(--sand); }

/* -------------------- "In plan" assignment badges -------------------- */
.card-assigned-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--olive);
  color: #fff;
  padding: 5px 9px;
  border-radius: var(--r-pill);
  box-shadow: 0 2px 6px rgba(122, 139, 92, 0.35), inset 0 0 0 1px rgba(255,255,255,0.25);
  white-space: nowrap;
}
.card-assigned-badge--overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.card-assigned-badge--corner {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 22px; height: 22px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  letter-spacing: 0;
}
/* Slight visual nod that an item is already scheduled */
.place-card.is-assigned {
  box-shadow: var(--shadow-1), 0 0 0 2px rgba(122, 139, 92, 0.30), var(--shadow-hairline);
}
.restaurant-card.is-assigned {
  box-shadow: 0 1px 2px rgba(122, 139, 92, 0.10), 0 3px 10px rgba(122, 139, 92, 0.12), inset 0 0 0 1.5px rgba(122, 139, 92, 0.45);
}
.pill-sm--assigned {
  color: var(--olive) !important;
  font-weight: 700 !important;
  border-right: 1px solid var(--hairline);
}

/* Picker — when item is assigned to OTHER day(s), not the current one */
.picker-row.is-assigned-elsewhere {
  background: rgba(122, 139, 92, 0.05);
  border-color: rgba(122, 139, 92, 0.20);
}
.picker-row.is-assigned-elsewhere .picker-row__check {
  background: var(--surface);
  border-color: var(--olive);
  color: var(--olive);
  opacity: 0.5;
}
.picker-row.is-assigned-elsewhere .picker-row__check svg { opacity: 0.5; }
.picker-row__elsewhere {
  color: var(--olive);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-left: 4px;
  text-transform: none;
  font-size: 9px;
}

/* -------------------- Tab head row (title + add button) -------------------- */
.tab-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.tab-head-row .pill-btn { flex-shrink: 0; }

/* -------------------- Day items (assigned places/restaurants in day card) -------------------- */
.day-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin: 0 0 8px 36px;
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(14, 90, 133, 0.04);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.day-item:active { transform: scale(0.99); }
.day-item__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}
.day-item__body { min-width: 0; }
.day-item__tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.day-item__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.3;
}
.day-item__desc {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.day-item__remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 160ms ease, color 160ms ease;
}
.day-item__remove:hover, .day-item__remove:active {
  background: rgba(232, 112, 79, 0.12);
  color: var(--coral);
}
.day-item__remove svg { width: 14px; height: 14px; }

/* Action button row in expanded day card */
.day-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--hairline);
}
.day-card.is-expanded .day-card__body::before {
  /* Hide the timeline rail since day-items now have their own indent */
  display: none;
}
.day-card.is-expanded .day-card__body .card,
.day-card.is-expanded .day-card__body .day-item {
  margin-left: 0;
}
.day-card.is-expanded .day-card__body .card::before { display: none; }

/* -------------------- Picker sheet rows -------------------- */
.picker-row {
  display: grid;
  grid-template-columns: 56px 1fr 32px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 160ms ease;
  margin-bottom: 6px;
  border: 1.5px solid transparent;
}
.picker-row:hover, .picker-row:active { background: var(--sand); }
.picker-row.is-assigned {
  background: rgba(122, 139, 92, 0.10);
  border-color: rgba(122, 139, 92, 0.30);
}
.picker-row__media {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.picker-row__media img { width: 100%; height: 100%; object-fit: cover; }
.picker-row__dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 1px 3px rgba(0,0,0,0.15);
}
.picker-row__body { min-width: 0; }
.picker-row__tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.picker-row__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.3;
}
.picker-row__desc {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.picker-row__check {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.picker-row__check svg { width: 14px; height: 14px; }
.picker-row.is-assigned .picker-row__check {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.sheet__title-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* -------------------- Phase cards (Days tab orientation) -------------------- */
.phase-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2), var(--shadow-inset);
  margin-bottom: var(--space-3);
  overflow: hidden;
  display: grid;
  grid-template-columns: 64px 1fr;
}
.phase-card--1 {
  background: linear-gradient(135deg, var(--aegean-pale) 0%, #FFFFFF 60%);
}
.phase-card--2 {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 70%);
}
.phase-card__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  color: var(--aegean);
  background: rgba(23, 136, 208, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.phase-card--2 .phase-card__num {
  color: var(--coral);
  background: rgba(232, 112, 79, 0.10);
}
.phase-card__body { padding: var(--space-4) var(--space-5); }
.phase-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.phase-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--ink);
}
.phase-card__sub {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.phase-card__desc {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

/* -------------------- Map legend (new grouped layout) -------------------- */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  padding: var(--space-4);
  border-top: 1px solid var(--hairline);
  background: var(--whitewash);
}
.map-legend__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
  flex: 1;
}
.map-legend__heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
}

/* Legend mini-pins (teardrops to match the map) */
.map-pin-dot {
  position: relative;
  width: 14px; height: 18px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: inline-block;
  flex-shrink: 0;
}
.map-pin-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'><path d='M20 1.5C10.6 1.5 3 9.1 3 18.5c0 11.5 14.4 28 16.4 30.3.3.4.9.4 1.2 0C22.6 46.5 37 30 37 18.5 37 9.1 29.4 1.5 20 1.5z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'><path d='M20 1.5C10.6 1.5 3 9.1 3 18.5c0 11.5 14.4 28 16.4 30.3.3.4.9.4 1.2 0C22.6 46.5 37 30 37 18.5 37 9.1 29.4 1.5 20 1.5z'/></svg>") no-repeat center / contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.18));
}
.map-pin-dot--mustdo  { color: #E8704F; }
.map-pin-dot--hotel   { color: #1788D0; }
.map-pin-dot--airport { color: #0E5A85; }
.map-pin-dot--beach   { color: #2BA4E8; }
.map-pin-dot--town    { color: #7A8B5C; }
.map-pin-dot--food    { color: #C9622E; }
.map-pin-dot--big {
  width: 18px; height: 24px;
}
