/* Propertixx — one stylesheet for site, dashboard and public pages. Mobile first. */
:root {
  --brand: #0f766e; --brand-d: #115e59; --accent: #f59e0b;
  --ink: #0f172a; --ink2: #475569; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; --card: #fff;
  --ok: #16a34a; --warn: #d97706; --bad: #dc2626; --wa: #1fa855;
  --r: 12px; --sh: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Telugu", "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: .2em 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 .6em; }
h3 { font-size: 1rem; margin: 1em 0 .4em; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .tiny { font-size: .75rem; } .center { text-align: center; } .block { display: block; }
.pre { white-space: pre-line; } .hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.hide-sm { display: none; } @media (min-width: 720px) { .hide-sm { display: initial; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; border-radius: 10px; background: var(--brand); color: #fff;
  padding: .62em 1.1em; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; min-height: 42px; white-space: nowrap; }
.btn:hover { filter: brightness(.95); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 34px; padding: .35em .8em; font-size: .875rem; }
.btn-lg { min-height: 50px; padding: .75em 1.4em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-outline { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-wa { background: var(--wa); color: #fff; }
.linkish { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }
.danger { color: var(--bad); }

/* Forms */
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .85em; color: var(--ink2); }
.form input:not([type=checkbox]):not([type=radio]):not([type=color]), .form select, .form textarea, .filters input, .filters select, .copy-row input {
  display: block; width: 100%; margin-top: .3em; font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1px solid #cbd5e1; border-radius: 10px; padding: .6em .75em; min-height: 44px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.form .check, label.check { display: flex; gap: .55em; align-items: flex-start; font-weight: 400; color: var(--ink); }
.check input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.row2, .row3, .row4 { display: grid; gap: 0 .9em; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: repeat(3, 1fr); } .row4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) { .row3, .row4 { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; margin-top: .4em; }
.prefix-input { display: flex; align-items: stretch; margin-top: .3em; }
.prefix-input span { display: flex; align-items: center; padding: 0 .6em; background: #f1f5f9; border: 1px solid #cbd5e1; border-right: 0; border-radius: 10px 0 0 10px; color: var(--muted); font-weight: 400; font-size: .9rem; white-space: nowrap; }
.prefix-input input { margin-top: 0 !important; border-radius: 0 10px 10px 0 !important; }
.seg { display: flex; flex-wrap: wrap; gap: .4em; margin-bottom: 1em; }
.seg label { margin: 0 !important; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: .45em .9em; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink2); }
.seg input:checked + span { background: var(--brand); color: #fff; box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.flash { padding: .75em 1em; border-radius: 10px; margin-bottom: 1em; }
.flash.ok { background: #dcfce7; color: #14532d; } .flash.err, .err { background: #fee2e2; color: #7f1d1d; padding: .6em .8em; border-radius: 10px; margin-bottom: .8em; }

/* Cards & lists */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 1.1em 1.2em; margin-bottom: 1em; }
.card h2 small { font-weight: 400; } .card h2 a { float: right; font-weight: 400; }
.hl-card { box-shadow: inset 0 0 0 2px var(--brand), var(--sh); }
.empty { text-align: center; padding: 2em 1em; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15em .55em; border-radius: 99px; background: #f1f5f9; color: var(--ink2); white-space: nowrap; }
.tag-hot { background: #ffedd5; color: #9a3412; }
.st-new { background: #dbeafe; color: #1e3a8a; } .st-contacted { background: #e0e7ff; color: #3730a3; } .st-site_visit { background: #fef3c7; color: #92400e; }
.st-negotiation { background: #fae8ff; color: #86198f; } .st-won { background: #dcfce7; color: #14532d; } .st-lost { background: #fee2e2; color: #7f1d1d; }
select.st-available { color: var(--ok); } select.st-booked { color: var(--warn); } select.st-sold { color: var(--bad); } select.st-draft { color: var(--muted); }
.chips { display: flex; gap: .4em; overflow-x: auto; padding: .1em 0 .6em; scrollbar-width: none; }
.chips a, .chips span { flex: none; padding: .35em .85em; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); font-size: .875rem; font-weight: 600; text-decoration: none; }
.chips a.on { background: var(--ink); color: #fff; box-shadow: none; }
.chips b { font-weight: 700; opacity: .7; margin-left: .2em; }
.chips.static { flex-wrap: wrap; }
.row-link { display: flex; gap: .6em; align-items: center; padding: .55em 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.row-link:first-of-type { border-top: 0; } .row-link .muted { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.table-wrap { overflow-x: auto; } .tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: .55em .6em; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.lock-note { background: #fff7ed; color: #7c2d12; border-radius: 10px; padding: .8em 1em; margin: .6em 0; }
.lock-note .btn { margin-left: .5em; }
.grid2 { display: grid; gap: 0 1em; } @media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: .8em; flex-wrap: wrap; margin-bottom: .4em; }
.head-row h1 { margin: 0; }
.tabs { display: flex; gap: 1.2em; border-bottom: 1px solid var(--line); margin: .5em 0 1em; }
.tabs a { padding: .5em 0; color: var(--muted); font-weight: 600; } .tabs a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.next-row { margin: 1.4em 0; text-align: right; }
.danger-zone { margin: 1.5em 0; text-align: center; }
.inline { display: inline; } .inline select { min-height: 34px; padding: .2em .4em; border-radius: 8px; border: 1px solid var(--line); font: inherit; font-size: .875rem; font-weight: 600; }

/* Marketing site */
.site-top { display: flex; justify-content: space-between; align-items: center; padding: .8em 1.2em; max-width: 1120px; margin: 0 auto; }
.site-top nav { display: flex; gap: 1em; align-items: center; }
.brand { display: flex; gap: .45em; align-items: center; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none !important; }
.site main { max-width: 1120px; margin: 0 auto; padding: 0 1.2em; }
.site-foot { max-width: 1120px; margin: 3em auto 0; padding: 1.5em 1.2em 2.5em; color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .6em 2em; justify-content: space-between; border-top: 1px solid var(--line); }
.hero { display: grid; gap: 2em; align-items: center; padding: 2em 0 2.5em; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.25fr 1fr; padding: 3.5em 0; } }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.hl { color: var(--brand); } .lead { font-size: 1.1rem; color: var(--ink2); max-width: 36em; }
.pill { display: inline-block; background: #ccfbf1; color: #134e4a; font-weight: 700; font-size: .8rem; padding: .3em .8em; border-radius: 99px; }
.cta-row { display: flex; gap: .7em; flex-wrap: wrap; margin: 1.3em 0 .6em; }
.phone { width: 290px; margin: 0 auto; border-radius: 32px; background: #e7ddd3; border: 10px solid #111827; overflow: hidden; box-shadow: 0 20px 50px rgba(15,23,42,.25); }
.ph-bar { background: #075e54; color: #fff; padding: .7em 1em; font-weight: 700; }
.ph-chat { padding: 1em .8em; min-height: 260px; display: flex; flex-direction: column; gap: .7em; }
.bubble { background: #dcf8c6; border-radius: 10px; padding: .6em .75em; font-size: .85rem; align-self: flex-end; max-width: 88%; }
.bubble.in { background: #fff; align-self: flex-start; }
.ph-notif { background: #fff; margin: .6em; padding: .7em .8em; border-radius: 14px; font-size: .85rem; box-shadow: 0 4px 14px rgba(0,0,0,.15); border-left: 4px solid var(--brand); }
.steps { display: grid; gap: 1em; padding: 1em 0 2em; } @media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps > div { background: #fff; border-radius: var(--r); padding: 1.2em; box-shadow: var(--sh); }
.steps b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; }
.features { padding: 2em 0; } .features h2, .pricing h2, .faq h2 { font-size: 1.6rem; text-align: center; }
.grid3 { display: grid; gap: 1em; } @media (min-width: 700px) { .grid3 { grid-template-columns: 1fr 1fr; } } @media (min-width: 1000px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.feat { background: #fff; padding: 1.2em; border-radius: var(--r); box-shadow: var(--sh); } .feat h3 { margin-top: 0; } .feat p { color: var(--ink2); margin: 0; }
.pricing { padding: 2em 0; text-align: center; }
.plans { display: grid; gap: 1em; max-width: 760px; margin: 1.2em auto; text-align: left; } @media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: #fff; border-radius: 16px; padding: 1.4em; box-shadow: var(--sh); position: relative; display: flex; flex-direction: column; }
.plan-hl { box-shadow: inset 0 0 0 2px var(--brand), var(--sh); }
.plan .pill { position: absolute; top: -.8em; right: 1em; }
.plan h3 { margin: 0; font-size: 1.3rem; } .plan .price { font-size: 2rem; font-weight: 800; margin: .3em 0 0; } .plan .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 1.1em; margin: 1em 0 1.3em; flex: 1; } .plan li { margin: .3em 0; }
.cycle { justify-content: center; }
.faq { max-width: 760px; margin: 0 auto; padding: 2em 0; }
.faq details { background: #fff; border-radius: 10px; padding: .9em 1.1em; margin-bottom: .6em; box-shadow: var(--sh); } .faq summary { font-weight: 700; cursor: pointer; }
.final-cta { text-align: center; padding: 2.5em 1em; background: var(--brand); color: #fff; border-radius: 20px; margin: 2em 0; }
.final-cta .btn { background: #fff; color: var(--brand); }
.narrow { max-width: 720px; margin: 2em auto; } .prose p { color: var(--ink2); }
.auth-card { max-width: 460px; margin: 1.5em auto 3em; background: #fff; border-radius: 16px; padding: 1.6em; box-shadow: var(--sh); }

/* Dashboard */
.app-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .8em; padding: .55em 1em; background: #fff; border-bottom: 1px solid var(--line); }
.biz-name { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.banner { background: #ecfeff; color: #164e63; padding: .55em 1em; font-size: .9rem; text-align: center; }
.banner-amber { background: #fef3c7; color: #78350f; } .banner-red { background: #fee2e2; color: #7f1d1d; } .owner-bar { background: #eef2ff; color: #3730a3; }
.app-shell { display: flex; max-width: 1240px; margin: 0 auto; }
.content { flex: 1; min-width: 0; padding: 1em 1em 6em; } .content.wide { max-width: 1400px; margin: 0 auto; }
.side { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid var(--line); padding: .25em 0 calc(.25em + env(safe-area-inset-bottom)); }
.side a { display: flex; flex-direction: column; align-items: center; font-size: .7rem; color: var(--muted); padding: .2em .4em; position: relative; text-decoration: none !important; font-weight: 600; }
.side a .ic { font-size: 1.25rem; line-height: 1.2; } .side a.on { color: var(--brand); }
.side .nav-analytics, .side .nav-mypage, .side .nav-account, .side .logout { display: none; }
.badge { position: absolute; top: -2px; right: 2px; background: var(--bad); color: #fff; font-size: .65rem; border-radius: 99px; padding: 0 .4em; min-width: 1.4em; text-align: center; }
@media (min-width: 900px) {
  .side { position: sticky; top: 52px; align-self: flex-start; flex-direction: column; justify-content: flex-start; width: 210px; height: calc(100vh - 52px); border: 0; border-right: 1px solid var(--line); padding: 1em .6em; background: transparent; }
  .side a { flex-direction: row; gap: .7em; font-size: .95rem; padding: .55em .8em; border-radius: 10px; color: var(--ink2); }
  .side a.on { background: #fff; box-shadow: var(--sh); }
  .side .nav-analytics, .side .nav-mypage, .side .nav-account, .side .logout { display: flex; }
  .side .logout { margin-top: auto; padding: .8em; } .badge { position: static; margin-left: auto; }
  .content { padding: 1.5em 2em 3em; }
}
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7em; margin-bottom: 1em; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.kpi { background: #fff; border-radius: var(--r); padding: .9em 1em; box-shadow: var(--sh); color: var(--ink); text-decoration: none !important; }
.kpi b { display: block; font-size: 1.6rem; line-height: 1.1; } .kpi span { color: var(--muted); font-size: .8rem; }
.progress { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin-bottom: .6em; } .progress i { display: block; height: 100%; background: var(--brand); }
.checklist { list-style: none; padding: 0; margin: 0; } .checklist li { padding: .3em 0; } .checklist li.done a { color: var(--muted); text-decoration: line-through; }
.plist { display: grid; gap: .8em; } @media (min-width: 1100px) { .plist { grid-template-columns: 1fr 1fr; } }
.pcard { display: flex; gap: .9em; background: #fff; border-radius: var(--r); padding: .7em; box-shadow: var(--sh); }
.pthumb { flex: none; width: 108px; height: 96px; border-radius: 10px; overflow: hidden; background: #f1f5f9; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard.sm .pthumb { width: 80px; height: 70px; }
.pbody { flex: 1; min-width: 0; } .ptitle { font-weight: 700; }
.pstats { display: flex; gap: .9em; color: var(--ink2); margin: .2em 0; }
.pactions { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .4em; align-items: center; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6em; margin-top: 1em; }
.ph { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: #f1f5f9; } .ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .cover { position: absolute; left: 6px; top: 6px; background: var(--brand); color: #fff; }
.ph-act { position: absolute; right: 4px; top: 4px; display: flex; gap: 4px; } .ph-act button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(15,23,42,.65); color: #fff; cursor: pointer; }
.drop { display: grid !important; place-items: center; border: 2px dashed #94a3b8; border-radius: 12px; padding: 1.6em; cursor: pointer; background: #f8fafc; color: var(--ink) !important; font-size: 1.05rem; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inline-upload { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
.thumb-sm { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; margin: .4em 0; } .thumb-wide { width: 100%; max-width: 280px; aspect-ratio: 16/6; object-fit: cover; border-radius: 10px; margin: .4em 0; }
.copy-row { display: flex; gap: .5em; align-items: center; } .copy-row input { margin: 0; }
.share-btns { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .8em; }
.qr-box { margin-top: 1em; text-align: center; } .qr-box img { margin: 0 auto; background: #fff; }
.tips li { margin: .4em 0; }
.seg-links { display: flex; gap: .3em; } .seg-links a { padding: .3em .8em; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); font-size: .875rem; font-weight: 600; }
.seg-links a.on { background: var(--ink); color: #fff; box-shadow: none; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding-top: 1em; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar i { display: block; width: 100%; max-width: 22px; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.bar em { position: absolute; top: -2px; font-style: normal; color: var(--accent); font-size: .6rem; }
.bars-axis { display: flex; justify-content: space-between; margin-top: .3em; }
.hbar { display: grid; grid-template-columns: 90px 1fr auto; gap: .6em; align-items: center; margin: .45em 0; font-size: .9rem; }
.hbar .lbl { text-transform: none; } .hbar .trk { height: 10px; background: #f1f5f9; border-radius: 99px; overflow: hidden; } .hbar .trk i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.hbar .num { color: var(--muted); font-size: .8rem; }
.filters { display: flex; gap: .5em; margin-bottom: .8em; } .filters input, .filters select { margin: 0; }
.lead-list { background: #fff; border-radius: var(--r); box-shadow: var(--sh); }
.lead-row { display: flex; gap: .8em; align-items: center; padding: .8em 1em; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.lead-row:first-child { border-top: 0; } .lead-row:hover { background: #f8fafc; }
.av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ccfbf1; color: #134e4a; font-weight: 800; }
.av.lg { width: 56px; height: 56px; font-size: 1.4rem; }
.lr-main { flex: 1; min-width: 0; } .lr-main .block { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-side { display: flex; flex-direction: column; align-items: flex-end; gap: .15em; } .fu { color: var(--warn); }
.lead-head { display: flex; gap: 1em; align-items: center; } .lead-head h1 { margin: 0; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; margin-bottom: 1em; }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { padding: .45em 0 .45em 1em; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: .9em; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.timeline .n-enquiry::before { background: var(--brand); } .timeline .n-status::before { background: var(--accent); }
.admin-nav { display: flex; gap: 1em; margin-left: auto; align-items: center; }
details.act summary { list-style: none; } details.act[open] { background: #f8fafc; padding: .5em; border-radius: 10px; }
.form.mini { display: flex; flex-wrap: wrap; gap: .3em; align-items: center; margin: .5em 0; } .form.mini input, .form.mini select { width: auto; min-height: 32px; padding: .2em .4em; margin: 0; display: inline-block; }

/* Plots */
.plot-legend { display: flex; flex-wrap: wrap; gap: .5em 1em; align-items: center; }
.pl-k { display: inline-flex; gap: .35em; align-items: center; font-size: .875rem; } .pl-k::before { content: ''; width: 14px; height: 14px; border-radius: 4px; }
.pl-k.available::before, .plot.available { background: #dcfce7; } .pl-k.hold::before, .plot.hold { background: #fef3c7; }
.pl-k.booked::before, .plot.booked { background: #fed7aa; } .pl-k.sold::before, .plot.sold { background: #fecaca; }
.plot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; margin: 1em 0; }
.plot { position: relative; border: 0; border-radius: 8px; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; font: inherit; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(15,23,42,.08); }
.plot b { font-size: .95rem; } .plot small { font-size: .65rem; color: var(--ink2); }
.plot i { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: .65rem; background: var(--brand); color: #fff; border-radius: 99px; padding: 0 .35em; }
.plot.available { box-shadow: inset 0 0 0 1.5px #16a34a; } .plot:disabled { cursor: default; opacity: .75; }
.plot-grid.pub .plot.sold b, .plot-grid.pub .plot.booked b { text-decoration: line-through; }
.seg-status span.available { color: #166534; } .seg-status span.hold { color: #92400e; } .seg-status span.booked { color: #9a3412; } .seg-status span.sold { color: #991b1b; }

/* Modal */
dialog.modal { border: 0; border-radius: 18px; padding: 1.4em; width: min(440px, calc(100vw - 1.5em)); box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: 92vh; overflow: auto; }
dialog.modal::backdrop { background: rgba(15,23,42,.55); }
dialog .x { position: absolute; right: .8em; top: .8em; border: 0; background: #f1f5f9; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
dialog h2 { padding-right: 1.5em; }
.eq-done { text-align: center; padding: 1em 0; } .big-ok { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: var(--ok); display: grid; place-items: center; font-size: 2rem; margin: 0 auto .5em; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .6em 1.1em; border-radius: 99px; z-index: 100; font-size: .9rem; }

/* Public buyer pages */
.pub { background: #f1f5f9; padding-bottom: 76px; }
.pub-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: .5em .9em; background: #fff; border-bottom: 1px solid var(--line); }
.pub-brand { display: flex; align-items: center; gap: .6em; color: var(--ink); text-decoration: none !important; min-width: 0; }
.pub-brand b { display: block; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pub-brand small { color: var(--muted); }
.pub-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; } .pub-logo.ph { display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; }
.lang { display: flex; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; flex: none; }
.lang a { padding: .25em .7em; font-size: .85rem; color: var(--ink2); font-weight: 700; } .lang a.on { background: var(--brand); color: #fff; }
.pub-main { max-width: 860px; margin: 0 auto; }
.biz-hero { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #0f172a)); background-size: cover; background-position: center; color: #fff; padding: 2em 1.2em 1.6em; text-align: center; }
.biz-hero h1 { margin: .2em 0; } .biz-hero p { margin: .2em 0; opacity: .95; }
.biz-logo { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto .4em; border: 3px solid #fff; object-fit: cover; }
.hero-act { display: flex; gap: .5em; justify-content: center; margin-top: 1em; flex-wrap: wrap; }
.pub-chips { padding: .9em .9em .2em; }
.pc-grid { display: grid; gap: .8em; padding: .8em; } @media (min-width: 620px) { .pc-grid { grid-template-columns: 1fr 1fr; } }
.pc-grid.row-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; } .row-scroll .pc { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; }
.pc { display: block; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--sh); color: var(--ink); text-decoration: none !important; }
.pc-img { display: block; position: relative; aspect-ratio: 4/3; background: #e2e8f0; } .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: grid; place-items: center; height: 100%; font-size: 3rem; }
.pc-n { position: absolute; right: 8px; bottom: 8px; background: rgba(15,23,42,.7); color: #fff; font-size: .75rem; padding: .1em .5em; border-radius: 99px; }
.ribbon { position: absolute; left: 8px; top: 8px; font-size: .75rem; font-weight: 800; padding: .2em .65em; border-radius: 6px; color: #fff; text-transform: uppercase; }
.ribbon.big { font-size: .9rem; left: 12px; top: 12px; } .r-booked { background: var(--warn); } .r-sold { background: var(--bad); } .r-draft { background: var(--muted); }
.pc-body { display: block; padding: .7em .9em .9em; } .pc-body > span, .pc-body > b { display: block; }
.pc-type { font-size: .75rem; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.pc-title { font-size: 1.02rem; margin: .1em 0; } .pc-price { font-weight: 800; font-size: 1.05rem; } .pc-meta { color: var(--muted); font-size: .85rem; }
.pc-plots { margin-top: .3em; color: var(--ok); font-weight: 700; font-size: .85rem; }
.pub-card { background: #fff; border-radius: 14px; box-shadow: var(--sh); padding: 1em 1.1em; margin: .8em; }
.gallery { position: relative; background: #0f172a; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4/3; max-height: 70vh; display: grid; place-items: center; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; } .g-slide.noimg { background: #e2e8f0; color: #475569; }
.g-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: .15em .6em; border-radius: 99px; }
.p-head h1 { font-size: 1.35rem; margin: .15em 0; } .p-price { margin-top: .6em; font-size: 1.5rem; } .p-price b { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6em; margin: 0; } @media (min-width: 620px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { background: #f8fafc; border-radius: 10px; padding: .55em .7em; } .facts dt { font-size: .75rem; color: var(--muted); } .facts dd { margin: 0; font-weight: 700; }
.row-btns { display: flex; gap: .5em; flex-wrap: wrap; margin-top: .8em; }
.more h2 { padding: 0 .9em; margin-top: 1.2em; }
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: .5em; padding: .55em .7em calc(.55em + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15,23,42,.08); }
.sticky-bar .btn { flex: 1; min-height: 48px; } .sticky-bar .btn-wa { flex: 1.3; }
@media (min-width: 860px) { .sticky-bar { left: 50%; transform: translateX(-50%); max-width: 860px; border-radius: 16px 16px 0 0; } }
.pub-foot { text-align: center; padding: 1.5em 1em 2em; color: var(--muted); font-size: .85rem; } .powered { display: inline-block; margin-top: .6em; color: var(--ink2); background: #fff; padding: .35em .9em; border-radius: 99px; box-shadow: var(--sh); }
/* layout fixes */
.grid2 > *, .content > *, .row-link .muted, .pbody, .lr-main { min-width: 0; }
.app-shell, .content { max-width: 100%; }
.row-link b { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plot { aspect-ratio: auto; height: 60px; }
.bubble { overflow-wrap: anywhere; }
