/* citymap.css — city overview, city map (Go Deeper), spot detail, trip city-picker.
   Uses ymaplify tokens (--coral, --ink, --font-display, shadows, radii). All
   surfaces are full-bleed modes rendered inside .ym, animating up over Home. */

/* ============ FULL-SURFACE SHELLS ============ */
.cvx, .citymap, .spotx, .citypick {
  position: absolute; inset: 0; z-index: 41; overflow: hidden;
  background: var(--bg); animation: rise .28s cubic-bezier(0.2,0,0,1);
}
.spotx { z-index: 43; } /* spot detail sits above the city map */

/* shared abstract map fill inside a shell */
.cvx__map, .citymap__map, .spotx__map, .citypick__map { position: absolute; inset: 0; }
.citymap__water { position: absolute; left: -10%; right: -10%; bottom: -6%; height: 46%;
  background: radial-gradient(90% 120% at 50% 100%, #bcd7e6 0%, #cfe0ea 45%, transparent 72%); opacity: .8; pointer-events: none; }

/* region / street labels on the map */
.cvx__label { position: absolute; transform: translate(-50%,-50%); z-index: 2;
  font: 700 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: #7c8a97; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 2px rgba(255,255,255,.7); }
.cvx__label.sm { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: #6b7683; }
.cvx__label.coral { color: var(--coral); font-weight: 700; }
.cvx__pin i { font-size: 30px; color: var(--coral); }
.cvx__pin { filter: drop-shadow(0 4px 6px rgba(0,0,0,.28)); }

/* back-to-globe pill (top-left) */
.cmap-back { position: absolute; left: 14px; top: 60px; z-index: 25; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 15px 0 12px; border-radius: 999px; cursor: pointer;
  background: var(--map-control-bg); border: 1px solid var(--map-control-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md); font: 600 13px/1 var(--font-body); color: var(--ink); }
.cmap-back i { font-size: 18px; }
.cmap-back:active { transform: scale(.97); }
.cvx__backfab { z-index: 25; }

/* emoji spot marker (auto-emoji per place type) */
.cm-spot { position: absolute; transform: translate(-50%,-50%); z-index: 4; border: none; background: none; padding: 0; cursor: pointer; }
.cm-spot::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,255,255,.9) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 72%); }
.cm-spot__em { display: block; font-size: 30px; line-height: 1; filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); }
.cm-spot:active { transform: translate(-50%,-50%) scale(.9); }
/* R6-W3 L4 — the little red dot on a bookmarked pin is GONE (Kaio: "not necessary
   at all"). The `.saved` class stays: other rules and the list still key off it. */

/* ============ CITY OVERVIEW (Zürich) ============ */
.cv-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 22; height: 76%;
  background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: 0 -18px 50px -12px rgba(15,22,32,.32);
  display: flex; flex-direction: column; overflow: hidden; }
.cv-sheet__grab { flex: none; padding: 9px 0 3px; display: grid; place-items: center; }
.cv-sheet__grab i { width: 40px; height: 5px; border-radius: 999px; background: var(--grey-300); }
.cv-sheet__body { flex: 1; overflow-x: hidden; overflow-y: auto; padding: 4px 16px 26px; -webkit-overflow-scrolling: touch; }

.cv-photo { position: relative; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #e9ece7 0 9px, #e0e4dd 9px 18px); border: 1px solid rgba(20,40,60,.06); }
.cv-photo__tag { font: 600 10px/1.4 ui-monospace, SFMono-Regular, monospace; color: #9aa39a; text-transform: uppercase; letter-spacing: .04em; }
.cv-hero { position: relative; }
.cv-hero__img { height: auto; min-height: 168px; aspect-ratio: 2 / 1; }
.cv-hero__x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); box-shadow: var(--shadow-md); display: grid; place-items: center; font-size: 17px; color: var(--ink); }

.cv-id { margin: 14px 0 0; }
.cv-id__eye { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--font-body); letter-spacing: .1em; color: var(--coral); }
.cv-id__flag { font-size: 14px; }
.cv-id__name { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -.02em; margin: 7px 0 2px; }
.cv-id__tag { font-size: 14px; font-style: italic; line-height: 1.4; color: var(--text-2); margin: 0; }

