/* ===========================================================================
   Na Chapada — protótipo · estilo "Cerrado + densidade G1"
   Tokens em CSS custom properties (migram ~1:1 pro globals.css @theme do Nexus)
   =========================================================================== */

:root {
  /* paleta cerrado */
  --primary: #2d5d3a;
  --primary-600: #3f7a4d;
  --accent: #e6b333;
  --signal: #a8543b;
  --sunset: #f08a3e;
  --paper-50: #faf7f2;
  --paper-100: #f1ebe1;
  --paper-200: #e3d9c8;
  --ink-600: #5c544a;
  --ink-900: #2a2724;

  /* semânticos (claro) */
  --bg: var(--paper-50);
  --surface: #ffffff;
  --surface-2: var(--paper-100);
  --border: var(--paper-200);
  --text: var(--ink-900);
  --muted: var(--ink-600);
  --brand: var(--primary);
  --shadow: 0 1px 2px rgba(42,39,36,.06), 0 8px 24px rgba(42,39,36,.06);
  --shadow-lg: 0 12px 40px rgba(42,39,36,.16);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
}

html[data-theme="dark"] {
  --bg: #14130f;
  --surface: #1d1b16;
  --surface-2: #211f19;
  --border: #2e2a22;
  --text: #f5f3ee;
  --muted: #b6ab99;
  --brand: #6fae7e;
  --paper-100: #211f19;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.kicker { font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.muted { color: var(--muted); }
.serif { font-family: var(--font-display); }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; }
.brand-word { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 23px; color: var(--brand); line-height: 1; }
.brand-sub { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 4px; margin-left: 6px; flex: 1; }
.nav a { padding: 8px 11px; border-radius: 8px; font-weight: 500; font-size: 14.5px; color: var(--text); transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--brand); }
.nav a.active { color: var(--brand); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: background .15s, transform .1s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.cond-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cond-chip b { color: var(--text); font-weight: 600; }
.cond-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: pulse 2.4s infinite; }

/* ---------- Now ticker ---------- */
.now { background: var(--signal); color: #fff; overflow: hidden; }
.now-inner { display: flex; align-items: center; height: 38px; }
.now-tag { font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 0 14px; background: rgba(0,0,0,.18); align-self: stretch; display: flex; align-items: center; flex-shrink: 0; }
.now-track-mask { overflow: hidden; flex: 1; }
.now-track { display: inline-flex; gap: 40px; white-space: nowrap; padding-left: 24px; animation: marquee 32s linear infinite; }
.now:hover .now-track { animation-play-state: paused; }
.now-track span { font-size: 13.5px; }
.now-track span::before { content: "•"; margin-right: 40px; opacity: .5; }

/* ---------- Hero / manchete ---------- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.hero .ph, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,19,15,.85) 0%, rgba(20,19,15,.35) 45%, rgba(20,19,15,0) 70%); }
.hero-body { position: relative; padding: 32px; color: #fff; max-width: 760px; }
.hero-body h1 { color: #fff; font-size: clamp(30px, 4.4vw, 54px); margin: 10px 0; }
.hero-body .lide { color: rgba(255,255,255,.9); font-size: 17px; max-width: 640px; }
.hero-meta { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.8); }

/* ---------- Layout home ---------- */
.home-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; margin-top: 28px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.sec-head h2 { font-size: 24px; }
.sec-head h2 .tick { color: var(--signal); }
.sec-head a { font-size: 13.5px; color: var(--brand); font-weight: 600; }

/* secondary block */
.sec-block { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

/* rails */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 290px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.rail > * { scroll-snap-align: start; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.card-media .ph, .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img, .card:hover .card-media .ph { transform: scale(1.06); }
.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 18.5px; }
.card-title-sans { font-family: var(--font-sans); font-weight: 600; font-size: 16px; }
.card-lide { color: var(--muted); font-size: 14px; line-height: 1.5; }
.card-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); padding-top: 8px; }
.card.big .card-media { aspect-ratio: 16/9; }
.card.big .card-body h3 { font-size: 22px; }

