/* ============================================================
   ঘর খুঁজুন — Find Home
   রঙ লোগো থেকে নেওয়া: গাঢ় নীল, সবুজ, পিনের কমলা।
   ============================================================ */

:root {
  --ink:       #0B3D82;   /* লোগোর নীল — কাঠামোর রং */
  --ink-deep:  #062A5C;
  --ink-soft:  #6B7689;   /* গৌণ লেখা */
  --ink-text:  #1A2333;   /* মূল লেখা */

  --green:     #0C8430;   /* শুধু "ফাঁকা আছে"/"যাচাই করা" — অবস্থা বোঝাতে */
  --accent:    #EF4E1C;   /* শুধু প্রধান কাজের বোতামে, আর কোথাও নয় */

  /* পটভূমি হালকা নীলচে-ধূসর, কার্ড/ইনপুট খাঁটি সাদা —
     এই পার্থক্যটাই কনটেন্টকে পটভূমি থেকে আলাদা করে "তুলে ধরে" */
  --paper:     #F1F4F9;
  --surface:   #E7ECF3;   /* সার্চ বার, ইনপুট-কূপ, নিষ্ক্রিয় অবস্থা */
  --paper-2:   #DDE4ED;
  --line:      #D8DFE9;
  --line-soft: #E9EDF4;
  --white:     #FFFFFF;   /* কার্ড, হেডার, ট্যাব বার — সবসময় খাঁটি সাদা */

  /* এক ফন্ট পরিবার, ওজন দিয়ে পার্থক্য — সেরিফ বাদ */
  --font-display: 'Anek Bangla', system-ui, -apple-system, sans-serif;
  --font-ui: 'Anek Bangla', system-ui, -apple-system, sans-serif;

  --r: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px -6px rgba(16,24,40,.12);
  --shadow-lift: 0 2px 5px rgba(16,24,40,.07), 0 12px 26px -10px rgba(16,24,40,.20);
}

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  /* হালকা ডট-প্যাটার্ন — সাদা কার্ডগুলো এই টেক্সচারের উপর "ভেসে" থাকে,
     একদম সমতল রঙের চেয়ে গভীরতা বেশি অনুভূত হয়, কিন্তু এত হালকা যে
     লেখা পড়তে কোনো অসুবিধা হয় না */
  background-image: radial-gradient(circle, rgba(11,61,130,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink-text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; margin: 0; color: var(--ink-text); letter-spacing: -.01em; }
h1 { font-size: 23px; }
h2 { font-size: 18px; }
p { margin: 0; }
a { color: var(--ink); }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-soft); font-size: 14px; }
.stack > * + * { margin-top: 16px; }
.section { margin-top: 32px; }
.section:first-of-type { margin-top: 28px; }
[hidden] { display: none !important; }

.sheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ============================================================
   বোতাম
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  padding: 10px 16px; font: inherit; font-size: 15px; font-weight: 500;
  border-radius: 8px; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:hover { border-color: var(--ink); }

.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-deep); border-color: var(--ink-deep); }

.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { filter: brightness(.94); }

.btn-block { display: flex; width: 100%; padding: 13px; font-size: 16px; }
.btn-danger { border-color: var(--accent); color: var(--accent); }
.btn-danger:hover { background: #FDEEE9; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============================================================
   ফর্ম
   ============================================================ */
label { display: block; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
input[type=text], input[type=tel], input[type=number], input[type=date],
input[type=email], input[type=password], select, textarea {
  width: 100%; margin-top: 5px; padding: 11px 13px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-text);
  border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11,61,130,.12);
}
textarea { line-height: 1.55; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.checks label { display: flex; align-items: center; gap: 7px; color: var(--ink-text); font-weight: 400; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); }
input[type=range] { width: 100%; accent-color: var(--ink); margin-top: 10px; }

