/* Design ka vichaar: Indore ki haveli ki jharokha (arch), toran (latakti gola patti) aur
   kamre ki peetal ki chaabi. Photo arch ke aakar ki, kiraya peetal ke tag par, upar toran.
   Rang Comfort Stay se: maroon + gold. Font: Baloo 2 (naam) + Mukta (padhne ke liye). */
:root {
  --bg: #f8f1ea;
  --dots: #e6d6c8;
  --surface: #fffdfa;
  --ink: #2b1518;
  --muted: #74605d;
  --line: #e8d9cd;
  --maroon: #7b1e2e;
  --maroon-ink: #ffffff;
  --gold: #a87a1f;
  --gold-soft: #f5e7c8;
  --brass-a: #e9c46a;
  --brass-b: #b88a2b;
  --brass-ink: #2a1a05;
  --ok: #1f6b45;
  --ok-soft: #dff1e6;
  --warn: #8f5200;
  --warn-soft: #fbe8c8;
  --full: #8a2c2c;
  --full-soft: #f5dedb;
  --tile-a: #f0dfd5;
  --tile-b: #e6cdc2;
  --font-display: 'Baloo 2', 'Mukta', system-ui, sans-serif;
  --font-body: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161011; --dots: #261a1b; --surface: #211718; --ink: #f6ece9; --muted: #bba7a4; --line: #38292b;
    --maroon: #b83e53; --maroon-ink: #ffffff; --gold: #e0b25a; --gold-soft: #3a2e17;
    --brass-a: #e9c46a; --brass-b: #b88a2b; --brass-ink: #2a1a05;
    --ok: #74d29d; --ok-soft: #173426; --warn: #f2b95c; --warn-soft: #3a2a10;
    --full: #f29292; --full-soft: #3a1d1d; --tile-a: #2d2022; --tile-b: #3a292b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161011; --dots: #261a1b; --surface: #211718; --ink: #f6ece9; --muted: #bba7a4; --line: #38292b;
  --maroon: #b83e53; --maroon-ink: #ffffff; --gold: #e0b25a; --gold-soft: #3a2e17;
  --brass-a: #e9c46a; --brass-b: #b88a2b; --brass-ink: #2a1a05;
  --ok: #74d29d; --ok-soft: #173426; --warn: #f2b95c; --warn-soft: #3a2a10;
  --full: #f29292; --full-soft: #3a1d1d; --tile-a: #2d2022; --tile-b: #3a292b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background-color: var(--bg); background-image: radial-gradient(var(--dots) 1px, transparent 1.2px); background-size: 20px 20px;
  color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--maroon); }
.wrap { max-width: 720px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Upar ki patti + toran (latakte gole) */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--maroon); color: var(--maroon-ink); }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.top::after { content: ""; display: block; height: 9px; position: absolute; left: 0; right: 0; top: 100%;
  background: radial-gradient(circle at 9px 0, var(--gold) 6px, transparent 6.6px) 0 0 / 18px 9px repeat-x; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1; text-decoration: none; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; opacity: 0.85; letter-spacing: 0.5px; margin-top: 2px; }
.top .spacer { flex: 1; }
.lang { background: transparent; color: var(--maroon-ink); border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: 14px; cursor: pointer; }
.install { background: var(--brass-a); color: var(--brass-ink); border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; cursor: pointer; }

