/*
  ELISE — styles.

  Two moods, one layout, all through custom properties:
  - light: Florida beach at noon — sand, pastel pink, teal, seafoam.
  - dark:  Miami at night — deep indigo, neon pink/cyan/green, glow.
  The [data-theme] attribute on <html> is set before first paint
  (inline script in index.html) and toggled from the app.
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf3e7;
  --bg-glow-a: rgba(244, 166, 190, 0.22);
  --bg-glow-b: rgba(94, 205, 190, 0.20);
  --card: #fffdf8;
  --ink: #43392f;
  --muted: #97897b;
  --pink: #e96f9d;
  --pink-soft: #fbdde8;
  --teal: #1fa396;
  --teal-soft: #d7f3ef;
  --green: #3eb489;
  --green-soft: #ddf5ea;
  --border: #eadfce;
  --chip-bg: #fffaf0;
  --accent-grad: linear-gradient(135deg, #f791b1 0%, #46c6b8 100%);
  --cta-shadow: 0 10px 24px rgba(233, 111, 157, 0.28);
  --card-shadow: 0 6px 20px rgba(90, 70, 40, 0.08);
  --logo-glow: none;
  --glow-pink: none;
  --glow-teal: none;
  --bar-bg: rgba(250, 243, 231, 0.88);
  --error-bg: #fdeceb;
  --error-ink: #b3423a;
  --error-border: #f3c3bf;
  --palm-tile: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='240'%20viewBox='0%200%20240%20240'%3E%3Cdefs%3E%3ClinearGradient%20id='g'%20x1='-52'%20y1='-66'%20x2='88'%20y2='96'%20gradientUnits='userSpaceOnUse'%3E%3Cstop%20offset='0'%20stop-color='%23f791b1'/%3E%3Cstop%20offset='1'%20stop-color='%2346c6b8'/%3E%3C/linearGradient%3E%3Cg%20id='p'%20fill='url(%23g)'%3E%3Cpath%20d='M-2%2096%20C-4%2062%202%2030%2014%204%20L22%208%20C12%2034%208%2064%208%2096%20Z'/%3E%3Ccircle%20cx='13'%20cy='9'%20r='5'/%3E%3Ccircle%20cx='23'%20cy='13'%20r='4'/%3E%3Cpath%20d='M18%206%20C-6%20-8%20-34%20-6%20-52%208%20C-30%20-18%204%20-20%2018%206%20Z'/%3E%3Cpath%20d='M18%206%20C42%20-8%2070%20-6%2088%208%20C66%20-18%2032%20-20%2018%206%20Z'/%3E%3Cpath%20d='M18%206%20C0%20-20%20-2%20-48%208%20-66%20C-14%20-44%20-10%20-12%2018%206%20Z'/%3E%3Cpath%20d='M18%206%20C36%20-20%2038%20-48%2028%20-66%20C50%20-44%2046%20-12%2018%206%20Z'/%3E%3Cpath%20d='M18%206%20C10%20-26%2018%20-52%2034%20-64%20C40%20-38%2034%20-12%2018%206%20Z'/%3E%3C/g%3E%3C/defs%3E%3Cuse%20href='%23p'%20transform='translate(84%20122)'/%3E%3Cuse%20href='%23p'%20transform='translate(190%20178)%20scale(-0.5%200.5)%20rotate(6)'/%3E%3C/svg%3E");
  --palm-opacity: 0.13;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d0724;
  --bg-glow-a: rgba(255, 61, 153, 0.17);
  --bg-glow-b: rgba(0, 229, 212, 0.13);
  --card: #181040;
  --ink: #f2edff;
  --muted: #9c92c7;
  --pink: #ff4fa0;
  --pink-soft: rgba(255, 79, 160, 0.16);
  --teal: #17e5d6;
  --teal-soft: rgba(23, 229, 214, 0.14);
  --green: #43ffa4;
  --green-soft: rgba(67, 255, 164, 0.15);
  --border: #2c2158;
  --chip-bg: #150d38;
  --accent-grad: linear-gradient(135deg, #ff4fa0 0%, #17e5d6 100%);
  --cta-shadow: 0 0 22px rgba(255, 79, 160, 0.45), 0 0 34px rgba(23, 229, 214, 0.25);
  --card-shadow: 0 0 0 1px var(--border), 0 0 16px rgba(23, 229, 214, 0.07);
  --logo-glow: drop-shadow(0 0 10px rgba(255, 79, 160, 0.55)) drop-shadow(0 0 22px rgba(23, 229, 214, 0.35));
  --glow-pink: 0 0 14px rgba(255, 79, 160, 0.45);
  --glow-teal: 0 0 14px rgba(23, 229, 214, 0.4);
  --bar-bg: rgba(13, 7, 36, 0.82);
  --error-bg: rgba(255, 99, 99, 0.12);
  --error-ink: #ff8f8f;
  --error-border: rgba(255, 99, 99, 0.35);
  --palm-tile: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='240'%20viewBox='0%200%20240%20240'%3E%3Cdefs%3E%3ClinearGradient%20id='g'%20x1='-52'%20y1='-66'%20x2='88'%20y2='96'%20gradientUnits='userSpaceOnUse'%3E%3Cstop%20offset='0'%20stop-color='%23ff4fa0'/%3E%3Cstop%20offset='1'%20stop-color='%2317e5d6'/%3E%3C/linearGradient%3E%3Cg%20id='p'%20fill='url(%23g)'%3E%3Cpath%20d='M-2%2096%20C-4%2062%202%2030%2014%204%20L22%208%20C12%2034%208%2064%208%2096%20Z'/%3E%3Ccircle%20cx='13'%20cy='9'%20r='5'/%3E%3Ccircle%20cx='23'%20cy='13'%20r='4'/%3E%3Cpath%20d='M18%206%20C-6%20-8%20-34%20-6%20-52%208%20C-30%20-18%204%20-20%2018%206%20Z'/%3E%3Cpath%20d='M18%206%20C42%20-8%2070%20-6%2088%208%20C66%20-18%2032%20-20%2018%206%20Z'/%3E%3Cpath%20d='M18%206%20C0%20-20%20-2%20-48%208%20-66%20C-14%20-44%20-10%20-12%2018%206%20Z'/%3E%3Cpath%20d='M18%206%20C36%20-20%2038%20-48%2028%20-66%20C50%20-44%2046%20-12%2018%206%20Z'/%3E%3Cpath%20d='M18%206%20C10%20-26%2018%20-52%2034%20-64%20C40%20-38%2034%20-12%2018%206%20Z'/%3E%3C/g%3E%3C/defs%3E%3Cuse%20href='%23p'%20transform='translate(84%20122)'/%3E%3Cuse%20href='%23p'%20transform='translate(190%20178)%20scale(-0.5%200.5)%20rotate(6)'/%3E%3C/svg%3E");
  --palm-opacity: 0.1;
  color-scheme: dark;
}

[data-cloak] { visibility: hidden; }

html { height: 100%; }

body {
  min-height: 100dvh;
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(60vmax 60vmax at 85% -10%, var(--bg-glow-a), transparent 60%),
    radial-gradient(70vmax 70vmax at -10% 100%, var(--bg-glow-b), transparent 60%);
  background-attachment: fixed;
  line-height: 1.45;
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

/* Faint palm-tree texture (gradient-filled SVG tile, defined per theme
   as --palm-tile). Fixed layer behind all content; paints over the body
   background but under everything else. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--palm-tile);
  background-size: 240px 240px;
  opacity: var(--palm-opacity);
  pointer-events: none;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 20px calc(16px + env(safe-area-inset-bottom));
}

main { flex: 1; }

/* ---------- header ---------- */

