/* Good Nearby — calm, one-thing-at-a-time design.
   Principles: one decision per screen, big tap targets, plain words,
   no menus, gentle motion (none if the visitor prefers reduced motion). */

:root {
  --bg: #f7f1e7;
  --paper: #fbf7ef;
  --paper-2: #f1e7d6;
  --ink: #304022;
  --ink-soft: #5a5e4e;
  --olive: #4b5b2a;
  --clay: #a15e3d;
  --line: rgba(48, 64, 34, 0.14);
  --shadow: 0 24px 70px rgba(57, 49, 31, 0.14);
  --radius: 28px;
  --hero: url("https://images.pexels.com/photos/4858584/pexels-photo-4858584.jpeg?auto=compress&cs=tinysrgb&w=1900");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { display: block; width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

h1, h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ---------- Backdrop: the sunset photo, softened on inner screens ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(248,242,232,.9) 0%, rgba(248,242,232,.55) 45%, rgba(248,242,232,.05) 75%),
    var(--hero) 70% 60% / cover no-repeat,
    linear-gradient(160deg, #f6e3c8, #e3b98f 60%, #b98c62);
  transition: opacity .6s ease, filter .6s ease;
}
body:not([data-screen="start"]):not([data-screen="browse"]) .backdrop { opacity: .28; filter: blur(14px) saturate(1.1); }

/* ---------- Top bar: logo + saved, nothing else ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 8px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: "Jost", "DM Sans", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  line-height: 1;
  text-decoration: none;
}
.brand > span { margin-right: -.22em; }   /* keeps the spaced letters centered under the sunflower */
.brand-mark { width: 30px; height: 30px; margin-bottom: 7px; }
.saved-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}
.saved-pill[hidden] { display: none; }
.saved-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: rgba(255,255,255,.2);
  display: inline-grid; place-items: center; font-size: .8rem;
}

/* ---------- Screens ---------- */
main { flex: 1; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 16px 0 32px; outline: none; }
.screen[hidden] { display: none; }

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--clay);
}
.lede { color: var(--ink-soft); font-size: 1.08rem; margin: 12px 0 0; }

/* Start: one question */
.start { display: flex; align-items: center; min-height: calc(100vh - 170px); }
.start-card {
  width: min(560px, 100%);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background: rgba(251, 247, 239, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.start h1 { font-size: clamp(2.6rem, 6.5vw, 3.8rem); }
.start h1 em { font-style: italic; color: var(--clay); }
.ask {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.moods { display: grid; gap: 12px; margin-top: 14px; }
.mood {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 78px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.75);
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.mood:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 12px 30px rgba(57,49,31,.12); }
.mood-icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tone); color: var(--icon);
}
.mood-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mood-text { display: flex; flex-direction: column; }
.mood-label { font-size: 1.18rem; font-weight: 700; }
.mood-hint { font-size: .88rem; color: var(--ink-soft); }
.mood-arrow { font-size: 1.3rem; color: var(--ink-soft); transition: transform .2s ease; }
.mood:hover .mood-arrow { transform: translateX(3px); color: var(--ink); }

.surprise {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 15px 18px;
  border: 1.5px dashed rgba(48,64,34,.35);
  border-radius: 22px;
  background: transparent;
  font-weight: 700;
  font-size: 1.02rem;
  transition: background .2s ease, border-color .2s ease;
}
.surprise:hover { background: rgba(255,255,255,.6); border-color: var(--ink); }