/* Pehli line */
.intro { padding-block: 30px 6px; }
.eyebrow { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 4px; }
.intro h1 { font-family: var(--font-display); font-size: clamp(30px, 8vw, 42px); line-height: 1.05; margin: 0 0 8px; text-wrap: balance; }
.intro h1 em { font-style: normal; color: var(--maroon); }
.intro p { margin: 0; color: var(--muted); max-width: 46ch; }
.proof { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.proof li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.demo-note { margin-top: 14px; background: var(--gold-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

/* Filter */
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 16px 2px; }
.filters > * { min-width: 0; }
.filters .lbl { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 4px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 15px; cursor: pointer; font-size: 15px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--maroon); color: var(--maroon-ink); border-color: var(--maroon); font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.budget { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; }
.budget input { flex: 1; min-width: 0; accent-color: var(--maroon); }
.budget output { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 88px; text-align: right; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.toggle input { accent-color: var(--maroon); width: 18px; height: 18px; }
.count { color: var(--muted); font-size: 14px; padding-block: 12px 4px; }

/* Hostel card: arch photo + peetal tag */
.list { display: grid; gap: 22px; padding-block: 8px 36px; }
@media (min-width: 640px) { .list { grid-template-columns: 1fr 1fr; } }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px 22px 16px 16px; overflow: visible; min-width: 0; }
.card:hover { border-color: var(--gold); }
.card .pw { position: relative; padding: 10px 10px 0; }
.card .body { padding: 26px 16px 16px; display: grid; gap: 6px; min-width: 0; }
.card h2 { font-family: var(--font-display); font-size: 20px; line-height: 1.15; margin: 0; text-wrap: balance; }
.place { color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { font-size: 13px; padding: 1px 9px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-size: 13px; font-weight: 700; }

/* Jharokha arch photo, na ho to drawn tile */
.photo { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--tile-a); overflow: hidden; border-radius: 160px 160px 10px 10px; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 64px; font-weight: 700; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--tile-a) 0 14px, var(--tile-b) 14px 28px); }
.badge { position: absolute; left: 50%; transform: translateX(-50%); top: 16px; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.available { background: var(--ok-soft); color: var(--ok); }
.badge.few { background: var(--warn-soft); color: var(--warn); }
.badge.confirm { background: var(--gold-soft); color: var(--gold); }
.badge.full { background: var(--full-soft); color: var(--full); }
.gender { position: absolute; left: 12px; bottom: 12px; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); }

/* Peetal ki chaabi jaisa kiraya tag */
.price { position: absolute; right: 18px; bottom: -18px; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05;
  padding: 7px 14px 7px 30px; border-radius: 10px 10px 10px 22px; color: var(--brass-ink);
  background: linear-gradient(135deg, var(--brass-a), var(--brass-b)); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }
.price::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35); }
.price b { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.price span { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; }

.empty { text-align: center; color: var(--muted); padding-block: 40px; display: grid; gap: 12px; justify-items: center; }
.empty .btn { flex: 0 0 auto; padding-inline: 20px; }

/* Hostel ka page */
.detail { padding-bottom: 130px; }
.back { background: none; border: 0; color: var(--maroon); font-weight: 700; padding: 18px 0 10px; cursor: pointer; text-decoration: none; display: inline-block; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .photo { scroll-snap-align: start; }
.detail h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.1; margin: 16px 0 4px; text-wrap: balance; }
.detail .lead { color: var(--muted); margin: 8px 0 0; max-width: 56ch; }
.section { padding-block: 16px 4px; margin-top: 16px; border-top: 1px dashed var(--line); }
.section h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 8px; }
.rooms { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rooms td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.rooms td:last-child { text-align: right; font-weight: 700; }
.facilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.facilities li { padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.facilities li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.facilities li.no { color: var(--muted); text-decoration: line-through; }
.facilities li.no::before { content: "– "; color: var(--muted); }
.note { color: var(--muted); font-size: 14px; }

/* Enquiry form */
form { display: grid; gap: 12px; }
label.f { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
label.f input, label.f select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 16px; color: var(--ink); width: 100%; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--maroon); width: 18px; height: 18px; flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--full); font-size: 14px; min-height: 1.2em; }
.ok-box { background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 16px; font-weight: 700; }

