/* =========================================================
   Mike & Ashley · Italy 2026
   Warm Italian theme — terracotta, cream, olive, gold.
   Mobile-first; desktop styles layered via @media queries.
   ========================================================= */

:root {
  --cream:        #FAF3E7;
  --cream-deep:  #F1E5CC;
  --terracotta:  #C44536;
  --terracotta-d:#A33429;
  --olive:        #7C8A4B;
  --olive-d:     #5F6A36;
  --gold:         #D4A574;
  --ink:          #3D2E2A;
  --ink-soft:    #6B5852;
  --line:         #E5D4B8;
  --shadow:      0 4px 14px rgba(61, 46, 42, 0.10);
  --shadow-deep: 0 10px 28px rgba(61, 46, 42, 0.16);
  --radius:       10px;
  --radius-lg:   16px;
}

/* Reset-ish */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, iframe { max-width: 100%; display: block; }
a { color: var(--terracotta-d); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.15;
}
h2 { font-size: 2.1rem; }
h3 { font-size: 1.25rem; }

/* =================== TOP NAV =================== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 243, 231, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}
.topnav .brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.3px;
}
.topnav .brand span { color: var(--terracotta); font-style: italic; }
.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px; height: 40px;
  font-size: 1.3rem;
  color: var(--ink);
  cursor: pointer;
}
.navlinks {
  list-style: none;
  margin: 0; padding: 0;
  display: none;
  position: absolute;
  top: 100%; right: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  padding: 8px 0;
  min-width: 160px;
}
.navlinks.open { display: block; }
.navlinks li a {
  display: block;
  padding: 10px 18px;
  color: var(--ink);
  font-weight: 500;
}
.navlinks li a:hover {
  background: var(--cream-deep);
  text-decoration: none;
}

/* =================== HERO =================== */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(196,69,54,0.85), rgba(196,69,54,0.92)),
    radial-gradient(circle at 20% 20%, var(--gold) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, var(--olive) 0%, transparent 50%),
    var(--terracotta);
  color: var(--cream);
  padding: 58px 24px 64px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
/* Cartoon Italy floating in the hero background */
.italy-bg {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  height: 120%;
  max-width: 60%;
  pointer-events: none;
  opacity: 0.85;
}
@media (max-width: 720px) {
  .italy-bg {
    right: -60px;
    height: 110%;
    opacity: 0.55;
  }
}

.hero-inner { position: relative; max-width: 720px; margin: 0 auto; z-index: 2; }
.hero .kicker {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 12px;
  opacity: 0.9;
}
.hero h1 {
  font-size: 3rem;
  color: var(--cream);
  margin: 0 0 16px;
  line-height: 1.05;
}
.hero h1 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}
.hero .lede {
  font-size: 1.15rem;
  margin: 0 0 32px;
  opacity: 0.95;
}
.hero-stats {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}
.hero-stats li {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.hero-stats strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
}
.hero-stats span {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* =================== CITY SECTIONS =================== */
.city {
  margin: 0 auto;
  padding: 0;
  max-width: 880px;
}
.city-banner {
  padding: 38px 24px 28px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.city-banner h2 {
  font-size: 2.6rem;
  margin: 0 0 6px;
}
.city-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.city-dates {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}
.florence-banner h2 { color: var(--terracotta); }
.rome-banner    h2 { color: var(--olive-d); }
.puglia-banner  h2 { color: #2d6a8e; }

.city-content {
  padding: 24px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =================== HOTEL CARD =================== */
.hotel-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.hotel-card h3 {
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 0 8px;
}
.hotel-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}
.hotel-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 16px;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  aspect-ratio: 16 / 10;
  background: var(--cream-deep);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.nearby-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}
.pill:hover {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
  text-decoration: none;
}

/* =================== DAY CARDS =================== */
.day {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}
.day-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.day-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.day-date {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
}
.day h3 {
  margin: 0 0 8px;
  color: var(--ink);
}
.day-sub {
  color: var(--olive-d);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0 0 10px;
}
.day-list {
  margin: 0;
  padding: 0 0 0 20px;
}
.day-list li {
  margin-bottom: 7px;
  color: var(--ink);
}
.day-list li::marker {
  color: var(--terracotta);
}
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--olive);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

/* =================== TRAVEL BREAK =================== */
.travel-break {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 20px;
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.travel-break span {
  font-size: 1.6rem;
}
.travel-break p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.travel-break strong { color: var(--ink); }

/* =================== MAP SECTION =================== */
.mapsection {
  padding: 50px 18px 50px;
  max-width: 880px;
  margin: 0 auto;
}
.mapsection > h2 {
  text-align: center;
  color: var(--terracotta);
  font-style: italic;
  margin-bottom: 6px;
}
.cartoon-map-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 28px;
}
.cartoon-italy {
  width: 100%;
  max-height: 520px;
  display: block;
  margin: 0 auto;
}
.cartoon-italy .map-label {
  font-family: 'Caveat', 'Playfair Display', cursive;
  font-size: 22px;
  font-weight: 700;
}
.map-legend {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.map-legend li { display: flex; align-items: center; gap: 6px; }
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot-flo { background: var(--terracotta); }
.dot-rom { background: var(--olive-d); }
.dot-pug { background: #2D6A8E; }

.map-sub-heading {
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--olive-d);
  margin: 8px 0 12px;
}
/* ----- Google Maps interactive map ----- */
.google-map {
  height: 540px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--cream-deep);
}
.map-hint {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 10px;
}

/* City tabs */
.map-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 4px 0 12px;
  padding-bottom: 4px;
}
.map-tabs::-webkit-scrollbar { display: none; }
.map-tab {
  flex: 0 0 auto;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.12s ease;
}
.map-tab:hover { border-color: var(--terracotta); color: var(--terracotta-d); }
.map-tab.is-on {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
}
.map-tab-count {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.78rem;
  opacity: 0.75;
  font-weight: 500;
}
.map-tab.is-on .map-tab-count { opacity: 0.85; color: rgba(255,255,255,0.9); }

