/* Layout: a poster hero hung with papel picado; below it a "cartelera" where each category is a
   paper flag (sticky on wide screens) beside its list of experiences. A trip bar docks at the
   bottom once something is picked. */
:root {
  /* Palette: Oaxacan street colors on a pale agua wall */
  --anil: #1E2A78;        /* indigo, brand ink */
  --sun: #F4A10B;         /* cempasúchil marigold */
  --bugam: #D81F6B;       /* bougainvillea */
  --mar: #0B8A8F;         /* Pacific turquoise */
  --jaca: #7A4FC4;        /* jacaranda */
  --lima: #4A8420;        /* lime */
  --talavera: #2456C8;    /* talavera tile blue */

  --bg: #EDF4F1;
  --surface: #FFFFFF;
  --fg: #16193A;
  --muted: #535977;
  --line: #D3DEDA;
  --hero-bg: #1E2A78;
  --hero-fg: #FFF6E6;
  --hero-muted: #C9CDF0;
  --ink-on-sun: #16193A;
  --wa: #11864A;
  --wa-fg: #FFFFFF;
  --header-bg: rgba(237, 244, 241, 0.9);

  --c-nature: var(--mar);       --on-nature: #FFFFFF;
  --c-adrenaline: var(--bugam); --on-adrenaline: #FFFFFF;
  --c-culture: var(--sun);      --on-culture: #16193A;
  --c-daily: var(--lima);       --on-daily: #FFFFFF;
  --c-stay: var(--talavera);    --on-stay: #FFFFFF;
  --c-special: var(--jaca);     --on-special: #FFFFFF;

  /* Type */
  --font-display: 'Karantina', 'Rubik', 'Arial Hebrew', system-ui, sans-serif;
  --font-body: 'Rubik', 'Arial Hebrew', 'Segoe UI', system-ui, sans-serif;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.625rem;

  --header-h: 60px;
  --catnav-h: 56px;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --anil: #8C98F2;
    --sun: #FFB21E;
    --bugam: #FF5496;
    --mar: #2BB8BA;
    --jaca: #A986F4;
    --lima: #8BC956;
    --talavera: #7FA2FF;
    --bg: #0D1030;
    --surface: #171B47;
    --fg: #F2EEE4;
    --muted: #A8ACCF;
    --line: #2B3066;
    --hero-bg: #151A5A;
    --hero-fg: #FFF6E6;
    --hero-muted: #B9BEEA;
    --ink-on-sun: #16193A;
    --wa: #25A95E;
    --wa-fg: #06140C;
    --header-bg: rgba(13, 16, 48, 0.9);
    --on-nature: #06181A;
    --on-adrenaline: #1C0612;
    --on-culture: #16193A;
    --on-daily: #0E1A05;
    --on-special: #140A2A;
    --on-stay: #0A1433;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --anil: #8C98F2;
  --sun: #FFB21E;
  --bugam: #FF5496;
  --mar: #2BB8BA;
  --jaca: #A986F4;
  --lima: #8BC956;
  --talavera: #7FA2FF;
  --bg: #0D1030;
  --surface: #171B47;
  --fg: #F2EEE4;
  --muted: #A8ACCF;
  --line: #2B3066;
  --hero-bg: #151A5A;
  --hero-fg: #FFF6E6;
  --hero-muted: #B9BEEA;
  --ink-on-sun: #16193A;
  --wa: #25A95E;
  --wa-fg: #06140C;
  --header-bg: rgba(13, 16, 48, 0.9);
  --on-nature: #06181A;
  --on-adrenaline: #1C0612;
  --on-culture: #16193A;
  --on-daily: #0E1A05;
  --on-special: #140A2A;
  --on-stay: #0A1433;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-trip { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
main section[id] { scroll-margin-top: calc(var(--header-h) + var(--catnav-h) + 8px); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.ico { width: 1.15em; height: 1.15em; flex: none; }
[lang="es"] { font-style: italic; }

.eyebrow {
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.6em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 500 var(--t-md) / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 0.4em 1em; font-size: var(--t-sm); }
.btn-block { width: 100%; }
.btn-sun { background: var(--sun); color: var(--ink-on-sun); }
.btn-wa { background: var(--wa); color: var(--wa-fg); }
.btn-ghost { border-color: currentColor; color: var(--hero-fg); background: transparent; }
.link-btn {
  background: none; border: 0; padding: 0.5em; cursor: pointer;
  color: var(--muted); font: inherit; font-size: var(--t-sm); text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  direction: ltr;
}
.logo span { color: var(--bugam); }
.logo-sm { font-size: 1.6rem; }
.header-nav { display: flex; gap: 1.25rem; margin-inline-start: auto; }
.header-nav a {
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
}
.header-nav a:hover { color: var(--fg); }
.site-header .btn-wa { flex: none; }
@media (max-width: 900px) {
  .header-nav { display: none; }
  .site-header .btn-wa { margin-inline-start: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-fg);
  overflow: hidden;
}
.picado {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  height: 64px;
  overflow: hidden;
  border-top: 2px solid var(--hero-muted);
}
.flag {
  width: 42px;
  height: 50px;
  flex: none;
  margin-top: -1px;
  fill: currentColor;
  transform-origin: 50% 0;
  animation: sway 5s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -0.7s);
}
@keyframes sway {
  from { transform: rotate(-3deg); }
  to { transform: rotate(3deg); }
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(1.5rem, 5vw, 3.5rem) 1rem;
  display: grid;
  gap: 1rem;
}
.hero .eyebrow { color: var(--hero-muted); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5.25rem, 21vw, 11.5rem);
  line-height: 0.8;
  letter-spacing: 0.01em;
  margin-block: 0.25rem 0.5rem;
}
.hero h1 .h1-2 { color: var(--sun); }
.hero-lede {
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  line-height: 1.35;
  max-width: 32ch;
  text-wrap: balance;
}
.hero-lede em { font-style: normal; color: var(--sun); }
.hero-sub {
  max-width: 56ch;
  color: var(--hero-muted);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }

