/* hosur.com · main stylesheet. Uses the phone's own fonts: nothing to download. */
:root {
  --blue: #2445D6; --blue-dark: #1A33A8; --blue-tint: #E9EDFC;
  --marigold: #FFB020; --ink: #0F1420; --text-2: #3A404C; --muted: #555B66;
  --line: #E3E5EA; --surface: #F4F5F7; --input: #7A808C;
  --green: #0B7A44; --green-tint: #DCEBE1; --red: #B42318; --red-tint: #FDECEA;
  --amber-tint: #FFF1E0; --amber-text: #7A3E00;
  --photo-bg: #E8ECF7; --photo-fg: #3D4A6B;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", "Noto Sans Kannada", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
h2 { font-size: 20px; font-weight: 800; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { font-size: 21px; font-weight: 800; letter-spacing: -0.035em; }
.logo b span { color: var(--muted); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 0; }
.lang-switch button { min-height: 44px; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.site-banner { background: var(--marigold); color: var(--ink); font-weight: 700; font-size: 15px; padding: 10px 0; text-align: center; }
.demo-banner { background: var(--ink); color: #fff; font-size: 14px; padding: 8px 0; text-align: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #000; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { color: #fff; background: #08603A; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--input); color: var(--ink); }
.btn-strong-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-danger { background: #fff; border-color: var(--red); color: var(--red); }
.btn-danger-solid { background: var(--red); color: #fff; }
.btn-link { background: none; border: 0; color: var(--blue); padding: 0 4px; min-height: 44px; }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 56px; font-size: 18px; border-radius: 14px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- search + chips ---------- */
.search-box { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 6px 0 14px; border: 2px solid var(--input); border-radius: 14px; background: #fff; }
.search-box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.search-box input:focus { outline: none; }
.search-box:focus-within { border-color: var(--blue); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; font-family: inherit; }
.chip.green { background: var(--green-tint); border-color: #C6E0CF; color: #0B6B3C; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- sections ---------- */
.section { margin-top: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.section-head a { font-size: 15px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- cards ---------- */
.hscroll { list-style: none; margin: 0 -16px; padding: 0 16px 6px; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: thin; }
.hscroll > li { flex: none; width: 150px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; } .hscroll > li { width: 190px; } }
.card { display: flex; flex-direction: column; gap: 5px; color: var(--ink); text-decoration: none; }
.card:hover .card-title { text-decoration: underline; }
.thumb { position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--photo-bg); color: var(--photo-fg); display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 34%; height: 34%; opacity: 0.7; }
.thumb .tag { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--marigold); color: var(--ink); }
.thumb .count { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(15, 20, 32, 0.85); color: #fff; font-size: 11px; font-weight: 700; }
.price { font-size: 16px; font-weight: 800; line-height: 1.2; }
.price.free { color: var(--green); }
.card-title { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12px; color: var(--muted); }
.slot-tag { position: absolute; right: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; background: var(--ink); color: #fff; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--line); }
.list .card { flex-direction: row; gap: 12px; padding: 12px 0; }
.list .thumb { width: 116px; height: 116px; flex: none; aspect-ratio: auto; }
.list .card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.list .price { font-size: 19px; }
.list .card-title { font-size: 15px; }
.specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.spec { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface); color: var(--text-2); }
.list .card-meta { margin-top: auto; font-size: 13px; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty p { margin: 0 0 14px; }
.loading { padding: 24px 0; color: var(--muted); text-align: center; }

/* ---------- toolbar (browse) ---------- */
.toolbar { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 0; }
.toolbar .wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar select { min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; padding: 0 10px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); max-width: 46vw; }
.layout-toggle { margin-left: auto; display: flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.layout-toggle button { width: 48px; height: 44px; border: 0; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.layout-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.layout-toggle svg { width: 20px; height: 20px; }
.result-count { font-size: 14px; color: var(--muted); padding: 10px 0 0; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label, .field > .label, legend { font-weight: 700; font-size: 16px; }
.field .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; min-height: 52px; padding: 0 12px; font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 2px solid var(--input); border-radius: 12px;
}
textarea { padding: 10px 12px; min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-tint); }
.help { font-size: 14px; color: var(--muted); margin: 0; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; }
legend { margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
.seg button { min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; padding: 0 8px; }
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; min-height: 44px; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--blue); }
.phone-row { display: flex; gap: 8px; }
.phone-row span { min-height: 52px; display: flex; align-items: center; padding: 0 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; }
.code-input { min-height: 64px !important; font-size: 32px !important; font-weight: 700; letter-spacing: 0.45em; text-align: center; padding-left: 0.45em !important; }
.error-box { background: var(--red-tint); color: #7A1A12; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 0 0 14px; }
.ok-box { background: var(--green-tint); color: #0B5A33; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 0 0 14px; }
.info-box { background: var(--surface); border-radius: 14px; padding: 14px; font-size: 15px; }
.warn-box { background: #FFF4E5; color: #5C3A00; border-radius: 14px; padding: 14px; font-size: 15px; display: flex; gap: 10px; }
.warn-box svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

/* ---------- posting ---------- */
.progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0 18px; }
.progress span { height: 6px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--blue); }
.tiles { display: flex; flex-direction: column; gap: 10px; }
.tile { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; width: 100%; }
.tile:hover { border-color: var(--blue); }
.tile svg { width: 28px; height: 28px; color: var(--blue); flex: none; }
.tile span { flex: 1; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-grid .ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--photo-bg); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(15, 20, 32, 0.85); color: #fff; font-size: 20px; cursor: pointer; }
.add-photo { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--input); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.add-photo svg { width: 26px; height: 26px; }
.preview-card { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 18px; }
.preview-card .thumb { width: 72px; height: 72px; flex: none; aspect-ratio: auto; }
.done { text-align: center; padding: 24px 0; }
.done .icon { width: 80px; height: 80px; border-radius: 999px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.done .icon svg { width: 40px; height: 40px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.narrow { max-width: 560px; }

/* ---------- listing page ---------- */
.listing-layout { display: grid; gap: 24px; padding-top: 8px; grid-template-areas: "g" "a" "i"; grid-template-columns: minmax(0, 1fr); }
.l-gallery { grid-area: g; } .l-aside { grid-area: a; } .l-info { grid-area: i; }
@media (min-width: 900px) {
  .listing-layout { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "g a" "i a"; align-items: start; }
  .l-aside { position: sticky; top: 16px; }
}
.big-price.free { color: var(--green); }
.gallery { position: relative; margin: 0 -16px; }
@media (min-width: 900px) { .gallery { margin: 0; } }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--photo-bg); }
@media (min-width: 900px) { .gallery-track { border-radius: 18px; } }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > div { flex: none; width: 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; color: var(--photo-fg); }
.gallery-track img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.gallery-track svg { width: 30%; height: 30%; opacity: 0.6; }
.gallery button.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.gallery button.prev { left: 10px; } .gallery button.next { right: 10px; }
.gallery .counter { position: absolute; right: 12px; bottom: 12px; background: rgba(15, 20, 32, 0.85); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.big-price { font-size: 30px; font-weight: 800; margin: 0; line-height: 1.2; }
.big-price small { font-size: 17px; font-weight: 600; color: var(--muted); }
.listing-title { font-size: 26px; margin: 6px 0 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; }
.facts div { background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.facts dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; }
.desc { white-space: pre-line; overflow-wrap: anywhere; }
.contact-box { border: 2px solid var(--ink); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.contact-box h2 { font-size: 18px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.owner-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
details.report summary { cursor: pointer; font-weight: 700; color: var(--blue); min-height: 44px; display: flex; align-items: center; }

/* ---------- manage ---------- */
.my-item { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.my-item.highlight { border: 2px solid var(--blue); }
.my-top { display: flex; gap: 12px; }
.my-top .thumb { width: 80px; height: 80px; flex: none; aspect-ratio: auto; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface); color: var(--text-2); }
.badge.live { background: #E3F4EA; color: #0B6B3C; }
.badge.held { background: var(--amber-tint); color: var(--amber-text); }
.badge.deleted, .badge.removed, .badge.hidden { background: var(--red-tint); color: var(--red); }
.stats { display: flex; gap: 14px; font-size: 14px; color: var(--muted); margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions .btn { min-height: 44px; font-size: 15px; padding: 0 14px; }

/* ---------- help pages ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.prose { max-width: 760px; }
.prose section { padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.prose h2 { font-size: 24px; margin-bottom: 10px; }
.prose h3 { font-size: 18px; margin: 18px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rule-box { border-radius: 16px; padding: 16px; margin: 12px 0; }
.rule-box.red { background: var(--red-tint); } .rule-box.amber { background: var(--amber-tint); } .rule-box.grey { background: var(--surface); }
.rule-box h3 { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; background: var(--surface); padding: 24px 0 32px; font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer p { margin: 0 0 8px; font-weight: 700; }

/* ---------- CTA + misc ---------- */
.cta { margin-top: 28px; padding: 20px; border-radius: 18px; background: var(--ink); color: #fff; }
.cta h2 { font-size: 22px; margin-bottom: 8px; }
.cta p { margin: 0 0 16px; color: var(--line); }
.cta .btn { background: #fff; color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); max-width: 560px; margin: 0 auto; }
.consent p { margin: 0 0 10px; font-size: 15px; }
.consent .row { display: flex; gap: 8px; }
.ts-box { min-height: 0; }
.page-head { padding: 18px 0 4px; }
.back-row { display: flex; align-items: center; gap: 6px; padding: 8px 0; }
.icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- extras ---------- */
.home-title { font-size: 24px; margin-bottom: 14px; }
@media (min-width: 640px) { .home-title { font-size: 30px; } }
.toolbar .grow { flex: 1 1 100%; min-height: 48px; }
@media (min-width: 900px) { .toolbar .grow { flex: 1 1 260px; } }
.search-box .btn { min-height: 40px; padding: 0 14px; border-radius: 10px; }
.header-actions .btn { min-height: 44px; padding: 0 12px; font-size: 15px; }
.header-actions .btn-outline svg { width: 18px; height: 18px; }
@media (max-width: 380px) { .header-actions .btn-primary svg { display: none; } .logo b { font-size: 19px; } }
.page-head h1 { margin-bottom: 6px; }
.back-row h1 { font-size: 22px; margin: 0; }
.chip.on { cursor: default; }
details.report summary svg { width: 18px; height: 18px; margin-right: 6px; }
.btn-link svg { width: 18px; height: 18px; }
.info-box p { margin: 0 0 10px; }
.my-item .price { margin: 0; }
.my-item .card-title { margin: 2px 0 6px; }
.my-item p { margin: 0; }
.preview-card p { margin: 0 0 2px; }
.warn-box ul { margin: 6px 0; padding-left: 18px; }
.warn-box p { margin: 0 0 8px; }
.contact-box p { margin: 0; }
.empty h1 { font-size: 24px; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 420px) { .header-actions .btn-primary svg { display: none; } }
.search-box input[type="search"] { border: 0; box-shadow: none; min-height: 44px; padding: 0; border-radius: 0; background: transparent; }
.toolbar { position: static; }
.toolbar .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.toolbar .grow { grid-column: 1 / -1; }
.toolbar select { width: 100%; max-width: none; }
.layout-toggle { justify-self: end; margin-left: 0; }
@media (min-width: 900px) {
  .toolbar { position: sticky; top: 0; }
  .toolbar .wrap { display: flex; flex-wrap: wrap; }
  .toolbar select { width: auto; max-width: 240px; }
  .layout-toggle { margin-left: auto; }
}