/* overlay card (hero-style small) */
.ocard { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.ocard .ph, .ocard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ocard:hover img, .ocard:hover .ph { transform: scale(1.05); }
.ocard .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,19,15,.82), rgba(20,19,15,0) 65%); }
.ocard .ocard-body { position: relative; padding: 18px; color: #fff; }
.ocard .ocard-body h3 { color: #fff; font-size: 20px; }

/* ---------- badges ---------- */
.badges { display: flex; gap: 7px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge.open { color: #15803d; background: color-mix(in srgb, #16a34a 14%, transparent); border-color: transparent; }
.badge.open .cond-dot { background: #16a34a; }
.badge.closed { color: #b91c1c; background: color-mix(in srgb, #dc2626 12%, transparent); border-color: transparent; }
.badge.free { color: var(--primary); background: color-mix(in srgb, var(--accent) 26%, transparent); border-color: transparent; }
.badge.new { color: #fff; background: var(--signal); border-color: transparent; }
.badge.cat { color: var(--brand); }
.stars { color: var(--accent); letter-spacing: 1px; }
.rating b { color: var(--text); }
.price b { color: var(--text); } .price .off { opacity: .3; }

/* date badge */
.datebadge { display: grid; place-items: center; width: 54px; height: 56px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); flex-shrink: 0; line-height: 1; }
.datebadge .d { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--brand); }
.datebadge .m { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--signal); margin-top: 2px; }

/* ---------- aside ---------- */
.aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.panel > h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); font-family: var(--font-sans); font-weight: 700; margin-bottom: 12px; }
.mostread { display: flex; flex-direction: column; }
.mostread li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); align-items: flex-start; list-style: none; }
.mostread li:first-child { border-top: 0; padding-top: 0; }
.mostread .num { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--accent); line-height: .9; width: 26px; flex-shrink: 0; }
.mostread .t { font-size: 14px; font-weight: 500; line-height: 1.35; }
.mostread li:hover .t { color: var(--brand); }
.util-list { list-style: none; padding: 0; margin: 0; }
.util-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.util-list li:first-child { border-top: 0; }
.util-list .tel { font-weight: 600; color: var(--brand); white-space: nowrap; }

