:root {
  --sea-0: #e6fbff;
  --sea-1: #bcefff;
  --sea-2: #6fd5eb;
  --sea-3: #2eb3cf;
  --deep: #063b55;
  --ink: #0e2b3a;
  --muted: #5d7480;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --line: rgba(6, 59, 85, 0.14);
  --orange: #ff7a1a;
  --orange-2: #ffb000;
  --coral: #ff4f6d;
  --green: #20b77a;
  --violet: #7b61ff;
  --shadow: 0 24px 70px rgba(4, 73, 96, 0.18);
  --shadow-soft: 0 16px 38px rgba(4, 73, 96, 0.13);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 176, 0, 0.34), transparent 26rem),
    radial-gradient(circle at 88% 16%, rgba(255, 122, 26, 0.22), transparent 24rem),
    radial-gradient(circle at 40% 105%, rgba(46, 179, 207, 0.34), transparent 30rem),
    linear-gradient(145deg, var(--sea-0) 0%, var(--sea-1) 42%, #d9f9ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,0.42) 39% 40%, transparent 41% 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.22) 0 2px, transparent 2px 34px);
  animation: waterShimmer 16s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: -120px;
  height: 260px;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.8), transparent 54%),
    linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.45));
  filter: blur(3px);
  animation: waveFloat 10s ease-in-out infinite;
}

.sea-glow {
  position: fixed;
  inset: auto -10vw 0 -10vw;
  height: 38vh;
  z-index: -5;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 151, 190, 0.26), transparent 62%);
}

.palms-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.palm {
  position: absolute;
  width: 230px;
  height: 330px;
  opacity: 0.22;
  filter: drop-shadow(0 18px 18px rgba(6, 59, 85, 0.13));
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg width='220' height='320' viewBox='0 0 220 320' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23063B55' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M112 126C105 179 99 234 94 302'/%3E%3Cpath d='M115 126C96 88 70 65 33 57C57 49 91 55 119 94'/%3E%3Cpath d='M116 124C121 78 139 43 176 20C170 51 151 84 121 121'/%3E%3Cpath d='M119 125C153 91 187 78 211 84C184 101 155 117 121 132'/%3E%3Cpath d='M113 128C75 108 39 106 11 121C45 128 77 133 111 132'/%3E%3Cpath d='M119 126C154 127 181 142 197 166C168 164 143 153 119 134'/%3E%3Cpath d='M110 132C76 142 52 161 39 188C70 179 94 163 113 136'/%3E%3C/g%3E%3C/svg%3E");
  animation: palmDrift 14s ease-in-out infinite;
}

.p1 { left: -28px; top: 126px; transform: rotate(-10deg); animation-duration: 15s; }
.p2 { right: -50px; top: 70px; width: 260px; height: 370px; transform: scaleX(-1) rotate(-7deg); animation-duration: 18s; animation-delay: -5s; }
.p3 { left: 8%; bottom: -92px; width: 190px; height: 275px; opacity: 0.16; transform: rotate(8deg); animation-duration: 20s; animation-delay: -8s; }
.p4 { right: 12%; bottom: -118px; width: 210px; height: 310px; opacity: 0.18; transform: scaleX(-1) rotate(9deg); animation-duration: 17s; animation-delay: -2s; }

@keyframes waterShimmer {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 240px 0, 0 90px; }
}
@keyframes waveFloat {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(-18px) scaleX(1.04); }
}
@keyframes palmDrift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  35% { translate: 10px -18px; rotate: 2.4deg; }
  70% { translate: -8px 10px; rotate: -2deg; }
}

img, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.section-shell {
  width: min(calc(100% - 28px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: min(calc(100% - 24px), 1220px);
  margin: 12px auto 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 28px;
  background: rgba(234, 251, 255, 0.76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: max-content;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: var(--deep);
  background: rgba(255,255,255,0.54);
}
.brand-sun {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 6px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-2), var(--orange), var(--coral));
  box-shadow: 0 10px 18px rgba(255, 122, 26, 0.28);
  letter-spacing: 0;
}
.brand-main { font-size: clamp(1.05rem, 2vw, 1.28rem); }
.brand-helper {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: transparent;
  background: linear-gradient(110deg, #ff9c1a 0%, #ff6b00 45%, #ff3f6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 8px 22px rgba(255, 122, 26, 0.14);
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(6, 59, 85, 0.72);
  font-size: 0.9rem;
  font-weight: 900;
  transition: 0.2s ease;
}
.top-nav a:hover { background: var(--white); color: var(--deep); }

.ghost-button,
.primary-button,
.secondary-button,
.text-button,
.back-button,
.tag-button,
.mini-route,
.day-open {
  border: 0;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.ghost-button {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--deep);
  background: rgba(255,255,255,0.7);
}
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
}
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--coral));
  box-shadow: 0 18px 32px rgba(255, 79, 109, 0.24);
}
.secondary-button {
  color: var(--deep);
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow-soft);
}
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.back-button:hover,
.mini-route:hover,
.day-open:hover { transform: translateY(-2px); }
.full { width: 100%; }
.text-button {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255, 122, 26, 0.1);
}
.back-button {
  margin-bottom: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--deep);
  background: rgba(255,255,255,0.8);
}

.glass-card {
  border: 1px solid rgba(255,255,255,0.78);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  padding: 58px 0 28px;
}
.trip-kicker {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  color: var(--deep);
  background: rgba(255,255,255,0.62);
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}
.hero-copy {
  min-height: 420px;
  padding: clamp(22px, 5vw, 46px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.68), rgba(255,255,255,0.34)),
    radial-gradient(circle at 12% 16%, rgba(255,176,0,.24), transparent 20rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.72);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 9vw, 7.6rem);
  line-height: .82;
  letter-spacing: -0.1em;
  font-weight: 900;
}
.hero h1 span { display: block; }
.hero h1 span:first-child { color: var(--deep); }
.hero h1 span:last-child {
  display: inline-block;
  color: transparent;
  background: linear-gradient(100deg, #ffb000 0%, #ff7a1a 40%, #ff3f6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 16px 20px rgba(255, 122, 26, .16));
}
.hero-lead {
  max-width: 690px;
  margin-bottom: 26px;
  color: rgba(14, 43, 58, 0.78);
  font-size: clamp(1rem, 2.1vw, 1.24rem);
  line-height: 1.7;
  font-weight: 700;
}
.hero-actions,
.mini-pills,
.filter-row,
.card-tags,
.card-actions,
.active-day-actions,
.progress-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.vacation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--deep);
}
.vacation-card::before {
  content: "🌊";
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 7rem;
  opacity: .18;
}
.vacation-card strong {
  display: block;
  margin: 10px 0;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: .86;
  letter-spacing: -0.08em;
}
.card-label,
.section-tag {
  margin: 0 0 10px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 900;
}
.vacation-card p { color: var(--muted); line-height: 1.55; font-weight: 700; }
.mini-pills span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  font-size: .86rem;
  font-weight: 900;
}

.section-heading {
  margin: 0 0 18px;
}
.section-heading h2,
.progress-head h2,
.active-day-card h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: .98;
  letter-spacing: -0.07em;
}
.section-heading p:not(.section-tag) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 700;
}
.section-heading.with-action {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}
.section-heading.mini h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }

.progress-section,
.days-section,
.places-section,
.budget-section,
.expenses-section,
.analytics-section,
.day-page {
  padding: 36px 0;
}
.progress-card {
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-xl);
}
.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}
.progress-head strong {
  min-width: max-content;
  padding: 14px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--sea-3));
  box-shadow: 0 16px 28px rgba(6, 59, 85, .22);
  font-size: clamp(1.15rem, 3vw, 1.8rem);
}
.progress-track {
  height: 18px;
  margin: 18px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(6, 59, 85, 0.1);
}
.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-2), var(--orange), var(--coral));
  box-shadow: 0 10px 24px rgba(255, 122, 26, .3);
  transition: width .35s ease;
}
.progress-meta { justify-content: space-between; color: var(--muted); font-weight: 800; }

