/* screens.css — module-specific layout */

/* HOME: fill all remaining space below the yellow menu with the cards, no leftover white.
   Cards auto-rotate (see js/screens.js startCardRotation). */
.home-root { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.home-root .home-content { flex: 1 1 auto; min-height: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.home-root .home-cards { flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative; }
.home-root .card-scroller { transition: transform .6s cubic-bezier(.4,0,.2,1); will-change: transform; }
.home-root .card-grid { grid-template-rows: none; padding: 18px 10px 0; row-gap: 14px; }
.home-root .card { min-height: 0; }

/* News listing: 4-column grid (card 426×654→213×327, measured from News-S1.svg) */
.card-grid--4 { grid-template-columns: repeat(4, 1fr); column-gap: 12px; row-gap: 14px; padding: 14px 16px; }
.card-grid--4 .card { --card-h: 327px; --card-media-h: 168px; --card-radius: 11px; min-height: 327px; }
.card-grid--4 .card__title { font-size: 17px; -webkit-line-clamp: 2; }
.card-grid--4 .card__body { padding: 12px; gap: 6px; }
.card-grid--4 .chip { font-size: 12px; padding: 5px 9px; }

/* ===== DETAIL: two-column split (measured Events-S2: left 910→~48%, right ~52%) ===== */
.detail-split { flex: 1 1 auto; display: flex; min-height: 0; }
.detail-left { flex: 0 0 47%; background: #E2EBF0; min-height: 0; overflow-y: auto; }
.detail-right { flex: 1 1 auto; background: #fff; min-height: 0; overflow-y: auto; padding: 30px 34px; }
/* neutral grey ("cinza rato") gradient base — shows through when there's no image
   (or the image path fails to load); a real image covers it via inline background-image */
.detail-left__media { height: 300px; background: linear-gradient(135deg,#9a9a9a,#5f5f5f) center/cover no-repeat; position: relative; display: flex; align-items: flex-end; }
.detail-left__media--ph { background: linear-gradient(135deg,#9a9a9a,#5f5f5f); }
/* venue logo badge on the POI detail media */
.detail-logo { position: absolute; top: 16px; right: 16px; width: 72px; height: 72px; border-radius: 16px;
  background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.22); display: grid; place-items: center; overflow: hidden;
  font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 30px; color: var(--ds-ink); z-index: 2; }
.detail-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.detail-left__cap { padding: 18px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); width: 100%; }
.detail-left__cap .t-card { color: #fff; }
.detail-left__cap .t-meta { color: #cbd5db; }
.detail-left__credit { margin-top: 5px; font-size: var(--ds-fs-caption); }
.detail-title { font-family: var(--ds-font-sans); font-weight: var(--ds-fw-heavy); font-size: 46px; line-height: 1.05; margin: 0 0 18px; }
.detail-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.detail-lead { font-size: 24px; font-weight: var(--ds-fw-semibold); line-height: 1.35; color: var(--ds-ink); margin: 0 0 24px; }
.detail-text { color: #66717A; font-size: 16px; line-height: 1.5; }
.detail-text p { margin: 0 0 14px; }
.detail-block { padding: 18px; border-top: 1px solid #cdd8e0; }
.detail-block__head { display: flex; align-items: center; gap: 8px; font-weight: var(--ds-fw-bold); font-size: 16px; margin-bottom: 12px; }
.detail-block__head .link-btn { margin-left: auto; font-size: 13px; color: var(--ds-muted); font-weight: var(--ds-fw-semibold); display: inline-flex; align-items: center; gap: 4px; }
.detail-contacts__row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.qr-mini { display: flex; flex-direction: column; gap: 6px; }
.qr-mini__code { aspect-ratio: 1; background: repeating-conic-gradient(#202e33 0 25%, #fff 0 50%) 0 0/14px 14px; border-radius: 6px; }
.nearby-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.nearby-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 20px; font-weight: var(--ds-fw-bold); }
.nearby-tile .tomi-icon { font-size: 30px; }
/* bottom map bar on detail */
.detail-mapbar { flex: 0 0 auto; height: 200px; position: relative; }
.detail-mapbar .map-canvas { position: absolute; inset: 0; }
.detail-mapbar .map-pill { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); z-index: 1100;
  background: #fff; border-radius: var(--ds-radius-pill); padding: 12px 26px; font-weight: var(--ds-fw-bold);
  box-shadow: var(--ds-shadow-float); display: inline-flex; align-items: center; gap: 10px; }

/* ===== TAB HEADER (News/Events): left segmented tabs + right filter chips (measured from SVG) ===== */
.tabrow { display: flex; align-items: center; gap: 20px; padding: 14px var(--ds-margin) 6px; }
.seg-tabs { display: flex; align-items: flex-end; flex: 0 0 auto; }
.seg-tab { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--ds-border);
  border-bottom: none; border-radius: 16px 16px 0 0; padding: 16px 24px; font-family: var(--ds-font-display);
  font-weight: var(--ds-fw-bold); font-size: 19px; box-shadow: 0 -2px 10px rgba(0,0,0,.05); }
.seg-tab .tomi-icon { font-size: 26px; }
.seg-tab--accent, .seg-tab.is-active.seg-tab--accent { background: var(--ds-accent); color: var(--ds-accent-ink); border-color: var(--ds-accent); }
.filter-chips { display: flex; align-items: center; gap: 10px; flex: 1; overflow-x: auto; }
.filter-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; background: var(--ds-surface-soft);
  border: none; color: var(--ds-ink); font-weight: var(--ds-fw-semibold); font-size: 16px; padding: 12px 22px;
  border-radius: var(--ds-radius-pill); min-height: var(--ds-touch); }
.filter-chip .tomi-icon { font-size: 20px; }
.filter-chip.is-active { background: #000; color: #fff; }
.filter-chip--arrow { background: transparent; padding: 12px; }
/* "Hoje" dropdown + scroll arrows */
.tabrow__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.today-dd { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 22px; }
.scroll-arrows { display: flex; flex-direction: column; gap: 8px; }
.scroll-arrows button { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--ds-border); display: grid; place-items: center; }

/* category / view header */
.cat-header { display: flex; align-items: center; gap: 12px; padding: 14px var(--ds-margin) 6px; }
.mode-tabs { display: flex; gap: 8px; align-items: center; }
.mode-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--ds-radius-pill);
  background: var(--ds-surface); border: 1px solid var(--ds-border); font-weight: var(--ds-fw-semibold); min-height: var(--ds-touch); }
.mode-tab.is-active { background: #fff; border-color: var(--ds-border); color: var(--ds-ink); }
.mode-tab--accent { background: var(--ds-accent); border-color: var(--ds-accent); color: var(--ds-accent-ink); }

/* search bar */
.search-bar { display: flex; gap: 10px; align-items: center; padding: 8px var(--ds-margin); }
.search-input { flex: 1; height: 56px; border-radius: var(--ds-radius-pill); border: 1px solid var(--ds-border);
  background: var(--ds-surface); padding: 0 22px; font-size: var(--ds-fs-body); color: var(--ds-ink); }
.search-input:focus { outline: 2px solid var(--ds-accent); }

/* dropdown */
.dd { position: relative; }
.dd-menu { position: absolute; top: 110%; left: 0; min-width: 220px; background: var(--ds-surface);
  border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md); box-shadow: var(--ds-shadow-float);
  padding: 8px; display: none; z-index: var(--z-dropdown); }
.dd-menu.is-open { display: block; }
.dd-opt { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--ds-radius-sm);
  font-size: var(--ds-fs-body); min-height: var(--ds-touch); }
.dd-opt:hover { background: var(--ds-surface-soft); }

/* ===== DIRECTORY: split map LEFT / yellow categories RIGHT (measured Search-S1: split at x=1090) ===== */
.dir-split { flex: 1 1 auto; display: flex; min-height: 0; position: relative; }
/* restore-content button — only visible while the map is maximized */
.map-restore { display: none; position: absolute; top: 20px; right: 20px; z-index: 1200;
  align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 12px 22px;
  box-shadow: var(--ds-shadow-float); font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold);
  font-size: 16px; color: var(--ds-ink); }
.map-restore .tomi-icon { font-size: 22px; }
.dir-split.is-map-max .map-restore { display: inline-flex; }
.dir-map { flex: 0 0 43%; position: relative; min-height: 0; }
.dir-map .map-canvas { position: absolute; inset: 0; }
.dir-region { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 1100; }
.dir-region .dd-trigger { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--ds-radius-pill);
  padding: 12px 18px; font-weight: var(--ds-fw-bold); font-size: 15px; box-shadow: var(--ds-shadow-float); width: 100%; }
.dir-region small { color: var(--ds-muted); font-weight: var(--ds-fw-regular); }
.dir-panel { flex: 1 1 auto; background: #fff; min-height: 0; overflow-y: auto; padding: 20px; }
.dir-search { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-pill); padding: 6px 6px 6px 4px; }
.dir-search .search-input { border: none; background: transparent; height: 52px; }
.icon-btn--accent { background: var(--ds-accent); color: var(--ds-accent-ink); }
.dir-suggest { position: relative; height: 150px; border-radius: 16px; margin: 16px 0; overflow: hidden;
  background: linear-gradient(135deg,#4a5b66,#2b3740); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #fff; }
.dir-suggest__chip { position: absolute; top: 14px; left: 14px; background: var(--ds-accent); color: var(--ds-accent-ink);
  font-weight: var(--ds-fw-bold); font-size: 13px; padding: 6px 12px; border-radius: var(--ds-radius-pill); display: inline-flex; align-items: center; gap: 6px; }
.dir-suggest__title { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 24px; line-height: 1.05; }

.cat-grid { display: grid; gap: 14px; }
.cat-grid--big { grid-template-columns: repeat(2, 1fr); margin-bottom: 14px; }
.cat-grid--small { grid-template-columns: repeat(3, 1fr); padding-bottom: 30px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--ds-accent); color: var(--ds-accent-ink); border: 2px solid rgba(0,0,0,.08); border-radius: 14px;
  padding: 18px 10px; font-weight: var(--ds-fw-bold); font-size: 15px; text-align: center; aspect-ratio: 1.09; }
.cat-tile--big { aspect-ratio: 1.09; font-size: 20px; }
.cat-tile--big .cat-tile__icon .tomi-icon { font-size: 64px; }
.cat-tile__icon .tomi-icon { font-size: 44px; }
.cat-grid--small .cat-tile { aspect-ratio: 1; gap: 8px; font-size: 13px; }

/* ===== DIRECTORY RESULTS (Search-S2): map stays LEFT, white results column RIGHT, maximizable map ===== */
.dir-map { position: relative; }
.dir-expand { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 1100;
  background: #fff; border-radius: 14px 0 0 14px; box-shadow: var(--ds-shadow-float); padding: 16px 8px;
  writing-mode: vertical-rl; font-weight: var(--ds-fw-bold); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dir-results { flex: 1 1 auto; background: #fff; min-height: 0; overflow-y: auto; padding: 16px 18px; }
.dir-results__head { display: flex; align-items: center; gap: 12px; background: #000; color: #fff;
  border-radius: var(--ds-radius-pill); padding: 14px 20px; font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 22px; }
.dir-results__head .icon-btn { background: transparent; color: #fff; }
.dir-results__cat { margin-left: auto; font-size: 26px; }
.dir-filters { display: flex; gap: 10px; padding: 14px 0; flex-wrap: wrap; }
.pill-dd { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill); padding: 10px 16px; font-weight: var(--ds-fw-semibold); font-size: 14px; }
.poi-feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ds-card-gap); margin-bottom: var(--ds-card-gap); }
.poi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-card-gap); padding-bottom: 30px; }
.poi-card { background: #fff; border: 1px solid var(--ds-border); border-radius: var(--ds-card-radius); overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.poi-card__media { aspect-ratio: 16/10; background: linear-gradient(135deg,#9a9a9a,#5f5f5f) center/cover no-repeat; position: relative; }
/* gradiente preto→transparente para garantir contraste do ícone/logo sobre a imagem */
.poi-card__media::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent 42%, rgba(0,0,0,.62)); }
/* ícone de categoria alinhado (mesma linha) com o logo, no fundo da media */
.poi-card__ic { position: absolute; left: 12px; bottom: 12px; z-index: 2; color: #fff; font-size: 30px; }
.poi-card--feat .poi-card__media { aspect-ratio: 16/9; }
.poi-card--feat .poi-card__title { font-size: 22px; }
/* logo do POI a cavalgar a fronteira imagem/bloco branco (tapa a imagem por baixo) */
.poi-logo { position: absolute; right: 12px; bottom: -22px; z-index: 3; width: 48px; height: 48px; border-radius: 12px;
  background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.28); display: grid; place-items: center; overflow: hidden;
  font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 20px; color: var(--ds-ink); }
.poi-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.poi-card--haslogo .poi-card__body { padding-top: 20px; }
.poi-card__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.poi-card__title { font-weight: var(--ds-fw-bold); font-size: 16px; line-height: 1.15; }
.poi-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.poi-walk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ds-muted); font-weight: var(--ds-fw-semibold); }
/* listing body with up/down scroll arrows (news / events) */
.list-wrap { position: relative; flex: 1 1 auto; min-height: 0; }
.list-wrap > .scroll-y { position: absolute; inset: 0; }
.scroll-rail { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: 999px; padding: 8px;
  box-shadow: var(--ds-shadow-float); }