.cv-actions { display: flex; gap: 10px; margin: 15px 0 4px; position: relative; }
.cv-deeper { flex: 1; height: 48px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font: 700 14px/1 var(--font-body); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--shadow-sm); }
.cv-deeper i { font-size: 18px; }
.cv-deeper:active { transform: scale(.98); }
.cv-save { height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font: 700 14px/1 var(--font-body); color: var(--coral); box-shadow: var(--shadow-sm); }
.cv-save i { font-size: 18px; }
.cv-save:active { transform: scale(.97); }
.cv-save.on { background: #FFF1F1; border-color: var(--coral-soft); }

.cv-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 16px 0 0; }
.cv-fact { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-muted); }
.cv-fact__ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 17px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); }
.cv-fact__c { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cv-fact__c span { font: 600 10px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.cv-fact__c b { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.cv-fact__c i { font-size: 11px; font-style: normal; line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere; }
.cv-fact--from { grid-column: 1 / -1; text-align: left; cursor: pointer; border-style: dashed; border-color: var(--coral-soft); background: #FFF6F6; }
.cv-fact--from .cv-fact__ic { color: var(--coral); }
.cv-fact--from .cv-fact__c b { color: var(--coral); }
.cv-fact--wide { grid-column: 1 / -1; }
.cv-budget { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-muted); padding: 11px 12px; }
.cv-budget__hd { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font: 600 10px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.cv-budget__tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cv-budget__tier { position: relative; text-align: center; padding: 12px 4px 9px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.cv-budget__tier.on { border-color: var(--coral-soft); background: #FFF6F6; }
.cv-budget__lvl { display: block; font: 700 9.5px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.cv-budget__tier b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 4px; letter-spacing: -.01em; }
.cv-budget__tier i { font-size: 10px; font-style: normal; color: var(--text-2); }
.cv-budget__tier.on b { color: var(--coral); }
.cv-budget__tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 8px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--coral); padding: 3px 7px; border-radius: 999px; }
[data-theme="night"] .cv-budget__tier.on { background: rgba(255,90,95,.12); }
.cv-fromrow { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 2px; }
.cv-fromchip { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font: 600 12.5px/1 var(--font-body); color: var(--text-2); }
.cv-fromchip.on { background: var(--coral); color: #fff; border-color: var(--coral); }
.cv-info { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.cv-info__cell { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-muted); }
.cv-info__cell--safety { grid-column: 1 / -1; align-items: flex-start; }
.cv-info__cell--visa { grid-column: 1 / -1; cursor: pointer; position: relative; }
.cv-info__cell--visa:active { transform: scale(.98); }
.cv-visa-set { display: inline-flex; align-items: center; gap: 3px; color: var(--coral); }
.cv-visa-set i { font-size: 12px; }
.cv-visa-edit { margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, var(--surface)); }
/* one-time attention pulse when the city card first opens, so it reads as tappable */
.cv-info__cell--visa::after { content: ""; position: absolute; inset: -1px; border-radius: 13px; pointer-events: none;
  border: 1.5px solid var(--coral); opacity: 0; animation: visaPulse 1.5s ease-out 3; }
@keyframes visaPulse { 0% { opacity: 0; transform: scale(1); } 20% { opacity: .85; } 100% { opacity: 0; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .cv-info__cell--visa::after { animation: none; } }
.cv-info__ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 16px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); }
.cv-info__c { min-width: 0; display: flex; flex-direction: column; }
.cv-info__c span { font: 600 10px/1.4 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.cv-info__c b { font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }

.cv-wx { margin: 16px 0 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-muted); padding: 12px; }
.cv-wx__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cv-wx__hd > span:first-child { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.cv-wx__nav { display: flex; gap: 6px; }
.cv-wx__nav button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; font-size: 14px; color: var(--ink-2); }
.cv-wx__nav button:disabled { opacity: .4; }
.cv-wx__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cv-wx__day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 11px; }
.cv-wx__day.now { background: var(--surface); box-shadow: var(--shadow-sm); }
.cv-wx__dow { font-size: 11px; font-weight: 600; color: var(--text-2); }
.cv-wx__day i { font-size: 20px; color: var(--info); }
.cv-wx__day b { font-size: 14px; font-weight: 700; }

.cv-guide { margin: 16px 0 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.cv-guide__hd { display: flex; align-items: center; gap: 7px; padding: 11px 13px; border-bottom: 1px solid var(--border); background: var(--surface-muted);
  font: 700 11.5px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.cv-guide__hd i { font-size: 15px; color: var(--coral); }
.cv-guide__row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--border); }
.cv-guide__row:last-child { border-bottom: none; }
.cv-guide__em { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 21px; background: var(--surface-muted); border: 1px solid var(--border); }
.cv-guide__txt { min-width: 0; }
.cv-guide__txt b { display: block; font-size: 13.5px; font-weight: 700; }
.cv-guide__txt span { font-size: 12.5px; color: var(--text-2); line-height: 1.4; }

.cv-partners { margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; }
.cv-partners__row { display: flex; gap: 9px; }
.cv-partner { height: 54px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font: 700 14.5px/1 var(--font-body); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; box-shadow: var(--shadow-sm); }
.cv-partners__row .cv-partner { flex: 1; }
.cv-partner i { font-size: 20px; }
.cv-partner:active { transform: scale(.98); }
.cv-partner--flight { background: var(--success); color: #fff; border-color: transparent; }
.cv-partner--flight.off { background: var(--surface-muted); color: var(--text-3); box-shadow: none; border-style: dashed; }
.cv-partner__b { font-weight: 800; font-size: 15px; color: var(--partner-booking); }
.cv-partner--maps { color: var(--ink); }
.cv-foot { display: flex; align-items: flex-start; gap: 7px; margin: 14px 2px 0; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
.cv-foot i { font-size: 14px; flex: none; margin-top: 1px; }

/* save-to-map menu */
.cv-savemenu__scrim { position: fixed; inset: 0; z-index: 44; }
.cv-savemenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; width: 268px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); animation: fade .14s ease-out; }
.cv-savemenu__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cv-savemenu__hd b { font-size: 14px; }
.cv-savemenu__hd button { border: none; background: none; cursor: pointer; color: var(--text-3); font-size: 17px; }
.cv-savemenu__lbl { display: block; font: 800 9px/1 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin: 8px 2px 5px; }
.cv-saverow { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; margin-bottom: 5px; }
.cv-saverow b { flex: 1; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cv-saverow__em { font-size: 18px; }
.cv-saverow__chk { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-muted); color: var(--text-3); font-size: 14px; }
.cv-saverow.on { border-color: var(--coral-soft); background: #FFF6F6; }
.cv-saverow.on .cv-saverow__chk { background: var(--coral); color: #fff; }
.cv-savemenu__new { width: 100%; height: 40px; margin-top: 4px; border-radius: 12px; border: 1px dashed var(--border); background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 700 12.5px/1 var(--font-body); color: var(--coral); }

/* ============ CITY MAP (Go Deeper — Singapore) ============ */
.citymap__ctl { position: absolute; right: 14px; top: 60px; z-index: 25; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.cm-fab { width: 46px; height: 46px; border-radius: 999px; cursor: pointer; position: relative; display: grid; place-items: center; font-size: 22px;
  background: var(--map-control-bg); border: 1px solid var(--map-control-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md); color: var(--ink); }
.cm-fab:active { transform: scale(.93); }
.cm-fab.coral { background: var(--coral); border-color: transparent; color: #fff; }
.cm-fab.magenta { background: #DB2777; border-color: transparent; color: #fff; }
.citymap__sharewrap { position: relative; }
.citymap__addwrap { position: relative; }
.cm-fab--magic { width: 52px; height: 52px; padding: 3px; border: none; background: var(--brand-gradient);
  box-shadow: 0 10px 22px -8px rgba(193,62,155,.55), var(--shadow-md); }
.cm-fab--magic:active { transform: scale(.93); }
.cm-fab__disc { width: 100%; height: 100%; border-radius: 999px; background: transparent; display: grid; place-items: center; }
.cm-fab__disc img { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); }
.cm-addmenu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 45; width: 250px; padding: 8px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); animation: fade .14s ease-out; }
.cm-addmenu__lbl { display: block; font: 800 9px/1 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin: 4px 6px 7px; }
.cm-addmenu__row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px 8px; border: none; background: none; cursor: pointer; border-radius: 12px; text-align: left; }
.cm-addmenu__row:hover { background: var(--surface-muted); }
.cm-addmenu__ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 19px; color: #fff; }
.cm-addmenu__ic.magic { background: var(--brand-gradient); }
.cm-addmenu__ic.coral { background: var(--coral); }
.cm-addmenu__t { min-width: 0; }
.cm-addmenu__t b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cm-addmenu__t span { font-size: 11.5px; color: var(--text-2); }
.citymap__note i { font-size: 30px; color: var(--coral); }
.citymap__note { z-index: 4; }
.citymap__notelbl { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); white-space: nowrap; font: 600 11px/1 var(--font-body); color: var(--coral); text-shadow: 0 1px 2px rgba(255,255,255,.8); }

.cm-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 22; background: var(--surface); border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 50px -12px rgba(15,22,32,.3); display: flex; flex-direction: column; overflow: hidden; transition: height .16s var(--ease); }
.cm-panel__grab { flex: none; padding: 10px 0 4px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.cm-panel__grab i { width: 40px; height: 5px; border-radius: 999px; background: var(--grey-300); }

.cm-panel__hd { display: flex; align-items: flex-start; gap: 10px; padding: 0 16px 10px; }
.cm-panel__id { flex: 1; min-width: 0; }
.cm-panel__eye { display: block; font: 700 9.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin-bottom: 4px; }
.cm-panel__id b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.cm-panel__meta { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.cm-panel__dot { color: var(--text-3); }
.cm-privpill { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 8px 0 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-muted); color: var(--text-2); font: 700 11.5px/1 var(--font-body); }
.cm-privpill i:last-child { font-size: 13px; color: var(--text-3); margin-left: -2px; }
.cm-privpill.shared { color: var(--success); border-color: color-mix(in srgb, var(--success) 32%, var(--border)); background: color-mix(in srgb, var(--success) 10%, var(--surface)); }
.cm-privpill.shared i:last-child { color: currentColor; }
.cm-privpill:active { transform: scale(.96); }
.cm-vibe__btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--magic); color: var(--magic-deep); font: 700 12.5px/1 var(--font-body); }
.cm-vibe__btn i:first-child { font-size: 15px; }
.cm-vibe__btn.on { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.cm-vibe__card { margin: 0 14px 10px; padding: 13px 14px; border-radius: 16px; background: linear-gradient(160deg, #FFF6F8, var(--surface) 80%);
  border: 1px solid var(--coral-soft); animation: fade .16s ease-out; }
.cm-vibe__card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.cm-vibe__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.cm-vibe__tags span { padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.cm-vibe__foot { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); }
[data-theme="night"] .cm-vibe__btn { background: rgba(255,90,95,.14); }

.cm-ctl { display: flex; align-items: center; gap: 8px; padding: 0 14px 10px; }
.cm-seg { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cm-seg::-webkit-scrollbar { display: none; }
.cm-seg button { flex: 1; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; border-radius: 999px;
  font: 600 12px/1 var(--font-body); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.cm-seg button .em { font-size: 13px; }
.cm-seg button.on { background: var(--coral); color: #fff; border-color: var(--coral); }
.cm-iconbtn { width: 36px; height: 36px; flex: none; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  display: grid; place-items: center; font-size: 17px; color: var(--ink); box-shadow: var(--shadow-sm); }
.cm-iconbtn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cm-sortwrap { position: relative; flex: none; }
.cm-menu__scrim { position: fixed; inset: 0; z-index: 44; }
.cm-sortmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; width: 168px; max-height: 260px; overflow: auto; padding: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); animation: fade .14s ease-out; }
.cm-sortmenu button { width: 100%; display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 10px; border: none; background: none;
  cursor: pointer; border-radius: 9px; font: 600 13px/1 var(--font-body); color: var(--text); }
.cm-sortmenu button.on { color: var(--coral); }
.cm-sortmenu button:hover { background: var(--surface-muted); }

/* ---- comment fixes: share FAB, POI emoji, note modal, source chip ---- */
.cm-fab--share.on { color: var(--success); }
.cm-fab__dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 999px; background: var(--success); border: 2px solid var(--surface); }
.cm-poi__top b { display: inline-flex; align-items: center; gap: 6px; }
.cm-poi__em { font-size: 16px; line-height: 1; flex: none; }
.cm-privpill { cursor: pointer; font-family: inherit; }
.cm-pinspot .paste-field { margin-top: 2px; }
.cm-pinspot__hint { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; line-height: 1.45; color: var(--text-2); margin: 11px 2px 2px; }
.cm-pinspot__hint i { flex: none; font-size: 15px; color: var(--magic); margin-top: 1px; }
.cm-droppin__sub { display: block; font-size: 12.5px; line-height: 1.45; color: var(--text-2); margin: 2px 0 12px; }
.cm-droppin__in { min-height: 74px; resize: none; }
.spot-source-badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface-muted); color: var(--ink-2); font: 700 11.5px/1 var(--font-body); }
.spot-source-badge i:first-child { font-size: 14px; color: var(--ink-2); }
.spot-source-badge i:last-child { color: var(--text-3); }
.spot-source-badge:active { background: var(--grey-150); }
.spot-descacts { display: flex; flex-wrap: wrap; gap: 7px; margin: -2px 0 2px; }
.spot-descact { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; cursor: pointer; font-family: inherit;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 11.5px/1 var(--font-body); }
.spot-descact:active { background: var(--surface-muted); }
.spot-descact i { font-size: 15px; color: var(--text-3); }
.spot-descact__n { font-size: 10px; font-weight: 800; color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, var(--surface)); border-radius: 999px; padding: 1px 6px; }