.header {
  position: relative;
  text-align: center;
  padding: 34px 0 18px;
}

.logo {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  margin-right: -0.32em; /* recentre the tracked-out last letter */
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: var(--logo-glow);
}

.tagline {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

.header::after {
  content: "";
  display: block;
  height: 3px;
  border-radius: 2px;
  margin: 18px auto 0;
  width: 72%;
  background: var(--accent-grad);
  opacity: 0.55;
  box-shadow: var(--glow-teal);
}

.theme-toggle {
  position: absolute;
  top: 18px;
  right: 0;
  z-index: 6; /* above the full-width h1, below the sticky summary bar */
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--chip-bg);
  cursor: pointer;
  box-shadow: var(--glow-teal);
}

/* ---------- params form ---------- */

.screen { padding: 14px 0 24px; }

.intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 26px;
}

.location-line {
  text-align: center;
  color: var(--teal);
  font-weight: 700;
  margin: -16px 0 24px;
}

.field { margin-bottom: 26px; }

.label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.chip.active {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--glow-teal);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.segmented button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 64px;
  padding: 8px 4px;
  font-size: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--chip-bg);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.segmented button span {
  font-size: 0.78rem;
  font-family: inherit;
}

.segmented button.active {
  background: var(--pink-soft);
  border-color: var(--pink);
  font-weight: 700;
  box-shadow: var(--glow-pink);
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.cta {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 30px;
  border: none;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--cta-shadow);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.cta:active { transform: scale(0.98); }

.radius-hint { text-align: center; }

/* ---------- location fallback ---------- */

.fallback {
  margin-top: 26px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: var(--card);
}

.fallback-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.manual-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.manual-row input {
  flex: 1;
  min-height: 44px;
  padding: 8px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.manual-row input:focus-visible,
.chip:focus-visible,
.segmented button:focus-visible,
.cta:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.error {
  color: var(--error-ink);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* ---------- loading ---------- */

.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  gap: 20px;
}

.spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #f791b1, #46c6b8, #7adcbf, #f791b1);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  animation: spin 1s linear infinite;
  filter: var(--logo-glow);
}

:root[data-theme="dark"] .spinner {
  background: conic-gradient(from 0deg, #ff4fa0, #17e5d6, #43ffa4, #ff4fa0);
}

@keyframes spin { to { transform: rotate(1turn); } }

.loading-message {
  color: var(--ink);
  font-weight: 700;
}

.progress-track {
  width: min(280px, 72%);
  height: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  overflow: hidden;
  position: relative;
}

.progress-glider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  border-radius: 999px;
  background: var(--accent-grad);
  box-shadow: var(--glow-pink);
  animation: glide 1.2s ease-in-out infinite;
}

@keyframes glide {
  from { left: -45%; }
  to { left: 100%; }
}

.loading-quip {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  min-height: 1.4em;
  text-align: center;
}

/* ---------- results ---------- */

.summary-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 8px;
  background: var(--bar-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.summary {
  font-size: 0.9rem;
  font-weight: 700;
}

.result-count {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 10px 2px 14px;
}

.error-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--error-border);
  border-radius: 16px;
  background: var(--error-bg);
  color: var(--error-ink);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 24px;
}

.empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* ---------- overview map ---------- */

.map-card {
  margin: 0 0 16px;
  display: flex;
  justify-content: center;
}

.map-frame {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  background: var(--chip-bg);
}

.map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
  pointer-events: none;
}

:root[data-theme="dark"] .map-tile { filter: brightness(0.75) saturate(0.8); }

.map-circle {
  position: absolute;
  border: 2px dashed var(--teal);
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.map-pin.freeplus { background: var(--teal); }
.map-pin.paid { background: var(--pink); }

.map-origin {
  position: absolute;
  transform: translate(-50%, -90%);
  font-size: 1.3rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.map-attrib {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 0.62rem;
  color: #333;
  background: rgba(255, 255, 255, 0.75);
  padding: 1px 6px;
  border-radius: 6px;
}

.card-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.72rem;
  vertical-align: 2px;
  margin-right: 2px;
}

.summary-actions { display: flex; gap: 8px; }

.cards { list-style: none; }

.card {
  display: flex;
  gap: 14px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}

.media {
  flex: 0 0 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink-soft), var(--teal-soft));
  border: 1px solid var(--border);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-icon { font-size: 1.9rem; }

.card-body { flex: 1; min-width: 0; }

.card-title {
  font-size: 1.02rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.meta {
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 3px;
}

.badge {
  display: inline-block;
  padding: 1px 9px;
  margin-right: 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 800;
  vertical-align: 1px;
}

.badge.free {
  background: var(--green-soft);
  color: var(--green);
  border-color: var(--green);
}

.badge.freeplus {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: var(--teal);
}

.badge.paid {
  background: var(--pink-soft);
  color: var(--pink);
  border-color: var(--pink);
}

:root[data-theme="dark"] .badge.free { box-shadow: 0 0 10px rgba(67, 255, 164, 0.25); }
:root[data-theme="dark"] .badge.freeplus { box-shadow: 0 0 10px rgba(23, 229, 214, 0.25); }
:root[data-theme="dark"] .badge.paid { box-shadow: 0 0 10px rgba(255, 79, 160, 0.25); }

.hours {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desc {
  font-size: 0.88rem;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 0.88rem;
}

.links a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.links a.link-primary {
  color: var(--pink);
}

.links a:hover { text-decoration: underline; }

/* ---------- toasts + activity log ---------- */

.toasts {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 40;
  pointer-events: none;
}

.toast {
  max-width: 100%;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--teal);
  background: var(--card);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--card-shadow), var(--glow-teal);
  animation: toast-in 0.25s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.log-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--chip-bg);
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