.notice {
  border: 1px solid var(--accent); background: #FEF5F2; border-left-width: 3px;
  padding: 12px 14px; font-size: 14px; border-radius: 8px; color: var(--ink-text);
}
.notice-ok { border-color: var(--green); background: #F1FAF2; }

/* ============================================================
   উপরের বার
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center;
  gap: 9px; padding: 9px 12px;
}
.brand-icon { flex-shrink: 0; display: block; line-height: 0; }
.brand-icon img { display: block; width: 40px; height: 40px; border-radius: 9px; }
.brand-text {
  flex-shrink: 0; white-space: nowrap; overflow: hidden;
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--ink-deep);
  max-width: 130px; opacity: 1;
  transition: max-width .22s ease, opacity .16s ease, margin .22s ease;
}
.topbar .btn { padding: 8px 13px; font-size: 14px; flex-shrink: 0; }

.mainnav {
  max-width: 760px; margin: 0 auto;
  display: flex; gap: 4px; padding: 0 16px;
  overflow-x: auto; scrollbar-width: none;
}
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  padding: 9px 12px; font-size: 15px; text-decoration: none;
  color: var(--ink-soft); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: var(--ink); }
.mainnav a.is-here { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }

/* ============================================================
   হেডারের সার্চ বার ও আইকন বোতাম
   ============================================================ */
.topbar-actions {
  display: flex; gap: 4px; align-items: center; flex-shrink: 0;
  max-width: 140px; opacity: 1; overflow: hidden;
  transition: max-width .22s ease, opacity .16s ease, margin .22s ease;
}

.iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--ink); text-decoration: none;
  transition: background .15s;
}
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn:active { background: var(--surface); }
.iconbtn-dot {
  position: absolute; top: 7px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 1.5px solid #fff;
}

.topsearch {
  flex: 1 1 auto; min-width: 0; max-width: 190px;
  margin-left: auto; /* সার্চ বার (ও তার পরের বেল আইকন) ডান দিকে ঠেলে দেয়,
                         লোগোর লেখার পাশে ফাঁকা জায়গা থেকে যায় */
  display: flex; align-items: center; gap: 7px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px;
  transition: max-width .25s ease, border-color .15s, background .15s;
}
.topsearch-icon { width: 18px; height: 18px; color: var(--ink-soft); flex-shrink: 0; }
.topsearch input {
  flex: 1; margin: 0; border: 0; background: transparent;
  padding: 9px 0; font-size: 14.5px; min-width: 0; color: var(--ink-text);
}
.topsearch input:focus { box-shadow: none; outline: none; }
.topsearch:focus-within { border-color: var(--ink); background: var(--white); }

.topsearch-loc {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-right: -4px;
  border-radius: 50%; color: var(--ink); text-decoration: none;
  background: #E2EAF7; transition: background .15s;
}
.topsearch-loc svg { width: 16px; height: 16px; }
.topsearch-loc:active { background: #D8E5F7; }

/* সার্চে চাপ দিলে — লোগোর লেখা আর নোটিফিকেশন সরে গিয়ে সার্চ বারই
   পুরো জায়গা নেয়, একটা মসৃণ প্রসারণ অ্যানিমেশনসহ */
.topbar-in.search-focused .brand-text {
  max-width: 0; opacity: 0; margin-left: -9px;
}
.topbar-in.search-focused .topbar-actions {
  max-width: 0; opacity: 0; margin-right: -9px;
}
.topbar-in.search-focused .topsearch { max-width: 999px; }

/* ============================================================
   ধরনের সারি — অনুভূমিক, জায়গা কম নেয়
   ============================================================ */
.typerow {
  display: flex; gap: 9px; overflow-x: auto;
  max-width: 760px; margin: 14px auto 0; padding: 2px 16px 4px;
  scrollbar-width: none;
}
.typerow::-webkit-scrollbar { display: none; }

.typepill {
  flex: 0 0 auto; display: flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px 7px 8px;
  text-decoration: none; color: var(--ink-text); font-size: 14.5px;
  white-space: nowrap; transition: border-color .15s;
}
.typepill:hover { border-color: var(--ink); }
.typepill-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #EEF3FB; flex-shrink: 0;
}
.typepill-icon svg { width: 17px; height: 17px; color: var(--ink); }
.typepill-n {
  background: var(--green); color: #fff; border-radius: 999px;
  padding: 0 7px; font-size: 12px; line-height: 1.6; font-weight: 500;
}
.typepill:not(.has-stock) { opacity: .6; }