/* community-editable description — soft text actions + expanding panels */
.spot-desced { margin: -4px 0 4px; }
.spot-desced__note { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
.spot-desced__note i { font-size: 13px; }
.spot-desced__acts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 7px; }
.spot-desced__act { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; border: none; background: none; cursor: pointer;
  font: 600 12.5px/1 var(--font-body); color: var(--text-2); border-bottom: 1.5px solid transparent; }
.spot-desced__act i { font-size: 14px; color: var(--text-3); }
.spot-desced__act:hover { color: var(--ink); }
.spot-desced__act.on { color: var(--coral); border-bottom-color: var(--coral); }
.spot-desced__act.on i { color: var(--coral); }
.spot-desced__n { font-size: 10px; font-weight: 800; color: #fff; background: var(--coral); border-radius: 999px; padding: 1px 6px; }

.spot-descpanel { margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-muted); animation: fade .16s ease-out; }
.spot-descedit { width: 100%; min-height: 76px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding: 10px 12px; resize: none;
  font: 400 13.5px/1.5 var(--font-body); color: var(--ink); outline: none; }
.spot-descedit:focus { border-color: var(--coral-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 12%, transparent); }
.spot-descpanel__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.spot-descpanel__hint { font-size: 11.5px; color: var(--text-3); }
.spot-descpanel__send { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--coral); color: #fff; font: 700 12.5px/1 var(--font-body); }
.spot-descpanel__send:disabled { background: var(--grey-150); color: var(--text-3); cursor: default; }
.spot-descpanel__empty { display: flex; align-items: center; gap: 7px; margin: 2px; font-size: 12.5px; color: var(--text-2); }
.spot-descpanel__empty i { color: var(--success); font-size: 16px; }

.spot-sug { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.spot-sug:last-child { border-bottom: none; padding-bottom: 2px; }
.spot-sug__av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px;
  background: color-mix(in srgb, var(--c) 16%, var(--surface)); }