.log-fab.alert::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: var(--glow-pink);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  background: rgba(20, 12, 8, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

:root[data-theme="dark"] .modal-overlay { background: rgba(4, 2, 14, 0.6); }

.modal {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  max-height: 70dvh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  box-shadow: var(--card-shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-head h2 { font-size: 1.05rem; }

.log-list {
  list-style: none;
  overflow-y: auto;
  font-size: 0.8rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  line-height: 1.6;
}

.log-list li {
  padding: 2px 0;
  border-bottom: 1px dashed var(--border);
  overflow-wrap: anywhere;
}

/* ---------- place detail modal ---------- */

.card-title[role="button"] { cursor: pointer; }

.title-chevron {
  color: var(--muted);
  font-weight: 400;
}

.detail-modal { max-height: 82dvh; }

.detail-body { overflow-y: auto; }

.detail-hero {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.detail-fee {
  font-size: 0.9rem;
  margin-top: 6px;
}

.detail-loading {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
  font-style: italic;
}

.desc-full {
  font-size: 0.92rem;
  margin-top: 10px;
  white-space: pre-line;
}

.log-list li.warn { color: #b8860b; }
:root[data-theme="dark"] .log-list li.warn { color: #ffd166; }
.log-list li.error { color: var(--error-ink); }

.log-time {
  color: var(--muted);
  margin-right: 8px;
}

/* ---------- footer ---------- */

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.74rem;
  padding: 26px 0 8px;
}

.footer a { color: var(--teal); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.noscript {
  text-align: center;
  padding: 40px 20px;
}

/* ---------- misc ---------- */

@media (max-width: 380px) {
  .logo { font-size: 2.6rem; }
  .segmented { gap: 6px; }
  .app { padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.5s; }
  .progress-glider { animation-duration: 3s; }
  body, .chip, .segmented button, .cta { transition: none; }
}

/* ---------- print / save as PDF ---------- */

.print-only { display: none; }

@media print {
  /* Paper doesn't animate — snap straight to the print colors. */
  *, *::before, *::after { transition: none !important; animation: none !important; }

  :root, :root[data-theme="dark"] {
    --bg: #fff;
    --card: #fff;
    --ink: #111;
    --muted: #555;
    --teal: #0a7a70;
    --pink: #c2436f;
    --green: #1f7a55;
    --border: #ccc;
    --bar-bg: #fff;
    --card-shadow: none;
    --logo-glow: none;
    --glow-pink: none;
    --glow-teal: none;
  }

  body { background-image: none; }
  body::before { display: none; }

  .theme-toggle, .log-fab, .toasts, .modal-overlay,
  .summary-actions, .links, .error-banner, .cta { display: none !important; }

  .logo {
    background: none;
    color: #c2436f;
    filter: none;
  }

  .summary-bar { position: static; border-bottom: 1px solid #ccc; }

  .print-only { display: block; }

  .fee { font-size: 0.85rem; margin-top: 4px; }

  .map-card, .card { break-inside: avoid; }
  .card { border: 1px solid #ddd; }
  .map-frame { border-radius: 8px; }
  .map-tile { filter: none; }

  /* Print the whole description, not the 3-line clamp. */
  .desc { display: block; -webkit-line-clamp: unset; overflow: visible; }

  .hours { white-space: normal; overflow: visible; }
}
