/* Supplemental styles for pages/components not in the original static design:
   property detail, filters, auth pages, user enquiries, and the admin panel. */

/* ---- Property filter + detail ---- */
.property-filter { margin: 24px 0 40px; }
.property-detail .property-gallery-main {
  width: 100%; border-radius: 18px; object-fit: cover; max-height: 460px;
}
.property-detail .property-gallery-thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px;
}
.property-detail .property-gallery-thumbs img {
  width: 100%; height: 110px; object-fit: cover; border-radius: 12px;
}
.property-detail-body { margin-top: 28px; }
.property-detail-body .badge-status {
  display: inline-block; background: #111; color: #fff; padding: 6px 14px;
  border-radius: 999px; font-size: .8rem; font-weight: 600; margin-bottom: 10px;
}
.property-detail-body h2 { font-weight: 800; }

/* ---- Blog detail ---- */
.post-cover {
  width: 100%; border-radius: 18px; object-fit: cover; max-height: 440px; margin-bottom: 30px;
}
.post-body { color: #3a3a3a; font-size: 16px; line-height: 1.8; }
.post-body p { margin: 0 0 20px; }
.post-body h2, .post-body h3 { font-weight: 800; margin: 32px 0 14px; }
.post-body img { max-width: 100%; border-radius: 12px; margin: 12px 0; }

.page-hero--mls {
  background-image: url("../images/pdf-img-202.jpeg");
}
.page-hero--mls::before { background: none; }

.idx-section {
  padding: 90px 0 100px;
}
.idx-section--property {
  padding-top: 20px;
  border-top: 1px solid #ececec;
}
.idx-embed-wrap {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .28);
}
.idx-embed {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
  background: #fff;
}
.idx-disclaimer {
  margin: 0;
  padding: 14px 18px 16px;
  font-size: 12px;
  line-height: 1.55;
  color: #6b6b6b;
  background: #f7f7f7;
}

@media (max-width: 991.98px) {
  .idx-section {
    padding-top: 64px;
    padding-bottom: 70px;
  }
  .idx-section--property { padding-top: 8px; }
  .idx-embed { min-height: 640px; }
}