/* radio mini */
.radio-mini { display: flex; align-items: center; gap: 12px; }
.radio-cover { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--signal) 60%, var(--sunset)); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.radio-play { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; display: grid; place-items: center; flex-shrink: 0; transition: transform .12s; }
.radio-play:hover { transform: scale(1.08); }
.radio-live { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: #dc2626; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }

/* newsletter */
.news-box p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.news-box form { display: flex; gap: 8px; }
.input { flex: 1; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; font-size: 14px; }
.input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.btn { padding: 9px 16px; border-radius: 9px; border: 0; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; transition: filter .15s, transform .1s; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.accent { background: var(--accent); color: var(--ink-900); }
.btn.block { width: 100%; justify-content: center; display: flex; }

/* ---------- section pages (listagem) ---------- */
.page-head { padding: 30px 0 8px; }
.page-head h1 { font-size: clamp(28px,3.6vw,42px); }
.page-head .lide { color: var(--muted); font-size: 17px; max-width: 680px; margin-top: 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; color: var(--text); transition: all .15s; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.toggle-view { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.toggle-view button { padding: 7px 14px; background: var(--surface); border: 0; font-size: 13px; color: var(--muted); }
.toggle-view button.on { background: var(--brand); color: #fff; }

/* list mode */
.row-list { display: flex; flex-direction: column; gap: 2px; }
.lrow { display: flex; gap: 16px; padding: 14px; border-radius: var(--radius); align-items: center; transition: background .15s; }
.lrow:hover { background: var(--surface-2); }
.lrow .thumb { width: 120px; height: 78px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.lrow .thumb img, .lrow .thumb .ph { width: 100%; height: 100%; object-fit: cover; }

/* ---------- article ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 8px 0 40px; }
.article .lide { font-size: 20px; color: var(--muted); line-height: 1.5; margin: 14px 0; font-family: var(--font-display); font-style: italic; }
.article-meta { display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.article-hero { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin: 18px 0; box-shadow: var(--shadow); }
.article-hero img, .article-hero .ph { width: 100%; height: 100%; object-fit: cover; }
.article p { font-size: 18px; line-height: 1.75; margin: 0 0 20px; }
.article h1 { font-size: clamp(30px,4vw,46px); }
.figcredit { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: right; }

/* ---------- detail (local/evento) ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; margin-top: 22px; }
.crumb { font-size: 13px; color: var(--muted); padding: 18px 0 6px; }
.crumb a:hover { color: var(--brand); }
.detail-hero { position: relative; aspect-ratio: 16/8; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-hero img, .detail-hero .ph { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: clamp(28px,3.8vw,44px); margin: 14px 0 6px; }
.infoline { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 12px 0; font-size: 14px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 14px 0; }
.gallery .g { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.gallery .g img, .gallery .g .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery .g:hover img, .gallery .g:hover .ph { transform: scale(1.07); }
.sec-block-t { margin: 26px 0 10px; font-size: 22px; }
.amen { display: flex; gap: 8px; flex-wrap: wrap; }
.amen .a { display: flex; align-items: center; gap: 7px; padding: 8px 12px; background: var(--surface-2); border-radius: 10px; font-size: 13.5px; }
.minimap { aspect-ratio: 16/8; border-radius: var(--radius); background:
   radial-gradient(circle at 30% 40%, color-mix(in srgb,var(--primary) 22%, transparent), transparent 40%),
   radial-gradient(circle at 70% 60%, color-mix(in srgb,var(--accent) 22%, transparent), transparent 40%),
   repeating-linear-gradient(0deg, var(--border) 0 1px, transparent 1px 32px),
   repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 32px), var(--surface-2);
   position: relative; border: 1px solid var(--border); }
.minimap .pin { position: absolute; left: 48%; top: 44%; transform: translate(-50%,-100%); color: var(--signal); }
.review { padding: 14px 0; border-top: 1px solid var(--border); }
.review .who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--sunset)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* infocard sticky */
.infocard { position: sticky; top: 84px; }
.infocard .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.infocard .row:first-child { border-top: 0; }
.infocard .row b { font-weight: 600; }

/* ---------- agenda ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal .dow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; padding: 4px; }
.cal .cell { min-height: 92px; border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: var(--surface); font-size: 12px; }
.cal .cell .dn { color: var(--muted); font-weight: 600; }
.cal .cell.out { opacity: .4; }
.cal .ev { margin-top: 4px; padding: 3px 6px; border-radius: 6px; font-size: 11px; color: #fff; font-weight: 600; background: var(--primary); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.music { background: var(--signal); } .cal .ev.feira { background: var(--accent); color: var(--ink-900);} .cal .ev.cult { background: var(--primary-600); }

/* ---------- map explore ---------- */
.map-grid { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 560px; box-shadow: var(--shadow); }
.map-side { border-right: 1px solid var(--border); overflow-y: auto; background: var(--surface); }
.map-side .mrow { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.map-side .mrow:hover, .map-side .mrow.hot { background: var(--surface-2); }
.map-side .mrow .mt { font-weight: 600; font-size: 14px; }
.map-canvas { position: relative; background:
   radial-gradient(circle at 25% 30%, color-mix(in srgb,var(--primary) 16%, transparent), transparent 45%),
   radial-gradient(circle at 75% 70%, color-mix(in srgb,var(--sunset) 14%, transparent), transparent 45%),
   repeating-linear-gradient(0deg, var(--border) 0 1px, transparent 1px 40px),
   repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 40px), var(--surface-2); }
.map-pin { position: absolute; transform: translate(-50%,-100%); display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.map-pin:hover, .map-pin.hot { transform: translate(-50%,-100%) scale(1.25); z-index: 2; }
.map-pin .dot { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--signal); border: 2px solid #fff; box-shadow: var(--shadow); }

/* ---------- planeje ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.timeline { border-left: 2px solid var(--border); margin-left: 8px; padding-left: 18px; }
.timeline .step { position: relative; padding: 8px 0 16px; }
.timeline .step::before { content: ""; position: absolute; left: -25px; top: 12px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }

/* ---------- vagas ---------- */
.job { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, transform .12s; }
.job:hover { border-color: var(--brand); transform: translateY(-2px); }
.job .ji { width: 46px; height: 46px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; color: var(--brand); flex-shrink: 0; }
.job .jt { font-weight: 600; font-size: 16px; }

/* ---------- telefones ---------- */
.tel-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.tel-cat h4 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; color: var(--brand); }

/* ---------- radio page ---------- */
.radio-hero { display: flex; gap: 22px; align-items: center; padding: 24px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--signal) 60%, var(--sunset)); color: #fff; box-shadow: var(--shadow); }
.radio-hero .bigcover { width: 130px; height: 130px; border-radius: 16px; background: rgba(255,255,255,.15); display: grid; place-items: center; flex-shrink: 0; }
.radio-hero .play-lg { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--primary); border: 0; display: grid; place-items: center; transition: transform .12s; }
.radio-hero .play-lg:hover { transform: scale(1.06); }
.prog-list { margin-top: 24px; }
.prog-row { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.prog-row .ph-hora { font-family: var(--font-display); font-weight: 700; color: var(--signal); width: 50px; flex-shrink: 0; }

/* ---------- concierge ---------- */
.concierge-fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 999px; background: var(--brand); color: #fff; border: 0; font-weight: 600; box-shadow: var(--shadow-lg); transition: transform .15s; }
.concierge-fab:hover { transform: translateY(-2px) scale(1.02); }
.concierge-panel { position: fixed; right: 22px; bottom: 22px; z-index: 51; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 60px)); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .22s cubic-bezier(.2,.8,.2,1); }
.concierge-head { background: linear-gradient(135deg, var(--primary), var(--signal)); color: #fff; padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.concierge-head .t { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.concierge-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; animation: msgin .3s cubic-bezier(.2,.8,.2,1); }
.msg.bot { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.sug { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.sug:hover { border-color: var(--brand); }
.sug .sg { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.sug .sg img, .sug .sg .ph { width: 100%; height: 100%; object-fit: cover; }
.concierge-foot { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: var(--surface); }
.typing { display: flex; gap: 4px; align-items: center; padding: 12px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay: .2s;} .typing i:nth-child(3){ animation-delay: .4s;}

/* ---------- search overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(20,19,15,.55); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding-top: 90px; animation: fade .15s; }
.search-box { width: min(640px, calc(100vw - 32px)); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box input { width: 100%; padding: 18px 20px; border: 0; font-size: 18px; background: var(--surface); color: var(--text); font-family: inherit; }
.search-box input:focus { outline: 0; }
.search-res { max-height: 50vh; overflow-y: auto; border-top: 1px solid var(--border); }
.search-res .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--signal); font-weight: 700; padding: 12px 18px 4px; }
.search-res a { display: flex; gap: 10px; padding: 9px 18px; align-items: center; }
.search-res a:hover { background: var(--surface-2); }

/* ---------- footer ---------- */
.footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.footer a { display: block; padding: 4px 0; font-size: 14px; color: var(--text); }
.footer a:hover { color: var(--brand); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.seal { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--brand); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.page-enter { animation: pagein .35s ease; }

/* ---------- placeholder photo (fallback) ---------- */
.ph { background: var(--surface-2); position: relative; }
.ph[data-grad="1"]{ background: linear-gradient(135deg, #2d5d3a, #4d7a3a 50%, #e6b333); }
.ph[data-grad="2"]{ background: linear-gradient(135deg, #1f4d6b, #2d5d3a 55%, #7fae5a); }
.ph[data-grad="3"]{ background: linear-gradient(135deg, #a8543b, #f08a3e 60%, #e6b333); }
.ph[data-grad="4"]{ background: linear-gradient(135deg, #2a2438, #6d4d7a 55%, #e6b333); }
.ph[data-grad="0"]{ background: linear-gradient(135deg, #3f7a4d, #2d5d3a); }
.ph-label { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.92); font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 18px; text-align: center; padding: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.3); }

/* ---------- keyframes ---------- */
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(22,163,74,.5);} 70%{ box-shadow: 0 0 0 7px rgba(22,163,74,0);} 100%{ box-shadow: 0 0 0 0 rgba(22,163,74,0);} }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96);} to { opacity: 1; transform: none;} }
@keyframes msgin { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }
@keyframes fade { from { opacity: 0;} to { opacity: 1;} }
@keyframes pagein { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }
@keyframes blink { 0%,100%{ opacity: .3;} 50%{ opacity: 1;} }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .home-grid, .detail-grid { grid-template-columns: 1fr; }
  .aside, .infocard { position: static; }
  .map-grid { grid-template-columns: 1fr; height: auto; }
  .map-side { max-height: 240px; }
  .map-canvas { height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .cond-chip { display: none; }
  .grid-cards, .plan-grid, .tel-grid, .sec-block { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .cal { font-size: 10px; } .cal .cell { min-height: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .radio-hero { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .12s !important; scroll-behavior: auto; }
  .now-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
