/* Public site. Layout language from the reference: grey canvas, big rounded white/soft panels, red where the reference used charcoal. */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.page { position: relative; overflow-x: clip; padding: 12px 0 96px; }
@media (min-width: 1024px) { .page { padding-bottom: 48px; } }
.watermark { position: absolute; top: 140px; font: 800 220px/0.8 var(--font-head); color: transparent; -webkit-text-stroke: 2px rgba(15,23,42,.05); writing-mode: vertical-rl; pointer-events: none; user-select: none; z-index: 0; letter-spacing: .02em; }
.watermark.l { left: -40px; transform: rotate(180deg); }
.watermark.r { right: -40px; top: 900px; }
@media (max-width: 1023px) { .watermark { display: none; } }
.page > *:not(.watermark) { position: relative; z-index: 1; }

.panel { background: var(--bg); border-radius: var(--radius-xl); padding: 24px 20px; }
.panel.soft { background: var(--panel-soft); }
@media (min-width: 768px) { .panel { padding: 48px; } }
@media (min-width: 1280px) { .panel { padding: 56px 64px; } }
.stack > * + * { margin-top: 20px; }
.section { margin-top: 20px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; max-width: 18ch; margin: 0; }
.section-head .cap { color: var(--muted); font-size: 14px; max-width: 34ch; text-align: right; }
.center-title { text-align: center; font-size: clamp(26px, 3.2vw, 38px); font-weight: 500; margin: 8px 0 32px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font: 600 13px/1.4 var(--font-body); color: var(--red); letter-spacing: .04em; text-transform: uppercase; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(243,244,246,.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand b { font: 700 16px/1.1 var(--font-head); display: block; }
.brand small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: var(--radius-pill); text-decoration: none; font: 500 15px/1 var(--font-body); color: var(--text); }
.nav a:hover, .nav a[aria-current="page"] { background: #fff; color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-btn { font: 600 14px/1 var(--font-ta); padding: 10px 12px; border-radius: var(--radius-pill); text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--border); }
.menu-btn { display: inline-grid; }
@media (min-width: 1100px) { .nav { display: flex; } .top-actions { margin-left: 8px; } .menu-btn { display: none; } }
@media (max-width: 640px) { .top-actions .btn-primary { display: none; } .brand small { display: none; } }
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(15,23,42,.4); }
.drawer nav { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.drawer nav a { padding: 14px 12px; border-radius: var(--radius); text-decoration: none; font-weight: 500; color: var(--ink); }
.drawer nav a:hover { background: var(--surface-2); }

/* Hero split panel */
.hero { display: grid; gap: 16px; }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 20px; } }
.hero-left { background: linear-gradient(160deg, #F1F2F5 0%, #E9EBEF 100%); border-radius: var(--radius-xl); padding: 28px 20px; display: flex; flex-direction: column; }
@media (min-width: 768px) { .hero-left { padding: 48px 52px; } }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 500; max-width: 16ch; margin-top: 8px; }
html[lang="ta"] .hero h1 { font-size: clamp(26px, 3.4vw, 40px); }
.hero .sub { color: var(--muted); max-width: 44ch; font-size: 15px; }
.hero-search { display: grid; gap: 8px; margin: 22px 0 8px; background: #fff; border-radius: 24px; padding: 8px; box-shadow: var(--shadow); }
.hero-search select { min-width: 0; border: 0; min-height: 44px; padding: 8px 12px; font: 500 15px/1.2 var(--font-body); color: var(--ink); background: transparent; border-radius: 16px; }
.hero-search select:focus { background: var(--surface-2); }
@media (min-width: 640px) { .hero-search { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; border-radius: var(--radius-pill); align-items: center; } .hero-search select + select { border-left: 1px solid var(--border); border-radius: 0; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; padding-top: 28px; }
.stat { background: #fff; border-radius: 20px; padding: 14px; }
.stat .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 12px; }
.stat b { display: block; font: 500 clamp(24px, 3vw, 34px)/1 var(--font-head); color: var(--ink); }
.stat b sup { font-size: .5em; color: var(--muted); margin-left: 2px; }
.stat span { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 6px; }
.hero-right { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 340px; background: #DDE1E6; }
.hero-right img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-pills { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pill-float { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: rgba(255,255,255,.94); border-radius: var(--radius-pill); text-decoration: none; color: var(--ink); font: 600 14px/1 var(--font-body); box-shadow: var(--shadow); }
.pill-float:hover { background: #fff; color: var(--red); }
.hero-tag { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.94); border-radius: 18px; padding: 12px 16px; max-width: 280px; font-size: 13px; }
.hero-tag b { display: block; color: var(--ink); font-size: 15px; }

/* Why block: illustration + stacked red cards */
.why { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .why { grid-template-columns: 1fr 1fr; gap: 56px; } }
.why h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 500; max-width: 16ch; }
.why .art { margin-top: 20px; color: #B9C0CA; }
.red-cards { display: grid; gap: 12px; }
.red-card { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 22px; background: var(--red-deep); color: #fff; }
.red-card .thumb { width: 76px; height: 76px; border-radius: 16px; background: #fff; color: var(--red); display: grid; place-items: center; }
.red-card b { display: block; font: 600 17px/1.3 var(--font-head); margin-bottom: 4px; }
.red-card p { margin: 0; font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.45; }

/* Catalogue carousel */
.cards-row { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.cards-row::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .cards-row { grid-auto-columns: 46%; } }
@media (min-width: 1024px) { .cards-row { grid-auto-columns: calc(25% - 9px); } }
.tall-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; scroll-snap-align: start; text-decoration: none; color: #fff; background: #CBD2DA; }
.tall-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tall-card:hover img { transform: scale(1.04); }
.tall-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(15,23,42,.85), rgba(15,23,42,0)); }
.tall-card .txt { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.tall-card .txt b { display: block; font: 600 16px/1.3 var(--font-head); }
.tall-card .txt span { font-size: 13px; color: rgba(255,255,255,.85); }
.tall-card .badges { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.row-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.row-foot .arrows { display: flex; gap: 8px; }

/* Payment / options cards (grey / red alternating) */
.opt-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .opt-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .opt-grid { grid-template-columns: repeat(4, 1fr); } }
.opt { position: relative; display: flex; flex-direction: column; min-height: 210px; padding: 22px 20px 64px; border-radius: 22px; background: var(--panel-soft); text-decoration: none; color: var(--text); }
.opt b { font: 600 17px/1.3 var(--font-head); color: var(--ink); margin-bottom: 12px; }
.opt p { font-size: 14px; line-height: 1.5; margin: 0; }
.opt .go { position: absolute; right: 16px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.opt.red { background: var(--red-deep); color: rgba(255,255,255,.85); }
.opt.red b { color: #fff; }
.opt.red .go { background: #fff; color: var(--red); }

/* 3 steps with bracket numbers */
.steps { display: grid; gap: 28px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.step-head svg { color: #C8CDD5; }
.step-head b { font: 600 17px/1.3 var(--font-head); color: var(--ink); }
.step p { font-size: 14px; color: var(--muted); }

/* Area tiles */
.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .area-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .area-grid { grid-template-columns: repeat(6, 1fr); } }
.area-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--ink); }
.area-tile:hover { border-color: var(--red); }
.area-tile b { font: 600 15px/1.3 var(--font-head); }
.area-tile span { font-size: 12px; color: var(--muted); }
.area-tile.east { border-left: 3px solid var(--red); }

/* Listing cards (search grid) */
.lgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .lgrid.three { grid-template-columns: repeat(3, 1fr); } }
.lcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .2s, border-color .2s; }
.lcard:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.lcard .ph { position: relative; aspect-ratio: 16 / 10; background: #E5E8EC; }
.lcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.lcard .ph .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.lcard .ph .code { position: absolute; right: 10px; bottom: 10px; background: rgba(15,23,42,.7); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: var(--radius-pill); }
.lcard .bd { padding: 14px 16px 16px; display: grid; gap: 6px; }
.lcard .pr { font: 700 20px/1.2 var(--font-head); color: var(--red); }
.lcard .pr small { font: 500 13px/1 var(--font-body); color: var(--muted); margin-left: 6px; }
.lcard h3 { font-size: 16px; font-weight: 600; margin: 0; color: var(--ink); line-height: 1.35; }
.lcard .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.lcard .meta span { display: inline-flex; align-items: center; gap: 5px; }
.lcard.sold { opacity: .78; }
.lcard.sold .pr { color: var(--muted); }

/* Search: filters + list/map split */
.search-layout { display: grid; gap: 16px; }
@media (min-width: 1024px) { .search-layout { grid-template-columns: 300px 1fr; align-items: start; } .search-layout.with-map { grid-template-columns: 300px 1fr 1fr; } }
.filters { background: #fff; border-radius: 24px; padding: 18px; }
@media (min-width: 1024px) { .filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; } }
.filters h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.filters details { border-top: 1px solid var(--border); padding: 12px 0; }
.filters summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.filters summary::-webkit-details-marker { display: none; }
.filters .chips { margin-top: 10px; }
.filters .chip span { min-height: 32px; font-size: 13px; padding: 4px 12px; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.results-bar h1 { font-size: clamp(20px, 2.4vw, 28px); margin: 0; font-weight: 600; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px; }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-pill); border: 0; background: none; text-decoration: none; color: var(--text); font: 500 14px/1 var(--font-body); cursor: pointer; }
.seg .on { background: var(--red); color: #fff; }
.map-col { position: sticky; top: 84px; height: calc(100vh - 100px); border-radius: 24px; overflow: hidden; background: #E5E8EC; }
@media (max-width: 1023px) { .map-col { position: relative; top: 0; height: 60vh; } }
.filter-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filter-toggle { display: none; } }
@media (max-width: 1023px) { .filters { display: none; } .filters.open { display: block; } }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager .on { background: var(--red); color: #fff; border-color: var(--red); }
.empty { text-align: center; padding: 48px 20px; background: #fff; border-radius: 24px; }
.empty svg { margin: 0 auto 12px; color: #C8CDD5; }

/* Listing detail */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.gallery { display: grid; gap: 8px; border-radius: var(--radius-xl); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; background: #E5E8EC; }
@media (min-width: 768px) { .gallery.multi { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: 460px; } .gallery.multi a:first-child { grid-row: 1 / 3; } }
.gallery a { display: block; position: relative; }
.gallery .more { position: absolute; right: 12px; bottom: 12px; }
.gallery a { overflow: hidden; background: #E5E8EC; }
.gallery a.fit::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover no-repeat; filter: blur(22px) brightness(.8); }
.gallery a.fit img { position: relative; object-fit: contain; background: none; }
.gallery:not(.multi) a.fit { height: min(560px, 120vw); }
.gallery:not(.multi) a.fit img { max-height: none; }
.detail { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 1024px) { .detail { grid-template-columns: 1fr 380px; align-items: start; } }
.detail h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
.price-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 6px 0 16px; }
.price-box .big { font: 700 clamp(28px, 3.6vw, 38px)/1 var(--font-head); color: var(--red); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { background: #fff; padding: 14px 16px; }
.facts dt { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.facts dd { margin: 4px 0 0; font: 600 15px/1.3 var(--font-head); color: var(--ink); }
.doclist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.doclist li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: var(--surface-2); border-radius: 12px; font-size: 14px; }
.doclist li.ok svg { color: var(--success); }
.doclist li.no { color: var(--muted); }
.doclist li.no svg { color: #C8CDD5; }
.side-card { background: #fff; border-radius: 24px; padding: 22px; border: 1px solid var(--border); }
@media (min-width: 1024px) { .side-card.sticky { position: sticky; top: 84px; } }
.agent { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.agent img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.agent b { display: block; color: var(--ink); }
.map-box { height: 340px; border-radius: 20px; overflow: hidden; background: #E5E8EC; }
.gmap { width: 100%; height: 300px; border: 0; border-radius: 20px; margin-top: 12px; background: #E5E8EC; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 1.6em; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--surface-2); }
.answer { border-left: 4px solid var(--red); background: var(--red-soft); padding: 14px 18px; border-radius: 0 14px 14px 0; color: var(--ink); }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font: 600 16px/1.4 var(--font-head); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 10px 0 0; }

/* Forms page */
.form-shell { display: grid; gap: 20px; }
@media (min-width: 1024px) { .form-shell { grid-template-columns: 1.1fr .9fr; } }
.stepper { display: flex; gap: 8px; margin-bottom: 20px; }
.stepper span { flex: 1; height: 6px; border-radius: 6px; background: var(--border); }
.stepper span.on { background: var(--red); }
.fstep[hidden] { display: none; }
.pin-map { height: 280px; border-radius: 16px; overflow: hidden; background: #E5E8EC; }
.tool-out { background: var(--surface-2); border-radius: 18px; padding: 18px; display: grid; gap: 8px; }
.tool-out .line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.tool-out .line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tool-out .total { border-top: 1px solid var(--border); padding-top: 10px; font-size: 17px; }
.tool-out .total b { color: var(--red); }

/* Layout plot grid */
.plot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.plot { padding: 10px 6px; text-align: center; border-radius: 12px; font-size: 13px; background: #fff; border: 2px solid var(--red); color: var(--ink); }
.plot b { display: block; font-size: 15px; }
.plot.token { background: #FEF3C7; border-color: #F59E0B; }
.plot.sold { background: #E5E7EB; border-color: #CBD5E1; color: #64748B; }
.plot.hold { background: #F1F5F9; border-color: #94A3B8; }

/* Footer */
.footer { background: #fff; border-radius: var(--radius-xl) var(--radius-xl) 0 0; margin-top: 20px; padding: 40px 0 24px; }
.footer .cols { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h3 { font-size: 15px; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer a { text-decoration: none; color: var(--text); }
.footer a:hover { color: var(--red); }
.footer .legal { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.nap { font-size: 14px; display: grid; gap: 6px; }
.nap div { display: flex; gap: 8px; align-items: flex-start; }

/* Sticky mobile CTA */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(15,23,42,.06); }
.mbar .btn { min-height: 46px; padding: 8px 10px; font-size: 14px; }
@media (min-width: 1024px) { .mbar { display: none; } }

/* Chatbot */
.chat-fab { position: fixed; right: 16px; bottom: 84px; z-index: 61; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); cursor: pointer; }
@media (min-width: 1024px) { .chat-fab { bottom: 24px; } }
.chat-box { position: fixed; right: 16px; bottom: 150px; z-index: 62; width: min(370px, calc(100vw - 32px)); max-height: min(560px, 70vh); background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--border); }
@media (min-width: 1024px) { .chat-box { bottom: 92px; } }
.chat-box.open { display: flex; }
.chat-head { padding: 14px 16px; background: var(--red-deep); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.chat-head b { font-family: var(--font-head); }
.chat-head button { background: none; border: 0; color: #fff; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.msg { max-width: 86%; padding: 10px 12px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.msg.bot { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--red); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-opts { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--border); }
.chat-opts button { border: 1px solid var(--border-strong); background: #fff; border-radius: var(--radius-pill); padding: 8px 12px; font: 500 13px/1 var(--font-body); cursor: pointer; color: var(--ink); }
.chat-opts button:hover { border-color: var(--red); color: var(--red); }
.chat-form { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; min-height: 40px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 6px 14px; font-size: 14px; }
.msg a { color: inherit; font-weight: 600; }

.side-card h2, .side-card h3 { display: flex; align-items: center; gap: 8px; }
.side-card details > summary { display: flex; align-items: center; gap: 8px; list-style: none; }
.side-card details > summary::-webkit-details-marker { display: none; }
.gallery:not(.multi) img { max-height: 480px; }
