:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --surface-2: #f3ebdf;
  --text: #2a1a12;
  --muted: #6f5f55;
  --border: #e5d9ca;
  --brand: #b4451f;
  --brand-dark: #8f3517;
  --sun: #f6b73c;
  --night: #3b1d10;
  --ok: #1d7a4c;
  --ok-bg: #e3f3ea;
  --warn: #9a6200;
  --warn-bg: #fdf1d8;
  --danger: #b3261e;
  --danger-bg: #fbe5e3;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(60, 30, 10, .08), 0 4px 16px rgba(60, 30, 10, .05);
  --lang-font: 'Noto Sans';
  font-family: var(--lang-font), 'Noto Sans', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a120d;
    --surface: #241913;
    --surface-2: #2f2119;
    --text: #f5ece4;
    --muted: #b8a597;
    --border: #3f2e23;
    --brand: #e0673d;
    --brand-dark: #c4552e;
    --ok: #5ccf94; --ok-bg: #173325;
    --warn: #f0b84e; --warn-bg: #3a2b10;
    --danger: #f08a80; --danger-bg: #3d1a17;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 28px; } h2 { font-size: 21px; } h3 { font-size: 17px; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
/* Urdu's Nastaliq script needs taller lines. */
[lang="ur"] body { line-height: 2; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 16px; }

/* ---------- top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 34px; font-weight: 800; letter-spacing: .5px; color: var(--brand); }
.topbar .brand img { width: 52px; height: 52px; }
.brand:hover { text-decoration: none; }
.topnav { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.topnav a, .topnav button.link { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 14px; }
.topnav a:hover { background: var(--surface-2); text-decoration: none; }
.topnav select { padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
@media (max-width: 640px) {
  .topnav .hide-sm { display: none; }
  .brand { font-size: 26px; }
  .topbar .brand img { width: 40px; height: 40px; }
  .topnav { gap: 2px; }
  .topnav a, .topnav button.link { padding: 8px; }
}

/* ---------- buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-weight: 600; }

label.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, .input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); font-size: 15px; font-weight: 400; color: var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.checks label { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text); font-weight: 400; }
.form-error { color: var(--danger); background: var(--danger-bg); padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.form-ok { color: var(--ok); background: var(--ok-bg); padding: 10px 12px; border-radius: 10px; font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.page { padding-top: 28px; padding-bottom: 56px; }
.narrow { max-width: 520px; margin: 0 auto; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.loading { padding: 64px; text-align: center; color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.danger { background: var(--danger-bg); color: var(--danger); }

.score { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 32px; padding: 0 6px; border-radius: 8px 8px 8px 0; background: var(--night); color: #fff; font-weight: 800; }
@media (prefers-color-scheme: dark) { .score { background: var(--sun); color: #2a1a12; } }
.stars { color: var(--sun); letter-spacing: 1px; font-size: 14px; }

/* ---------- search box */
.hero {
  background: linear-gradient(160deg, #3b1d10 0%, #8f3517 55%, #d9822b 100%);
  color: #fff; padding: 56px 0 72px;
}
.hero { text-align: center; }
.hero h1 { font-size: clamp(26px, 3.8vw, 44px); font-weight: 800; margin-inline: auto; }
.hero p { font-size: 18px; opacity: .9; max-width: 760px; margin-inline: auto; text-wrap: balance; }
.hero .searchbox { text-align: start; }
.searchbox {
  display: grid; grid-template-columns: 2fr 1fr 1fr .8fr .7fr auto; gap: 8px; align-items: end;
  background: var(--sun); padding: 8px; border-radius: 14px; margin-top: 24px; color: var(--text);
}
.searchbox label { display: flex; flex-direction: column; background: var(--surface); border-radius: 10px; padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 0; }
.searchbox input, .searchbox select { border: 0; background: transparent; padding: 2px 0; font-size: 15px; color: var(--text); outline: none; min-width: 0; width: 100%; }
.searchbox .btn { height: 100%; min-height: 50px; font-size: 16px; }
@media (max-width: 860px) {
  .searchbox { grid-template-columns: 1fr 1fr; }
  .searchbox label:first-child, .searchbox .btn { grid-column: 1 / -1; }
}
.searchbar { background: var(--night); padding: 12px 0; }
.searchbar .searchbox { margin: 0; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -36px; }
.why .card h3 { color: var(--brand); }
@media (max-width: 800px) { .why { grid-template-columns: 1fr; } }

.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.dest { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; display: block; }
.dest .ph { position: absolute; inset: 0; }
.dest span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.dest strong { display: block; font-size: 18px; }
.dest:hover { text-decoration: none; }

/* ---------- photos */
.ph { background: var(--surface-2); object-fit: cover; width: 100%; height: 100%; }
.ph-fallback { display: flex; align-items: center; justify-content: center; font-size: 44px; color: rgba(255,255,255,.9); font-weight: 800; }

/* ---------- place suggestions */
.ac { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30; min-width: 280px; max-height: 380px; overflow-y: auto;
  margin-top: 6px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.suggest button {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text); text-align: start; cursor: pointer; font-size: 14px; font-weight: 400;
}
.suggest button.on, .suggest button:hover { background: var(--surface-2); }
.suggest .ico { width: 22px; flex-shrink: 0; text-align: center; }
.suggest b { font-weight: 600; }
.suggest small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- results */
.results-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .results-layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 76px; }
.filters h3 { margin: 0; }
.filters summary { cursor: pointer; }
@media (max-width: 860px) { .filters { position: static; padding: 14px 16px; } }
.filters .field + .field { margin-top: 12px; }
.result { display: grid; grid-template-columns: 240px 1fr auto; gap: 18px; padding: 14px; color: var(--text); }
.result + .result { margin-top: 14px; }
.result:hover { text-decoration: none; border-color: var(--brand); }
.result .thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.result h3 { margin-bottom: 4px; font-size: 19px; color: var(--brand); }
.result .price { text-align: end; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; min-width: 150px; }
.result .price strong { font-size: 21px; }
.amen-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (max-width: 700px) {
  .result { grid-template-columns: 110px 1fr; }
  .result .price { grid-column: 1 / -1; flex-direction: row; align-items: center; text-align: start; }
}
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }

/* ---------- property */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 8px; border-radius: var(--radius); overflow: hidden; margin: 16px 0 24px; }
.gallery > * { overflow: hidden; cursor: zoom-in; }
.gallery > :first-child { grid-row: 1 / 3; }
.gallery.count-1 { grid-template-columns: 1fr; }
.gallery.count-1 > :first-child { grid-row: 1 / 3; }
.gallery.no-photos { grid-template-rows: 90px 90px; }
.gallery.no-photos > * { cursor: default; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 100px; }
  .gallery > :first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery > :nth-child(n+4) { display: none; }
}
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); border: 0; color: #fff; font-size: 28px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { left: 16px; } .lightbox .next { right: 16px; }
.prop-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .prop-layout { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.rooms-table { width: 100%; border-collapse: collapse; }
.rooms-table th { text-align: start; font-size: 13px; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--border); }
.rooms-table td { padding: 14px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.rooms-table td:last-child { text-align: end; }
@media (max-width: 700px) {
  .rooms-table thead { display: none; }
  .rooms-table tr { display: block; border-bottom: 1px solid var(--border); padding: 10px 0; }
  .rooms-table td { display: block; border: 0; padding: 4px 0; text-align: start !important; }
}
.sold-out { color: var(--danger); font-weight: 700; font-size: 14px; }
.review { padding: 16px 0; border-top: 1px solid var(--border); }
.review .reply { margin-top: 10px; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; font-size: 14px; }
.bars { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; font-size: 13px; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); }
.verified { color: var(--ok); font-size: 12px; font-weight: 700; }

.map { display: block; width: 100%; height: 220px; border: 0; border-radius: 10px; margin-top: 14px; background: var(--surface-2); }

/* ---------- booking */
.guest-choice { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 10px; background: var(--surface-2); }
.summary .thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 12px; }
.total-line { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 12px; }
.banner { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.danger { background: var(--danger-bg); color: var(--danger); }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.trip { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; padding: 14px; color: var(--text); align-items: center; }
.trip + .trip { margin-top: 12px; }
.trip:hover { text-decoration: none; border-color: var(--brand); }
.trip .thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
@media (max-width: 600px) { .trip { grid-template-columns: 90px 1fr; } .trip > :last-child { grid-column: 1 / -1; } }
.rating-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.rating-pick button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 700; }
.rating-pick button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- host & admin */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.host-prop { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 14px; }
.host-prop + .host-prop { margin-top: 12px; }
.host-prop .thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
@media (max-width: 600px) { .host-prop { grid-template-columns: 80px 1fr; } .host-prop > :last-child { grid-column: 1 / -1; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: center; }
.steps .dot { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--surface-2); color: var(--muted); flex-shrink: 0; }
.steps .done .dot { background: var(--ok); color: #fff; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.photo-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 8px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.photo-grid .cover-tag { position: absolute; top: 8px; left: 8px; }
.drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; color: var(--muted); }
.drop:hover, .drop.over { border-color: var(--brand); color: var(--brand); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 8px; border-bottom: 2px solid var(--border); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font-size: 12px; color: var(--muted); text-align: center; font-weight: 700; padding: 4px 0; }
.cal button { min-height: 66px; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; text-align: start; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.cal button b { font-size: 14px; }
.cal button.special { border-color: var(--sun); }
.cal button.closed { background: var(--danger-bg); color: var(--danger); }
.cal button.full { background: var(--surface-2); }
.cal button.sel { outline: 3px solid var(--brand); outline-offset: -2px; }
.cal button:disabled { opacity: .35; cursor: default; }
.totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.totals .card { padding: 14px 16px; }
.totals strong { display: block; font-size: 20px; }

.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 24px 0; color: var(--muted); font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 24px; }
.footer h4 { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a, .footer .link { color: var(--muted); font-weight: 400; font-size: 13px; }
.footer a:hover, .footer .link:hover { color: var(--brand); }
.footer-langs { grid-template-columns: 1fr 1fr; }
.footer-langs [aria-current] { color: var(--brand); font-weight: 700; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--night); color: #fff; padding: 12px 20px; border-radius: 10px; z-index: 60; box-shadow: var(--shadow); }