.typepill[data-t="family"]   .typepill-icon { background: #E8F0FC; }
.typepill[data-t="bachelor"] .typepill-icon { background: #EFEAFA; }
.typepill[data-t="sublet"]   .typepill-icon { background: #E9F6F1; }
.typepill[data-t="room"]     .typepill-icon { background: #FDF3E7; }
.typepill[data-t="shop"]     .typepill-icon { background: #FCEEEA; }
.typepill[data-t="office"]   .typepill-icon { background: #EAF1F4; }
.typepill[data-t="family"]   svg { color: #1A57B5; }
.typepill[data-t="bachelor"] svg { color: #5B3FBF; }
.typepill[data-t="sublet"]   svg { color: #0C8430; }
.typepill[data-t="room"]     svg { color: #B26A0C; }
.typepill[data-t="shop"]     svg { color: #C9411B; }
.typepill[data-t="office"]   svg { color: #396B82; }

.tile-time { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

/* ============================================================
   সেকশনের শিরোনাম
   ============================================================ */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.section-head h2 { position: relative; }
.section-link {
  font-size: 14px; color: var(--ink); text-decoration: none;
  white-space: nowrap; font-weight: 500;
}
.section-link:hover { text-decoration: underline; }

/* ============================================================
   ধরনের কার্ড
   ============================================================ */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.type-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px 8px 13px; text-align: center;
  text-decoration: none; color: var(--ink-text); display: block;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.type-card:hover { border-color: var(--ink); box-shadow: var(--shadow-lift); }
.type-card:active { transform: translateY(1px); }
.type-card.is-empty { opacity: .62; }

.type-icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  background: #EEF3FB; display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.type-card.has-stock .type-icon-wrap { background: #E9F7EC; }
.type-card svg { display: block; width: 22px; height: 22px; color: var(--ink); }
.type-card.has-stock svg { color: var(--green); }
.type-name { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; }
.type-n { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }
.type-card.has-stock .type-n { color: var(--green); font-weight: 500; }

/* ============================================================
   এলাকার চিপ
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--white);
  padding: 8px 13px; font-size: 15px; text-decoration: none;
  color: var(--ink-text); border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.area-chip:hover { border-color: var(--ink); background: #F9FBFF; }
.area-chip span {
  background: var(--paper-2); color: var(--ink-soft);
  padding: 0 8px; font-size: 12.5px; border-radius: 999px; line-height: 1.7;
}
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink-text);
  padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer;
  border-radius: 999px; text-decoration: none;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   বিজ্ঞাপনের টাইল
   ============================================================ */
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.tile {
  display: block; text-decoration: none; color: var(--ink-text);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--r); overflow: hidden; max-width: 480px;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.tile:hover { border-color: var(--ink); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.tile:active { transform: translateY(0); box-shadow: var(--shadow); }

.tile-photo {
  position: relative; aspect-ratio: 5 / 4;
  background: linear-gradient(135deg, var(--paper-2), #DDE6F2);
  display: flex; align-items: center; justify-content: center;
}
.tile-photo::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(to top, rgba(6,20,46,.45), transparent);
  pointer-events: none;
}
.tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-nophoto { position: relative; z-index: 1; font-family: var(--font-display); font-size: 13px; color: var(--ink-soft); }
.tile-rent {
  position: absolute; left: 9px; bottom: 9px; z-index: 1;
  background: rgba(6,42,92,.94); color: #fff; backdrop-filter: blur(4px);
  padding: 5px 11px; font-size: 14.5px; font-weight: 600; border-radius: 999px;
  letter-spacing: .01em;
}
.tile-rent small { font-weight: 400; font-size: 11.5px; opacity: .82; }
.tile-badge {
  position: absolute; right: 9px; top: 9px; z-index: 1;
  background: var(--green); color: #fff; border: 0;
  padding: 3px 10px; font-size: 11px; font-weight: 500; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 3px;
}
.tile-body { padding: 12px 13px 14px; }
.tile-title {
  font-family: var(--font-display); font-size: 16px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--ink-deep);
}
.tile-facts {
  display: flex; align-items: center; gap: 10px; margin-top: 7px;
  font-size: 13px; color: var(--ink-soft);
}
.tile-facts span { display: inline-flex; align-items: center; gap: 4px; }
.tile-facts svg { width: 14px; height: 14px; flex-shrink: 0; }
.tile-loc {
  display: flex; align-items: center; gap: 4px; margin-top: 7px;
  font-size: 13px; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tile-loc svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--ink-soft); }

/* ============================================================
   ধাপ
   ============================================================ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li {
  display: flex; gap: 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
}
.step-n {
  flex: 0 0 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-size: 16px;
}
.steps strong { font-weight: 500; color: var(--ink-deep); }
.steps p { font-size: 14px; margin-top: 2px; }

/* ============================================================
   বাড়িওয়ালার আহ্বান
   ============================================================ */
.cta {
  border-radius: var(--r); padding: 22px;
  background: linear-gradient(135deg, #0B3D82, #062A5C);
  color: #fff;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.cta h2 { color: #fff; }
.cta .muted { color: rgba(255,255,255,.78); }
.cta .btn { background: #fff; color: var(--ink-deep); border-color: #fff; }

/* ============================================================
   ম্যাপ পাতা
   ============================================================ */
.toolbar {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; flex-wrap: wrap;
}
.toolbar .spacer { margin-left: auto; }

.segment {
  display: flex; border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; overflow: hidden; padding: 2px;
}
.segment button {
  border: 0; background: none; font: inherit; font-size: 14px;
  padding: 6px 14px; cursor: pointer; color: var(--ink-soft); border-radius: 999px;
}
.segment button[aria-pressed="true"] { background: var(--ink); color: #fff; }

#map { width: 100%; height: calc(100dvh - 250px); min-height: 300px; }
.map-wrap { position: relative; }

.pin {
  transform: translateY(-7px); background: #fff; color: var(--ink-deep);
  border: 1.5px solid var(--accent); border-radius: 999px;
  padding: 3px 9px; font-size: 13px; font-weight: 600;
  font-family: var(--font-ui); white-space: nowrap; position: relative;
  box-shadow: 0 3px 10px -3px rgba(0,0,0,.35);
}
.pin.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pin::after {
  content: ''; position: absolute; left: 50%; top: 100%;
  width: 2px; height: 8px; background: var(--accent); transform: translateX(-50%);
}
.pin.is-active::after { background: var(--ink); }
.me-dot {
  width: 15px; height: 15px; border-radius: 50%; background: var(--accent);
  border: 2.5px solid #fff; box-shadow: 0 0 0 5px rgba(239,78,28,.22);
}

.strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 16px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip > * { flex: 0 0 265px; scroll-snap-align: start; }

.card {
  display: flex; gap: 12px; padding: 9px; text-decoration: none;
  color: var(--ink-text); align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.card.is-active { border-color: var(--ink); }
.card-photo {
  flex: 0 0 74px; height: 74px; border-radius: 7px; overflow: hidden;
  background: var(--paper-2); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; color: var(--ink-soft);
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { min-width: 0; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-rent { font-size: 15.5px; font-weight: 600; margin-top: 2px; color: var(--ink-deep); }
.card-rent span { font-size: 12.5px; font-weight: 400; color: var(--ink-soft); }

/* ফিল্টার শিট */
.sheet-overlay { position: fixed; inset: 0; background: rgba(6,42,92,.38); z-index: 40; }
.filter-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--paper); border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  max-height: 85dvh; overflow-y: auto;
  box-shadow: 0 -12px 40px -12px rgba(6,42,92,.4);
}

/* ============================================================
   বিস্তারিত পাতা
   ============================================================ */
.crumbs { font-size: 13px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  flex: 0 0 85%; height: 230px; object-fit: cover;
  border-radius: var(--r); border: 1px solid var(--line);
}

.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.facts div { background: var(--white); padding: 10px 13px; }
.facts dt { font-size: 12.5px; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }
.prose { max-width: 62ch; white-space: pre-line; }

.tag {
  border: 1px solid var(--line); background: var(--white);
  padding: 5px 12px; font-size: 14px; border-radius: 999px; display: inline-block;
}

.contactbar {
  position: sticky; bottom: 0; z-index: 20;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 13px 16px calc(13px + env(safe-area-inset-bottom, 0px));
}

/* ============================================================
   ব্যাজ ও অ্যাডমিন
   ============================================================ */
.pill {
  display: inline-block; border: 1px solid var(--line); background: var(--white);
  padding: 1px 9px; font-size: 12px; color: var(--ink-soft);
  margin-right: 4px; border-radius: 999px;
}
.pill-ok   { border-color: var(--green);  color: var(--green);  background: #F1FAF2; }
.pill-bad  { border-color: var(--accent); color: var(--accent); background: #FEF5F2; }
.pill-warn { border-color: #B8860B;       color: #8A6508;       background: #FDF8EC; }

.admin-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 13px; margin-top: 10px;
}
.admin-main { min-width: 0; flex: 1 1 240px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.admin-actions form { display: flex; gap: 4px; align-items: center; }
.admin-actions .btn { padding: 6px 11px; font-size: 14px; }

/* ব্রাউজ পাতা */
.browse-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.browse-bar input { flex: 1 1 160px; margin: 0; }
.browse-bar select { flex: 0 1 auto; width: auto; margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }

.empty { padding: 22px; text-align: center; }
.empty h2 { margin-bottom: 6px; }

/* ফুটার */
.site-footer {
  margin-top: 44px; border-top: 1px solid var(--line); background: var(--surface);
  padding: 24px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
}

/* ============================================================
   নিচের ট্যাব বার ও ভাসমান বোতাম
   ============================================================ */

/* ট্যাব বার যেন কনটেন্ট ঢেকে না ফেলে */
body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 14px -8px rgba(6,42,92,.35);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 2px 7px; text-decoration: none;
  color: var(--ink-soft); font-size: 11.5px; line-height: 1;
  position: relative; transition: color .15s;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.is-here { color: var(--ink); font-weight: 500; }
.tabbar a.is-here::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 2.5px; background: var(--ink); border-radius: 0 0 3px 3px;
}
.tabbar a:active { background: var(--paper); }

/* ভাসমান বোতাম — OLX-এর "SELL" বোতামের ধাঁচে */
.fab {
  position: fixed; right: 16px; z-index: 55;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 18px 12px 15px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 6px 20px -6px rgba(239,78,28,.65), 0 2px 6px rgba(0,0,0,.14);
  transition: transform .14s, box-shadow .14s;
}
.fab svg { width: 20px; height: 20px; }
.fab:active { transform: scale(.96); box-shadow: 0 3px 12px -5px rgba(239,78,28,.6); }

/* বিস্তারিত পাতার যোগাযোগ বার ট্যাব বারের উপরে বসবে */
.contactbar { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }

/* ম্যাপের উচ্চতা ট্যাব বারের জন্য সমন্বয় */
#map { height: calc(100dvh - 300px); }
.strip { bottom: 8px; }

/* ============================================================
   স্কেলিটন লোডিং — অপেক্ষার সময় ফাঁকা পর্দার বদলে
   ============================================================ */
@keyframes shimmer { 100% { background-position: -200% 0; } }

.skel {
  background: linear-gradient(90deg, var(--paper-2) 25%, #F4F1EA 50%, var(--paper-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  border-radius: 6px;
}
.skel-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.skel-tile .skel-img { aspect-ratio: 5 / 4; border-radius: 0; }
.skel-tile .skel-body { padding: 12px 13px 14px; }
.skel-tile .skel-line { height: 13px; margin-bottom: 8px; }
.skel-tile .skel-line.w70 { width: 70%; }
.skel-tile .skel-line.w45 { width: 45%; }

/* ============================================================
   সক্রিয় ফিল্টারের চিপ
   ============================================================ */
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #EEF3FB; border: 1px solid #CFDDF0; color: var(--ink);
  padding: 5px 8px 5px 12px; border-radius: 999px;
  font-size: 13.5px; text-decoration: none;
}
.fchip b { font-weight: 500; }
.fchip .x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(11,61,130,.13); font-size: 12px; line-height: 1;
}
.fchip:hover .x { background: rgba(11,61,130,.25); }

/* ============================================================
   ছবির গ্যালারি — গণনা ও পূর্ণ পর্দা
   ============================================================ */
.gallery-wrap { position: relative; }
.gallery-count {
  position: absolute; right: 10px; bottom: 14px;
  background: rgba(6,42,92,.82); color: #fff; backdrop-filter: blur(4px);
  padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
  pointer-events: none;
}
.gallery img { cursor: zoom-in; scroll-snap-align: center; }
.gallery { scroll-snap-type: x mandatory; }

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8,14,26,.96);
  display: flex; align-items: center; justify-content: center;
}
.lightbox img { max-width: 100%; max-height: 86dvh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.16); color: #fff; font-size: 22px; cursor: pointer;
}
.lightbox-nav {
  position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 0; right: 0; text-align: center; color: #fff; font-size: 14px;
}

/* ============================================================
   যোগাযোগের বোতামজোড়া
   ============================================================ */
.contact-actions { display: flex; gap: 8px; }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1EBE5A; border-color: #1EBE5A; }
.btn-whatsapp svg { width: 18px; height: 18px; }

/* ============================================================
   দ্রুত রিপোর্টের বোতাম
   ============================================================ */
.reason-grid { display: grid; gap: 8px; margin-top: 12px; }
.reason-btn {
  display: block; width: 100%; text-align: right;
  background: var(--white); border: 1px solid var(--line); border-radius: 9px;
  padding: 13px 15px; font: inherit; font-size: 15px; color: var(--ink-text);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.reason-btn:hover { border-color: var(--ink); background: #F9FBFF; }
.reason-btn:active { transform: translateY(1px); }

/* ============================================================
   ধরনের কার্ডে রঙের ইঙ্গিত
   ============================================================ */
.type-card[data-t="family"]   .type-icon-wrap { background: #E8F0FC; }
.type-card[data-t="bachelor"] .type-icon-wrap { background: #EFEAFA; }
.type-card[data-t="sublet"]   .type-icon-wrap { background: #E9F6F1; }
.type-card[data-t="room"]     .type-icon-wrap { background: #FDF3E7; }
.type-card[data-t="shop"]     .type-icon-wrap { background: #FCEEEA; }
.type-card[data-t="office"]   .type-icon-wrap { background: #EAF1F4; }
.type-card[data-t="family"]   svg { color: #1A57B5; }
.type-card[data-t="bachelor"] svg { color: #5B3FBF; }
.type-card[data-t="sublet"]   svg { color: #0C8430; }
.type-card[data-t="room"]     svg { color: #B26A0C; }
.type-card[data-t="shop"]     svg { color: #C9411B; }
.type-card[data-t="office"]   svg { color: #396B82; }

/* একই এলাকার আরও ঘর — অনুভূমিক স্ট্রিপ */
.hscroll {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: 0 0 210px; scroll-snap-align: start; }

/* স্ক্রিন রিডারের জন্য লুকানো লেখা */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ============================================================
   অনুভূমিক কার্ড — বিজ্ঞাপন কম থাকলে গ্রিডে অর্ধেক পর্দা
   ফাঁকা পড়ে থাকে, তাই তখন পূর্ণ প্রস্থে দেখানো হয়
   ============================================================ */
.listcol { display: flex; flex-direction: column; gap: 12px; }

.listcol .tile {
  display: flex; max-width: none; align-items: stretch;
}
.listcol .tile-photo {
  flex: 0 0 132px; aspect-ratio: auto; border-radius: 0;
}
.listcol .tile-photo::after { display: none; }
.listcol .tile-rent {
  left: 7px; bottom: 7px; font-size: 13px; padding: 4px 9px;
}
.listcol .tile-badge { right: 6px; top: 6px; font-size: 10.5px; padding: 2px 7px; }
.listcol .tile-body { flex: 1; min-width: 0; padding: 12px 14px; }
.listcol .tile-title { font-size: 16px; -webkit-line-clamp: 2; }

@media (min-width: 560px) {
  .listcol .tile-photo { flex-basis: 190px; }
}

/* ============================================================
   জেলা/উপজেলা বাছাইয়ের শিট — সার্চসহ
   ============================================================ */
.picker-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; margin-top: 5px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); color: var(--ink-text);
  font: inherit; font-size: 16px; text-align: right; cursor: pointer;
}
.picker-btn::after {
  content: ''; width: 9px; height: 9px; flex-shrink: 0; margin-right: 8px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg); translate: 0 -2px;
}
.picker-btn:disabled { color: var(--ink-soft); background: var(--surface); cursor: not-allowed; }
.picker-btn:disabled::after { display: none; }
.picker-btn.has-value { color: var(--ink-text); font-weight: 500; }

.picker-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; top: 8dvh; z-index: 70;
  background: var(--white); border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column;
  box-shadow: 0 -12px 40px -12px rgba(6,42,92,.4);
}
.picker-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px; flex-shrink: 0;
}
.picker-head h2 { font-size: 18px; }
.picker-close {
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: var(--surface); color: var(--ink-text); font-size: 16px; cursor: pointer;
  flex-shrink: 0;
}
.picker-search {
  display: flex; align-items: center; gap: 8px;
  margin: 0 16px 8px; padding: 0 12px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.picker-search svg { width: 18px; height: 18px; color: var(--ink-soft); flex-shrink: 0; }
.picker-search input {
  flex: 1; border: 0; background: transparent; margin: 0;
  padding: 12px 0; font-size: 16px; color: var(--ink-text);
}
.picker-search input:focus { box-shadow: none; outline: none; }

.picker-list { flex: 1; overflow-y: auto; padding: 4px 8px calc(16px + env(safe-area-inset-bottom, 0px)); }
.picker-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 13px 12px; border: 0; background: none;
  font: inherit; font-size: 16px; color: var(--ink-text); text-align: right;
  cursor: pointer; border-radius: 8px;
}
.picker-item:active { background: var(--surface); }
.picker-item.is-selected { color: var(--ink); font-weight: 600; background: #EEF3FB; }
.picker-item .check { width: 18px; height: 18px; color: var(--ink); flex-shrink: 0; visibility: hidden; }
.picker-item.is-selected .check { visibility: visible; }
.picker-empty { padding: 24px 16px; text-align: center; color: var(--ink-soft); font-size: 14px; }

/* ============================================================
   বিজ্ঞাপনের ফর্ম — একটামাত্র ধারাবাহিক শিট, ভেতরে হালকা বিভাজন-রেখা।
   আলাদা আলাদা ভাসমান কার্ডের বদলে একটাই সংকুচিত, একরকম চেহারার শিট —
   প্রতিটা অংশের আইকনও এখন একই রঙে, বোঝা যায় একই ফর্মের অংশ।
   ============================================================ */
.post-form label {
  color: var(--ink-text); font-weight: 500; font-size: 14px;
}
.post-form .muted { font-weight: 400; }

.form-sheet {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden; border-top: 3px solid var(--ink);
}

.form-section { padding: 16px; }
.form-section + .form-section { border-top: 1px solid var(--line-soft); }

.form-card-title {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink-deep); margin-bottom: 12px;
}
.form-card-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink);
}
.form-card-icon svg { width: 15px; height: 15px; }

/* পিকার বোতাম — সাধারণ ইনপুট থেকে আলাদা করে চেনা যায়, "এটাতে চাপলে তালিকা খুলবে" */
.picker-btn {
  background: #F5F8FC;
  border-color: #DCE6F3;
}
.picker-btn.has-value { background: var(--white); border-color: var(--line); }

/* ============================================================
   অ্যাকাউন্ট হাব — প্রোফাইল, সংখ্যা, মেনু
   ============================================================ */
.acc-profile {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px; box-shadow: var(--shadow);
}
.acc-avatar {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), var(--ink-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
}
.acc-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink-deep); }

.acc-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px;
}
.acc-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 6px; text-decoration: none; box-shadow: var(--shadow);
}
.acc-stat-n { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--ink-deep); }
.acc-stat-l { font-size: 12.5px; color: var(--ink-soft); }

.acc-menu {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow); margin-top: 14px;
}
.acc-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  text-decoration: none; color: var(--ink-text);
  border-bottom: 1px solid var(--line-soft);
}
.acc-row:last-child { border-bottom: 0; }
.acc-row:active { background: var(--surface); }
.acc-row-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink);
}
.acc-row-icon svg { width: 17px; height: 17px; }
.acc-row-label { flex: 1; font-size: 15.5px; }
.acc-row-chev { flex-shrink: 0; color: var(--ink-soft); }
.acc-row-chev svg { width: 16px; height: 16px; }

/* প্রোফাইল কার্ডে এডিট বোতাম */
.acc-edit-btn {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink); text-decoration: none;
}
.acc-edit-btn svg { width: 17px; height: 17px; }
.acc-edit-btn:active { background: var(--paper-2); }

/* ============================================================
   সম্পাদনা পাতায় বিদ্যমান ছবি — মুছে ফেলার টিকসহ
   ============================================================ */
.edit-photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.edit-photo-item {
  position: relative; display: block; aspect-ratio: 1; border-radius: 9px;
  overflow: hidden; border: 1px solid var(--line); cursor: pointer;
}
.edit-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edit-photo-check {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 5px;
  background: rgba(6,42,92,.78); color: #fff; padding: 5px 7px; font-size: 12px;
}
.edit-photo-check input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.edit-photo-item:has(input:checked) { opacity: .45; border-color: var(--accent); }
.edit-photo-item:has(input:checked) .edit-photo-check { background: rgba(239,78,28,.85); }

/* ============================================================
   ড্যাশবোর্ড কার্ড — থাম্বনেইল, ব্যাজ, অ্যাকশন
   ============================================================ */
.dash-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; box-shadow: var(--shadow);
}
.dash-card-top { display: flex; gap: 12px; text-decoration: none; color: var(--ink-text); }
.dash-thumb {
  flex-shrink: 0; width: 76px; height: 76px; border-radius: 9px; overflow: hidden;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
}
.dash-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-info { min-width: 0; flex: 1; }
.dash-title {
  font-family: var(--font-display); font-size: 15.5px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--ink-deep);
}
.dash-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.dash-badges a.pill { text-decoration: none; }
.dash-actions {
  display: flex; align-items: center; gap: 7px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--line-soft); flex-wrap: wrap;
}
.dash-actions .btn { padding: 7px 12px; font-size: 13.5px; }
.dash-actions select {
  width: auto; margin: 0; padding: 7px 10px; font-size: 13.5px;
}
.dash-actions form { display: flex; }