.spot-sug__b { flex: 1; min-width: 0; }
.spot-sug__b > b { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.spot-sug__by { font-weight: 500; color: var(--text-3); }
.spot-sug__b p { margin: 4px 0 8px; font-size: 13px; line-height: 1.5; color: var(--text); }
.spot-sug__acts { display: flex; gap: 8px; }
.spot-sug__ok, .spot-sug__no { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font: 700 12px/1 var(--font-body); border: 1px solid var(--border); background: var(--surface); }
.spot-sug__ok i, .spot-sug__no i { font-size: 14px; }
.spot-sug__ok { color: var(--success); border-color: #A7F3D0; background: #ECFDF5; }
.spot-sug__no { color: var(--text-2); }
.spot-sug__state { display: inline-flex; align-items: center; gap: 5px; font: 700 11.5px/1 var(--font-body); }
.spot-sug__state i { font-size: 14px; }
.spot-sug__state.approved { color: var(--success); }
.spot-sug__state.declined { color: var(--text-3); }
.spot-sug.declined { opacity: .55; }

.spot-hist { display: flex; gap: 11px; padding: 8px 0; }
.spot-hist__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; background: var(--border); box-shadow: 0 0 0 3px var(--surface-muted); position: relative; }
.spot-hist:not(:last-child) .spot-hist__dot::after { content: ""; position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: 2px; height: calc(100% + 12px); background: var(--border); }
.spot-hist.cur .spot-hist__dot { background: var(--coral); }
.spot-hist__b b { font-size: 12px; font-weight: 700; color: var(--ink); }
.spot-hist__by { font-weight: 500; color: var(--text-3); }
.spot-hist__b p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }

/* share sheet — status card (privacy toggled from the pill under the map title) */
.cm-sharestatus { display: flex; align-items: flex-start; gap: 11px; padding: 11px; border-radius: 13px; margin: 2px 0 6px;
  border: 1px solid var(--border); background: var(--surface-muted); }
