/* ============================================================================
   niftimobility.com — /iq  "Where travel actually sells" + Miami map
   ----------------------------------------------------------------------------
   Second /iq data piece and its interactive single-city map. Additive only;
   every value derives from tokens.css / the inherited palette so it reads as
   the same family as the rest of the site. Loaded per-page via `css_extra`.
   Class prefixes: .ta- (the post) · .tamap- (shared bubble map) · .mm- (map page)
   Brand rule honoured: on orange, text is INK — never white.
   ========================================================================== */

/* Type-lockup that names the hub without leaning on any other brand
   (mirrors the one on the /iq hub; repeated here so this page needs only
   its own css_extra). */
.iq-lockup { display: inline-flex; align-items: baseline; gap: .4rem; }
.iq-lockup b { font-weight: 800; letter-spacing: var(--tr-tight); }
.iq-lockup span { font-family: var(--display); color: var(--orange-d); letter-spacing: .02em; }

/* ------------------------------------------------------------- post: hero -- */

.ta-hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) var(--s-6); }
.ta-hero .h1 { max-width: 20ch; }
.ta-hero .h1 .hl { color: var(--orange-d); }
.ta-sub {
  max-width: 60ch; margin-top: var(--s-5);
  font-size: var(--fs-lede); line-height: var(--lh-snug);
  color: var(--ink-2); text-wrap: pretty;
}