/* Category chips (multi-select) */
.map-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.map-cat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.12s ease, border-color 0.12s ease;
}
.map-cat.is-off { opacity: 0.4; }
.map-cat-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}

/* Search bar + count */
.map-search {
  position: relative;
  margin: 0 0 14px;
}
.map-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px 11px 38px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B5852' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 12px center;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.map-search input:focus {
  outline: none;
  border-color: var(--terracotta);
}
.map-count {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-style: italic;
  pointer-events: none;
}

/* Filtered place list under the map */
.map-list {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
}
.map-list-item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s, border-color 0.1s;
}
.map-list-item:hover {
  background: var(--cream-deep);
  border-color: var(--terracotta);
}
.map-list-icon {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: white;
}
.map-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.map-list-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}
.map-list-meta {
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.map-list-day {
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.map-list-empty {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  padding: 24px 12px;
}

/* Google Maps info window content */
.iw {
  font-family: inherit;
  color: var(--ink);
  max-width: 280px;
}
.iw-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 4px;
}
.iw-meta {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-style: italic;
  margin-bottom: 8px;
}
.iw-day {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--terracotta);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.iw-notes {
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.4;
}
.iw-sources {
  font-size: 0.78rem;
  margin-bottom: 8px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.iw-source { margin: 3px 0; }
.iw-who {
  font-weight: 700;
  color: var(--ink);
  margin-right: 2px;
}
.iw-sources a { color: var(--terracotta-d); font-weight: 600; }
.iw-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.iw-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ink);
  color: white !important;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.iw-btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}

