/* Tot Spots — implements the "Tot Spots Mobile" Claude Design mockup */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #eae7e1;
  color: #344054;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: #6DB7FF; text-decoration: none; }
a:hover { color: #4c9ce6; }
input, textarea { font-family: Inter, system-ui, sans-serif; }
input::placeholder, textarea::placeholder { color: #a8a29a; }
button { font-family: inherit; }

.sb::-webkit-scrollbar { display: none; }
.sb { scrollbar-width: none; }

.leaflet-container { font-family: Inter, system-ui, sans-serif; }
.leaflet-control-attribution { font-size: 9px; background: rgba(255, 255, 255, .75); }

/* ---------- phone shell ---------- */
.phone {
  max-width: 400px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #FFF9F2;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: env(safe-area-inset-top);
}
@media (min-width: 430px) {
  .phone { box-shadow: 0 0 40px rgba(52, 64, 84, .18); }
}

section { display: none; }
body[data-screen="welcome"] #s-welcome,
body[data-screen="nearby"]  #s-nearby,
body[data-screen="detail"]  #s-detail,
body[data-screen="saved"]   #s-saved,
body[data-screen="add"]     #s-add {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* tab bar visibility */
.tabbar { display: none; }
body:not([data-screen="welcome"]) .tabbar { display: flex; }

/* map/list view switch inside nearby: map view shows the map with the full
   list scrolling below it; list view shows the list alone */
#mapView { display: none; flex: none; }
body[data-view="map"] #mapView { display: block; }
#list { display: none; }
body[data-view="map"] #list, body[data-view="list"] #list { display: flex; }

/* ---------- shared buttons ---------- */
.btn-primary {
  width: 100%; height: 54px; border: 0; border-radius: 999px;
  background: #F6C453; color: #344054;
  font: 700 17px Nunito, system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 2px 6px rgba(246, 196, 83, .45);
}
.btn-primary:hover { background: #efb739; }
.btn-primary:active { background: #e0a92c; }
.btn-secondary {
  width: 100%; height: 52px; border: 1.5px solid #EAEAEA; border-radius: 999px;
  background: #FCFCFC; color: #6DB7FF;
  font: 600 16px Nunito, system-ui, sans-serif; cursor: pointer;
}
.btn-secondary:hover { border-color: #6DB7FF; }
.btn-mid { height: 48px; font-size: 16px; }
.roundbtn {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: #FCFCFC; box-shadow: 0 1px 4px rgba(52, 64, 84, .1); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #344054;
}
.roundbtn:hover { background: #f2efe9; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #CBE3FF; outline-offset: 1px; }

/* ---------- welcome ---------- */
#s-welcome { justify-content: space-between; padding: 26px 28px 32px; }
.w-top { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.w-logo {
  width: 72px; height: 72px; border-radius: 999px; background: #FFE9B8;
  display: flex; align-items: center; justify-content: center;
}
.w-sun { width: 36px; height: 36px; border-radius: 999px; background: #F6C453; box-shadow: 0 0 0 8px rgba(246, 196, 83, .28); }
#s-welcome h1 { font: 800 40px/1.05 Nunito, system-ui, sans-serif; letter-spacing: -.02em; margin: 0 0 10px; }
.w-sub { margin: 0; font: 400 17px/1.5 Inter, system-ui, sans-serif; color: #667085; max-width: 290px; text-wrap: pretty; }
.w-feats { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.w-feat {
  display: flex; gap: 12px; align-items: center; background: #FCFCFC;
  border-radius: 22px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(52, 64, 84, .06);
}
.w-fico { width: 34px; height: 34px; flex: none; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.w-fico span { width: 14px; height: 14px; border-radius: 999px; }
.w-ft { font: 700 14px Nunito, system-ui, sans-serif; }
.w-fs { font: 400 13px Inter, system-ui, sans-serif; color: #667085; }
.w-actions { display: flex; flex-direction: column; gap: 10px; }
.w-privacy { margin: 4px 0 0; text-align: center; font: 400 12px Inter, system-ui, sans-serif; color: #667085; }

/* ---------- nearby header ---------- */
.nb-head { flex: none; padding: 14px 20px 12px; display: flex; flex-direction: column; gap: 10px; }
.nb-titlerow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.nb-place { min-width: 0; }
.nb-kicker { font: 400 13px Inter, system-ui, sans-serif; color: #667085; }
.nb-name {
  font: 800 22px/1.15 Nunito, system-ui, sans-serif; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seg { flex: none; display: flex; padding: 4px; border-radius: 999px; background: #EFECE6; gap: 4px; }
.seg button {
  height: 34px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 13px Nunito, system-ui, sans-serif; background: transparent; color: #667085;
}
.seg button.on { background: #FFF9F2; color: #344054; font-weight: 700; }
.seg-sm { padding: 3px; gap: 2px; }
.seg-sm button { height: 32px; padding: 0 12px; font: 600 12px Inter, system-ui, sans-serif; }
.seg-sm button.on { font-weight: 700; box-shadow: 0 1px 3px rgba(52, 64, 84, .1); background: #FCFCFC; }

.searchrow { display: flex; gap: 8px; align-items: center; }
.searchbox {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 5px 0 15px; border-radius: 999px; background: #FCFCFC;
  box-shadow: inset 0 0 0 1.5px #EAEAEA;
}
.searchbox svg { flex: none; }
#q { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 400 14px Inter, system-ui, sans-serif; color: #344054; }
.gobtn {
  flex: none; width: 34px; height: 34px; border: 0; border-radius: 999px; background: #F6C453;
  cursor: pointer; display: flex; align-items: center; justify-content: center; color: #344054;
}
.gobtn:hover { background: #efb739; }
.locbtn {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: #E3F0FF;
  cursor: pointer; display: flex; align-items: center; justify-content: center; color: #4c9ce6;
}
.locbtn:hover { background: #d3e7ff; }

.chiprow { position: relative; margin: 0 -20px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px; scroll-behavior: smooth; }
.chips::after { content: ""; flex: none; width: 14px; }
.chipfade {
  position: absolute; right: 0; top: 0; bottom: 0; width: 44px; pointer-events: none;
  background: linear-gradient(to right, rgba(255, 249, 242, 0), #FFF9F2 70%);
}
#chipNext {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 999px;
  background: #FCFCFC; color: #667085; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(52, 64, 84, .18);
}
#chipNext:hover { color: #344054; }

/* detail: your-notes card */
.d-notes {
  background: #FFF4E2; border-radius: 24px; padding: 16px;
  box-shadow: inset 0 0 0 1.5px #F3E3C6;
  display: flex; flex-direction: column; gap: 10px;
}
.d-notes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.d-notes-title { font: 700 15px Nunito, system-ui, sans-serif; }
.d-notes-saved { font: 600 12px Inter, system-ui, sans-serif; color: #3f7a56; }
.d-notes-ta {
  min-height: 78px; resize: none; border: 0; outline: none; border-radius: 18px;
  padding: 12px 14px; background: #FCFCFC; box-shadow: inset 0 0 0 1.5px #F3E3C6;
  font: 400 13px/1.55 Inter, system-ui, sans-serif; color: #344054;
}
.d-notes-row { display: flex; gap: 8px; }
.d-notesaved {
  background: #FCFCFC; border-radius: 14px; padding: 10px 12px; cursor: text;
  font: 400 13px/1.55 Inter, system-ui, sans-serif; color: #344054;
  overflow-wrap: anywhere;
}
.d-notes-save {
  height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #F6C453; color: #344054; font: 700 13px Nunito, system-ui, sans-serif; cursor: pointer;
}
.d-notes-save:hover { background: #efb739; }
.d-notes-save.saved-ok { background: #76C893; color: #FFF; }
.d-hours-in {
  height: 44px; border: 0; outline: none; border-radius: 999px; padding: 0 15px;
  background: #FCFCFC; box-shadow: inset 0 0 0 1.5px #F3E3C6;
  font: 500 13px ui-monospace, Menlo, monospace; color: #344054;
}
.d-hours-in:focus { box-shadow: inset 0 0 0 1.5px #6DB7FF; }
.d-hours-hint { margin: 0; font: 400 12px/1.5 Inter, system-ui, sans-serif; color: #8a8378; }
.d-hours-hint.err { color: #a8503f; font-weight: 600; }
.d-yourstag {
  font: 600 11px Inter, system-ui, sans-serif; color: #3f7a56;
  background: #DFF3E6; border-radius: 999px; padding: 3px 9px; margin-left: 6px;
  vertical-align: 2px;
}
.d-gtag { background: #E3F0FF; color: #4c9ce6; }
.d-notes-remove {
  height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #FCFCFC; color: #8a8378; font: 600 13px Nunito, system-ui, sans-serif; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px #EAEAEA;
}

/* idea card extras */
.idea-x {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: 999px;
  background: #FCFCFC; color: #a8a29a; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px #F3E3C6;
}
.idea-x:hover { color: #a8503f; }
.idea-err {
  background: #FFE4DF; border-radius: 14px; padding: 9px 11px;
  font: 600 12px/1.45 Inter, system-ui, sans-serif; color: #a8503f;
}
.idea-fixrow { display: flex; gap: 8px; }
.idea-fixin {
  flex: 1; min-width: 0; height: 38px; border: 0; outline: none; border-radius: 999px;
  padding: 0 13px; background: #FCFCFC; box-shadow: inset 0 0 0 1.5px #F3E3C6;
  font: 400 13px Inter, system-ui, sans-serif; color: #344054;
}
.idea-fixin:focus { box-shadow: inset 0 0 0 1.5px #6DB7FF; }
.idea-retry {
  flex: none; height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  background: #E3F0FF; color: #4c9ce6; font: 600 12px Inter, system-ui, sans-serif; cursor: pointer;
}
.idea-clear {
  height: 34px; padding: 0 15px; border: 0; border-radius: 999px;
  background: #FCFCFC; color: #8a8378; font: 600 12px Nunito, system-ui, sans-serif; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px #EAEAEA;
}
.chip {
  flex: none; height: 36px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  font: 600 13px Inter, system-ui, sans-serif;
  border: 1.5px solid #EAEAEA; background: #FCFCFC; color: #8a8378;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.chip.on { border-color: var(--c); background: var(--tint); color: #344054; box-shadow: 0 1px 3px rgba(52, 64, 84, .06); }

.radrow { display: flex; align-items: center; gap: 8px; }
.opennow {
  flex: none; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 600 13px Inter, system-ui, sans-serif; display: flex; align-items: center; gap: 7px;
  border: 1.5px solid #EAEAEA; background: #FCFCFC; color: #8a8378;
}
.opennow .dot { width: 9px; height: 9px; border-radius: 999px; background: #d6d2ca; }
.opennow.on { border-color: #76C893; background: #DFF3E6; color: #3f7a56; }
.opennow.on .dot { background: #76C893; }

#atTime {
  height: 38px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #EAEAEA; background: #FCFCFC; color: #344054;
  font: 600 13px Inter, system-ui, sans-serif;
}
#atTime.active { border-color: #6DB7FF; background: #E3F0FF; color: #34608a; }

#banners { display: flex; flex-direction: column; gap: 8px; }
#banners:empty { display: none; }
.banner {
  display: flex; align-items: center; gap: 9px;
  border-radius: 18px; padding: 11px 14px; cursor: pointer;
  font: 600 13px Inter, system-ui, sans-serif;
}
.banner .bdot { flex: none; width: 11px; height: 11px; border-radius: 999px; }
.banner .bact { margin-left: auto; flex: none; font-weight: 700; }
.banner.rain { background: #EFEAFE; color: #5b4b8a; }
.banner.rain .bdot { background: #B8A7F5; }
.banner.hot { background: #FDF3DE; color: #A87B1F; }
.banner.hot .bdot { background: #F6C453; }
.banner.story { background: #FFE9B8; color: #7a5c1b; }
.banner.story .bdot { background: #F6C453; }

.statusline { font: 400 13px Inter, system-ui, sans-serif; color: #667085; min-height: 1.3em; }
.statusline.error { font-weight: 600; color: #a8503f; }

/* ---------- map view ---------- */
.mapwrap {
  height: min(40vh, 360px); margin: 0 16px 12px; border-radius: 26px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(52, 64, 84, .1); position: relative;
}
#map { position: absolute; inset: 0; z-index: 0; }
#mapLoading {
  position: absolute; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 249, 242, .45); pointer-events: none;
}
#mapLoading[hidden] { display: none; }
.pillmsg {
  background: #FCFCFC; padding: 10px 18px; border-radius: 999px;
  font: 700 13px Nunito, system-ui, sans-serif; color: #344054;
  box-shadow: 0 2px 10px rgba(52, 64, 84, .22);
  display: flex; align-items: center; gap: 9px;
}
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2.5px solid #EAEAEA; border-top-color: #F6C453;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* skeleton cards while results load */
.spot.skel { pointer-events: none; }
.sk { background: #EFEBE3; border-radius: 8px; animation: skpulse 1.2s ease-in-out infinite; }
@keyframes skpulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sk, .spinner { animation: none; }
}

#areaBtn {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 500;
  height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #FCFCFC; color: #344054; cursor: pointer;
  font: 700 13px Nunito, system-ui, sans-serif;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 2px 10px rgba(52, 64, 84, .22);
}
#areaBtn:hover { background: #f2efe9; }
#areaBtn[hidden] { display: none; }

/* ---------- list ---------- */
.list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 12px; flex-direction: column; gap: 10px; }
.spot {
  background: #FCFCFC; border-radius: 24px; padding: 14px;
  box-shadow: 0 1px 4px rgba(52, 64, 84, .07);
  display: flex; gap: 12px; align-items: flex-start;
}
.spot.selected { box-shadow: inset 0 0 0 2px var(--cat, #6DB7FF), 0 1px 4px rgba(52, 64, 84, .07); }
.tile { flex: none; width: 44px; height: 44px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.tile span { width: 16px; height: 16px; border-radius: 999px; }
.spot-body { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.spot-name { font: 700 16px/1.2 Nunito, system-ui, sans-serif; }
.spot-meta { font: 400 13px Inter, system-ui, sans-serif; color: #667085; }
.spot-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spot-hours { font: 400 12px Inter, system-ui, sans-serif; color: #667085; }

.pill {
  flex: none; display: inline-block; font: 600 12px Inter, system-ui, sans-serif;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.pill-lg { font-size: 13px; padding: 7px 14px; }
.pill.open, .pill.daylight { background: #DFF3E6; color: #3f7a56; }
.pill.closed { background: #FFE4DF; color: #a8503f; }
.pill.unknown { background: #EAEAEA; color: #667085; }

.heartbtn {
  flex: none; width: 38px; height: 38px; border: 0; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: #F4F1EB;
}
.heartbtn.on { background: #FFE4DF; }

.emptycard {
  background: #FCFCFC; border-radius: 24px; padding: 22px;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.emptycard .eico { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.emptycard .eico span { width: 16px; height: 16px; border-radius: 999px; }
.emptycard .et { font: 700 18px Nunito, system-ui, sans-serif; }
.emptycard p { margin: 0; font: 400 14px/1.5 Inter, system-ui, sans-serif; color: #667085; }

/* ---------- detail ---------- */
#s-detail { overflow-y: auto; padding-top: 14px; }
.d-bar { flex: none; padding: 0 16px 12px; display: flex; align-items: center; justify-content: space-between; }
.d-body { padding: 0 20px; display: flex; flex-direction: column; gap: 18px; }
.d-hero { position: relative; height: 170px; border-radius: 28px; overflow: hidden; }
.d-blob { position: absolute; left: -30px; top: -40px; width: 180px; height: 180px; border-radius: 999px; opacity: .35; }
.d-dot { position: absolute; right: 26px; bottom: 36px; width: 76px; height: 76px; border-radius: 999px; background: #FCFCFC; opacity: .75; }
.d-kicker { font: 400 13px Inter, system-ui, sans-serif; color: #667085; margin-bottom: 6px; }
.d-name { font: 800 28px/1.12 Nunito, system-ui, sans-serif; letter-spacing: -.01em; margin: 0 0 10px; }
.d-statusrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-hourstext { font: 400 14px Inter, system-ui, sans-serif; color: #667085; }
.d-week {
  background: #FCFCFC; border-radius: 24px; padding: 16px;
  box-shadow: 0 1px 4px rgba(52, 64, 84, .07);
  display: flex; flex-direction: column; gap: 8px;
}
.d-weektitle { font: 700 15px Nunito, system-ui, sans-serif; }
.d-day {
  display: flex; justify-content: space-between; gap: 12px;
  font: 400 13px Inter, system-ui, sans-serif; color: #667085;
  padding: 5px 10px; border-radius: 12px;
}
.d-day.today { font-weight: 600; color: #344054; background: #FFF4E2; }
.d-nohours { margin: 0; font: 400 13px/1.5 Inter, system-ui, sans-serif; color: #667085; }
.d-day.evt { text-decoration: none; }
.d-day.evt span:first-child { flex: none; color: #4c9ce6; font-weight: 600; }
.evt-title { color: #344054; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-tagstitle { font: 700 15px Nunito, system-ui, sans-serif; margin-bottom: 10px; }
.d-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.d-tag {
  font: 600 12px Inter, system-ui, sans-serif; padding: 8px 13px; border-radius: 999px;
  background: #FCFCFC; color: #667085; box-shadow: inset 0 0 0 1.5px #EAEAEA;
}
.d-addr { font: 400 14px/1.5 Inter, system-ui, sans-serif; color: #667085; }
.d-actions { display: flex; gap: 10px; padding-bottom: 24px; }
.d-directions {
  flex: 1; height: 52px; border-radius: 999px; background: #F6C453; color: #344054;
  font: 700 16px Nunito, system-ui, sans-serif; box-shadow: 0 2px 6px rgba(246, 196, 83, .45);
  display: flex; align-items: center; justify-content: center;
}
.d-directions:hover { background: #efb739; color: #344054; }
.d-fix {
  flex: none; height: 52px; padding: 0 20px; border: 1.5px solid #EAEAEA; border-radius: 999px;
  background: #FCFCFC; color: #6DB7FF; font: 600 15px Nunito, system-ui, sans-serif;
  display: flex; align-items: center; justify-content: center;
}
.d-fix:hover { border-color: #6DB7FF; }

/* ---------- favorites ---------- */
.sv-head { flex: none; padding: 14px 20px 14px; }
.sv-title { font: 800 28px/1.15 Nunito, system-ui, sans-serif; letter-spacing: -.01em; }
.sv-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.spot-note {
  margin-top: 2px; background: #FFF4E2; border-radius: 14px; padding: 8px 10px;
  font: 400 12px/1.45 Inter, system-ui, sans-serif; color: #7a6a53;
}
.quickadd { display: flex; gap: 8px; }
.quickadd input {
  flex: 1; min-width: 0; height: 44px; border: 0; outline: none; border-radius: 999px;
  padding: 0 16px; background: #FCFCFC; box-shadow: inset 0 0 0 1.5px #EAEAEA;
  font: 400 14px Inter, system-ui, sans-serif; color: #344054;
}
.quickadd input:focus { box-shadow: inset 0 0 0 1.5px #6DB7FF; }
.quickadd button {
  flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: #F6C453; color: #344054; font: 700 14px Nunito, system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 1px 3px rgba(52, 64, 84, .08);
}
.quickadd button:hover { background: #efb739; }

.addcats { margin: 0 -16px; padding: 2px 16px; }

.synccard { margin-top: 8px; }
.d-rating {
  display: inline-block; margin-top: 10px;
  font: 600 13px Inter, system-ui, sans-serif; color: #B08A2E; text-decoration: none;
}
.d-rating:hover { text-decoration: underline; color: #B08A2E; }

.d-hidebtn {
  align-self: center; margin: -8px 0 24px; border: 0; background: none; cursor: pointer;
  font: 600 13px Inter, system-ui, sans-serif; color: #98A2B3; text-decoration: underline;
}
.d-hidebtn:hover { color: #a8503f; }
.findrow {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-top: 1.5px solid #F4F1EB;
}
.findrow:first-child { border-top: 0; }
.findbody { flex: 1; min-width: 0; }
.findname { font: 700 14px Nunito, system-ui, sans-serif; }
.findaddr { font: 400 12px Inter, system-ui, sans-serif; color: #8a8378; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.findrow button {
  flex: none; height: 34px; padding: 0 15px; border: 0; border-radius: 999px;
  background: #F6C453; color: #344054; font: 700 13px Nunito, system-ui, sans-serif; cursor: pointer;
}
.findrow button.saved { background: #DFF3E6; color: #3f7a56; cursor: default; }

.hiddenrow {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: 400 14px Inter, system-ui, sans-serif; color: #667085;
}
.hiddenrow button {
  flex: none; height: 32px; padding: 0 13px; border: 0; border-radius: 999px;
  background: #E3F0FF; color: #4c9ce6; font: 600 12px Inter, system-ui, sans-serif; cursor: pointer;
}
.syncbtn {
  flex: 1; height: 44px; border: 1.5px solid #EAEAEA; border-radius: 999px;
  background: #FCFCFC; color: #6DB7FF; font: 600 14px Nunito, system-ui, sans-serif; cursor: pointer;
}
.syncbtn:hover { border-color: #6DB7FF; }

#dmap {
  position: relative; height: 170px; border-radius: 28px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(52, 64, 84, .1); background: #EFEBE3; z-index: 0;
}
.d-photowrap { position: relative; }
.d-photo {
  display: block; width: 100%; height: 190px; object-fit: cover;
  border-radius: 28px; background: #EFEBE3;
  box-shadow: 0 2px 10px rgba(52, 64, 84, .1);
}
.d-photocred {
  position: absolute; right: 12px; bottom: 10px;
  font: 600 10px Inter, system-ui, sans-serif; color: #FFF;
  background: rgba(52, 64, 84, .55); border-radius: 999px; padding: 3px 9px;
}

.ideas-head { padding: 8px 4px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ideas-title { font: 700 15px Nunito, system-ui, sans-serif; }
.ideas-count { font: 400 12px Inter, system-ui, sans-serif; color: #8a8378; }
.idea {
  background: #FFF4E2; border-radius: 24px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: inset 0 0 0 1.5px #F3E3C6;
}
.idea-top { display: flex; gap: 12px; align-items: flex-start; }
.idea-tile {
  flex: none; width: 40px; height: 40px; border-radius: 14px; background: #FFE9B8;
  display: flex; align-items: center; justify-content: center;
}
.idea-tile span { width: 14px; height: 14px; border-radius: 999px; background: #F6C453; }
.idea-body { flex: 1; min-width: 0; }
.idea-name { font: 700 15px/1.25 Nunito, system-ui, sans-serif; }
.idea-meta { font: 400 12px Inter, system-ui, sans-serif; color: #8a8378; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lookup {
  flex: none; height: 32px; padding: 0 13px; border: 0; border-radius: 999px;
  font: 600 12px Inter, system-ui, sans-serif; cursor: pointer;
  background: #E3F0FF; color: #4c9ce6;
}
.lookup.onmap { background: #DFF3E6; color: #3f7a56; cursor: default; }
.idea-note {
  cursor: text; background: #FCFCFC; border-radius: 14px; padding: 9px 11px;
  font: 400 12px/1.5 Inter, system-ui, sans-serif; color: #7a6a53;
  overflow-wrap: anywhere;
}
.idea-edit { display: flex; flex-direction: column; gap: 8px; }
.idea-ta {
  width: 100%; min-height: 60px; resize: none; border: 0; outline: none;
  border-radius: 14px; padding: 10px 11px; background: #FCFCFC;
  box-shadow: inset 0 0 0 1.5px #F3E3C6;
  font: 400 12px/1.5 Inter, system-ui, sans-serif; color: #344054;
}
.idea-editrow { display: flex; gap: 8px; }
.idea-save {
  height: 34px; padding: 0 15px; border: 0; border-radius: 999px;
  background: #F6C453; color: #344054; font: 700 12px Nunito, system-ui, sans-serif; cursor: pointer;
}
.idea-del {
  height: 34px; padding: 0 15px; border: 0; border-radius: 999px;
  background: #FCFCFC; color: #a8503f; font: 600 12px Nunito, system-ui, sans-serif; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px #EAEAEA;
}
.idea-addnote {
  align-self: flex-start; height: 30px; padding: 0 12px; border: 0; border-radius: 999px;
  background: #FCFCFC; color: #8a8378; font: 600 12px Inter, system-ui, sans-serif; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px #F3E3C6;
}

/* ---------- write it down ---------- */
#s-add { overflow-y: auto; padding: 14px 20px 20px; gap: 16px; }
.add-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.add-title { font: 800 26px/1.15 Nunito, system-ui, sans-serif; letter-spacing: -.01em; }
.add-card {
  background: #FCFCFC; border-radius: 24px; padding: 16px;
  box-shadow: 0 1px 4px rgba(52, 64, 84, .07);
  display: flex; flex-direction: column; gap: 10px;
}
.add-input {
  height: 46px; border: 0; outline: none; border-radius: 999px; padding: 0 16px;
  background: #FFF9F2; box-shadow: inset 0 0 0 1.5px #EAEAEA;
  font: 600 14px Inter, system-ui, sans-serif; color: #344054;
}
.add-input-light { font-weight: 400; }
.add-ta {
  min-height: 74px; resize: none; border: 0; outline: none; border-radius: 20px;
  padding: 12px 15px; background: #FFF9F2; box-shadow: inset 0 0 0 1.5px #EAEAEA;
  font: 400 13px/1.5 Inter, system-ui, sans-serif; color: #344054;
}
.add-mono { min-height: 110px; font: 400 12px/1.6 ui-monospace, Menlo, monospace; }
.add-hint { margin: 0; font: 400 12px/1.5 Inter, system-ui, sans-serif; color: #8a8378; }
.add-cardtitle { font: 700 15px Nunito, system-ui, sans-serif; }
.add-cardsub { font: 400 12px/1.5 Inter, system-ui, sans-serif; color: #667085; margin-top: 3px; }
.add-msg {
  background: #DFF3E6; border-radius: 20px; padding: 12px 15px;
  font: 600 13px Inter, system-ui, sans-serif; color: #3f7a56;
}

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 400px;
  padding: 10px 28px calc(6px + env(safe-area-inset-bottom));
  gap: 8px; background: #FCFCFC; box-shadow: 0 -1px 0 #EAEAEA; z-index: 500;
}
.tabbar button {
  flex: 1; height: 52px; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font: 600 11px Nunito, system-ui, sans-serif; color: #667085;
}
.ticon-svg { width: 23px; height: 23px; color: #98A2B3; fill: none; }
#tabNearby.on { font-weight: 700; color: #c9962c; }
#tabNearby.on .ticon-svg { color: #EDB93F; fill: #FFE9B8; }
#tabSaved.on { font-weight: 700; color: #c9705f; }
#tabSaved.on .ticon-svg { color: #FF8C7A; fill: #FF8C7A; }

/* raised quick-add button in the middle of the bar */
#tabAdd { flex: none; width: 84px; gap: 4px; }
.addicon {
  width: 46px; height: 46px; border-radius: 999px;
  background: #F6C453; color: #344054;
  display: grid; place-items: center;
  margin-top: -22px;
  box-shadow: 0 4px 12px rgba(52, 64, 84, .25), 0 0 0 5px #FFF9F2;
  transition: transform 0.06s ease;
}
#tabAdd:hover .addicon { background: #efb739; }
#tabAdd:active .addicon { transform: scale(0.94); }
#tabAdd.on { color: #c9962c; font-weight: 700; }

/* leave room for the fixed tab bar */
body:not([data-screen="welcome"]) .phone { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

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