/* the guess */
.ta-guess {
  margin-top: var(--s-7); padding: clamp(1.25rem, .8rem + 2vw, 2rem);
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.ta-guess__q { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.ta-choices { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
@media (min-width: 560px) { .ta-choices { grid-template-columns: 1fr 1fr; } }
.ta-choice {
  font: inherit; text-align: left; cursor: pointer;
  padding: var(--s-5); border-radius: var(--r);
  background: var(--bg); border: 1.5px solid var(--line-2);
  transition: border-color .15s, background .15s, transform .15s;
}
.ta-choice:hover { border-color: #f6b98a; transform: translateY(-1px); }
.ta-choice:disabled { cursor: default; opacity: .75; }
.ta-choice.is-picked { border-color: var(--orange); background: var(--soft); opacity: 1; }
.ta-choice .ta-city { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--ink); letter-spacing: var(--tr-tight); }
.ta-choice .ta-pop { display: block; margin-top: 3px; color: var(--muted); font-size: var(--fs-sm); }
.ta-hint { margin-top: var(--s-4); color: var(--muted); font-size: var(--fs-sm); }

/* the reveal — shown by default so it still reads with JS off; when JS is on
   (html.js, set by the base template) it stays collapsed until the guess. */
.ta-reveal { margin-top: var(--s-5); }
html.js .ta-reveal {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s ease, opacity .5s ease;
}
html.js .ta-reveal.is-open { max-height: 1200px; opacity: 1; }
.ta-verdict { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.1rem); color: var(--ink); letter-spacing: var(--tr-tight); }
.ta-verdict .big { color: var(--orange-d); }
.ta-bars { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.ta-barrow { display: grid; grid-template-columns: 6.5rem 1fr auto; align-items: center; gap: var(--s-4); }
.ta-barrow .ta-bname { font-weight: 700; color: var(--ink); line-height: 1.1; }
.ta-barrow .ta-bname small { display: block; color: var(--muted); font-weight: 600; font-size: var(--fs-xs); }
.ta-track { height: 2.6rem; background: var(--wash); border-radius: var(--r-pill); overflow: hidden; }
.ta-fill { height: 100%; width: 0; border-radius: var(--r-pill); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.ta-fill.mia { background: var(--orange); }
.ta-fill.la { background: var(--ink); }
.ta-bval { font-family: var(--display); font-size: 1.5rem; color: var(--ink); min-width: 2.5ch; text-align: right; }
.ta-kicker { margin-top: var(--s-5); padding: var(--s-5); border-left: 3px solid var(--orange); background: var(--soft); border-radius: 0 var(--r) var(--r) 0; }
.ta-kicker .k1 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--orange-d); font-weight: 800; }
.ta-kicker .k2 { margin-top: var(--s-2); font-family: var(--display); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); color: var(--ink); letter-spacing: var(--tr-tight); }
.ta-kicker .k2 em { font-style: normal; color: var(--orange-d); }
.ta-kicker .k3 { margin-top: var(--s-3); color: var(--ink-3); max-width: 60ch; }

/* ---------------------------------------------------- post: pattern block -- */

.ta-lead { max-width: 62ch; color: var(--ink-3); font-size: var(--fs-lede); line-height: var(--lh-snug); }
.ta-combined { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.ta-cbar { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr auto; align-items: center; gap: var(--s-4); }
.ta-cname { font-weight: 700; color: var(--ink); font-size: var(--fs-sm); line-height: 1.15; }
.ta-ctrack { height: 2.1rem; background: var(--wash); border-radius: var(--r-pill); overflow: hidden; }
.ta-cfill { height: 100%; width: 0; border-radius: var(--r-pill); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.ta-cval { font-family: var(--display); font-size: 1.25rem; color: var(--ink); }
.ta-statline { margin-top: var(--s-6); display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.ta-statline .n { font-family: var(--display); font-size: clamp(2.4rem, 1.8rem + 3vw, 3.6rem); line-height: 1; color: var(--orange-d); }
.ta-statline .t { max-width: 46ch; color: var(--ink-3); }
.ta-statline .t em { font-style: normal; font-weight: 700; color: var(--ink); }

/* ------------------------------------------------ shared: the bubble map --- */
/* Stylized, self-contained, figures-only. No tiles, no third parties, no
   addresses — density by area, sized by count. Used on the post (static teaser)
   and enhanced into an interactive view on the map page. */

.tamap-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(-1 * var(--s-3)); padding-inline: var(--s-3); }
.tamap {
  position: relative; min-width: 560px; height: 520px; margin: var(--s-4) 0 var(--s-3);
  border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(120% 90% at 108% 40%, #dce8ee 0 30%, rgba(220,232,238,0) 46%),
    linear-gradient(90deg, #f6efe3 0%, #f6efe3 60%, #e9f1f4 100%);
}
.tamap__edge { position: absolute; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tamap__edge--bay { right: 14px; top: 14px; color: #6f8894; }
.tamap__edge--west { left: 14px; bottom: 12px; color: #ab9f88; }

.tamap-bub {
  position: absolute; transform: translate(-50%, -50%);
  background: var(--orange); border: 2px solid var(--orange-d); border-radius: 50%;
  display: grid; place-items: center; box-shadow: 0 6px 16px -8px rgba(209,96,15,.7);
}
.tamap-bub .bn { font-family: var(--display); color: var(--ink); line-height: 1; }
.tamap-bub .bl {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px;
  white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--ink-2);
  background: rgba(250,246,240,.85); padding: 1px 6px; border-radius: 6px;
}
.tamap-note { margin-top: var(--s-4); max-width: 68ch; color: var(--muted); font-size: var(--fs-sm); }

/* interactive additions (map page) */
.tamap-bub.is-live { cursor: pointer; transition: transform .15s, box-shadow .15s, filter .15s; }
.tamap-bub.is-live:hover, .tamap-bub.is-live:focus-visible, .tamap-bub.is-active {
  transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 10px 22px -8px rgba(209,96,15,.85); outline: none; z-index: 3;
}
.tamap-bub.is-dim { filter: saturate(.5) opacity(.55); }

/* ------------------------------------------------------ map page: layout --- */

/* On the interactive map the area names live in the list + the hover tooltip,
   so the always-on bubble labels are hidden to keep the field clean. */
.page-iq-map .tamap-bub .bl { display: none; }
.page-iq-map .tamap-bub.is-active .bl { display: block; }

.mm-intro { max-width: 64ch; }
.mm-badge {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: var(--s-4);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange-d);
}
.mm-total {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  margin: var(--s-5) 0 var(--s-2);
}
.mm-total .n { font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); line-height: 1; color: var(--orange-d); }
.mm-total .t { color: var(--ink-3); font-weight: 600; }

.mm-grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .mm-grid { grid-template-columns: 1.55fr 1fr; } }

/* ranked list, synced with the map */
.mm-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-1); }
.mm-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .15s; }
.mm-row:last-child { border-bottom: 0; }
.mm-row:hover, .mm-row:focus-visible, .mm-row.is-active { background: var(--soft); outline: none; }
.mm-row__area { font-weight: 700; color: var(--ink); }
.mm-row__bar { grid-column: 1 / -1; height: 6px; border-radius: var(--r-pill); background: var(--wash); overflow: hidden; margin-top: 6px; }
.mm-row__bar i { display: block; height: 100%; background: var(--orange); border-radius: var(--r-pill); }
.mm-row__n { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.mm-row__share { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }

/* floating tooltip on the map */
.tamap-tip {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -120%);
  background: var(--ink); color: #f4eee5; padding: .5rem .7rem; border-radius: var(--r);
  font-size: var(--fs-sm); line-height: 1.3; white-space: nowrap; box-shadow: var(--shadow-2);
  opacity: 0; transition: opacity .12s;
}
.tamap-tip.is-on { opacity: 1; }
.tamap-tip b { color: #fff; }
.tamap-tip span { color: var(--orange); font-weight: 700; }

/* one-city callout + close */
.ta-callout {
  margin-top: var(--s-7); padding: clamp(1.5rem, 1rem + 3vw, 2.5rem);
  background: var(--ink); color: #f4eee5; border-radius: var(--r-lg); box-shadow: var(--shadow-2);
}
.ta-callout .h3 { color: #fff; letter-spacing: var(--tr-tight); }
.ta-callout p { color: #cfcbc4; max-width: 56ch; margin-top: var(--s-3); }
.ta-callout .btn { margin-top: var(--s-5); }
.ta-callout .btn--accent, .ta-callout .btn--accent:hover { color: var(--ink); }

/* the "wait, Hialeah?" block */
.ta-also__badge {
  display: inline-block; margin-bottom: var(--s-3);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-d);
}
.ta-why { margin-top: var(--s-5); padding: clamp(1.25rem, 1rem + 2vw, 2rem); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.ta-why__lbl { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; margin-bottom: var(--s-3); }
.ta-why p { color: var(--ink-3); max-width: 66ch; }
.ta-why p b { color: var(--ink); }
.ta-chips { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.ta-chip { padding: .55rem .8rem; border-radius: var(--r-pill); background: var(--soft); border: 1px solid #f6d3ad; color: var(--ink-2); font-size: var(--fs-sm); }
.ta-chip b { color: var(--orange-d); }

/* ----------------------------------------------- the report + capture ----- */

.ta-report__grid { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
@media (min-width: 860px) { .ta-report__grid { grid-template-columns: 1fr 1.35fr; align-items: start; } }

.ta-card {
  padding: clamp(1.25rem, 1rem + 2vw, 2rem);
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.ta-card .h3 { letter-spacing: var(--tr-tight); }
.ta-card p { margin-top: var(--s-3); color: var(--ink-3); }
.ta-card--alert { background: var(--ink); border-color: var(--ink); }
.ta-card--alert .h3 { color: #fff; }
.ta-card--alert p { color: #cfcbc4; }
.ta-card--alert .btn--accent, .ta-card--alert .btn--accent:hover { color: var(--ink); }

.ta-form { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.ta-form .row2 { display: grid; gap: var(--s-4); }
@media (min-width: 540px) { .ta-form .row2 { grid-template-columns: 1fr 1fr; } }
.ta-field { display: grid; gap: .35rem; }
.ta-field label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .07em; }
.ta-field label .opt { text-transform: none; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.ta-input {
  font: inherit; width: 100%; padding: .7rem .85rem;
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--bg); color: var(--ink);
}
.ta-input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
textarea.ta-input { min-height: 5.5rem; resize: vertical; }
.ta-card--alert .ta-field label { color: #cfcbc4; }
.ta-card--alert .ta-input { background: #232320; border-color: #3a3a36; color: #fff; }
.ta-card--alert .ta-input::placeholder { color: #9a958d; }
.ta-form__foot { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-2); }
.ta-form .form-hint { font-size: var(--fs-xs); color: var(--muted); }
.ta-card--alert .ta-form .form-hint { color: #9a958d; }

/* notify-me signup (email only) */
.ta-notify { max-width: 46rem; }
.ta-notify__row { display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: end; margin-top: var(--s-5); }
.ta-notify__row .ta-field { flex: 1 1 14rem; }
.ta-notify__row .btn { flex: 0 0 auto; }

/* caveat / provenance footer line */
.ta-caveat { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-2); color: var(--muted); font-size: var(--fs-sm); max-width: 74ch; }
.ta-caveat b { color: var(--ink-2); }