.hero-sea {
  position: relative;
  height: clamp(90px, 14vw, 140px);
}
.sun {
  position: absolute;
  inset-inline-end: 8%;
  bottom: 18px;
  width: clamp(130px, 25vw, 340px);
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--sun), var(--bugam));
  opacity: 0.95;
  transform: translateY(40%);
}
.hero-sea::before,
.hero-sea::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20C40 0 80 0 120 20s80 20 120 0v20H0z'/%3E%3C/svg%3E") repeat-x bottom / 240px 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20C40 0 80 0 120 20s80 20 120 0v20H0z'/%3E%3C/svg%3E") repeat-x bottom / 240px 100%;
}
.hero-sea::before {
  height: 58px;
  background: var(--mar);
  -webkit-mask-position: 60px bottom;
  mask-position: 60px bottom;
}
.hero-sea::after {
  height: 36px;
  background: var(--bg);
}

/* ---------- Category nav ---------- */
.cat-nav {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.cat-nav-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  height: var(--catnav-h);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-row::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  flex: none;
  padding: 0.4em 0.95em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.chip::before {
  content: '';
  width: 0.65em;
  height: 0.65em;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--c);
}
.chip:hover, .chip.is-active { border-color: var(--c); }
.chip.is-active { background: var(--c); color: var(--on); }
.chip.is-active::before { background: var(--on); }