/* Neeche ke button (hostel page par) */
.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding-top: 10px; }
.actions .wrap { display: flex; gap: 10px; }
.btn { flex: 1; border: 0; border-radius: 12px; padding: 12px; font-weight: 700; font-size: 16px; cursor: pointer; text-align: center; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
.btn.primary { background: var(--maroon); color: var(--maroon-ink); }
.btn.wa { background: var(--ok); color: #ffffff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.rating { color: var(--gold); font-weight: 700; letter-spacing: 1px; }
.rating small { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.maplink { display: inline-block; margin-top: 10px; color: var(--maroon); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.reviews { display: grid; gap: 12px; }
.rv { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rv p { margin: 6px 0 0; }
.rv-top { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.rv-h { font-family: var(--font-display); font-size: 26px; line-height: 1.15; margin: 20px 0 14px; text-wrap: balance; }
.starpick { display: flex; gap: 6px; }
.starpick button { background: none; border: 0; font-size: 34px; line-height: 1; color: var(--gold); cursor: pointer; padding: 2px; }
textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 16px; color: var(--ink); width: 100%; resize: vertical; }
.sortrow { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.sortrow select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; color: var(--ink); }
.ph.locked { font-size: 44px; }
.chip.near { border-color: var(--maroon); color: var(--maroon); font-weight: 600; }
.chip.near[aria-pressed="true"] { color: var(--maroon-ink); }
.unlocks { margin: 0 0 14px; padding-left: 20px; }
.unlocks li { margin: 2px 0; }
.unlocks li::marker { color: var(--gold); }
.paycard { margin-top: 14px; background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.paycard h3 { margin: 0; font-family: var(--font-display); font-size: 19px; }
.paycard p { margin: 0; }
footer { color: var(--muted); font-size: 13px; padding-block: 24px 48px; border-top: 1px dashed var(--line); }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color 0.15s ease, transform 0.15s ease; }
  .card:active { transform: scale(0.99); }
}

/* Login / OTP dabba */
.otp{display:grid;gap:10px;margin-top:12px;padding:14px;border:1px dashed var(--line,#c9b79c);border-radius:12px;background:var(--card,transparent)}
.otp>*{min-width:0}
.otp input{width:100%;box-sizing:border-box}
.btn.link{background:none;border:0;box-shadow:none;color:var(--accent,#9b2d1f);text-decoration:underline;padding:6px 0;min-height:44px;text-align:left;cursor:pointer}
.btn.link:disabled{color:inherit;opacity:.6;text-decoration:none;cursor:default}

/* Har hostel ka alag rang ka tile (naam chhupa hai, isliye area + rang se pehchaan) */
.ph.locked { flex-direction: column; gap: 4px; font-size: 44px;
  background: linear-gradient(135deg, hsl(var(--h, 20) 55% 84%), hsl(var(--h, 20) 45% 70%)); color: hsl(var(--h, 20) 45% 22%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph.locked { background: linear-gradient(135deg, hsl(var(--h, 20) 30% 24%), hsl(var(--h, 20) 28% 16%)); color: hsl(var(--h, 20) 60% 82%); } }
:root[data-theme="dark"] .ph.locked { background: linear-gradient(135deg, hsl(var(--h, 20) 30% 24%), hsl(var(--h, 20) 28% 16%)); color: hsl(var(--h, 20) 60% 82%); }
.ph-area { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.05; text-align: center; padding: 0 14px; text-wrap: balance; }
.ph-lock { font-size: 20px; opacity: 0.8; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 2px; }
.photos-n { font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.premium { font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--brass-a), var(--brass-b)); color: var(--brass-ink); }
.range { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Admin ke chalaye hisse: banner / ad, sponsor tag, blog, side column ── */
.sponsored { font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold); }
#top-banners { display: grid; gap: 8px; padding-top: 12px; }
.banner { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 10px; min-width: 0; overflow: hidden; }
a.banner:hover { border-color: var(--gold); }
.bn-img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex: none; }
.bn-body { display: grid; gap: 2px; min-width: 0; }
.bn-body strong { font-family: var(--font-display); font-size: 17px; line-height: 1.25; }
.bn-text { color: var(--muted); font-size: 14px; }
.bn-label { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bn-top { background: var(--gold-soft); border-color: var(--gold); }
.between-row { grid-column: 1 / -1; background: var(--gold-soft); border-color: var(--gold); }
.layout { display: block; }
.main-col { min-width: 0; }
.side { display: grid; gap: 12px; align-content: start; padding-bottom: 24px; }
.bn-side { flex-direction: column; align-items: stretch; text-align: left; }
.bn-side .bn-img { width: 100%; height: 150px; }
.blogs { padding-block: 8px 32px; }
.blog-h { font-family: var(--font-display); font-size: 22px; margin: 8px 0 12px; }
.blog-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }
.blog-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; }
.blog-card:hover { border-color: var(--gold); }
.blog-card img { width: 100%; height: 130px; object-fit: cover; }
.bc-body { display: grid; gap: 4px; padding: 12px; }
.bc-body strong { font-family: var(--font-display); font-size: 17px; line-height: 1.25; }
.bc-body span { color: var(--muted); font-size: 14px; }
.bc-more { color: var(--maroon) !important; font-weight: 700; }
.post-cover { width: 100%; max-height: 260px; object-fit: cover; border-radius: 16px; margin-bottom: 12px; }
.post-h { font-family: var(--font-display); font-size: 28px; line-height: 1.2; margin: 6px 0; }
.post-date { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.post-p { margin: 0 0 14px; max-width: 65ch; }
@media (min-width: 960px) {
  main.wrap { max-width: 1040px; }
  .layout.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
  .layout.has-side .side { position: sticky; top: 76px; }
}
