/* ==========================================================================
   Zillionaire Realty — component styles
   Bootstrap 5 does the layout. This file only adds what Bootstrap has no
   opinion about: the brass/navy identity, the listing card, and the admin UI.
   ========================================================================== */

/* ---------- Typography scale ---------- */
.display-hero  { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
.h-section     { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.text-brass    { color: var(--brass) !important; }
.text-ink      { color: var(--ink) !important; }
.text-slate    { color: var(--slate) !important; }
.bg-ink        { background: var(--ink) !important; }
.bg-mist       { background: var(--mist) !important; }
.fw-display    { font-family: var(--ff-display); }
.lede          { font-size: 1.05rem; line-height: 1.7; }

/* Tabular numerals keep price columns aligned. */
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ---------- Header ---------- */
.navbar-toggler { border: 1px solid var(--line); padding: .35rem .55rem; border-radius: 2px; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(182,137,43,.25); }
.dropdown-menu {
  border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 12px 32px rgba(13,18,28,.1);
  font-size: .93rem; padding: .4rem;
}
.dropdown-item { border-radius: 2px; padding: .5rem .75rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--mist); color: var(--brass); }
.header-cta { font-size: .88rem; }

/* ---------- Hero search ---------- */
.hero-search {
  background: rgba(255,255,255,.97); border-radius: 3px; padding: .6rem;
  box-shadow: 0 18px 48px rgba(13,18,28,.28);
}
.hero-search .form-control,
.hero-search .form-select {
  border: 0; border-radius: 2px; padding: .8rem .9rem; font-size: .95rem;
  background: transparent; color: var(--ink);
}
.hero-search .form-control:focus,
.hero-search .form-select:focus { box-shadow: none; background: var(--mist); }
.hero-search .field + .field { border-left: 1px solid var(--line); }
@media (max-width: 767.98px) {
  .hero-search .field + .field { border-left: 0; border-top: 1px solid var(--line); }
}

/* Trust strip under the hero */
.trust-strip { border-top: 1px solid rgba(255,255,255,.14); }
.trust-strip .stat-num {
  font-family: var(--ff-display); font-size: 1.7rem; font-weight: 600; color: #fff; line-height: 1;
}
.trust-strip .stat-label {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-top: .4rem;
}

/* ---------- Property card ----------
   Signature element: a brass rule that draws in on hover, plus the price
   set as a plate that overlaps the image edge. */
.property-card {
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.property-card:hover {
  box-shadow: 0 16px 40px rgba(13,18,28,.12); transform: translateY(-3px);
  border-color: #d8d8d8;
}
.property-card .card-media { position: relative; aspect-ratio: 3 / 2; background: var(--mist); overflow: hidden; }
.property-card .card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.property-card:hover .card-media img { transform: scale(1.045); }

.badge-status {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  background: rgba(13,18,28,.82); color: #fff; backdrop-filter: blur(4px);
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .6rem; border-radius: 2px;
}
.badge-status.is-ready     { background: rgba(25,135,84,.9); }
.badge-status.is-launch    { background: var(--brass); }
.badge-featured {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  background: var(--brass); color: #fff; font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 2px;
}

.property-card .card-body { padding: 1.15rem 1.15rem 1.25rem; flex: 1 1 auto; display: flex; flex-direction: column; }
.property-card .card-title { font-size: 1.12rem; margin-bottom: .3rem; }
.property-card .card-title a { color: var(--ink); }
.property-card:hover .card-title a { color: var(--brass); }
.property-card .card-locality {
  font-size: .83rem; color: var(--slate); display: flex; gap: .35rem; align-items: flex-start;
  margin-bottom: .85rem;
}
.property-card .card-locality svg { flex: 0 0 auto; margin-top: .18rem; }

.spec-row {
  display: flex; gap: 1.1rem; flex-wrap: wrap; padding: .75rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: .9rem; font-size: .84rem;
}
.spec-row .spec-label { color: var(--slate); display: block; font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .12rem; }
.spec-row .spec-value { color: var(--ink); font-weight: 600; }

.property-card .card-foot { margin-top: auto; display: flex; align-items: flex-end;
  justify-content: space-between; gap: .75rem; }
.price-plate { line-height: 1.2; }
.price-plate .price-label { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.price-plate .price-value { font-family: var(--ff-display); font-size: 1.22rem; font-weight: 600; color: var(--ink); }
.btn-card {
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: .82rem; font-weight: 600; padding: .5rem .95rem; border-radius: 2px;
  white-space: nowrap; transition: background .18s, color .18s, border-color .18s;
}
.btn-card:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Section headings ---------- */
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.section-head p { max-width: 44rem; margin-bottom: 0; }

/* ---------- City tiles ---------- */
.city-tile {
  position: relative; display: block; overflow: hidden; border-radius: 2px;
  aspect-ratio: 4 / 3; background: var(--ink);
}
.city-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .62;
  transition: transform .6s cubic-bezier(.2,.7,.3,1), opacity .3s; }
.city-tile:hover img { transform: scale(1.06); opacity: .5; }
.city-tile .city-body { position: absolute; inset: auto 0 0 0; padding: 1.4rem; z-index: 2;
  background: linear-gradient(to top, rgba(13,18,28,.9), transparent); }
.city-tile h3 { color: #fff; font-size: 1.5rem; margin-bottom: .15rem; }
.city-tile .city-count { color: var(--brass-lt); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Property detail ---------- */
.detail-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; background: var(--mist); }
.detail-thumbs img { aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; cursor: pointer;
  border: 2px solid transparent; transition: border-color .2s; }
.detail-thumbs img:hover, .detail-thumbs img.active { border-color: var(--brass); }

.fact-grid { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.fact-grid .fact { padding: 1.05rem 1.15rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-grid .fact .fact-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate); margin-bottom: .28rem; }
.fact-grid .fact .fact-value { font-family: var(--ff-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); }

.prose { color: var(--slate); font-size: 1.02rem; line-height: 1.8; }
.prose h2 { font-size: 1.45rem; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin-bottom: 1.1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote {
  border-left: 3px solid var(--brass); padding: .3rem 0 .3rem 1.2rem; margin: 1.6rem 0;
  font-family: var(--ff-display); font-size: 1.12rem; color: var(--ink); font-style: italic;
}
.prose a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }

.amenity-chip {
  display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line);
  background: #fff; padding: .48rem .8rem; border-radius: 2px; font-size: .85rem; color: var(--ink);
}
.amenity-chip::before { content: ""; width: 5px; height: 5px; background: var(--brass); border-radius: 50%; }

/* Sticky enquiry panel */
.enquiry-panel { border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.enquiry-panel .panel-head { background: var(--ink); color: #fff; padding: 1.1rem 1.25rem; }
.enquiry-panel .panel-head h3 { color: #fff; font-size: 1.15rem; margin-bottom: .15rem; }
.enquiry-panel .panel-head p { font-size: .82rem; color: rgba(255,255,255,.66); margin: 0; }
@media (min-width: 992px) { .sticky-panel { position: sticky; top: 92px; } }

/* ---------- Forms ---------- */
.form-control, .form-select, .form-check-input {
  border: 1px solid var(--line); border-radius: 2px; padding: -0.32rem .85rem;
 font-size: .94rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brass); box-shadow: 0 0 0 .18rem rgba(182,137,43,.16);
}
.form-label { font-size: .78rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink); margin-bottom: .4rem; }
textarea.form-control { min-height: 120px; }
.form-note { font-size: .78rem; color: var(--slate); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .82rem; }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--brass); }
.crumbs .sep { color: #c2c2c2; margin: 0 .45rem; }
.crumbs .current { color: var(--ink); font-weight: 600; }

/* ---------- Page title band ---------- */
.page-band { background: var(--ink-dp); color: #fff; padding: 3rem 0 2.6rem; position: relative; overflow: hidden; }
.page-band::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 15% 0%, rgba(182,137,43,.2), transparent 62%); }
.page-band > * { position: relative; z-index: 2; }
.page-band h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .5rem; }
.page-band p { color: rgba(255,255,255,.72); margin: 0; max-width: 46rem; }
.page-band .crumbs a { color: rgba(255,255,255,.66); }
.page-band .crumbs .current { color: var(--brass-lt); }
.page-band .crumbs .sep { color: rgba(255,255,255,.34); }