/* ---------- Catalog ---------- */
.experiences { padding-block: 2.5rem 1rem; }
.cat {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  scroll-margin-top: calc(var(--header-h) + var(--catnav-h) + 16px);
}
@media (min-width: 900px) {
  .cat {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
  .cat-flag {
    position: sticky;
    top: calc(var(--header-h) + var(--catnav-h) + 20px);
  }
}
.cat-flag {
  --z: 11px;
  position: relative;
  background: var(--c);
  color: var(--on);
  padding: 1.25rem 1.4rem calc(var(--z) + 2.25rem);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
}
/* punched holes, like cut paper */
.cat-flag::after {
  content: '';
  position: absolute;
  inset-inline: 1.4rem;
  bottom: calc(var(--z) + 0.9rem);
  height: 10px;
  background: radial-gradient(circle, var(--bg) 0 3px, transparent 3.5px) 0 50% / 18px 10px repeat-x;
}
.cat-flag h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 3.4rem);
  line-height: 0.95;
}
.cat-blurb { margin-top: 0.5rem; font-size: var(--t-sm); line-height: 1.5; }
.cat-count {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.cat-list { display: grid; gap: 0.75rem; min-width: 0; }

.exp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.exp.is-picked { border-color: var(--c); }
.exp-body { display: grid; gap: 0.4rem; min-width: 0; }
.exp-titles { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.exp h3 { font-size: var(--t-lg); font-weight: 700; }
.exp-es { font-size: var(--t-xs); color: var(--muted); letter-spacing: 0.02em; }
.exp-tag {
  font-size: var(--t-xs);
  font-weight: 500;
  padding: 0.1em 0.6em;
  border-radius: 4px;
  background: var(--sun);
  color: var(--ink-on-sun);
}
.exp-desc { color: var(--fg); max-width: 62ch; }
.exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-sm);
  color: var(--muted);
}
.exp-meta li { display: inline-flex; align-items: center; gap: 0.35em; }
.exp-meta .ico { width: 1em; height: 1em; }

.add {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0.45em 1em;
  border: 2px solid var(--c);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: 500 var(--t-sm) / 1.2 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.add:hover { background: color-mix(in srgb, var(--c) 14%, transparent); }
.add-mark { font-size: 1.2em; line-height: 1; font-weight: 700; }
.add[aria-pressed="true"] { background: var(--c); color: var(--on); }

@media (max-width: 560px) {
  .exp { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .add { justify-self: start; }
}

/* ---------- Sections ---------- */
.section-head { display: grid; gap: 0.35rem; margin-bottom: 1.75rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 4.5rem);
  line-height: 0.9;
}
.section-sub { color: var(--muted); max-width: 56ch; }

/* Packages */
.packages { padding-block: 3rem; }
.pk-grid { display: grid; gap: 1rem; }
@media (min-width: 860px) { .pk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pk {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.pk h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 0.95;
}
.pk-len {
  flex: none;
  font-size: var(--t-xs);
  font-weight: 500;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
}
.pk-days { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; flex: 1; }
.pk-days li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0.5rem; align-items: baseline; }
.pk-day {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bugam);
}
.pk .btn { border-color: var(--fg); color: var(--fg); background: transparent; }
.pk .btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* How it works */
.how { padding-block: 3rem; }
.steps {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.steps li { counter-increment: step; display: grid; gap: 0.4rem; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 0.8;
  color: var(--sun);
}
.steps h3 { font-size: var(--t-xl); }
.steps p { color: var(--muted); max-width: 36ch; }

/* Tips */
.tips { padding-block: 3rem 4rem; }
.tips-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tips-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tip {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 1.25rem;
  border-top: 4px solid var(--mar);
  background: var(--surface);
}
.tip:nth-child(2) { border-top-color: var(--bugam); }
.tip:nth-child(3) { border-top-color: var(--jaca); }
.tip:nth-child(4) { border-top-color: var(--lima); }
.tip h3 { font-size: var(--t-lg); }
.tip p { font-size: var(--t-sm); color: var(--muted); }

/* Next destinations: a departures board */
.next { padding-block: 1rem 4rem; }
.board {
  display: grid;
  padding: 0.5rem clamp(1rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--hero-bg);
  color: var(--hero-fg);
}
.dest {
  display: grid;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--hero-muted) 35%, transparent);
}
.dest:last-child { border-bottom: 0; }
@media (min-width: 560px) {
  .dest { grid-template-columns: minmax(0, 1fr) auto; }
  .dest-body { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .dest { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.9fr); align-items: start; }
  .dest-body { grid-column: auto; }
}
.dest-name { min-width: 0; }
.dest-name h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 0.95;
}
.dest-es { display: block; margin-top: 0.3rem; font-size: var(--t-xs); color: var(--hero-muted); }
.dest-go { display: grid; gap: 0.2rem; align-content: start; }
.dest-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--sun);
  white-space: nowrap;
}
.dest-how { display: inline-flex; align-items: center; gap: 0.4em; font-size: var(--t-sm); color: var(--hero-muted); white-space: nowrap; }
.dest-body { display: grid; gap: 0.4rem; min-width: 0; font-size: var(--t-sm); }
.dest-tip { color: var(--hero-muted); }
.dest-tip strong { color: var(--sun); font-weight: 500; }