.cm-sharestatus__ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); }
.cm-sharestatus.shared .cm-sharestatus__ic { background: var(--success); color: #fff; border-color: transparent; }
.cm-sharestatus__t b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cm-sharestatus__t span { display: block; font-size: 11.5px; line-height: 1.45; color: var(--text-2); margin-top: 2px; }

.cm-list { flex: 1; overflow-y: auto; padding: 2px 14px 20px; display: flex; flex-direction: column; gap: 9px; -webkit-overflow-scrolling: touch; }
.cm-poi { display: flex; align-items: center; gap: 12px; padding: 9px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; }
.cm-poi:active { transform: scale(.995); background: var(--surface-muted); }
.cm-shot { position: relative; display: grid; place-items: center; border-radius: 12px; overflow: hidden;
  background: repeating-linear-gradient(135deg, #e9ece7 0 8px, #e0e4dd 8px 16px); border: 1px solid rgba(20,40,60,.06); }
.cm-shot__tag { font: 600 9px/1.35 ui-monospace, SFMono-Regular, monospace; color: #9aa39a; text-transform: uppercase; letter-spacing: .03em; text-align: center; padding: 6px; }
.cm-shot__em { font-size: 30px; line-height: 1; }
.cm-poi__thumb { width: 72px; height: 72px; flex: none; }
.cm-poi__body { flex: 1; min-width: 0; }
.cm-poi__top { display: flex; align-items: center; gap: 6px; }
/* R6-W3 L1 — `flex: 1` made the title fill the row, which shoved the bookmark
   icon to the far right edge, miles from the name it belongs to. `0 1 auto` lets
   the title size to its content (and still shrink + ellipsis on a long name), so
   the bookmark sits right after the last letter. Friend rows have no bookmark
   button and are unaffected — the title is the only child either way. */
.cm-poi__top b { flex: 0 1 auto; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-poi__bm { flex: none; width: 28px; height: 28px; border: none; background: none; cursor: pointer; display: grid; place-items: center; font-size: 17px; color: var(--text-3); border-radius: 8px; }
.cm-poi__bm.on { color: var(--coral); }
.cm-poi__bm:active { transform: scale(.9); }
.cm-poi__cat { display: block; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--text-2); margin: 3px 0 0; }
.cm-poi__cat.party { color: var(--magic); }
.cm-poi__cat.food { color: var(--country-thailand); }
.cm-poi__tags { display: flex; flex-wrap: nowrap; gap: 5px; margin-top: 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.cm-poi__tag { flex: none; white-space: nowrap; font-size: 10.5px; font-weight: 600; color: var(--text-2); background: var(--surface-muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
.cm-poi__route, .cm-poi__x { width: 40px; height: 40px; flex: none; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; font-size: 18px; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.cm-poi__x { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.cm-empty { text-align: center; color: var(--text-3); padding: 30px 10px; }
.cm-empty i { font-size: 28px; }
.cm-empty b { display: block; margin: 8px 0 2px; font-size: 14px; color: var(--text-2); }
.cm-empty span { font-size: 12.5px; }

/* ============ MODALS (pin / drop / share image) ============ */
.cm-modal__scrim { position: absolute; inset: 0; z-index: 46; background: rgba(15,22,32,.45); animation: fade .16s ease-out; }
.cm-modal { position: absolute; left: 14px; right: 14px; z-index: 47; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 16px; animation: rise .22s var(--ease-out); }
.cm-modal__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cm-modal__hd b { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.cm-modal__hd b i { font-size: 19px; }
.cm-modal__hd button { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--surface-muted); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); font-size: 16px; }

.cm-pinspot { top: 24%; }
.cm-pinspot__logo { width: 22px; height: 22px; display: inline-grid; place-items: center; }
.cm-pinspot__logo img { width: 22px; height: 22px; }
.cm-pinspot__field { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border: 1.5px solid var(--coral-soft); border-radius: 14px; background: var(--surface-muted); }
.cm-pinspot__field > i { font-size: 18px; color: var(--coral); margin-top: 2px; }
.cm-pinspot__field textarea { flex: 1; min-height: 64px; border: none; background: none; resize: none; font: 400 14px/1.5 var(--font-body); color: var(--ink); outline: none; }
.cm-pinspot__field textarea::placeholder { color: var(--text-3); }
.cm-pinspot__drop { display: flex; align-items: center; gap: 7px; margin: 10px 0 14px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 12px;
  font-size: 12px; color: var(--text-3); }
.cm-pinspot__unl { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--magic); font-weight: 700; white-space: nowrap; }
.cm-pinspot__go { width: 100%; height: 50px; border-radius: 14px; border: none; cursor: pointer; background: var(--coral); color: #fff;
  font: 700 15px/1 var(--font-body); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cm-pinspot__go i { font-size: 18px; }
.cm-pinspot__go:not(:disabled):active { transform: scale(.98); }
.cm-pinspot__hand { width: 100%; margin-top: 8px; height: 44px; border-radius: 13px; border: 1px dashed var(--border); background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 13px/1 var(--font-body); color: var(--text-2); }
.cm-pinspot__hand i { font-size: 17px; }

.cm-droppin { top: 34%; }
.cm-sharesheet { top: 26%; }
.cm-sharesheet .cm-share-tog { margin-top: 2px; }
.cm-sharesheet .cm-sharemenu__row { border: 1px solid var(--border); margin-top: 6px; }
.cm-droppin__q { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.cm-droppin__in { width: 100%; height: 48px; border: 1px solid var(--coral-soft); border-radius: 13px; background: var(--surface); padding: 0 14px; font: 400 15px/1 var(--font-body); color: var(--ink); }
.cm-droppin__in:focus { outline: none; box-shadow: var(--ring-accent); }
.cm-droppin__row { display: flex; gap: 10px; margin-top: 14px; }
.cm-droppin__cancel { flex: none; width: 100px; height: 48px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font: 700 14px/1 var(--font-body); color: var(--ink); }
.cm-droppin__go { flex: 1; height: 48px; border-radius: 13px; border: none; cursor: pointer; background: var(--coral); color: #fff; font: 700 14px/1 var(--font-body); display: inline-flex; align-items: center; justify-content: center; gap: 7px; }

/* share-as-image card */
.cm-shareimg { top: 10%; text-align: center; padding: 20px 16px 16px; }
.cm-shareimg__x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--surface-muted); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); font-size: 16px; }
.cm-shareimg__eye { font: 700 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cm-shareimg__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 6px 0 4px; }
.cm-shareimg__sub { font-size: 12.5px; color: var(--text-2); margin: 0 0 14px; line-height: 1.4; }
.cm-card { width: 224px; margin: 0 auto 16px; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.cm-card__map { position: relative; height: 180px; }
.cm-card__map.map::after { display: none; }
.cm-card__dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%,-50%); background: var(--coral); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.cm-card__dot.big { width: 15px; height: 15px; }
.cm-card__attr { position: absolute; right: 5px; top: 5px; font: 500 7px/1 var(--font-body); color: #90a0ac; }
.cm-card__body { padding: 12px 14px 14px; text-align: left; }
.cm-card__eye { font: 700 9px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.cm-card__city { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 3px 0 6px; }
.cm-card__count { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #FFF1F1; color: var(--coral); font-size: 10px; font-weight: 700; }
.cm-card__list { font-size: 10px; line-height: 1.4; color: var(--text-2); margin: 8px 0 10px; }
.cm-card__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 9px; }
.cm-card__url { font: 500 8px/1 var(--font-body); color: var(--text-3); }
.cm-card__logo { height: 13px; opacity: .9; }
.cm-shareimg__cta { width: 100%; height: 50px; border-radius: 14px; border: none; cursor: pointer; background: var(--coral); color: #fff; font: 700 15px/1 var(--font-body); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cm-shareimg__row { display: flex; gap: 9px; margin-top: 9px; }
.cm-shareimg__alt { flex: 1; height: 46px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font: 700 13px/1 var(--font-body); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.cm-shareimg__note { font-size: 11px; color: var(--text-3); margin: 12px 0 2px; }

.cm-sharemenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; width: 252px; padding: 8px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); animation: fade .14s ease-out; }
.cm-sharemenu__row { width: 100%; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px; border: none; background: none; cursor: pointer;
  border-radius: 11px; font: 600 13px/1 var(--font-body); color: var(--ink); }
.cm-sharemenu__row b { font-weight: 700; }
.cm-sharemenu__row.on { color: var(--success); }
.cm-sharemenu__row:hover { background: var(--surface-muted); }
.cm-sharemenu__row i { font-size: 17px; }
.cm-sharemenu__row:disabled { opacity: .45; cursor: default; }
.cm-share-tog { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-muted); cursor: pointer; margin-bottom: 6px; text-align: left; }
.cm-share-tog__ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 18px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); }
.cm-share-tog__ic.on { background: var(--success); color: #fff; border-color: transparent; }
.cm-share-tog__t { flex: 1; min-width: 0; }
.cm-share-tog__t b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cm-share-tog__t span { font-size: 11.5px; color: var(--text-2); }
.cm-fab.shared::after { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--success); border: 2px solid var(--surface); }

/* ============ SPOT DETAIL (Adam Road) ============ */
.spotx__pin { z-index: 4; }
.spotx__pinlabel { position: absolute; left: 50%; top: 46%; transform: translateX(-50%); white-space: nowrap; z-index: 4;
  font: 700 12px/1 var(--font-body); color: var(--ink); text-shadow: 0 1px 3px rgba(255,255,255,.9); }
/* R6-W3 Mo3 — the place detail needs room: 62% left the description, the
   discussion and the actions all below the fold on a phone. The sheet is
   draggable now (SpotSheet owns an `h` fraction, snaps .62 / .82 / .95 like the
   PoiPanel) and defaults to the TALLER snap; this height is only the fallback for
   a render before the inline style lands. */
.spot-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 22; height: 82%; background: var(--surface); border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 50px -12px rgba(15,22,32,.32); display: flex; flex-direction: column; overflow: hidden; }
.spot-photo { position: relative; flex: none; height: 150px; }
.spot-photo__img { position: absolute; inset: 0; border-radius: 0; }
.spot-photo__x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.94); box-shadow: var(--shadow-md); display: grid; place-items: center; font-size: 18px; color: var(--ink); }
.spot-been { position: absolute; right: 12px; bottom: -18px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; box-shadow: var(--shadow-md);
  font: 700 12.5px/1 var(--font-body); color: var(--ink); }
.spot-been i { font-size: 16px; color: var(--ink-2); }
.spot-been.on { background: #ECFDF5; border-color: #A7F3D0; color: var(--success); }
.spot-been.on i { color: var(--success); }
.spot-sheet__body { flex: 1; overflow-y: auto; padding: 22px 16px 24px; -webkit-overflow-scrolling: touch; }
.spot-cat { display: inline-block; font: 700 11px/1 var(--font-body); letter-spacing: .08em; color: var(--country-thailand); }
.spot-cat.activity { color: var(--info); }
.spot-cat.party { color: var(--magic); }
.spot-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 10px; }
.spot-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.spot-source-badge { font: 800 10px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--coral); background: #FFF1F1; padding: 5px 9px; border-radius: 7px; }
.spot-priv { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font: 600 12px/1 var(--font-body); color: var(--text-2); }
.spot-priv i { font-size: 14px; }
.spot-priv.pub { color: var(--success); border-color: #A7F3D0; background: #ECFDF5; }
.spot-desc { font-size: 14.5px; font-style: italic; line-height: 1.5; color: var(--text); margin: 0 0 14px; }
.spot-desc__ic { display: inline-flex; gap: 12px; margin-left: 8px; vertical-align: middle; }
.spot-desc__ic i { font-size: 16px; color: var(--text-3); font-style: normal; cursor: pointer; }
.spot-src { display: inline-flex; align-items: center; gap: 7px; font: 700 13px/1 var(--font-body); font-style: italic; color: var(--ink); text-decoration: none; margin-bottom: 14px; }
.spot-src i:first-child { font-size: 16px; }
.spot-disc { width: 100%; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-muted); cursor: pointer; margin-bottom: 10px; }
.spot-disc i:first-child { font-size: 17px; color: var(--ink-2); }
.spot-disc b { font-weight: 700; font-size: 13.5px; }
.spot-disc__n { width: 19px; height: 19px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.spot-disc__add { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.spot-thread { padding: 4px 2px 12px; }
.spot-cmt, .spot-cmt__add { display: flex; gap: 9px; margin-bottom: 10px; }
.spot-cmt__av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 15px; background: var(--c, #ccc); }
.spot-cmt__b { background: var(--surface-muted); border: 1px solid var(--border); border-radius: 13px; padding: 8px 11px; }
.spot-cmt__b b { display: block; font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.spot-cmt__b p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text); }
.spot-cmt__add { align-items: center; }
.spot-cmt__add input { flex: 1; height: 38px; border: 1px solid var(--border); border-radius: 999px; padding: 0 14px; font: 400 13px/1 var(--font-body); background: var(--surface); }
.spot-cmt__add input:focus { outline: none; box-shadow: var(--ring-accent); }
.spot-cmt__add button { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--coral); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.spot-cmt__add button:disabled { opacity: .4; }
.spot-cost { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-muted); margin-bottom: 12px; }
.spot-cost__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-size: 16px; color: var(--ink-2); }
.spot-cost b { font-size: 15px; font-weight: 700; }
.spot-cost span { font-size: 13px; color: var(--text-2); }
.spot-links { display: flex; gap: 10px; }
.spot-link { flex: 1; height: 48px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 14px/1 var(--font-body); color: var(--ink); box-shadow: var(--shadow-sm); }
.spot-link i { font-size: 18px; color: var(--ink-2); }
.spot-link__g { font-family: var(--font-display); font-weight: 800; color: var(--partner-google); font-size: 16px; }
.spot-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12px; color: var(--text-3); }
.spot-foot i { font-size: 14px; }

/* ============ TRIP CITY-PICKER ============ */
.citypick__zoom { position: absolute; right: 14px; top: 60px; z-index: 25; display: flex; flex-direction: column; border-radius: 13px; overflow: hidden;
  background: var(--map-control-bg); border: 1px solid var(--map-control-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-md); }
.citypick__zoom button { width: 44px; height: 44px; border: none; background: none; cursor: pointer; display: grid; place-items: center; font-size: 20px; color: var(--ink); }
.citypick__zoom button:first-child { border-bottom: 1px solid var(--map-control-border); }
.citypick__zoom button:disabled { opacity: .4; }
.citypick__tip { position: absolute; left: 50%; top: 116px; transform: translateX(-50%); z-index: 24; display: inline-flex; align-items: center; gap: 7px;
  max-width: 84%; padding: 9px 15px; border-radius: 999px; background: rgba(30,37,50,.92); color: #fff; font: 600 12.5px/1.2 var(--font-body); box-shadow: var(--shadow-md); white-space: nowrap; }
.citypick__tip i { font-size: 15px; }

/* Map-area mode: the current viewport IS the selection (zoom/pan to change it) */
.citypick__view { position: absolute; inset: 128px 16px 210px; z-index: 3; border-radius: 18px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(15,22,32,.1); }
.citypick__view-c { position: absolute; width: 22px; height: 22px; border: 3px solid var(--coral); }
.citypick__view-c.tl { left: -1px; top: -1px; border-right: none; border-bottom: none; border-radius: 9px 0 0 0; }
.citypick__view-c.tr { right: -1px; top: -1px; border-left: none; border-bottom: none; border-radius: 0 9px 0 0; }
.citypick__view-c.bl { left: -1px; bottom: -1px; border-right: none; border-top: none; border-radius: 0 0 0 9px; }
.citypick__view-c.br { right: -1px; bottom: -1px; border-left: none; border-top: none; border-radius: 0 0 9px 0; }

.citypick__city { position: absolute; transform: translate(-50%,-50%); z-index: 5; border: none; background: none; padding: 0; cursor: default; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.citypick__city.pickable { cursor: pointer; }
.citypick__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--slate-400); border: 2.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.citypick__name { font: 600 11px/1 var(--font-body); color: var(--slate-500); white-space: nowrap; text-shadow: 0 1px 2px rgba(255,255,255,.8); }
.citypick__city.pickable:active .citypick__dot { transform: scale(1.3); }
.citypick__chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; white-space: nowrap;
  background: var(--hue, var(--coral)); color: #fff; font: 700 12px/1 var(--font-body); box-shadow: 0 3px 8px -2px rgba(0,0,0,.35), 0 0 0 2px #fff; }
.citypick__chip--add { background: #fff; color: var(--hue, var(--coral)); box-shadow: 0 3px 8px -2px rgba(0,0,0,.25), inset 0 0 0 2px var(--hue, var(--coral)); }

/* mode switch — floating segmented control (top-centre) */
.cp-modeseg { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 24; display: flex; gap: 3px; padding: 4px;
  border-radius: 999px; background: var(--map-control-bg); border: 1px solid var(--map-control-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-md); }
.cp-modeseg button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 15px; border: none; background: none; cursor: pointer; border-radius: 999px;
  font: 700 13px/1 var(--font-body); color: var(--ink-2); white-space: nowrap; }
.cp-modeseg button i { font-size: 16px; }
.cp-modeseg button.on { background: var(--ink); color: #fff; }

/* bottom bar — selected cities + where to put them */
.cp-bar { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 22; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow-lg); padding: 13px; animation: rise .24s var(--ease-out); }
.cp-bar__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.cp-bar__head b { font: 700 14px/1 var(--font-body); color: var(--ink); }
.cp-clear { border: none; background: none; cursor: pointer; font: 600 12px/1 var(--font-body); color: var(--text-3); }
.cp-clear:hover { color: var(--coral); }
.cp-bar__chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 98px; overflow-y: auto; scrollbar-width: none; margin-bottom: 11px; }
.cp-bar__chips::-webkit-scrollbar { display: none; }
.cp-bar__empty { font-size: 12.5px; color: var(--text-3); padding: 4px 0; }
.cp-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 5px 0 11px; border-radius: 999px; white-space: nowrap;
  background: var(--surface-muted); border: 1px solid var(--border); font: 600 12.5px/1 var(--font-body); color: var(--ink); }
.cp-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hue, var(--coral)); }
.cp-chip button { width: 20px; height: 20px; flex: none; border: none; background: none; cursor: pointer; display: grid; place-items: center; color: var(--text-3); font-size: 13px; border-radius: 50%; }
.cp-chip button:hover { background: var(--border); color: var(--ink); }
.cp-addto { width: 100%; height: 50px; border-radius: 14px; border: none; cursor: pointer; background: var(--ink); color: #fff;
  font: 700 14.5px/1 var(--font-body); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cp-addto i { font-size: 18px; }
.cp-addto:disabled { background: var(--surface-muted); color: var(--text-3); cursor: default; }
.cp-addto.coral { background: var(--coral); }
.cp-addto:not(:disabled):active { transform: scale(.98); }

/* add-to menu (existing trip/map or a new one) */
.cp-addmenu__scrim { position: absolute; inset: 0; z-index: 46; background: rgba(15,22,32,.45); animation: fade .16s ease-out; }
.cp-addmenu { position: absolute; left: 0; right: 0; bottom: 0; z-index: 47; background: var(--surface); border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 50px -12px rgba(15,22,32,.35); padding: 6px 14px 20px; animation: rise .24s var(--ease-out); max-height: 86%; overflow-y: auto; }
.cp-addmenu__grab { padding: 8px 0 4px; display: grid; place-items: center; }
.cp-addmenu__grab i { width: 40px; height: 5px; border-radius: 999px; background: var(--grey-300); }
.cp-addmenu__hd { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 6px; }
.cp-addmenu__hd b { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.cp-addmenu__hd button { width: 30px; height: 30px; border: none; border-radius: 50%; background: var(--surface-muted); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); font-size: 16px; }
.cp-addmenu__lbl { display: block; font: 800 9px/1 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin: 12px 2px 7px; }
.cp-addrow { width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; margin-bottom: 7px; text-align: left; }
.cp-addrow:active { transform: scale(.99); background: var(--surface-muted); }
.cp-addrow__ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px; background: var(--surface-muted); border: 1px solid var(--border); }
.cp-addrow__ic.new { color: #fff; background: var(--coral); border-color: transparent; font-size: 19px; }
.cp-addrow__t { flex: 1; min-width: 0; }
.cp-addrow__t b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.cp-addrow__t span { font-size: 12px; color: var(--text-2); }
.cp-addrow__add { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-muted); color: var(--ink-2); font-size: 15px; }
.cp-addrow--new { border-style: dashed; border-color: var(--coral-soft); }