.days-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.day-card {
  position: relative;
  min-height: 242px;
  width: 100%;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 26px;
  color: var(--ink);
  text-align: left;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
}
.day-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background: var(--day-gradient, linear-gradient(135deg, var(--sea-2), var(--orange-2)));
  pointer-events: none;
}
.day-card > * { position: relative; z-index: 1; }
.day-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.day-card.done {
  border-color: rgba(32, 183, 122, .42);
  background: rgba(239, 255, 248, .82);
}
.day-card.done .done-badge { opacity: 1; transform: scale(1); }
.done-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  opacity: 0;
  transform: scale(.6);
  transition: .2s ease;
}
.day-title {
  display: block;
  margin-right: 30px;
  font-size: 1.05rem;
  line-height: 1.22;
  letter-spacing: -0.035em;
  font-weight: 900;
}
.day-card p {
  margin: 12px 0;
  color: rgba(14,43,58,.72);
  font-size: .92rem;
  line-height: 1.55;
  font-weight: 700;
}
.day-budget {
  display: inline-flex;
  margin-top: 2px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--deep);
  background: rgba(255,255,255,.72);
  font-weight: 900;
}
.day-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--sea-3));
  box-shadow: 0 12px 22px rgba(6,59,85,.18);
  font-size: .9rem;
}

.map-toolbar {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
}
.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
  font-size: .88rem;
  font-weight: 900;
}
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(6, 59, 85, 0.12);
  border-radius: 18px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
input, select { min-height: 52px; padding: 0 16px; }
textarea { padding: 14px 16px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(255, 122, 26, .54); box-shadow: 0 0 0 4px rgba(255,122,26,.12); }
.filter-row { margin-top: 14px; }
.tag-button {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(6, 59, 85, .76);
  background: rgba(255,255,255,.62);
  box-shadow: 0 10px 20px rgba(6,59,85,.07);
}
.tag-button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--coral));
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.place-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 316px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 28px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-soft);
}
.place-cover {
  position: relative;
  min-height: 116px;
  padding: 18px;
  overflow: hidden;
  color: #fff;
  background: var(--place-gradient, linear-gradient(135deg, var(--sea-3), var(--orange)));
}
.place-cover::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -52px;
  top: -44px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.place-emoji {
  position: absolute;
  right: 18px;
  bottom: 8px;
  font-size: 3.8rem;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.18));
}
.place-kind {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.place-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}
.place-body h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  line-height: 1.16;
}
.place-address,
.place-desc,
.place-check {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.5;
  font-weight: 700;
}
.place-check { color: rgba(6,59,85,.72); }
.price-chip {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--deep);
  background: rgba(46,179,207,.14);
  font-weight: 900;
  font-size: .88rem;
}
.card-tags { margin: auto 0 12px; }
.card-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  color: rgba(6,59,85,.74);
  background: rgba(6,59,85,.07);
  font-size: .78rem;
  font-weight: 900;
}
.card-actions { justify-content: space-between; }
.mini-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--sea-3));
  font-size: .86rem;
}
.favorite-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 122, 26, .12);
  font-size: 1.1rem;
}
.favorite-button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--coral));
}
.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  font-weight: 800;
}

.budget-layout,
.expense-layout,
.analytics-grid,
.active-day-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: stretch;
}
.budget-panel,
.expense-form,
.expense-list,
.chart-card,
.active-day-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}
.budget-panel h3,
.expense-list h3,
.chart-card h3,
.active-day-card h3 { margin: 0 0 14px; }
.budget-panel label,
.expense-form label,
.day-notes label {
  display: block;
  margin-bottom: 14px;
  color: var(--deep);
  font-size: .9rem;
  font-weight: 900;
}
.budget-panel input,
.expense-form input,
.expense-form select { margin-top: 7px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
}
.stat-card span,
.stat-card small { display: block; color: var(--muted); font-weight: 900; }
.stat-card strong {
  display: block;
  margin: 12px 0 6px;
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.expense-list { min-height: 340px; }
.list-head,
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.expense-items {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}
.expense-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.7);
}
.expense-item strong { color: var(--deep); }
.expense-item small { display: block; color: var(--muted); font-weight: 700; }
.delete-expense {
  align-self: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--coral);
  background: rgba(255,79,109,.1);
  font-weight: 900;
}
.chart-card canvas {
  display: block;
  width: 100%;
  height: 280px;
  border-radius: 18px;
  background: rgba(255,255,255,.44);
}
.chart-head span {
  color: var(--orange);
  font-weight: 900;
}