.blog-sidebar { position: sticky; top: 90px; }
.blog-sidebar h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.recent-post {
  display: flex; gap: 14px; align-items: center; padding: 12px;
  border: 1px solid #ececec; border-radius: 14px; margin-bottom: 14px;
  text-decoration: none; color: inherit; transition: box-shadow .2s ease, transform .2s ease;
}
.recent-post:hover { box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.recent-post img { width: 84px; height: 68px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.recent-post .rp-meta { min-width: 0; }
.recent-post .rp-title { font-weight: 700; font-size: 14px; line-height: 1.35; margin: 0 0 6px; color: #111; }
.recent-post .rp-date { font-size: 12px; color: #8a8a8a; }

/* ---- Auth cards / user area (reuses .login-card look) ---- */
.auth-card { max-width: 460px; }
.enquiry-status {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}

/* ==========================================================================
   Admin panel — "Estate" premium theme (deep emerald + brass on a soft canvas)
   ========================================================================== */
:root {
  --admin-sidebar-w: 268px;
  --admin-sidebar-collapsed: 84px;
  --ink-1: #0b1f19;        /* sidebar top (deep pine) */
  --ink-2: #123a2e;        /* sidebar bottom (emerald ink) */
  --brass: #c9a24b;
  --brass-2: #e6cd86;
  --emerald: #1f6f5c;
  --estate-ink: #15231e;   /* body text */
  --estate-muted: #6b7a73;
  --line: rgba(16,48,41,.08);
  --card-shadow: 0 18px 40px -24px rgba(12,31,25,.35);
}

.admin-body {
  min-height: 100vh;
  color: var(--estate-ink);
  background:
    radial-gradient(1200px 520px at 82% -8%, rgba(201,162,75,.10), transparent 60%),
    radial-gradient(900px 500px at -6% 8%, rgba(31,111,92,.12), transparent 55%),
    linear-gradient(135deg, #eef3ef 0%, #f4f2ea 52%, #f7f4ee 100%);
  background-attachment: fixed;
}

/* ---- Sidebar ---- */
.admin-sidebar {
  width: var(--admin-sidebar-w);
  background: linear-gradient(185deg, var(--ink-1) 0%, var(--ink-2) 100%);
  color: #d7e2dc;
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0;
  transition: transform .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1);
  z-index: 1040;
  box-shadow: 0 0 60px -10px rgba(11,31,25,.6);
  overflow: hidden;
}
.admin-sidebar::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 20% 0%, rgba(201,162,75,.14), transparent 70%);
  pointer-events: none;
}
.admin-sidebar .brand {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 20px;
  color: #fff; font-weight: 700; font-size: 1.02rem; letter-spacing: .2px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-sidebar .brand img {
  height: 38px; width: 38px; object-fit: contain; border-radius: 9px;
  background: #fff; padding: 4px;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5);
}
.admin-sidebar .brand span { line-height: 1.15; }
.admin-nav { position: relative; padding: 16px 12px; overflow-y: auto; flex: 1; }
.admin-nav .nav-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .16em;
  color: rgba(215,226,220,.4); padding: 14px 14px 8px; font-weight: 700;
}
.admin-nav a {
  position: relative; display: flex; align-items: center; gap: 13px;
  padding: 11px 14px; margin-bottom: 3px;
  color: #c3d1ca; text-decoration: none; border-radius: 12px;
  font-size: .935rem; font-weight: 500; white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.admin-nav a i { font-size: 1.2rem; flex-shrink: 0; width: 24px; text-align: center; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(201,162,75,.24), rgba(201,162,75,.05));
}
.admin-nav a.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--brass-2), var(--brass));
  box-shadow: 0 0 14px 1px rgba(201,162,75,.6);
}
.admin-nav a.active i { color: var(--brass-2); }
.admin-sidebar .side-foot {
  position: relative; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 11px; color: #cdd9d3;
}
.admin-sidebar .side-foot .avatar {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #14231e;
  background: linear-gradient(135deg, var(--brass-2), var(--brass));
}
.admin-sidebar .side-foot .who { min-width: 0; line-height: 1.2; }
.admin-sidebar .side-foot .who strong { font-size: .85rem; color: #fff; display: block; }
.admin-sidebar .side-foot .who small { font-size: .72rem; color: rgba(205,217,211,.6); }

/* ---- Main + topbar ---- */
.admin-main {
  flex: 1; margin-left: var(--admin-sidebar-w);
  transition: margin-left .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; min-width: 0;
}
.admin-topbar {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  padding: 15px 26px; display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1030;
}
.admin-topbar .toggle-btn {
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  width: 42px; height: 42px; font-size: 1.25rem; line-height: 1; cursor: pointer;
  color: var(--emerald); display: grid; place-items: center;
  transition: background .15s ease, transform .15s ease;
}
.admin-topbar .toggle-btn:hover { background: #f2f7f4; transform: translateY(-1px); }
.admin-topbar h1 { font-size: 1.18rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.admin-topbar .topbar-user { color: var(--estate-ink); font-weight: 600; }
.admin-content { padding: 30px 26px 40px; }

/* Collapsed (desktop) */
.admin-shell.collapsed .admin-sidebar { width: var(--admin-sidebar-collapsed); }
.admin-shell.collapsed .admin-sidebar .brand span,
.admin-shell.collapsed .admin-sidebar .side-foot .who,
.admin-shell.collapsed .admin-nav .nav-label,
.admin-shell.collapsed .admin-nav a span { display: none; }
.admin-shell.collapsed .admin-nav a { justify-content: center; }
.admin-shell.collapsed .admin-sidebar .side-foot { justify-content: center; }
.admin-shell.collapsed .admin-main { margin-left: var(--admin-sidebar-collapsed); }

/* ---- Cards ---- */
.admin-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  box-shadow: var(--card-shadow);
}
.admin-card h2, .admin-card .h5 { letter-spacing: -.01em; }

/* Page heading strip */
.admin-pagehead { margin-bottom: 22px; }
.admin-pagehead .eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: .16em;
  color: var(--brass); font-weight: 700;
}
.admin-pagehead h2 { font-size: 1.5rem; font-weight: 800; margin: 2px 0 0; }

/* ---- KPI cards ---- */
.kpi {
  position: relative; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 18px;
  box-shadow: var(--card-shadow); height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.kpi:hover { transform: translateY(-3px); box-shadow: 0 26px 48px -26px rgba(12,31,25,.45); }
.kpi::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--brass));
}
.kpi .kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .medallion {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.35rem; color: var(--emerald);
  background: linear-gradient(135deg, rgba(31,111,92,.14), rgba(201,162,75,.12));
}
.kpi .num {
  font-size: 2rem; font-weight: 800; line-height: 1; margin-top: 16px;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.kpi .lbl { color: var(--estate-muted); font-size: .86rem; margin-top: 6px; }
.kpi .delta {
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(31,111,92,.1); color: var(--emerald);
}

/* ---- Chart cards ---- */
.chart-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: var(--card-shadow); height: 100%;
}
.chart-card h3 {
  font-size: 1rem; font-weight: 800; margin: 0 0 2px; letter-spacing: -.01em;
}
.chart-card .sub { color: var(--estate-muted); font-size: .82rem; margin-bottom: 14px; }
.chart-wrap { position: relative; }

/* Legacy stat card fallback */
.stat-card { background:#fff; border-radius:16px; padding:20px; border:1px solid var(--line); box-shadow: var(--card-shadow); }
.stat-card .num { font-size:1.8rem; font-weight:800; }
.stat-card .lbl { color: var(--estate-muted); font-size:.9rem; }

/* Tables inside admin cards */
.admin-card .table > :not(caption) > * > * { padding: .8rem .75rem; }
.admin-card .table thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--estate-muted); border-bottom: 1px solid var(--line);
}

/* Icon action buttons */
.btn-icon {
  width: 36px; height: 36px; padding: 0; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 10px; line-height: 1;
}
.btn-icon i { font-size: 1rem; }
.table-actions { display: inline-flex; gap: 6px; }

/* Buttons tuned to the theme */
.admin-body .btn-dark {
  background: linear-gradient(135deg, #16352b, #0f281f); border: none;
}
.admin-body .btn-dark:hover { background: linear-gradient(135deg, #1b4033, #123227); }

/* Backdrop for mobile drawer */
.admin-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(11,31,25,.5); backdrop-filter: blur(2px); z-index: 1035;
}

@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; }
  .admin-shell.mobile-open .admin-sidebar { transform: translateX(0); }
  .admin-shell.mobile-open .admin-backdrop { display: block; }
  .admin-shell.collapsed .admin-main { margin-left: 0; }
}