.near-toggle { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.near-toggle input { width: 20px; height: 20px; accent-color: var(--olive); }
.hint { min-height: 1.4em; margin: 6px 0 0; font-size: .88rem; color: var(--ink-soft); }

/* "or" divider + browse by area & day */
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--ink-soft); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.browse-btn {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  min-height: 74px; padding: 12px 18px 12px 12px;
  border-radius: 22px; background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.browse-btn:hover { transform: translateY(-2px); background: #435231; }
.browse-btn .mood-arrow { color: rgba(255,255,255,.8); }
.browse-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.browse-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.browse-text { display: flex; flex-direction: column; }
.browse-label { font-size: 1.12rem; font-weight: 700; }
.browse-hint { font-size: .88rem; opacity: .8; }

.back-top { display: inline-block; margin: -6px 0 6px -4px; }
.browse-title { font-size: clamp(2rem, 5vw, 2.7rem); }
.step {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--ink); color: #fff;
  font-size: .9rem; margin-right: 10px;
}
h3.ask { display: flex; align-items: center; }
.hint-static { margin: 8px 0 0; font-size: .92rem; color: var(--ink-soft); }
.near-line { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.near-line strong { color: var(--ink); }
.inline-link { color: var(--clay); font-weight: 600; }

.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.area {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px; min-height: 70px;
  border: 1.5px solid var(--line); border-radius: 18px;
  background: rgba(255,255,255,.8); text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.area:hover { border-color: var(--ink); background: #fff; }
.area.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.area-name { font-weight: 700; font-size: 1.05rem; }
.area-towns { font-size: .82rem; opacity: .75; }
.area:last-child { grid-column: 1 / -1; min-height: 0; }
.other-day[hidden] { display: none; }

/* Day grid */
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.day {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 2px 10px;
  border: 1.5px solid var(--line); border-radius: 18px;
  background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.day:hover { border-color: var(--ink); transform: translateY(-2px); }
.day.weekend { background: #fffaf2; }
.day-name { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.day-num { font-family: "DM Serif Display", Georgia, serif; font-size: 1.6rem; line-height: 1.1; }
.day-mon { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 0 6px; border-radius: 999px; background: var(--clay); color: #fff; font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.day-count {
  min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--olive); color: #fff; font-size: .78rem; font-weight: 700;
}
.day.empty { background: rgba(255,255,255,.55); }
.day.empty .day-count { background: transparent; color: var(--ink-soft); }
.day.empty .day-count.far { background: var(--paper-2); color: var(--olive); }
.day.empty .day-num { color: var(--ink-soft); }
.far-key { display: inline-block; padding: 0 6px; border-radius: 999px; background: var(--paper-2); color: var(--olive); font-weight: 700; font-size: .8rem; }
.other-day { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; color: var(--ink-soft); font-weight: 600; }
.other-day input { min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }

/* Step 3: the day */
.dayview { width: min(720px, 100%); margin: 0 auto; }
.day-card { padding: clamp(18px, 3.5vw, 32px); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.day-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.day-head-text { text-align: center; }
.day-head h2 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); margin-bottom: 4px; }
.day-arrow {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff;
  font-size: 1.8rem; line-height: 1; padding-bottom: 4px;
}
.day-arrow:hover:not(:disabled) { border-color: var(--ink); }
.day-arrow:disabled { opacity: .3; cursor: default; }

#dayList.enter { animation: rise .3s ease both; }
.slot { margin-top: 22px; }
.slot h3 {
  margin: 0 0 8px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay);
}
.slot h3 span { margin-left: 6px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); font-weight: 500; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row {
  width: 100%;
  display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 18px;
  background: #fff; text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.row:hover { border-color: var(--ink); box-shadow: 0 8px 22px rgba(57,49,31,.08); }
.row-time { font-weight: 700; color: var(--clay); font-size: 1.02rem; }
.row-time.small { font-size: .82rem; line-height: 1.25; }
.row-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.row-title { font-weight: 700; font-size: 1.08rem; }
.row-saved { color: var(--clay); }
.row-meta { color: var(--ink-soft); font-size: .9rem; }
.row-cat { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--olive); }
.row-arrow { font-size: 1.6rem; color: var(--ink-soft); }

.nothing { margin-top: 22px; padding: 24px 20px; border-radius: 20px; background: var(--paper-2); text-align: center; }
.nothing-title { margin: 0 0 14px; font-weight: 600; }

.ongoing { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.ongoing summary {
  cursor: pointer; list-style: none;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 16px; background: var(--paper-2);
  font-weight: 700;
}
.ongoing summary::-webkit-details-marker { display: none; }
.ongoing summary::after { content: "Show ▾"; font-size: .85rem; color: var(--clay); }
.ongoing[open] summary::after { content: "Hide ▴"; }
.ongoing summary span { font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.ongoing .rows { margin-top: 10px; }

/* Weekend Favorites */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.weekend-link {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  margin-top: 12px; padding: 14px 18px;
  border: 1.5px solid var(--line); border-radius: 18px;
  background: rgba(255,255,255,.7); text-decoration: none; font-size: .95rem; color: var(--ink-soft);
}
.weekend-link strong { color: var(--ink); }
.weekend-link:hover { border-color: var(--ink); background: #fff; }
.weekend { width: min(720px, 100%); margin: 0 auto; }
.weekend .day-card { text-align: left; }
.weekend-mark { font-size: 2rem; margin: 0 0 4px; }
.weekend h2 { font-size: clamp(2.1rem, 5vw, 2.8rem); }
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.signup input {
  flex: 1 1 240px; min-height: 54px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
}
.signup input:focus { outline: none; border-color: var(--ink); }
.signup .btn { min-height: 54px; }
.preview-title { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 1.15rem; }
.nudge { margin: 22px 0 0; font-size: .95rem; }
.nudge a { color: var(--clay); font-weight: 600; }

/* List something good (hosts' form) */
.submit { width: min(720px, 100%); margin: 0 auto; }
.submit h2 { font-size: clamp(2.1rem, 5vw, 2.8rem); }
.criteria { margin: 18px 0 6px; border-radius: 16px; background: var(--paper-2); }
.criteria summary { cursor: pointer; padding: 12px 16px; font-weight: 700; }
.criteria ul { margin: 0; padding: 0 22px 14px 36px; color: var(--ink-soft); }
.criteria li { margin: 6px 0; }
.submit-form fieldset { border: 0; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.submit-form fieldset:first-child { border-top: 0; padding-top: 6px; }
.submit-form legend { display: flex; align-items: center; font-weight: 700; font-size: 1.15rem; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.submit-form legend + * { clear: both; }
.submit-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.submit-form input:not([type="radio"]):not([type="checkbox"]), .submit-form select, .submit-form textarea {
  min-height: 50px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font-weight: 400; font-size: 1rem;
}
.submit-form textarea { resize: vertical; min-height: 90px; }
.submit-form input:focus, .submit-form select:focus, .submit-form textarea:focus { outline: none; border-color: var(--ink); }
.submit-form .invalid { border-color: var(--clay) !important; background: #fff6f1 !important; }
.submit-form .areas { margin-top: 0; }
.req { color: var(--clay); }
.more-details { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.more-details summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px; background: var(--paper-2); list-style: none; }
.more-details summary::-webkit-details-marker { display: none; }
.more-details summary span { font-weight: 400; font-size: .88rem; color: var(--ink-soft); }
.more-details summary::after { content: "Show ▾"; font-size: .85rem; color: var(--clay); }
.more-details[open] summary::after { content: "Hide ▴"; }
.more-details fieldset:first-of-type { border-top: 0; }
.more-details legend { font-size: 1rem !important; }
.hint-inline { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.when-kind { display: flex; flex-wrap: wrap; gap: 8px; }
.who { margin-bottom: 18px; }
.pill { flex-direction: row !important; align-items: center; gap: 8px !important; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.pill:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.pill input { accent-color: var(--olive); }
.when-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.when-fields[hidden], .price-field[hidden] { display: none !important; }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--olive); }
.form-error { min-height: 1.4em; margin: 18px 0 8px; color: var(--clay); font-weight: 600; }
.submit-btn { width: 100%; min-height: 58px; font-size: 1.05rem; }
.done-title { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 2rem; }
#submitDone { text-align: center; padding: 20px 0 10px; }

/* Pick: one event at a time */
.pick, .saved { width: min(640px, 100%); margin: 0 auto; }
.dayview .pick-nav { width: 100%; }
.pick-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 40px; }
.progress { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.quiet-link {
  border: 0; background: none; padding: 8px 4px;
  color: var(--ink-soft); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.quiet-link:hover { color: var(--ink); }

.pick-card {
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pick-card.enter { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pick-image {
  position: relative;
  aspect-ratio: 16 / 8;
  max-height: 34vh;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(160deg, #efd9bb, #cfa77c);
}
.pick-image img { height: 100%; object-fit: cover; }
.pick-tag {
  position: absolute; left: 16px; bottom: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(251,247,239,.92);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

.pick-body { padding: 22px 26px 8px; }
.when-big { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--clay); }
.when-small { margin: 2px 0 14px; font-size: .95rem; color: var(--ink-soft); }
.pick-body h2 { font-size: clamp(1.9rem, 5vw, 2.5rem); }
.where { margin: 8px 0 0; color: var(--ink-soft); }
.price { margin: 6px 0 0; font-weight: 700; }
.price span { font-weight: 400; color: var(--ink-soft); }
.price.free { color: var(--olive); }
.desc { margin: 14px 0 6px; font-size: 1.05rem; }
.tags, .row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.row-tags { margin-top: 6px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); font-size: .8rem; font-weight: 600; }
.tag-come-alone { background: #f6dfd2; color: #8a4a2e; }
.tag-free { background: #dfe5cf; }
.tag-women { background: #ecdcea; }
.row-tags .tag { padding: 2px 8px; font-size: .72rem; }

.go-panel { margin: 16px 0 6px; padding: 18px; border-radius: 20px; background: var(--paper-2); }
.go-panel[hidden] { display: none; }
.go-title { margin: 0 0 12px; font-weight: 700; }
.go-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.go-btn {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 10px 16px;
  border: 0; border-radius: 16px;
  background: #fff;
  font-weight: 600; text-decoration: none; text-align: left;
  transition: box-shadow .2s ease;
}
.go-btn:hover { box-shadow: 0 6px 18px rgba(57,49,31,.12); }
.confirm { margin: 12px 0 0; font-size: .85rem; color: var(--ink-soft); font-style: italic; }

.pick-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 10px;
  padding: 16px 26px 24px;
}
.act {
  min-height: 56px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s ease, border-color .2s ease;
}
.act:hover { border-color: var(--ink); }
.act.on { background: var(--paper-2); border-color: var(--ink); }
.act-next { background: var(--ink); color: #fff; border-color: var(--ink); }
.act-next:hover { background: #435231; }

.done { text-align: center; padding: 48px 26px 40px; }
.done-mark { font-size: 2.4rem; margin: 0 0 6px; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 22px;
  border-radius: 999px; border: 0;
  font-weight: 700; text-decoration: none;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-soft { background: var(--paper-2); color: var(--ink); }

/* Saved */
.saved-card { padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.saved-card h2 { font-size: clamp(2rem, 5vw, 2.6rem); }
.saved-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.saved-list li { display: flex; align-items: stretch; gap: 8px; }
.saved-item {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; text-align: left;
}
.saved-item:hover { border-color: var(--ink); }
.saved-when { font-weight: 700; color: var(--clay); font-size: .92rem; }
.saved-name { font-weight: 700; font-size: 1.08rem; }
.saved-where { color: var(--ink-soft); font-size: .9rem; }
.saved-remove {
  width: 52px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; font-size: 1.4rem; color: var(--ink-soft);
}
.saved-remove:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Footer: one quiet line ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 18px 16px 26px;
  font-size: .85rem; color: var(--ink-soft);
}
.footer a { color: var(--ink); }
.footer .insta { display: inline-flex; align-items: center; gap: 6px; }
.footer .insta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .backdrop {
    background:
      linear-gradient(180deg, rgba(248,242,232,.55) 0%, rgba(248,242,232,.25) 40%, rgba(248,242,232,.85) 100%),
      var(--hero) 62% center / cover no-repeat,
      linear-gradient(160deg, #f6e3c8, #e3b98f 60%, #b98c62);
  }
  .topbar { padding-top: 14px; }
  .start { align-items: flex-start; min-height: 0; padding-top: 8px; }
  .start-card { background: rgba(251, 247, 239, .9); }
  .mood { min-height: 72px; gap: 12px; }
  .mood-icon { width: 48px; height: 48px; }
  .mood-label { font-size: 1.08rem; }
  .days { gap: 5px; }
  .day { padding: 8px 0; border-radius: 14px; }
  .day-name { font-size: .62rem; letter-spacing: .02em; }
  .day-num { font-size: 1.3rem; }
  .day-count { min-width: 22px; height: 20px; padding: 0 5px; font-size: .72rem; }
  .day-head { gap: 6px; }
  .day-arrow { width: 44px; height: 44px; }
  .row { grid-template-columns: 70px 1fr auto; gap: 10px; padding: 12px; }
  .row-time { font-size: .95rem; }
  .area { padding: 12px; } .area-towns { font-size: .76rem; }
  .pick-body { padding: 18px 20px 4px; }
  /* Keep the three main buttons within thumb reach. */
  .pick-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(251, 247, 239, .96);
    border-top: 1px solid var(--line);
    gap: 8px;
  }
  .pick-card { overflow: visible; }
  .pick-image { border-radius: var(--radius) var(--radius) 0 0; }
  .act { min-height: 54px; padding: 8px 10px; font-size: .95rem; white-space: nowrap; }
  .pick-actions { grid-template-columns: .9fr 1.15fr .95fr; }
  .footer .sep { display: none; }
  .footer { flex-direction: column; align-items: center; gap: 4px; }
}

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

/* Anything marked hidden stays hidden, whatever its display style. */
[hidden] { display: none !important; }