/* Italian tricolor accent strip used decoratively */
.tricolore {
  height: 4px;
  background: linear-gradient(to right, #009246 0 33.33%, #FFFFFF 33.33% 66.66%, #CE2B37 66.66% 100%);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* =================== TOURS =================== */
.tours {
  padding: 50px 18px 50px;
  max-width: 880px;
  margin: 0 auto;
}
.tours > h2 {
  text-align: center;
  color: var(--terracotta);
  font-style: italic;
  margin-bottom: 6px;
}
.tour-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  overflow: hidden;
}
.tour-head {
  padding: 22px 24px 16px;
  border-bottom: 4px solid var(--terracotta);
  background: linear-gradient(180deg, white 0%, var(--cream) 100%);
}
.tour-card.tour-flo .tour-head { border-bottom-color: var(--terracotta); }
.tour-card.tour-rom .tour-head { border-bottom-color: var(--olive-d); }
.tour-card.tour-chianti .tour-head { border-bottom-color: var(--gold); }
.tour-card.tour-pug .tour-head { border-bottom-color: #2D6A8E; }

.tour-when {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.tour-head h3 {
  font-size: 1.55rem;
  margin: 0 0 4px;
  color: var(--ink);
}
.tour-where {
  margin: 0;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.95rem;
}
.tour-body {
  padding: 22px 24px 24px;
}
.tour-intro {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 18px;
}
.tour-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 16px 0 6px;
  color: var(--terracotta);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 4px;
}
.tour-card.tour-rom .tour-body h4 { color: var(--olive-d); }
.tour-card.tour-chianti .tour-body h4 { color: #9c7438; }
.tour-card.tour-pug .tour-body h4 { color: #1f4e6a; }

.tour-body ul {
  margin: 0 0 8px;
  padding-left: 20px;
}
.tour-body li {
  margin-bottom: 6px;
  line-height: 1.5;
}
.tour-body li::marker {
  color: var(--terracotta);
}
.tour-card.tour-rom .tour-body li::marker { color: var(--olive-d); }
.tour-card.tour-chianti .tour-body li::marker { color: var(--gold); }

/* =================== BUDGET =================== */
.budget {
  padding: 50px 18px 50px;
  max-width: 880px;
  margin: 0 auto;
}
.budget > h2 {
  text-align: center;
  color: var(--terracotta);
  font-style: italic;
  margin-bottom: 6px;
}
.budget-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 22px;
  margin-bottom: 18px;
  overflow-x: auto;
}
.budget-cat {
  font-size: 1.2rem;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cream-deep);
  color: var(--ink);
}
.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.budget-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--cream-deep);
  vertical-align: top;
}
.budget-table tr:last-child td {
  border-bottom: none;
}
.budget-table td:first-child {
  color: var(--ink);
  width: 50%;
}
.bg-status {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-style: italic;
  width: 30%;
}
.bg-status.bg-tbd, .bg-amt.bg-tbd {
  color: #B89968;
}
.bg-amt {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: 20%;
}
.bg-subtotal td {
  font-weight: 700;
  color: var(--terracotta-d);
  border-top: 2px solid var(--terracotta);
  padding-top: 12px;
}
.bg-subtotal td:first-child {
  font-style: italic;
  font-family: 'Playfair Display', serif;
}
.budget-total {
  background: var(--cream-deep);
  border-color: var(--terracotta);
  text-align: center;
}
.budget-total .budget-cat {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
  font-family: 'Playfair Display', serif;
  font-style: italic;
}
.bg-grand-line {
  font-size: 1.1rem;
  margin: 8px 0 4px;
}
.bg-grand-line strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--terracotta);
}
.bg-grand-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.55;
}

/* =================== TIPS =================== */
.tips {
  padding: 50px 18px 50px;
  max-width: 880px;
  margin: 0 auto;
}
.tips > h2 {
  text-align: center;
  color: var(--terracotta);
  font-style: italic;
  margin-bottom: 6px;
}
.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 720px) {
  .tips-grid { grid-template-columns: 1fr 1fr; }
}
.tip-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.tip-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--terracotta);
  border-bottom: 2px solid var(--cream-deep);
  padding-bottom: 8px;
}
.tip-card ul {
  margin: 0;
  padding-left: 20px;
}
.tip-card li {
  margin-bottom: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.tip-card li::marker {
  color: var(--olive);
}
.tip-card em {
  color: var(--olive-d);
  font-style: italic;
}

/* =================== IDEAS / RECOMMENDED =================== */
.ideas {
  padding: 50px 18px 50px;
  max-width: 980px;
  margin: 0 auto;
}
.ideas > h2 {
  text-align: center;
  color: var(--terracotta);
  font-style: italic;
  margin-bottom: 6px;
}

.ideas-controls {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.filter-label {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-right: 4px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s ease;
}
.chip:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-d);
}
.chip.is-on {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
}
.ideas-count {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

.ideas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px)  { .ideas-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ideas-grid { grid-template-columns: 1fr 1fr 1fr; } }

