/* dm-refine.css 1.2 (2026-09-23)
   Brings index.html back to DESIGN.md. Loaded last; every rule names the
   principle it restores. Delete this file's <link> to revert. */

/* Brand red is for primary actions, the current tab and alerts. A deal is
   state, so it reads in the amber text-safe twin. */
.deal { color: var(--amber-t) !important; font-weight: 600 !important; }
.deal .ico { color: var(--amber) !important; }
.sec .more, .sec button.more { color: var(--muted) !important; white-space: nowrap; }
.sec .more:hover, .sec .more:focus-visible { color: var(--text) !important; }

/* Product UI does not set labels in the display face. */
.sec h2 {
  font-family: Outfit, system-ui, sans-serif !important;
  font-size: 17.5px !important; font-weight: 700 !important;
  text-transform: none !important; letter-spacing: -0.01em !important;
  line-height: 1.25 !important; text-wrap: balance;
}
.sec h2 .ico { color: var(--muted) !important; }
.sec-sub { text-transform: none !important; letter-spacing: 0 !important; color: var(--muted) !important; }

/* Depth is neutral: an offset and a soft blur in black, never a coloured halo. */
.chip.on, .bp-cta { box-shadow: 0 4px 12px rgba(0, 0, 0, .45) !important; }

/* Motion only reports a state change: no ambient drift, no pulsing
   liveness dot, no spinning icons, no staggered entrances. */
#frame::before { animation: none !important; }
.locbar .dot, .dot { animation: none !important; }
.ico-target, .ico-wheel { animation: none !important; }
.stag, .screen-in .scroll-x .tcard {
  animation-duration: .18s !important; animation-delay: 0s !important;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1) !important;
}
@media (prefers-reduced-motion: reduce) {
  .stag, .screen-in .scroll-x .tcard { animation: none !important; opacity: 1 !important; }
}

/* Tonight cards: the venue photo sits crisp in the art area instead of a
   38% wash behind the text; the logo is a small true-colour tile, not a
   stretched oval. */