.cp-toast { position: absolute; left: 50%; bottom: 108px; transform: translateX(-50%); z-index: 60; display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 17px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 13px/1 var(--font-body); box-shadow: var(--shadow-lg); white-space: nowrap; animation: rise .2s ease-out; }
.cp-toast i { font-size: 16px; color: var(--success-strong); }

/* ============ NIGHT THEME NUDGES ============ */
[data-theme="night"] .cvx__label { color: #8b97a8; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
[data-theme="night"] .cm-vibe__card { background: linear-gradient(160deg, rgba(255,90,95,.14), var(--surface) 80%); }
[data-theme="night"] .cv-fact--from { background: rgba(255,90,95,.1); }
[data-theme="night"] .cv-save.on { background: rgba(255,90,95,.14); }
[data-theme="night"] .cm-vibe__btn { background: rgba(255,90,95,.14); }
[data-theme="night"] .spot-source-badge, [data-theme="night"] .cm-card__count { background: rgba(255,90,95,.16); }
[data-theme="night"] .spot-been.on, [data-theme="night"] .spot-priv.pub { background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.4); }
[data-theme="night"] .cm-shot, [data-theme="night"] .cv-photo { background: repeating-linear-gradient(135deg, #2a3142 0 9px, #242a3a 9px 18px); }
[data-theme="night"] .cm-shot__tag, [data-theme="night"] .cv-photo__tag { color: #5c6678; }

/* ============ TRIP → PICK CITIES ENTRY ============ */
.trip-pickcities { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px; border-radius: 16px; cursor: pointer;
  border: 1px dashed var(--coral-soft); background: #FFF6F6; text-align: left; }
.trip-pickcities:active { transform: scale(.99); }
.trip-pickcities__ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px; color: #fff; background: var(--coral); }
.trip-pickcities__tx { flex: 1; min-width: 0; }
.trip-pickcities__tx b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.trip-pickcities__tx span { font-size: 12.5px; color: var(--text-2); }
[data-theme="night"] .trip-pickcities { background: rgba(255,90,95,.1); }

/* ============ PASTE SHEET — a little magic ============ */
.paste-hero { position: relative; overflow: hidden; text-align: center; padding: 18px 16px 16px; margin-top: 14px; border-radius: 18px;
  background: linear-gradient(160deg, #FFF2EE 0%, #FBEFFB 60%, var(--surface) 100%); border: 1px solid var(--coral-soft); }
[data-theme="night"] .paste-hero { background: linear-gradient(160deg, rgba(255,90,95,.14), rgba(139,92,246,.12) 60%, var(--surface)); border-color: rgba(255,90,95,.3); }
.paste-hero__spark { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 17px; display: grid; place-items: center; background: var(--brand-gradient);
  box-shadow: 0 10px 24px -8px rgba(193,62,155,.55); animation: pasteGlow 2.6s var(--ease) infinite; }
.paste-hero__spark img { width: 30px; height: 30px; }
@keyframes pasteGlow { 0%,100% { box-shadow: 0 10px 24px -8px rgba(193,62,155,.5); } 50% { box-shadow: 0 10px 30px -6px rgba(193,62,155,.85); } }
@media (prefers-reduced-motion: reduce) { .paste-hero__spark { animation: none; } }
.paste-hero b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.paste-hero span { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.paste-try { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; margin-top: 12px; overflow: hidden; }
.paste-try__lbl { flex: none; font: 700 9.5px/1 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.paste-try__chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--coral-soft); background: #FFF6F6; color: var(--coral); font: 600 11.5px/1 var(--font-body); }
.paste-try__chip i { font-size: 12px; }
.paste-try__chip:active { transform: scale(.97); }
[data-theme="night"] .paste-try__chip { background: rgba(255,90,95,.12); }
/* Magic Search reads like the other source pills now — no sheen / swipe animation */

/* ============ TRIPS AS ROWS (distinct from map cards) ============ */
.triplist { display: flex; flex-direction: column; gap: 8px; }
.triprow2 { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 15px;
  background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; }
.triprow2:active { transform: scale(.995); background: var(--surface-muted); }
.triprow2.current { border-color: var(--coral-soft); background: linear-gradient(120deg, #FFF3F3, var(--surface) 70%); }
[data-theme="night"] .triprow2.current { background: linear-gradient(120deg, rgba(255,90,95,.12), var(--surface) 70%); }
.triprow2__ic { position: relative; width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; font-size: 24px;
  color: var(--ink); background: var(--surface-muted); border: 1px solid var(--border); cursor: pointer; padding: 0; overflow: visible; }
.triprow2__ic:active { transform: scale(.94); }
.triprow2.current .triprow2__ic { background: color-mix(in srgb, var(--coral) 9%, var(--surface)); border-color: var(--coral-soft); }
.triprow2__flagbig { line-height: 1; }
.triprow2__edit { position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 10px; border: 2px solid var(--surface); }
.triprow2__ic.new { background: var(--surface-muted); color: var(--coral); border: 1px dashed var(--coral-soft); font-size: 21px; }
.triprow2__txt { flex: 1; min-width: 0; }
.triprow2__namerow { display: flex; align-items: center; gap: 7px; min-width: 0; }
.triprow2__namerow b { font-size: 14.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.triprow2__now { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--coral) 13%, var(--surface)); color: var(--coral); font: 800 8.5px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.triprow2__now i { font-size: 9px; }
[data-theme="night"] .triprow2__now { background: rgba(255,90,95,.16); }
.triprow2__rename { flex: 1; min-width: 0; font: 700 14px var(--font-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--coral-soft);
  border-radius: 9px; padding: 5px 9px; outline: none; }
.triprow2__sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.triprow2__tag { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-2); background: var(--surface-muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 7px; }
.triprow2__more { align-self: center; width: 32px; height: 32px; flex: none; border: none; background: none; cursor: pointer; display: grid; place-items: center; color: var(--text-3); font-size: 18px; border-radius: 8px; }
.triprow2__more:hover { background: var(--surface-muted); }
/* Kaio review (mobile bug) — the row ⋯ menu / icon picker were position:absolute inside the
   scrolling sheet body, so on mobile they clipped and the menu felt "stuck" (no way to dismiss).
   Lift them out as clip-proof centered overlays for ALL platforms (the desktop round-12 fix was
   .ymd-scoped only). The raised .tripcard__scrim (app.css) sits under them and closes on tap. */
.triprow2__menu { position: fixed; left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%); z-index: 71; width: 300px; max-width: calc(100% - 32px); max-height: 80vh; overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); }
.triprow2__menu button { width: 100%; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px; border: none; background: none; cursor: pointer; border-radius: 10px; font: 600 13.5px/1 var(--font-body); color: var(--ink); text-align: left; }
.triprow2__menu button:hover { background: var(--surface-muted); }
.triprow2__menu button i { font-size: 17px; color: var(--ink-2); }
.triprow2__iconpick { position: fixed; left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%); z-index: 71; width: 300px; max-width: calc(100% - 32px); max-height: 80vh; overflow-y: auto; padding: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); }
.triprow2__iconpicklbl { display: block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin: 0 2px 8px; }
.triprow2__iconpickgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.triprow2__iconbtn { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-muted); cursor: pointer; font-size: 19px; display: grid; place-items: center; }
.triprow2__iconbtn.on { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.triprow2__photo { width: 100%; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 10px;
  border: 1px dashed var(--border); background: transparent; color: var(--text-2); font: 700 12px var(--font-body); cursor: pointer; }
.triprow2__photo:active { background: var(--surface-muted); }
.triprow2--new { border-style: dashed; box-shadow: none; }
.triprow2--new .triprow2__txt b { font-size: 14.5px; font-weight: 700; color: var(--ink); }

/* ============ TRIP DAY STRIP — 3 fill states + legend ============ */
.td-daycell__dot { width: 9px; height: 9px; border-radius: 50%; }
.td-daycell__dot.empty { background: none; box-shadow: inset 0 0 0 2px var(--grey-300); }
.td-daycell__dot.some { background: var(--coral); }
.td-daycell__dot.full { background: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 26%, transparent); }
.td-dayleg { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 2px 0 10px; }
.td-dayleg span { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--text-3); }
.td-dayleg i { width: 9px; height: 9px; border-radius: 50%; }
.td-dayleg i.empty { box-shadow: inset 0 0 0 2px var(--grey-300); }
.td-dayleg i.some { background: var(--coral); }
.td-dayleg i.full { background: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 26%, transparent); }

/* ============ R6-W3 Mo2 · the mobile city-sheet header ============
   Kaio: the header ate the sheet — "MY MAP OF" eyebrow on its own line, the
   title on the next, privacy chip + spot count on a third, and only ~2 list rows
   left on screen. Collapse it to ONE line (title · privacy · count, Guides on the
   same row) and shorten the rows so at least 4 fit.

   EVERY rule is scoped `.ym:not(.ymd)`: the desktop shell reuses these exact
   classes and centers the panel — desktop keeps the roomy 3-line header. */
.ym:not(.ymd) .cm-panel__hd { align-items: center; gap: 8px; padding: 0 14px 8px; }
/* the eyebrow's information ("My map of") is already in the title line */
.ym:not(.ymd) .cm-panel__eye { display: none; }
.ym:not(.ymd) .cm-panel__id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ym:not(.ymd) .cm-panel__id b { flex: 0 1 auto; min-width: 0; font-size: 18px; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ym:not(.ymd) .cm-panel__meta { flex: none; margin-top: 0; gap: 5px; font-size: 11.5px; }
.ym:not(.ymd) .cm-privpill { height: 22px; padding: 0 7px; font-size: 10.5px; }
.ym:not(.ymd) .cm-vibe__btn { flex: none; height: 30px; padding: 0 10px; font-size: 11.5px; gap: 4px; }
.ym:not(.ymd) .cm-vibe__btn i:first-child { font-size: 13px; }
/* filter row directly below the header */
.ym:not(.ymd) .cm-ctl { padding: 0 14px 8px; }
/* shorter list rows — a 72px thumb + 9px padding fits ~2 rows on a 390px phone */
.ym:not(.ymd) .cm-list { gap: 7px; padding-top: 0; }
.ym:not(.ymd) .cm-poi { gap: 10px; padding: 7px; border-radius: 13px; }
.ym:not(.ymd) .cm-poi__thumb { width: 52px; height: 52px; border-radius: 10px; }
.ym:not(.ymd) .cm-poi__thumb .cm-shot__em { font-size: 22px; }
.ym:not(.ymd) .cm-poi__cat { margin-top: 2px; }
.ym:not(.ymd) .cm-poi__tags { margin-top: 4px; }
.ym:not(.ymd) .cm-poi__route, .ym:not(.ymd) .cm-poi__x { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