/* ---------- Filter bar ---------- */
.filter-bar { border: 1px solid var(--line); border-radius: 2px; background: #fff; padding: 1rem; overflow: hidden; }
/*
 * Mobile/tablet: one field per row, full width (comfortable to read and tap).
 * Desktop (>=992px): a single row — fields shrink together to fit, and only
 * fall back to horizontal scroll if they hit their minimum width.
 */
.filter-bar .filter-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.filter-bar .filter-field label { display: block; white-space: nowrap; }
.filter-bar .filter-field .form-control,
.filter-bar .filter-field .form-select { width: 100%; }
/* The theme's .tf-btn has a fixed min-width (162px) which used to break the
   narrow filter column, pushing the "Filter" button past the card's right
   edge. Let it size like every other field instead. */
.filter-bar .filter-submit-btn { width: 100%; min-width: 0; white-space: nowrap; }

@media (min-width: 992px) {
    .filter-bar .filter-grid {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: end;
        gap: .6rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 2px;
    }
    .filter-bar .filter-field { flex: 1 1 130px; min-width: 108px; }
    .filter-bar .filter-field-submit { flex: 0 0 110px; min-width: 96px; }
    .filter-bar .filter-submit-btn { padding-left: 10px; padding-right: 10px; }
}
.result-count { font-size: .88rem; color: var(--slate); }

/* ---------- Blog ---------- */
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: 2px; overflow: hidden;
  height: 100%; display: flex; flex-direction: column; transition: box-shadow .22s, transform .22s; }