.scroll-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ds-surface-alt); color: var(--ds-ink); }
.scroll-btn .tomi-icon { font-size: 26px; }
.scroll-btn[data-scroll="up"] .tomi-icon { transform: rotate(180deg); }

/* news — "capa de jornal": grelha 4×4 de blocos landscape (nada totalmente vertical) */
.news-cover-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.news-cover-panel > .shorts { flex: 0 0 auto; }
.cover-wrap { flex: 1 1 auto; min-height: 0; padding: 12px var(--ds-margin) 14px; height: auto; overflow: hidden; }
.cover { display: grid; height: 100%; gap: 14px;
  grid-template-columns: repeat(4, 1fr); grid-template-rows: 1.45fr 1.45fr 1.25fr .62fr .88fr; }
.cover article, .cover button { text-align: left; }
.cover .card__media { height: auto; }
.cover-hero, .cover-sec, .cover-tert { background: var(--ds-surface); border-radius: var(--ds-card-radius); overflow: hidden; box-shadow: var(--ds-shadow-card); min-height: 0; }
/* posições na grelha */
.cover-hero  { grid-column: 1 / 3; grid-row: 1 / 3; display: flex; flex-direction: column; }
.cover-pos-a { grid-column: 3 / 5; grid-row: 1; }
.cover-pos-b { grid-column: 3 / 5; grid-row: 2; }
/* Nv3 (novo) — linha de cards normais (vista lista) */
.cover__listrow { grid-column: 1 / 5; grid-row: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; min-height: 0; }
.cover__listrow .card { min-height: 0; height: 100%; box-shadow: var(--ds-shadow-card); }
/* mantém a proporção de imagem dos cards originais + título maior */
.cover__listrow .card__media { flex: 0 0 55%; min-height: 0; }
.cover__listrow .card__body { flex: 1 1 auto; padding: 12px 14px; gap: 6px; justify-content: flex-start; }
.cover__listrow .card__title { font-size: 21px; line-height: 1.14; -webkit-line-clamp: 2; }
.cover__listrow .card__date { font-size: 13px; }
/* agrupar título+pill+data no topo (sem o margin-top:auto que empurra p/ baixo) */
.cover__listrow .card__tags { margin-top: 0; }
/* mostra só a pill de categoria (esconde a linha de local) */
.cover__listrow .card__tags:not(:has(.chip--accent)) { display: none; }
/* Nv4 — cartões largos 2×1 */
.cover-pos-c { grid-column: 1 / 3; grid-row: 4; }
.cover-pos-d { grid-column: 3 / 5; grid-row: 4; }
/* Nv5 — lista de títulos (maior, menos entradas) */
.cover__brief { grid-column: 1 / 5; grid-row: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-content: center; }
/* Nível 1 — bloco 2×2 (imagem horizontal grande em cima, texto em baixo) */
.cover-hero__media { flex: 0 0 58%; }
.cover-hero__body { flex: 1 1 auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.cover-hero__title { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 34px; line-height: 1.05;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover-hero__lead { font-size: 17px; color: var(--ds-muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Nv2 — imagem a preencher o card + texto BRANCO sobre gradiente de sombra */
.cover-sec { position: relative; }
/* Duas classes garantem especificidade suficiente para não deixar a regra
   global `.kiosk [data-ph] { position:relative }` colapsar o fallback. A
   dimensão explícita cobre igualmente imagens reais e media sem imagem. */
.cover-sec > .cover-sec__media { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cover-sec__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,.2) 32%, rgba(0,0,0,.82)); }
.cover-sec__title { color: #fff; font-weight: var(--ds-fw-bold); font-size: 24px; line-height: 1.12;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover-sec__body .t-meta { color: rgba(255,255,255,.85); margin-top: 4px; }
/* Nv4 — cartão largo 2×1 (imagem à esquerda + título à direita) */
.cover-tert { display: flex; flex-direction: row; }
.cover-tert__media { flex: 0 0 44%; height: auto; }
.cover-tert__body { flex: 1 1 auto; padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; }
.cover-tert__title { font-weight: var(--ds-fw-bold); font-size: 18px; line-height: 1.16;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover-tert__date { font-size: 13px; color: var(--ds-muted); }
/* Nível 4 — lista de títulos (2 colunas) */
.cover-brief { display: flex; align-items: center; gap: 12px; background: none; border: none; border-top: 1px solid var(--ds-border);
  padding: 12px 2px; cursor: pointer; }
.cover-brief__cat { flex: 0 0 auto; font-size: 12px; font-weight: var(--ds-fw-bold); text-transform: uppercase; letter-spacing: .03em;
  color: var(--ds-on-accent); background: var(--ds-accent); padding: 4px 9px; border-radius: 5px; }
.cover-brief__title { flex: 1; font-weight: var(--ds-fw-semibold); font-size: 21px; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* events — MAP view: carrossel (agenda colapsada, com setas) EM CIMA + mapa em baixo */
.ev-mapview { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.ev-map { flex: 1 1 auto; position: relative; min-height: 0; }
.ev-map .map-canvas { position: absolute; inset: 0; }
.ev-carousel-wrap { flex: 0 0 auto; position: relative; background: var(--ds-surface-soft); }
.ev-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; box-shadow: var(--ds-shadow-float); display: grid; place-items: center; }
.ev-arrow .tomi-icon { font-size: 24px; }
.ev-arrow--prev { left: 10px; }
.ev-arrow--next { right: 10px; }
.ev-carousel { height: 220px; display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden;
  padding: 14px 68px 18px; scroll-snap-type: x mandatory; }
.ev-carousel::-webkit-scrollbar { height: 8px; }
.ev-carousel::-webkit-scrollbar-thumb { background: var(--ds-border); border-radius: 999px; }
/* card compacto: imagem pequena, título + distância em destaque */
.ev-card { flex: 0 0 330px; scroll-snap-align: center; display: flex; flex-direction: column; min-height: 0;
  background: var(--ds-surface); border-radius: var(--ds-card-radius); overflow: hidden; box-shadow: var(--ds-shadow-card);
  transition: transform .18s ease, box-shadow .18s ease; }
.ev-card__media { flex: 0 0 84px; }
.ev-card__body { flex: 1 1 auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.ev-card__body .chip { align-self: flex-start; }
.ev-card__title { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 20px; line-height: 1.12;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card__meta { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: var(--ds-fw-semibold); color: var(--ds-ink); }
.ev-card__meta .poi-walk { color: var(--ds-ink); font-size: 15px; }
.ev-card.is-centered { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,.28); outline: 3px solid var(--ds-accent); }

/* events — calendar view */
.cal-wrap { padding: 8px var(--ds-margin) 24px; min-height: 0; }
/* segmented Semana / Mês */
.cal-seg { display: inline-flex; gap: 4px; background: var(--ds-surface-alt); border-radius: 999px; padding: 4px; margin: 6px 0 16px; }
.cal-seg__btn { border: none; background: transparent; border-radius: 999px; padding: 8px 22px; font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 15px; color: var(--ds-muted); cursor: pointer; }
.cal-seg__btn.is-active { background: var(--ds-accent); color: var(--ds-on-accent); }
/* week strip (next 7 days) */
.cal-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.cal-chip { position: relative; border: 1px solid var(--ds-border); border-radius: 14px; padding: 12px 4px 18px; text-align: center; background: #fff; opacity: .4; cursor: pointer; font: inherit; color: inherit; }
.cal-events { padding-top: 6px; }
.cal-events__head { padding: 16px 2px 12px; font-weight: var(--ds-fw-bold); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.cal-chip__wd { display: block; font-size: 16px; font-weight: var(--ds-fw-bold); color: var(--ds-muted); text-transform: uppercase; }
.cal-chip__d { display: block; font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 34px; line-height: 1.05; }
/* dias COM eventos destacam-se; dias SEM eventos ficam esbatidos */
.cal-chip--has { opacity: 1; border: 2px solid var(--ds-accent); background: var(--ds-surface-soft); }
.cal-chip--has .cal-chip__wd { color: var(--ds-ink); }
.cal-chip--today { opacity: 1; box-shadow: inset 0 0 0 2px var(--ds-ink); }
.cal-chip .cal-dot { left: 50%; transform: translateX(-50%); right: auto; bottom: 8px; width: 11px; height: 11px; }
/* agenda (only days with events) */
.cal-agenda__day { margin-top: 20px; }
.cal-agenda__head { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 18px; padding: 6px 0 12px;
  border-bottom: 2px solid var(--ds-border); margin-bottom: 14px; text-transform: capitalize; }
.cal-head { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 0 16px;
  font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 26px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-grid--wd { margin-bottom: 8px; }
.cal-grid { gap: 6px; }
.cal-wd { text-align: center; font-size: 15px; font-weight: var(--ds-fw-bold); color: var(--ds-muted); text-transform: uppercase; }
/* compacto: quadrados baixos, número centrado (menos espaço branco → mais espaço p/ eventos) */
.cal-day { position: relative; height: 46px; border-radius: 10px; border: 1px solid var(--ds-border); background: #fff;
  font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 20px; color: var(--ds-ink);
  display: flex; align-items: center; justify-content: center; padding: 0; }
.cal-day .cal-dot { right: 50%; transform: translateX(50%); bottom: 5px; width: 7px; height: 7px; }
.cal-day--empty { border: none; background: transparent; }
/* dias SEM eventos esbatidos; COM eventos destacados */
.cal-day:not(.cal-day--has):not(.cal-day--empty):not(.cal-day--today):not(.is-sel) { opacity: .38; }
.cal-day--has { border: 2px solid var(--ds-accent); background: var(--ds-surface-soft); }
.cal-day--today { box-shadow: inset 0 0 0 2px var(--ds-ink); }
.cal-day.is-sel { background: var(--ds-accent); color: var(--ds-on-accent); border-color: var(--ds-accent); opacity: 1; }
.cal-dot { position: absolute; right: 8px; bottom: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--ds-accent); }
.cal-day.is-sel .cal-dot { background: var(--ds-on-accent); }
.cal-list { margin-top: 18px; }

/* map marker balloon (event / POI) */
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.25); padding: 6px; }
.leaflet-popup-content { margin: 8px 10px; }
.mappop { width: 220px; }
.mappop__img { height: 108px; background: #ccd2d6 center/cover no-repeat; border-radius: 10px; }
.mappop__img--ph { background: linear-gradient(135deg,#9a9a9a,#5f5f5f); }
.mappop__b { padding-top: 8px; }
.mappop__cat { display: inline-block; background: #000; color: #fff; font-size: 11px; font-weight: var(--ds-fw-bold); padding: 2px 9px; border-radius: 999px; margin-bottom: 5px; }
.mappop__title { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 17px; line-height: 1.12; color: var(--ds-ink); }
.mappop__meta { font-size: 12px; color: var(--ds-muted); margin-top: 3px; }
.mappop__btn { margin-top: 10px; width: 100%; background: var(--ds-accent, #FAC200); color: var(--ds-on-accent, #000); border: none; border-radius: 999px; padding: 9px; font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 14px; cursor: pointer; }

/* Diretório — TOMI Shorts 5K apenas na listagem lateral; mapa sempre à esquerda. */
.dir-shorts-panel { padding: 0; background: var(--ds-surface-soft); }
.dir-shorts-panel > .shorts { position: sticky; top: 0; z-index: 10; padding: 11px 16px; }
.dir-shorts-panel .shorts__brand { gap: 8px; }
.dir-shorts-panel .shorts__brand img { width: 82px; height: 26px; }
.dir-shorts-panel .shorts__name { font-size: 27px; line-height: 28px; gap: 6px; }
.dir-shorts-panel .shorts__separator, .dir-shorts-panel .shorts__variant { font-size: inherit; }
.dir-shorts-panel .shorts__desc { font-size: 13px; }
.dir-shorts-panel .shorts__cta { padding: 9px 17px; font-size: 15px; }
.dir-shorts-panel .shorts__hint { display: none; }
.dir-shorts-body { padding: 16px 18px 30px; }
.dir-shorts-body .dir-search { margin-bottom: 18px; }
.dir-shorts-level { margin-top: 22px; }
.dir-shorts-level:first-of-type { margin-top: 0; }
.dir-shorts-level > h2 { margin: 0 0 11px; font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 22px; line-height: 1.05; }
/* Nível 1 */
.dir-shorts-level--hero .poi-card { width: 100%; box-shadow: var(--ds-shadow-card); }
.dir-shorts-level--hero .poi-card__media { aspect-ratio: 16/7.5; }
.dir-shorts-level--hero .poi-card__body { padding: 17px 18px; gap: 9px; }
.dir-shorts-level--hero .poi-card__title { font-size: 29px; line-height: 1.08; }
/* Nível 2 */
.dir-shorts-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dir-shorts-secondary .poi-card:only-child { grid-column: 1 / -1; }
.dir-shorts-secondary .poi-card__body { padding: 15px 16px; gap: 8px; }
.dir-shorts-secondary .poi-card__title { font-size: 21px; line-height: 1.1; }
.dir-shorts-secondary .poi-card__media { aspect-ratio: 16/8.5; }
.dir-guide-card__category { display: flex; align-items: center; gap: 7px; color: var(--ds-muted); font-size: 16px; font-weight: var(--ds-fw-bold); }
.dir-guide-card__category .tomi-icon { font-size: 19px; color: var(--ds-ink); }
.dir-guide-card__details { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px;
  color: var(--ds-muted); font-size: 16px; font-weight: var(--ds-fw-semibold); }
.dir-guide-card__details span { display: inline-flex; align-items: center; gap: 6px; }
.dir-guide-card__details .tomi-icon { font-size: 18px; }
/* Nível 3 */
.dir-shorts-row { width: 100%; display: flex; min-height: 112px; margin-bottom: 12px; overflow: hidden; text-align: left;
  background: #fff; border: 1px solid var(--ds-border); border-radius: var(--ds-card-radius); }
.dir-shorts-row__media { flex: 0 0 34%; position: relative; background: linear-gradient(135deg,#9a9a9a,#5f5f5f) center/cover no-repeat; }
.dir-shorts-row__body { flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.dir-shorts-row__body strong { font-family: var(--ds-font-display); font-size: 22px; line-height: 1.08; }
.dir-shorts-row__body > span { color: var(--ds-muted); font-size: 16px; font-weight: var(--ds-fw-semibold); }
/* Nível 4 */
.dir-shorts-brief { width: 100%; display: flex; align-items: center; gap: 14px; padding: 17px 3px; text-align: left;
  border-top: 1px solid var(--ds-border); font-family: var(--ds-font-display); font-weight: var(--ds-fw-semibold); font-size: 20px; }
.dir-shorts-brief > span { flex: 1; }
.dir-shorts-brief small { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ds-muted); font-size: 15px; }

/* maximize map: hide results, map full width */
.dir-split.is-map-max .dir-results { display: none; }
.dir-split.is-map-max .dir-map { flex: 1 1 auto; }

/* ===== MOBILITY (Mobility-S1): split map LEFT + right panel, yellow search header, 2-col destinations ===== */
.mob-panel { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.mob-search { background: var(--ds-accent); padding: 20px; display: flex; gap: 12px; align-items: center; flex: 0 0 auto; }
.mob-search .search-input { flex: 1; background: #fff; border: none; height: 60px; }
.mob-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 20px; }
.mob-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding-bottom: 30px; }
.mob-card { background: #fff; border: 1px solid var(--ds-border); border-radius: 14px; padding: 18px; text-align: left;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--ds-shadow-card); }
.mob-card__title { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 22px; }
.mob-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-split.is-map-max .mob-panel { display: none; }
.dir-split.is-map-max .route-panel { display: none; }

/* ===== ROUTE (Mobility-S2): split map LEFT + route panel RIGHT (segmented modes, blue summary, timeline) ===== */
.route-panel { flex: 1 1 auto; min-width: 0; min-height: 0; background: #fff; overflow-y: auto; }
.route-head { display: flex; align-items: center; gap: 16px; padding: 22px 24px 14px; }
.route-head__ic { width: 66px; height: 60px; border-radius: 16px; background: #000; color: #fff; display: grid; place-items: center; }
.route-head__ic .tomi-icon { font-size: 30px; }
.route-head__bus .tomi-icon { font-size: 40px; }
.route-head__title { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 26px; line-height: 1.05; }
.route-alt { margin: 0 24px 16px; }
.rmodes { display: flex; margin: 0 24px; border-radius: 12px; overflow: hidden; }
.rmode { flex: 1; background: var(--ds-accent); color: var(--ds-accent-ink); border: none; padding: 18px 0; display: grid; place-items: center; }
.rmode .tomi-icon { font-size: 34px; }
.rmode.is-active { background: #000; color: #fff; }
.route-summary2 { background: #dbe4ec; margin: 16px 24px 0; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.rsum__row { display: flex; align-items: flex-start; gap: 14px; }
.rsum__row .tomi-icon { font-size: 26px; color: var(--ds-ink); }
.rsum__row--dest .tomi-icon { color: var(--ds-accent); }
.rsum__row b { font-family: var(--ds-font-display); font-size: 22px; }
.route-qrbar { background: #eef2f5; margin: 14px 24px 0; border-radius: 10px; padding: 16px 20px; display: flex; align-items: center;
  justify-content: space-between; font-weight: var(--ds-fw-semibold); color: var(--ds-muted); }
.rsteps { list-style: none; margin: 8px 0 40px; padding: 6px 24px; }
.rstep { display: flex; align-items: center; gap: 16px; padding: 12px 0; position: relative; }
.rstep::before { content: ''; position: absolute; left: 22px; top: 0; bottom: 0; width: 3px; background: repeating-linear-gradient(#98a4ad 0 6px, transparent 6px 12px); }
.rstep:first-child::before { top: 50%; }
.rstep:last-child::before { bottom: 50%; }
.rstep__mark { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 3px solid #202e33; display: grid; place-items: center; flex: 0 0 auto; }
.rstep__mode .tomi-icon { font-size: 26px; }
.rstep__body { flex: 1; }
.rstep__name { font-weight: var(--ds-fw-bold); font-size: 17px; text-transform: uppercase; line-height: 1.1; }

/* mobility destinations (legacy list) */
.dest-list { display: flex; flex-direction: column; gap: 10px; padding: 4px var(--ds-margin) 30px; }
.dest-row { display: flex; align-items: center; gap: 14px; background: var(--ds-surface); border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md); padding: 16px; text-align: left; }
.dest-row__main { flex: 1; }
.dest-row__modes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* route */
.route-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 16px var(--ds-margin); background: var(--ds-surface); border-bottom: 1px solid var(--ds-border); }
.steps { padding: 8px var(--ds-margin); display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--ds-border); position: relative; }
.step__mode { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ds-surface-alt); flex: 0 0 auto; }
.step__body { flex: 1; }

/* ===== SMART CITY DATA (Weather-Expanded): white header + dark data grid + forecast ===== */
.sc-hero2 { display: flex; justify-content: space-between; align-items: center; padding: 30px 34px; background: #f1f6f9; }
.sc-hero2__loc { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 26px; }
.sc-hero2__temp { display: flex; align-items: center; gap: 14px; font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 52px; margin-top: 10px; }
.sc-hero2__temp .tomi-icon { font-size: 56px; color: var(--ds-map-blue); }
.sc-hero2__dt { text-align: right; }
.sc-hero2__clock { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 72px; line-height: 1; }
.sc-data { background: #2b2b2b; color: #fff; padding: 26px 34px 34px; }
.sc-data__title { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 18px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 20px; }
.sc-grid2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }
.sc-cell { display: flex; flex-direction: column; gap: 8px; }
.sc-cell__ic { font-size: 54px; margin-bottom: 6px; }
.sc-cell__label { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 24px; }
.sc-cell__val { font-size: 18px; color: #cfcfcf; }
.sc-cell__val b { color: #fff; font-weight: var(--ds-fw-bold); }
.sc-forecast { background: #3a3a3a; color: #fff; padding: 26px 34px 40px; }
.fc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 40px; }
.fc-day__name { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 20px; margin-bottom: 10px; }
.fc-day__row { display: flex; align-items: center; gap: 20px; }
.fc-day__temp { flex: 1; font-size: 15px; color: #cfcfcf; }
.fc-day__temp span { display: block; }
.fc-day__temp b { font-family: var(--ds-font-display); font-size: 22px; color: #fff; }
.fc-day__temp i { color: #8a8a8a; font-style: normal; margin-left: 6px; }
.fc-day__wx { display: flex; gap: 22px; border-left: 1px solid #555; padding-left: 20px; }
.fc-day__slot { text-align: center; font-size: 13px; color: #cfcfcf; }
.fc-day__slot .tomi-icon { display: block; font-size: 34px; margin-top: 6px; color: var(--ds-map-blue); }

/* ===== PHOTO (Photo-S2): preview + TIRAR FOTO/GRAVAR GIF + "Alterar Moldura" sheet ===== */
.photo-screen { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; background: #5a6b78; overflow: hidden; }
.photo-preview { flex: 1 1 auto; min-height: 0; position: relative; background: linear-gradient(135deg,#8a97a2,#39454f); }
.photo-frame-badge { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--ds-ink);
  padding: 8px 18px; border-radius: 10px; font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 18px; display: inline-flex; gap: 8px; }
.photo-frame-badge b { background: var(--ds-accent); color: var(--ds-accent-ink); padding: 2px 8px; border-radius: 6px; }
.photo-actions { display: flex; gap: 20px; padding: 22px var(--ds-margin); flex: 0 0 auto; }
.photo-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 16px; background: var(--ds-accent);
  color: var(--ds-accent-ink); border: none; border-radius: 22px; padding: 26px; font-family: var(--ds-font-display);
  font-weight: var(--ds-fw-bold); font-size: 24px; letter-spacing: .02em; }
.photo-btn .tomi-icon { font-size: 42px; }
.photo-sheet { flex: 0 0 auto; max-height: 44%; background: #fff; border-radius: 28px 28px 0 0; padding: 26px 28px; overflow-y: auto; }
.photo-sheet__head { display: flex; align-items: center; justify-content: space-between; font-family: var(--ds-font-display);
  font-weight: var(--ds-fw-bold); font-size: 24px; margin-bottom: 18px; }
.frame-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.frame-card { aspect-ratio: 16/11; border: 3px solid var(--ds-border); border-radius: 14px; overflow: hidden; position: relative;
  background: linear-gradient(135deg,#f7c948,#f59e0b); display: flex; align-items: flex-start; padding: 12px; }
.frame-card.is-active { border-color: var(--ds-accent); }
.frame-card__badge { background: var(--ds-white); color: var(--ds-ink); font-weight: var(--ds-fw-bold); font-size: 13px; padding: 5px 10px; border-radius: 8px; }

/* PHOTO S1 — frame chooser (first screen, only frame selection) */
.pframes { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; background: #9aa6b0; }
.pframes__title { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); font-size: 34px; color: #fff; text-align: center; padding: 26px 0 18px; }
.pframes__panel { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; background: #fff; border-radius: 40px 40px 0 0; margin: 0 30px; padding: 24px 24px 8px; position: relative; }
.pframe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding-bottom: 12px; }
.pframe { aspect-ratio: 16/12; border-radius: 18px; overflow: hidden; background: #f4f5f7; box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: grid; place-items: center; }
.pframe img { width: 100%; height: 100%; object-fit: cover; }
.pframe.is-active { outline: 4px solid var(--ds-accent); outline-offset: -4px; }
.pframe__label { font-family: var(--ds-font-display); font-weight: var(--ds-fw-bold); color: var(--ds-muted); font-size: 14px; }
.pframes__dots { display: flex; justify-content: center; gap: 12px; padding: 14px 0 18px; }
.pframes__dots span { width: 14px; height: 14px; border-radius: 50%; background: #cfd6dd; }
.pframes__dots span.is-active { background: #6b7680; }

/* ===== PHOTO LAB PV002–PV005 ===============================================
   One real module, four variants selected by experiments.photoFlow. All rules
   stay namespaced so PV001 continues to render the baseline untouched. */
.photo-lab { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; color: var(--ds-ink); background: #eef1f3; overflow: hidden; }
.photo-lab button { font-family: var(--ds-font-sans); }
.photo-lab__head { flex: 0 0 auto; min-height: 142px; padding: 22px 34px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-bottom: 1px solid var(--ds-border); }
.photo-lab__head > div { min-width: 0; }
.photo-lab__eyebrow { display: block; margin-bottom: 5px; color: #687680; font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.photo-lab__head h2 { margin: 0; font-family: var(--ds-font-display); font-size: 38px; font-weight: 800; line-height: 1; }
.photo-lab__head p { margin: 7px 0 0; color: #687680; font-size: 16px; line-height: 1.25; }
.photo-lab__ratio { flex: 0 0 auto; width: 76px; height: 96px; display: grid; place-content: center; text-align: center; border: 2px solid var(--ds-ink); border-radius: 12px; font-family: var(--ds-font-display); font-size: 25px; font-weight: 800; }
.photo-lab__ratio small { display: block; margin-top: 3px; color: #687680; font: 700 9px/1 var(--ds-font-sans); letter-spacing: .08em; }
.photo-lab__body { flex: 1 1 auto; min-height: 0; padding: 24px 30px; overflow-y: auto; }
.photo-lab__footer { flex: 0 0 auto; min-height: 108px; padding: 14px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-top: 1px solid var(--ds-border); box-shadow: 0 -8px 28px rgb(0 0 0 / 8%); }
.photo-lab__footer > div b, .photo-lab__footer > div span { display: block; }
.photo-lab__footer > div b { font-size: 16px; }
.photo-lab__footer > div span { margin-top: 3px; color: #687680; font-size: 13px; }
.photo-primary, .photo-secondary, .photo-link { min-height: 58px; border-radius: var(--ds-radius-pill); font-size: 17px; font-weight: 800; }
.photo-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 28px; border: 0; background: var(--ds-accent); color: var(--ds-accent-ink); }
.photo-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 2px solid #d6dde1; background: #fff; color: var(--ds-ink); }
.photo-link { padding: 0 14px; border: 0; background: transparent; color: var(--ds-ink); text-decoration: underline; }

/* Non-destructive composition renderer shared by thumbnails/live/result. */
.photo-composition { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #667680; isolation: isolate; }
.photo-camera-source { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.04); transform-origin: center; filter: saturate(.88) contrast(.98); }
.photo-composition.is-enhanced .photo-camera-source { filter: saturate(1.04) contrast(1.07) brightness(1.04); }
.photo-composition.is-scenario-duo .photo-camera-source { transform: scale(1.2) translateX(-4%); }
.photo-composition.is-scenario-group .photo-camera-source { transform: scale(.92); }
.photo-composition.is-scenario-tall .photo-camera-source { transform: scale(1.25) translateY(7%); }
.photo-composition.is-scenario-low .photo-camera-source { transform: scale(1.16) translateY(-8%); }
.photo-composition.is-scenario-far .photo-camera-source { transform: scale(.82); }
.photo-composition.is-scenario-night .photo-camera-source { filter: brightness(.5) contrast(1.1) saturate(.72) hue-rotate(8deg); }
.photo-composition.is-scenario-hard .photo-camera-source { filter: contrast(1.55) brightness(1.1) saturate(.82); }
.pf-art { position: absolute; inset: 0; z-index: 2; pointer-events: none; font-family: var(--ds-font-sans); }
.pf-art--local { inset: auto 0 0; height: 23%; padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; background: #071a3f; color: #fff; border-top: 8px solid var(--ds-accent); }
.pf-art--local b { font: 800 25px/1 var(--ds-font-display); text-transform: uppercase; }
.pf-art--local span { margin-top: 5px; color: var(--ds-accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.pf-art--weather { inset: 18px 18px auto auto; width: 58%; padding: 10px 14px; display: flex; align-items: center; gap: 10px; border-radius: 999px; background: rgb(7 26 63 / 91%); color: #fff; }
.pf-art--weather > span { font-size: 28px; color: var(--ds-accent); }
.pf-art--weather b, .pf-art--weather small { display: block; }
.pf-art--weather b { font-size: 14px; }
.pf-art--weather small { font-size: 9px; opacity: .75; }
.pf-art--moment { inset: auto 14px 14px 14px; min-height: 86px; padding: 13px 17px; display: flex; flex-direction: column; justify-content: center; border-left: 8px solid var(--ds-accent); background: rgb(255 255 255 / 92%); color: var(--ds-ink); }
.pf-art--moment small { color: #687680; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.pf-art--moment b { margin-top: 3px; font: 800 24px/1 var(--ds-font-display); }
.pf-art--seasonal { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px; background: linear-gradient(180deg, rgb(245 158 11 / 22%), transparent 35%, transparent 72%, rgb(216 84 111 / 58%)); color: #fff; }
.pf-art--seasonal b { padding: 8px 12px; background: var(--ds-accent); color: var(--ds-accent-ink); font: 800 18px/.9 var(--ds-font-display); text-align: center; transform: rotate(-2deg); }
.pf-art--seasonal i { width: 35px; height: 35px; border: 8px solid #fff; border-radius: 50%; opacity: .85; }
.pf-art--context { inset: auto 0 0; height: 36%; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; background: #071a3f; color: #fff; }
.pf-art--context::before { content: ''; position: absolute; left: 24px; top: -10px; width: 86px; height: 20px; background: var(--ds-accent); }
.pf-art--context small { color: var(--ds-accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.pf-art--context b { margin-top: 5px; font: 800 25px/.95 var(--ds-font-display); text-transform: uppercase; }
.pf-art--context span { margin-top: 6px; font-size: 12px; opacity: .82; }
.photo-composition--context .photo-camera-source { height: 66%; object-position: 50% 40%; }
.pf-art--signature { border: 13px solid var(--ds-accent); box-shadow: inset 0 0 0 4px #000; }
.pf-art--signature b { position: absolute; right: 17px; bottom: 17px; padding: 8px 13px; background: #000; color: #fff; font: 900 23px/1 var(--ds-font-display); }
.pf-art--signature span { position: absolute; left: 18px; top: 18px; padding: 5px 9px; background: var(--ds-accent); color: var(--ds-accent-ink); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.pf-art--legends { padding: 18px; display: flex; flex-direction: column; align-items: flex-end; color: #fff; background: linear-gradient(155deg, rgb(7 26 63 / 75%), transparent 40%, transparent 72%, rgb(7 26 63 / 90%)); border-bottom: 12px solid var(--ds-accent); }
.pf-art--legends b { font: 900 26px/.9 var(--ds-font-display); }
.pf-art--legends span { color: var(--ds-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.pf-art--legends img { position: absolute; left: 18px; bottom: 18px; width: 92px; max-height: 40px; object-fit: contain; object-position: left center; }
.pf-art--custom > img { width: 100%; height: 100%; object-fit: fill; }

/* Frame selection building blocks. */
.photo-choices { display: grid; gap: 16px; }
.photo-choices--grid { grid-template-columns: repeat(3, 1fr); }
.photo-choice { min-width: 0; padding: 0; position: relative; overflow: hidden; border: 3px solid transparent; border-radius: 16px; background: #fff; color: var(--ds-ink); text-align: left; box-shadow: 0 4px 18px rgb(0 0 0 / 9%); transition: border-color .16s ease, transform .16s ease; }
.photo-choice.is-active { border-color: var(--ds-accent); transform: translateY(-2px); }
.photo-choice__visual { display: block; position: relative; height: 230px; overflow: hidden; background: #71808a; }
.photo-choice__visual .photo-composition { height: 100%; aspect-ratio: auto; }
.photo-choice__visual em { position: absolute; top: 9px; left: 9px; z-index: 5; padding: 5px 9px; border-radius: 999px; background: var(--ds-accent); color: var(--ds-accent-ink); font-size: 10px; font-style: normal; font-weight: 800; }
.photo-choice__meta { min-height: 58px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.photo-choice__meta b { min-width: 0; font-size: 14px; line-height: 1.05; }
.photo-choice__meta small { color: #74818a; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.photo-choice__check { position: absolute; right: 8px; top: 8px; z-index: 7; width: 30px; height: 30px; display: none; place-items: center; border-radius: 50%; background: var(--ds-accent); color: var(--ds-accent-ink); font-weight: 900; box-shadow: 0 2px 8px rgb(0 0 0 / 24%); }
.photo-choice.is-active .photo-choice__check { display: grid; }

/* PV003 — a large recommended result plus a compact shelf. */
.photo-gallery-hero { height: 560px; position: relative; display: grid; grid-template-columns: 54% 46%; overflow: hidden; border-radius: 22px; background: #071a3f; color: #fff; box-shadow: var(--ds-shadow-card); }
.photo-gallery-hero > .photo-composition { height: 100%; aspect-ratio: auto; }
.photo-gallery-hero > div:last-child { padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(155deg, #0d2b58, #071a3f); }
.photo-gallery-hero > div:last-child span { color: var(--ds-accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.photo-gallery-hero > div:last-child b { margin-top: 8px; font: 800 34px/.95 var(--ds-font-display); }
.photo-choices--shelf { margin-top: 18px; grid-template-columns: repeat(4, 1fr); }
.photo-choices--shelf .photo-choice__visual { height: 150px; }

/* PV004 — contextual editorial canvas is the primary surface. */
.photo-context-layout { min-height: 650px; display: grid; grid-template-columns: 52% 48%; overflow: hidden; border-radius: 22px; background: #071a3f; box-shadow: var(--ds-shadow-card); }
.photo-context-preview { min-height: 650px; padding: 24px; display: flex; align-items: center; }
.photo-context-preview .photo-composition { box-shadow: 0 18px 50px rgb(0 0 0 / 28%); }
.photo-choices--context { padding: 22px; grid-template-columns: repeat(2, 1fr); background: #f7f8f9; }
.photo-choices--context .photo-choice__visual { height: 150px; }
.photo-choices--context .photo-choice__meta { min-height: 52px; }

/* PV005 — curated mix: horizontal lead and dense, finite catalogue. */
.photo-curated-lead { height: 440px; display: grid; grid-template-columns: 42% 58%; overflow: hidden; border-radius: 22px; background: #111; color: #fff; box-shadow: var(--ds-shadow-card); }
.photo-curated-lead > .photo-composition { height: 100%; aspect-ratio: auto; }
.photo-curated-lead > div:last-child { padding: 28px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(125deg, #111, #26343a); }
.photo-curated-lead span { color: var(--ds-accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.photo-curated-lead b { margin-top: 8px; font: 900 35px/.95 var(--ds-font-display); }
.photo-curated-lead small { margin-top: 10px; color: #b7c0c5; font-size: 13px; }
.photo-choices--curated { margin-top: 18px; grid-template-columns: repeat(4, 1fr); }
.photo-choices--curated .photo-choice__visual { height: 145px; }

/* Camera step, smart-capture and scenario QA controls. */
.photo-capture-lab .photo-lab__head { min-height: 124px; }
.photo-live { flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden; background: #26343a; }
.photo-live > .photo-composition { width: 100%; height: 100%; aspect-ratio: auto; }
.photo-live__tag { position: absolute; z-index: 7; top: 18px; left: 20px; padding: 8px 12px; border-radius: 999px; background: rgb(0 0 0 / 68%); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.photo-live__tag i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #ef4444; animation: photo-live-pulse 1.5s infinite; }
@keyframes photo-live-pulse { 50% { opacity: .35; } }
.photo-safe-zone { position: absolute; z-index: 4; left: 17%; top: 14%; width: 66%; height: 54%; border: 2px dashed rgb(255 255 255 / 72%); border-radius: 42% 42% 30% 30%; }
.photo-safe-zone span { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); padding: 3px 8px; border-radius: 999px; background: rgb(0 0 0 / 58%); color: #fff; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }
.photo-face-guides i { position: absolute; z-index: 5; top: calc(25% + (var(--face-index) % 2) * 12%); left: calc(48% + (var(--face-index) - 1.5) * 13%); width: 58px; height: 72px; border: 3px solid var(--ds-accent); border-radius: 45%; transform: translateX(-50%); }
.photo-coach { position: absolute; z-index: 8; left: 50%; bottom: 24px; transform: translateX(-50%); min-width: 240px; padding: 12px 20px; border-radius: 999px; background: rgb(255 255 255 / 94%); color: var(--ds-ink); text-align: center; font-size: 17px; font-weight: 800; box-shadow: 0 4px 24px rgb(0 0 0 / 18%); }
.photo-capture-actions { flex: 0 0 122px; padding: 12px 26px; display: grid; grid-template-columns: 1fr 1.28fr 1fr; align-items: center; gap: 16px; background: #fff; }
.photo-capture-actions > .photo-secondary { min-height: 70px; border-radius: 16px; }
.photo-capture-actions > .photo-secondary span { font-size: 14px; }
.photo-shutter { min-height: 82px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 999px; background: var(--ds-accent); color: var(--ds-accent-ink); }
.photo-shutter > span { width: 57px; height: 57px; display: grid; place-items: center; border: 4px solid currentColor; border-radius: 50%; font-size: 27px; }
.photo-shutter b { font-size: 18px; }
.photo-shutter.is-capturing > span { animation: photo-shutter .45s ease-in-out infinite alternate; }
@keyframes photo-shutter { to { transform: scale(.8); opacity: .5; } }
.photo-smart-status b, .photo-smart-status span { display: block; }
.photo-smart-status b { font-size: 14px; }
.photo-smart-status span { margin-top: 3px; color: #687680; font-size: 11px; line-height: 1.2; }
.photo-demo-controls { flex: 0 0 auto; padding: 9px 20px 12px; background: #e4e9ec; border-top: 1px solid #d4dce0; }
.photo-demo-controls > span { display: block; margin-bottom: 6px; color: #687680; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.photo-demo-controls > div { display: flex; gap: 7px; overflow-x: auto; }
.photo-scenario { flex: 0 0 auto; min-height: 40px; padding: 0 12px; border: 1px solid #c8d1d6; border-radius: 999px; background: #fff; color: var(--ds-ink); font-size: 11px; font-weight: 700; }
.photo-scenario.is-active { border-color: #071a3f; background: #071a3f; color: #fff; }

/* Result, non-destructive frame switching and hand-off. */
.photo-result-lab .photo-lab__head { min-height: 126px; }
.photo-result { flex: 1 1 auto; min-height: 0; padding: 24px 28px; display: grid; grid-template-columns: 49% 51%; gap: 24px; overflow: hidden; }
.photo-result__main { min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; border-radius: 22px; overflow: hidden; background: #25343b; box-shadow: var(--ds-shadow-card); }
.photo-result__main .photo-composition { max-height: 100%; width: auto; height: 100%; }
.photo-best { position: absolute; z-index: 8; top: 16px; right: 16px; padding: 8px 12px; border-radius: 999px; background: #3dbe7a; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .07em; }
.photo-result__side { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
.photo-result__label { color: #687680; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.photo-result__side h3 { margin: 4px 0 0; font: 800 32px/1 var(--ds-font-display); }
.photo-result__side p { margin: 5px 0 0; color: #687680; font-size: 13px; }
.photo-pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-pipeline > div { min-width: 0; padding: 8px; border-radius: 12px; background: #fff; }
.photo-pipeline > div > span { height: 118px; display: block; overflow: hidden; border-radius: 8px; }
.photo-pipeline .photo-composition { height: 100%; aspect-ratio: auto; }
.photo-pipeline b, .photo-pipeline small { display: block; }
.photo-pipeline b { margin-top: 6px; font-size: 11px; }
.photo-pipeline small { margin-top: 2px; color: #687680; font-size: 8px; }
.photo-result__actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-result__actions .photo-primary { grid-column: 1 / -1; min-height: 66px; }
.photo-result__actions .photo-secondary { min-height: 58px; padding: 0 12px; font-size: 13px; }
.photo-delivery { display: grid; grid-template-columns: 52% 48%; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--ds-shadow-card); }
.photo-delivery__result { min-height: 720px; padding: 28px; display: flex; align-items: center; background: #26343a; }
.photo-delivery__result .photo-composition { box-shadow: 0 18px 60px rgb(0 0 0 / 35%); }
.photo-delivery__side { padding: 36px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; text-align: center; }
.photo-success { align-self: center; padding: 7px 12px; border-radius: 999px; background: #def7e9; color: #176c40; font-size: 11px; font-weight: 800; }
.photo-delivery__side h3 { margin: 14px 0 0; font: 800 34px/1 var(--ds-font-display); }
.photo-delivery__side p { margin: 10px auto 16px; max-width: 280px; color: #687680; font-size: 14px; line-height: 1.35; }
.photo-delivery__side .photo-primary, .photo-delivery__side .photo-secondary { margin-top: 9px; width: 100%; }
.photo-demo-qr { width: 150px; aspect-ratio: 1; align-self: center; margin: 4px 0 12px; border: 10px solid #fff; outline: 2px solid #111; background: conic-gradient(from 90deg, #111 25%, #fff 0 50%, #111 0 75%, #fff 0) 0 0 / 24px 24px; }

@media (prefers-reduced-motion: reduce) {
  .photo-live__tag i, .photo-shutter.is-capturing > span { animation: none; }
  .photo-choice { transition: none; }
}

/* rows */
.row-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ds-border); }
.row-item__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--ds-surface-alt); }

/* keyboard (share) */
.share-input input, .share-input { width: 100%; }
.share-input input { height: 54px; border-radius: var(--ds-radius-sm); border: 1px solid var(--ds-border); padding: 0 16px; font-size: var(--ds-fs-body); }
.keyboard { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.key { min-width: 56px; height: 56px; flex: 1; border-radius: 10px; background: var(--ds-surface-alt); font-weight: var(--ds-fw-semibold); }
.key--wide { flex: 4; }

/* map */
.map-canvas { background: var(--ds-surface-alt); }
.map-fallback { position: relative; overflow: hidden; }
.map-fallback__grid { position: absolute; inset: 0; background-image:
  linear-gradient(var(--ds-border) 1px, transparent 1px), linear-gradient(90deg, var(--ds-border) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .5; }
.map-fallback__note { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: var(--ds-muted); }
.map-pin { display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--pin, #FAC200); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.map-pin--pulse::after { content: ''; position: absolute; inset: -8px; border-radius: 50%;
  background: var(--pin); opacity: .3; transform: rotate(45deg); animation: pin-pulse 1.8s ease-out infinite; }
@keyframes pin-pulse { 0% { transform: rotate(45deg) scale(.6); opacity: .5; } 100% { transform: rotate(45deg) scale(1.6); opacity: 0; } }

/* toast */
.toast { position: absolute; left: 50%; bottom: 40px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ds-ink); color: #fff; padding: 14px 26px; border-radius: var(--ds-radius-pill);
  font-weight: var(--ds-fw-semibold); z-index: var(--z-toast); transition: .25s ease; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