.next-foot {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) { .next-foot { grid-template-columns: minmax(0, 1fr) auto; } }
.next-tips {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-sm);
  color: var(--muted);
}
.next-tips li { display: flex; gap: 0.6rem; align-items: baseline; }
.next-tips li::before {
  content: '';
  flex: none;
  width: 0.5em;
  height: 0.5em;
  border-radius: 1px;
  transform: rotate(45deg) translateY(-0.1em);
  background: var(--sun);
}

/* Contact */
.contact { background: var(--hero-bg); color: var(--hero-fg); }
.contact-inner {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding-block: 3.5rem;
}
.contact h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 4.5rem);
  line-height: 0.9;
}
.contact p { color: var(--hero-muted); }
.contact .btn { margin-top: 0.5rem; }
.contact-number { direction: ltr; font-variant-numeric: tabular-nums; user-select: all; }

/* Footer */
.site-footer {
  padding-block: 1.5rem;
  font-size: var(--t-sm);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.footer-row .logo { color: var(--fg); }

/* ---------- Trip bar ---------- */
.tripbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding-block: 0.6rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--hero-bg);
  color: var(--hero-fg);
  box-shadow: 0 -6px 24px rgba(10, 12, 40, 0.25);
}
.tripbar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tripbar-open {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 500 var(--t-md) / 1.2 var(--font-body);
  cursor: pointer;
  text-align: start;
}
.tripbar-count {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink-on-sun);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tripbar-edit { font-size: var(--t-sm); color: var(--hero-muted); text-decoration: underline; }
.tripbar .btn { flex: none; }
.bump { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.25); } }

/* ---------- Trip dialog ---------- */
.trip-dialog {
  width: min(540px, 100%);
  max-width: 100%;
  max-height: min(88vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 20px 60px rgba(10, 12, 40, 0.35);
}
.trip-dialog::backdrop { background: rgba(10, 12, 40, 0.55); }
@media (max-width: 600px) {
  .trip-dialog {
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
  }
}
.trip-dialog-inner {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.trip-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.trip-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  font-size: 1rem;
  cursor: pointer;
}
.trip-list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.trip-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--bg);
}
.trip-list .dot {
  width: 0.6em;
  height: 0.6em;
  flex: none;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--c);
}
.trip-item-name { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.trip-remove {
  flex: none;
  min-height: 36px;
  padding: 0 0.75rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: var(--t-sm);
  text-decoration: underline;
  cursor: pointer;
}
.trip-empty { color: var(--muted); }
.trip-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.trip-form .btn, .trip-form .link-btn, .field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 0.3rem; }
.field:first-child { grid-column: 1 / -1; }
.field label { font-size: var(--t-sm); font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--mar); outline: none; }

.noscript { padding: 1rem; background: var(--surface); border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