.blog-card:hover { box-shadow: 0 14px 36px rgba(13,18,28,.1); transform: translateY(-3px); }
.blog-card .card-media { aspect-ratio: 16/10; background: var(--ink); overflow: hidden; position: relative; }
.blog-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .card-media.no-img { display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink) 0%, #223049 100%); }
.blog-card .card-media.no-img span { font-family: var(--ff-display); font-size: 2.6rem;
  color: rgba(182,137,43,.5); }
.blog-card .card-body { padding: 1.15rem; flex: 1 1 auto; display: flex; flex-direction: column; }
.blog-meta { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass);
  margin-bottom: .5rem; }
.blog-card h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: .5rem; }
.blog-card p { font-size: .9rem; margin-bottom: .9rem; }
.blog-card .read-more { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--ink); }
.blog-card:hover .read-more { color: var(--brass); }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #d2d2d2d9; padding: 3.5rem 0 0; }
.site-footer h4 { color: #fff; font-size: 0.9em; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--ff-body); font-weight: 700; margin-bottom: 1.1rem; }
.site-footer a { color: #d2d2d2d9; text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.site-footer .footer-brand { display: flex; align-items: center; gap: rem; margin-bottom: 1rem; }
.site-footer .footer-brand img { width: 80px; height: 80px; object-fit: contain; }
.site-footer .footer-brand strong { font-family: var(--ff-display); color: #fbe793;font-size: 13px; }
.site-footer .footer-about { font-size: .9rem; max-width: 24rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.3rem 0;
  font-size: .82rem; }
.social-dot { width: 36px; height: 36px; display: inline-grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); border-radius: 2px; transition: background .2s, border-color .2s; }
.social-dot:hover { background: var(--brass); border-color: var(--brass); }
.footer-legal-text{color:#a3abb0;font-size:14px;}

/* ---------- Pagination ---------- */
.page-link { color: var(--ink); border: 1px solid var(--line); border-radius: 2px !important;
  margin: 0 .16rem; font-size: .9rem; padding: .5rem .82rem; }
.page-link:hover { background: var(--mist); color: var(--brass); border-color: var(--line); }
.page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-item.disabled .page-link { color: #b7b7b7; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 1040; width: 52px; height: 52px;
  border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.wa-float:hover { transform: translateY(-2px); }

/* ---------- Alerts ---------- */
.alert { border-radius: 2px; border: 1px solid var(--line); font-size: .92rem; }
.alert-success { background: #eaf6ef; border-color: #bfe3cd; color: #14683c; }
.alert-danger  { background: #fdeeee; border-color: #f5c9c9; color: #9a2b2b; }
.alert-warning { background: #fff8e6; border-color: #f2ddab; color: #7a5a12; }

/* ---------- Empty state ---------- */
.empty-state { border: 1px dashed var(--line); border-radius: 3px; padding: 3rem 1.5rem; text-align: center; }
.empty-state h3 { font-size: 1.2rem; }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-body { background: #f4f5f7; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 244px; flex: 0 0 244px; background: var(--ink-dp); color: rgba(255,255,255,.7);
  padding: 1.25rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .side-brand { display: flex; align-items: center; gap: .55rem; padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.09); margin-bottom: 1rem; }
.admin-side .side-brand img { width: 32px; height: 32px; object-fit: contain; }
.admin-side .side-brand strong { color: #fff; font-family: var(--ff-display); font-size: 1rem; }
.admin-side .side-label { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.36); padding: 1rem 1.25rem .45rem; }
.admin-side a { display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1.25rem; color: rgba(255,255,255,.72); font-size: .9rem; border-left: 2px solid transparent; }
.admin-side a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-side a.active { background: rgba(182,137,43,.14); border-left-color: var(--brass); color: #fff; font-weight: 600; }
.admin-side .pill { background: var(--brass); color: #fff; font-size: .68rem; font-weight: 700;
  padding: .1rem .42rem; border-radius: 10px; }

.admin-main { flex: 1 1 auto; min-width: 0; }
.admin-top { background: #fff; border-bottom: 1px solid var(--line); padding: .85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-top h1 { font-size: 1.22rem; margin: 0; }
.admin-content { padding: 1.5rem; }

.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 1.15rem; }
.stat-card .stat-k { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.stat-card .stat-v { font-family: var(--ff-display); font-size: 1.85rem; font-weight: 600; color: var(--ink); line-height: 1.2; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.panel-title { padding: .95rem 1.15rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.panel-body { padding: 1.15rem; }

.admin-table { font-size: .89rem; margin: 0; }
.admin-table th { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { vertical-align: middle; border-color: var(--line); }
.admin-table .thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 2px; background: var(--mist); }

.chip { font-size: .7rem; font-weight: 600; padding: .2rem .5rem; border-radius: 2px;
  letter-spacing: .05em; text-transform: uppercase; }
.chip-on   { background: #eaf6ef; color: #14683c; }
.chip-off  { background: #f1f1f1; color: #6a6a6a; }
.chip-new  { background: #fff3d6; color: #8a6414; }
.chip-done { background: #e7eefc; color: #26468f; }

@media (max-width: 991.98px) {
  .admin-side { position: fixed; left: -244px; transition: left .25s ease; z-index: 1050; }
  .admin-side.open { left: 0; }
  .admin-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1045; }
}

/* Amenity icon preview (admin: amenities master + property form checklist) */
.amenity-icon-preview{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 auto;border-radius:6px;background:#161e2d;color:#d9ae52}
.amenity-icon-preview.sm{width:34px;height:34px}
.amenity-icon-preview svg{width:22px;height:22px}
.amenity-icon-preview.sm svg{width:18px;height:18px}