.idea-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.idea-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-deep);
}
.idea-strip {
  height: 6px;
  width: 100%;
}
.idea-strip.city-florence { background: var(--terracotta); }
.idea-strip.city-rome     { background: var(--olive-d); }
.idea-strip.city-puglia   { background: #2D6A8E; }
.idea-strip.city-anywhere { background: var(--gold); }

.idea-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.idea-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.idea-city {
  font-weight: 700;
}
.idea-city.city-florence { color: var(--terracotta); }
.idea-city.city-rome     { color: var(--olive-d); }
.idea-city.city-puglia   { color: #2D6A8E; }
.idea-city.city-anywhere { color: #9c7438; }

.idea-type {
  background: var(--cream-deep);
  color: var(--ink-soft);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.idea-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.25;
}
.idea-desc {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.45;
  flex: 1;
}
.idea-source {
  margin-top: auto;
  font-size: 0.82rem;
}
.idea-source a {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
}
.idea-source a:hover { text-decoration: underline; }

.idea-day {
  display: inline-block;
  background: var(--cream-deep);
  color: var(--terracotta-d);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.idea-credit {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  line-height: 1.4;
}
.idea-credit a {
  color: var(--terracotta-d);
  font-weight: 600;
  text-decoration: none;
}
.idea-credit a:hover { text-decoration: underline; }

.ideas-empty {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  padding: 24px 16px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

/* =================== PACKING LIST =================== */
.packing {
  background: var(--cream-deep);
  padding: 50px 18px 40px;
  border-top: 1px solid var(--line);
}
.packing > h2 {
  text-align: center;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 0;
  margin-bottom: 24px;
  font-style: italic;
}
.packing-actions {
  max-width: 880px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}
#packing-count {
  font-weight: 600;
  color: var(--ink-soft);
}
#packing-reset {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
}
#packing-reset:hover { background: var(--terracotta); color: white; border-color: var(--terracotta); }

.packing-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.packing-cat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.packing-cat h3 {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-size: 1.15rem;
  border-bottom: 2px solid var(--cream-deep);
  padding-bottom: 6px;
}
.checklist {
  list-style: none;
  margin: 0; padding: 0;
}
.checklist li {
  padding: 4px 0;
}
.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 4px 2px;
  border-radius: 4px;
  transition: background 0.1s ease;
}
.checklist label:hover { background: var(--cream); }
.checklist input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px; height: 18px;
  accent-color: var(--terracotta);
}
.checklist input:checked + * { /* placeholder, see :has below */ }
.checklist label:has(input:checked) {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--terracotta);
}

/* =================== PRACTICAL INFO =================== */
.practical {
  padding: 50px 18px 60px;
  max-width: 880px;
  margin: 0 auto;
}
.practical > h2 {
  text-align: center;
  color: var(--terracotta);
  margin-bottom: 30px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.info-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.info-card h3 {
  font-size: 1.1rem;
  color: var(--olive-d);
  margin: 0 0 10px;
  border-bottom: 2px solid var(--cream-deep);
  padding-bottom: 6px;
}
.info-card p { margin: 6px 0; }
.info-card ul {
  margin: 6px 0;
  padding-left: 18px;
}
.info-card ul li { margin-bottom: 4px; }
.info-card em {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.85em;
}
.flight-leg {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--cream-deep);
}
.flight-leg:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.flight-header {
  font-size: 0.92rem !important;
  margin: 0 0 8px !important;
  color: var(--ink);
}
.flight-header code {
  font-size: 0.85em;
  background: var(--cream-deep);
  padding: 1px 6px;
  border-radius: 4px;
}
.flight-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.flight-list li {
  font-size: 0.86rem;
  padding: 3px 0 3px 22px;
  position: relative;
  color: var(--ink);
  line-height: 1.4;
}
.flight-list li:before {
  content: "✈️";
  position: absolute;
  left: 0;
  font-size: 0.78rem;
}
.flight-list li.flight-layover {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.8rem;
}
.flight-list li.flight-layover:before {
  content: "↓";
  font-size: 0.95rem;
  color: var(--olive-d);
  font-style: normal;
  font-weight: 700;
  left: 4px;
}
.big-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--terracotta);
  margin: 8px 0 4px !important;
}
.info-sub {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* =================== FOOTER =================== */
.foot {
  text-align: center;
  padding: 30px 20px 40px;
  background: var(--ink);
  color: var(--cream);
  font-style: italic;
}
.foot p { margin: 0; opacity: 0.85; }

/* =================== DESKTOP =================== */
@media (min-width: 720px) {
  body { font-size: 17px; }
  h2 { font-size: 2.5rem; }
  .hero { padding: 80px 24px 90px; }
  .hero h1 { font-size: 4.5rem; }
  .hero .lede { font-size: 1.3rem; }
  .hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 720px;
    gap: 16px;
  }

  .topnav { padding: 14px 28px; }
  .nav-toggle { display: none; }
  .navlinks {
    display: flex !important;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    gap: 6px;
    padding: 0;
  }
  .navlinks li a {
    padding: 8px 14px;
    border-radius: 8px;
  }
  .navlinks li a:hover {
    background: var(--cream-deep);
    color: var(--terracotta-d);
  }

  .city-banner { padding: 60px 24px 36px; }
  .city-banner h2 { font-size: 3.2rem; }
  .city-content { padding: 32px 28px 48px; }

  .packing-grid { grid-template-columns: 1fr 1fr; }
  .info-grid    { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .packing-grid { grid-template-columns: 1fr 1fr 1fr; }
  .info-grid    { grid-template-columns: 1fr 1fr 1fr; }
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