.day-page { padding-top: 46px; }
.active-day-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.active-day-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}
.active-day-top p:not(.section-tag) { color: var(--muted); line-height: 1.7; font-weight: 800; }
.active-budget {
  min-width: 190px;
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--coral));
  box-shadow: 0 18px 32px rgba(255,79,109,.24);
}
.active-budget span { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 900; opacity: .9; }
.active-budget strong { font-size: 1.65rem; letter-spacing: -0.05em; }
.steps-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}
.steps-list li {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.64);
  font-weight: 800;
}
.mini-place-list { display: grid; gap: 10px; }
.mini-place {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.64);
}
.mini-place strong { display: block; }
.mini-place small { color: var(--muted); font-weight: 700; }
.day-notes { margin-top: 20px; }
.day-notes textarea { margin-top: 8px; min-height: 126px; }
.active-day-actions {
  justify-content: space-between;
  margin-top: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 30px 0 44px;
  color: rgba(6,59,85,.74);
}
.site-footer strong { font-weight: 900; letter-spacing: -0.07em; }
.site-footer strong span { color: var(--orange); }
.site-footer p { margin: 0; font-weight: 700; }

@media (max-width: 1040px) {
  .days-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .budget-layout,
  .expense-layout,
  .analytics-grid,
  .active-day-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section-shell { width: min(calc(100% - 20px), var(--max)); }
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 8px;
    border-radius: 22px;
  }
  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    padding-top: 2px;
  }
  .brand { padding: 7px 9px; }
  .brand-sun { width: 29px; height: 29px; }
  .hero { padding-top: 30px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy,
  .vacation-card { min-height: auto; border-radius: 28px; }
  .hero h1 { font-size: clamp(3.2rem, 19vw, 5.8rem); }
  .trip-kicker { width: 100%; justify-content: center; text-align: center; font-size: .84rem; }
  .progress-head,
  .section-heading.with-action,
  .active-day-top,
  .site-footer { flex-direction: column; display: flex; align-items: stretch; }
  .progress-head strong { width: fit-content; }
  .days-grid,
  .cards-grid,
  .stat-grid { grid-template-columns: 1fr; }
  .day-card { min-height: auto; }
  .place-card { min-height: auto; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .tag-button { min-width: max-content; }
  .active-budget { min-width: auto; }
  .active-day-actions { align-items: stretch; }
  .active-day-actions .primary-button,
  .active-day-actions .secondary-button { width: 100%; }
  .p1 { left: -96px; top: 120px; }
  .p2 { right: -128px; top: 220px; }
  .p3, .p4 { opacity: .12; }
}

@media (max-width: 420px) {
  .hero-copy,
  .vacation-card,
  .progress-card,
  .budget-panel,
  .expense-form,
  .expense-list,
  .chart-card,
  .active-day-card { padding: 18px; }
  .hero-actions .primary-button,
  .hero-actions .secondary-button { width: 100%; }
  .section-heading h2,
  .progress-head h2,
  .active-day-card h2 { font-size: 2.08rem; }
  .day-title { font-size: 1rem; }
}

@media print {
  .site-header,
  .palms-layer,
  .sea-glow,
  .hero-actions,
  .map-toolbar,
  .expense-form,
  .active-day-actions,
  .back-button,
  .text-button,
  .ghost-button { display: none !important; }
  body { background: #fff; }
  .glass-card,
  .day-card,
  .place-card,
  .stat-card { box-shadow: none; background: #fff; border: 1px solid #ddd; }
  .section-shell { width: 100%; }
}