.tcard { position: relative; }
.tcard .tile-wash {
  inset: 0 0 auto 0 !important; height: 104px !important; opacity: 1 !important;
  -webkit-mask-image: none !important; mask-image: none !important;
  border-radius: inherit; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important;
  overflow: hidden; z-index: 0;
}
.tcard .tile-wash img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.tcard .tile-wash::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 15, 0) 40%, rgba(6, 8, 15, .7));
}
.tcard .art { position: relative; z-index: 1; }
.tcard:has(.tile-wash) .art { background: transparent !important; }
.tcard .meta { position: relative; z-index: 1; }
.tcard .art .mono {
  position: absolute !important; top: 10px; left: 10px; inset: 10px auto auto 10px !important;
  width: 44px !important; height: 44px !important; border-radius: 12px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45); overflow: hidden;
}
.tcard .art .mono:has(img) { background: #fff !important; }
.tcard .art .mono img { object-fit: contain !important; padding: 4px; box-sizing: border-box; }
.l-card .tile-wash { display: none !important; }

/* No invented figures on cards: the busyness curve is an estimate, so it
   stays off the scannable surface; friend and prize claims hide until real. */
.tcard .open-tag.bz, .l-card .open-tag.bz { display: none !important; }
.social-proof, .wheel-teaser, .social-row .sr-n { display: none !important; }

/* Events read time-first, as compact rows. */
.event-card .date { display: none !important; }
.ev-when {
  font: 600 13px/1.3 Outfit, system-ui, sans-serif; color: var(--muted);
  margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.ev-when b { color: var(--amber-t); font-weight: 700; }
.event-card.ev-row {
  display: grid !important; grid-template-columns: 72px minmax(0, 1fr) auto !important;
  align-items: center !important; gap: 12px !important;
  padding: 10px 12px 10px 10px !important; min-height: 0 !important; height: auto !important;
  text-align: left !important;
}
.event-card.ev-row .ev-cover {
  position: static !important; width: 72px !important; height: 72px !important;
  border-radius: 12px !important; object-fit: cover !important; opacity: 1 !important;
  -webkit-mask-image: none !important; mask-image: none !important;
}
.event-card.ev-row > div { min-width: 0; position: static !important; }
.event-card.ev-row .nm { font-size: 15px !important; line-height: 1.25 !important; }
.event-card.ev-row .in {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--muted) !important;
}
.event-card.ev-row .ev-rep { position: static !important; color: var(--faint); }

/* Map pins carry state; overlapping pins become dots at their true spot. */
.lpin.dm-hh, .lpin.dm-deal { border-color: var(--amber) !important; }
.lpin.dm-open { border-color: var(--green) !important; }
.lpin.dm-shut { filter: saturate(.35) brightness(.8); }
.lpin img.mlogo { object-fit: contain !important; max-width: 100%; max-height: 100%; }
.lpin.dm-dot {
  transform: scale(.3) !important; background: var(--st, #7C8AA8) !important;
  border-color: rgba(6, 8, 15, .9) !important; filter: none;
}
.lpin.dm-dot > * { visibility: hidden !important; }

/* One floating control per corner: back-to-top moves off the list's centre. */
.totop { left: 16px !important; right: auto !important; transform: none !important; }

/* 1.1: dots are plain state dots; fabricated heat figures stay off screen. */
.lpin.dm-dot { color: transparent !important; font-size: 0 !important; border-radius: 50% !important; }
.lpin .pcount { display: none !important; }
.heatbar .hsum,
.heatbar button[onclick*="'g','all'"], .heatbar button[onclick*="'g','w'"], .heatbar button[onclick*="'g','m'"] { display: none !important; }
.heatbar::after {
  content: "Estimate"; align-self: center; padding: 0 12px; white-space: nowrap;
  font: 600 12px/1 Outfit, system-ui, sans-serif; color: var(--faint);
}
/* An event whose cover failed to load closes up instead of leaving a hole. */
.event-card.ev-row:not(:has(.ev-cover)) { grid-template-columns: minmax(0, 1fr) auto !important; }

/* 1.2: map pins never animate: no fades, no scale changes, no dot swapping. */
.lpin, .lpin.sel, .lpin * { transition: none !important; animation: none !important; }
.leaflet-marker-icon { transition: none !important; }

/* 1.3 (ui-ux-pro-max pass, 2026-09-25) */
/* Home does one job per section: chat has its own tab and header button;
   hotels are not tonight's decision. */
.body > .social-row, .body .hot-rail { display: none !important; }
/* Touch targets: 44px minimum (the heart keeps its look, its hit area grows). */
.chip { min-height: 44px !important; }
.hbtn { min-width: 44px !important; min-height: 44px !important; }
.locbar { min-height: 44px !important; }
.totop { width: 44px !important; height: 44px !important; }
.sec .more { min-height: 44px; display: inline-flex !important; align-items: center; padding: 0 8px !important; margin-right: -8px; }
.fav::after { content: ""; position: absolute; inset: -5px; }
/* Filled red carries white text at 4.5:1; red as text/state is unchanged. */
:root { --red-fill: #E0112F; }
.chip.on, .bp-cta, .mapfab { background: var(--red-fill) !important; }
/* Product UI does not set names in the display face. */
.hh-hero .hh-name { font-family: Outfit, system-ui, sans-serif !important; font-weight: 800 !important; letter-spacing: -0.02em !important; }
/* Every control shows where keyboard focus is. */
:where(button, a, [role="button"], .tcard, .l-card, .event-card):focus-visible {
  outline: 2px solid #F3F6FE !important; outline-offset: 2px;
}

/* 1.4: venue photos fade in once and never flash. dm-truth.js judges each
   photo URL once; nothing is removed, so dm-photos.js has nothing to re-add. */
.tcard .tile-wash { opacity: 0 !important; transition: opacity .2s cubic-bezier(.16, 1, .3, 1); }
.tcard .tile-wash.dm-ok { opacity: 1 !important; }
.tcard .tile-wash.dm-ok.dm-seen { transition: none; }
.tcard .tile-wash.dm-bad { display: none !important; }
.tcard:has(.tile-wash) .art { background: linear-gradient(140deg, rgba(255,255,255,.04), var(--surface)) !important; }
.tcard:has(.tile-wash.dm-ok) .art { background: transparent !important; }
@media (prefers-reduced-motion: reduce) { .tcard .tile-wash { transition: none; } }

/* 1.5: white logos sit on a dark tile (venue field logoBg: "dark"). */
.tcard .art .mono.dm-darklogo:has(img) { background: #06080F !important; box-shadow: 0 0 0 1px rgba(168,190,235,.18), 0 4px 10px rgba(0,0,0,.45) !important; }
.mono.dm-darklogo, .lpin.dm-darklogo { background: #06080F !important; }

/* 1.6 (2026-09-25): map peek card. The venue's photo leads; the name sits on
   it at full strength; only true live state below; one drawn icon family. */
.mpv.pk { padding: 0 !important; overflow: hidden; display: block !important; gap: 0 !important;
  border-radius: 22px !important; background: #111624 !important;
  border: 1px solid rgba(168, 190, 235, .14) !important; box-shadow: 0 18px 40px rgba(0, 0, 0, .55) !important; }
.pk-hero { position: relative; height: 176px; overflow: hidden; background: linear-gradient(135deg, var(--pc), #111624 78%); }
.pk.pk-nohero .pk-hero { height: 116px; }
.pk-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pk-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 8, 15, .42) 0%, rgba(6, 8, 15, 0) 28%, rgba(6, 8, 15, .12) 52%, rgba(6, 8, 15, .9) 100%); }
.pk-btn { position: absolute; top: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(6, 8, 15, .64); color: #F3F6FE; cursor: pointer; }
.pk-fav { right: 60px; } .pk-x { right: 10px; }
.pk-fav.on { color: #FF2740; } .pk-fav.on svg, .pk-fav.on svg * { fill: currentColor; }
.pk-id { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; align-items: flex-end; gap: 12px; }
.pk-logo { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.pk-logo .mono { width: 100% !important; height: 100% !important; border-radius: 14px !important; }
.pk-logo .mono:has(img) { background: #fff !important; }
.pk-logo .mono.dm-darklogo { background: #06080F !important; }
.pk-logo .mono img { object-fit: contain !important; padding: 5px; box-sizing: border-box; }
.pk-t { min-width: 0; padding-bottom: 1px; }
.pk-nm { font: 800 23px/1.08 Outfit, system-ui, sans-serif; letter-spacing: -0.02em; color: #fff; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-sub { margin-top: 4px; font: 500 13px/1.2 Outfit, system-ui, sans-serif; color: rgba(243, 246, 254, .84);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px;
  background: #192032; color: #C9D2E6; font: 600 12.5px/1 Outfit, system-ui, sans-serif; }
.pk-chip.open { color: #3BEFA9; }
.pk-chip.open i { width: 7px; height: 7px; border-radius: 50%; background: #00E08A; }
.pk-chip.hh { background: #FFC44D; color: #06080F; }
.pk-line { display: flex; align-items: flex-start; gap: 8px; font: 500 14px/1.35 Outfit, system-ui, sans-serif; color: #C9D2E6; }
.pk-line svg { flex: 0 0 auto; margin-top: 2px; color: #9AA7C4; }
.pk-line span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-line i { font-style: normal; color: #9AA7C4; }
.pk-line.deal { color: #FFC44D; font-weight: 600; }
.pk-line.deal svg { color: #FFB020; }
.pk-row { display: flex; gap: 8px; margin-top: 2px; }
.pk-cta { flex: 1; min-width: 0; height: 48px; border: 0; border-radius: 14px; background: #E0112F; color: #fff;
  font: 700 15px/1 Outfit, system-ui, sans-serif; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); cursor: pointer; }
.pk-ic { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(168, 190, 235, .16);
  background: #192032; color: #F3F6FE; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pk-cta:active, .pk-ic:active, .pk-btn:active { transform: scale(.97); }
.mpv.pk :focus-visible { outline: 2px solid #F3F6FE; outline-offset: 2px; }
/* The one authored moment: the card rises into place and the photo settles. */
@keyframes pkRise { from { opacity: .45; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pkSettle { from { transform: scale(1.07); } to { transform: scale(1); } }
.mpv.pk.pk-in { animation: pkRise .34s cubic-bezier(.16, 1, .3, 1) both; }
.mpv.pk.pk-in .pk-img { animation: pkSettle .9s cubic-bezier(.16, 1, .3, 1) both; }
@media (prefers-reduced-motion: reduce) { .mpv.pk.pk-in, .mpv.pk.pk-in .pk-img { animation: none; } }

/* 1.6: venue sheet. The photo leads at full height; a deal reads in amber,
   because red is for actions; the claim button carries neutral depth. */
.sheet-art { height: 210px !important; }
.deal-box { background: rgba(255, 196, 77, .07) !important; border-color: rgba(255, 196, 77, .35) !important; }
.deal-box > :first-child, .deal-box > :first-child svg { color: #FFC44D !important; }
.claim-btn { background: #E0112F !important; box-shadow: 0 6px 16px rgba(0, 0, 0, .4) !important; }
/* The sheet photo had three stacked darkening layers; one soft fade at the
   bottom edge is enough to seat the title. The title is product UI: Outfit. */
.vhero::after { background: none !important; }
.vhero-scrim { background: linear-gradient(180deg, rgba(6, 8, 15, 0) 55%, rgba(6, 8, 15, .35) 100%) !important; }
.sheet-art::after { background: linear-gradient(180deg, rgba(17, 22, 36, 0) 68%, rgba(17, 22, 36, .92) 100%) !important; }
.sheet-body > .nm { font-family: Outfit, system-ui, sans-serif !important; font-weight: 800 !important; font-size: 26px !important;
  letter-spacing: -0.02em !important; line-height: 1.1 !important; text-wrap: balance; }

/* The selected venue is always the top tile: Leaflet stacks markers by latitude, which buried a selected pin under its neighbours. */
.leaflet-marker-icon:has(.lpin.sel) { z-index: 100000 !important; }
