/* ============================================================
   GidaLink — Main Stylesheet
   ============================================================ */

/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0F1F3D;
  --navy-lg:   #1A3260;
  --blue:      #2563EB;
  --blue-soft: #EFF6FF;
  --gold:      #F59E0B;
  --gold-soft: #FEF3C7;
  --green:     #10B981;
  --red:       #EF4444;
  --yellow:    #F59E0B;
  --gray-50:   #F8FAFC;
  --gray-100:  #EEF2F7;
  --gray-200:  #E2E8F0;
  --gray-300:  #CBD5E1;
  --gray-500:  #64748B;
  --gray-700:  #334155;
  --white:     #FFFFFF;
  --shadow-sm: 0 1px 8px rgba(15,31,61,.07);
  --shadow:    0 4px 24px rgba(202, 220, 255, 0.1);
  --shadow-lg: 0 12px 48px rgba(15,31,61,.15);
  --radius:    14px;
  --radius-sm: 8px;
  --trans:     .18s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', 'Segoe UI', sans-serif; background: var(--gray-50); color: var(--gray-700); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* ── Container ───────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; border: none; transition: var(--trans); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.btn-navy   { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-lg); }
.btn-ghost  { background: transparent; color: white; border: 1.5px solid var(--gray-300); }
.btn-ghost:hover { border-color: var(--blue); color: white; }
.btn-gold   { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #d97706; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm     { padding: 6px 14px; font-size: 13px; }
.btn-block  { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 13px; color: var(--navy); margin-bottom: 6px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-300); border-radius: 10px; font-size: 14px; color: var(--navy); background: #fff; transition: var(--trans); }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-control::placeholder { color: var(--gray-300); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { color: var(--red); font-size: 12px; margin-top: 4px; }
.form-hint  { color: var(--gray-500); font-size: 12px; margin-top: 4px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar { background: var(--navy); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 24px rgba(10,22,40,.28); }
.navbar__inner { display: flex; align-items: center; height: 64px; gap: 16px; }
.navbar__logo { font-weight: 900; font-size: 22px; letter-spacing: -1px; flex-shrink: 0; }
.logo-gida  { color: var(--gold); }
.logo-link  { color: #fff; }
.navbar__search { flex: 1; max-width: 420px; display: flex; background: rgba(255,255,255,.1); border-radius: 10px; overflow: hidden; }
.navbar__search input { flex: 1; background: transparent; border: none; padding: 9px 14px; color: #fff; font-size: 14px; outline: none; }
.navbar__search input::placeholder { color: rgba(255,255,255,.5); }
.navbar__search button { background: var(--blue); border: none; padding: 0 14px; cursor: pointer; color: #fff; font-size: 15px; }
.navbar__nav { display: flex; gap: 2px; }
.nav-link { padding: 8px 12px; color: rgba(255,255,255,.7); border-radius: 8px; font-weight: 600; font-size: 14px; transition: var(--trans); }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.12); }
.navbar__auth { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

/* User menu */
.user-menu { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(255,255,255,.1); border-radius: 10px; cursor: pointer; color: #fff; font-weight: 600; font-size: 14px; }
.user-menu:focus-within .user-dropdown, .user-menu:hover .user-dropdown { display: block; }
.user-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 180px; padding: 6px; z-index: 300; }
.user-dropdown a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--gray-700); font-size: 14px; font-weight: 500; }
.user-dropdown a:hover { background: var(--gray-50); color: var(--navy); }
.user-dropdown hr { border: none; border-top: 1px solid var(--gray-200); margin: 4px 0; }
.user-dropdown .logout { color: var(--red); }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 12px; flex-shrink: 0; }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--trans); }

/* ── Flash ──────────────────────────────────────────────────── */
.flash { position: fixed; top: 72px; right: 20px; z-index: 500; padding: 14px 44px 14px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); max-width: 380px; animation: slideIn .3s ease; }
.flash--success { background: #D1FAE5; color: #065F46; border: 1.5px solid #A7F3D0; }
.flash--error   { background: #FEE2E2; color: #991B1B; border: 1.5px solid #FECACA; }
.flash--info    { background: var(--blue-soft); color: #1D4ED8; border: 1.5px solid #BFDBFE; }
.flash__close   { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; opacity: .6; }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lg) 100%); padding: 44px 0 32px; }
.hero__title { color: #fff; font-size: 34px; font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.hero__title span { color: var(--gold); }
.hero__sub   { color: rgba(255,255,255,.65); font-size: 15px; margin-bottom: 28px; }
.hero__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { padding: 8px 18px; border: 2px solid rgba(255,255,255,.25); border-radius: 20px; cursor: pointer; background: transparent; color: rgba(255,255,255,.8); font-weight: 600; font-size: 13px; transition: var(--trans); }
.filter-chip:hover, .filter-chip.active { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.filter-chip.area { border-color: rgba(255,255,255,.2); }
.filter-chip.area:hover, .filter-chip.area.active { border-color: #fff; background: rgba(255,255,255,.15); color: #fff; }
.filter-divider { width: 1px; background: rgba(255,255,255,.2); margin: 0 6px; align-self: stretch; display: inline-block; }

/* ── Listing Grid ────────────────────────────────────────────── */
.listings-bar { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 16px; flex-wrap: wrap; gap: 10px; }
.listings-count { font-size: 14px; color: var(--gray-500); }
.listings-count strong { color: var(--navy); }
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)); gap: 22px; padding-bottom: 60px; }

/* ── Property Card ───────────────────────────────────────────── */
.prop-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-100); transition: transform var(--trans), box-shadow var(--trans); cursor: pointer; position: relative; display: flex; flex-direction: column; }
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prop-card__img  { height: 196px; overflow: hidden; position: relative; }
.prop-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.prop-card:hover .prop-card__img img { transform: scale(1.05); }
.prop-card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.prop-card__save  { position: absolute; top: 8px; right: 10px; background: rgba(255,255,255,.9); border: none; cursor: pointer; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 17px; transition: var(--trans); }
.prop-card__save:hover { background: #fff; transform: scale(1.1); }
.prop-card__body  { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.prop-card__meta  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.prop-card__title { font-weight: 800; font-size: 15px; color: var(--navy); margin-bottom: 3px; line-height: 1.3; }
.prop-card__loc   { color: var(--gray-500); font-size: 13px; margin-bottom: 10px; }
.prop-card__price { font-weight: 900; font-size: 19px; color: var(--blue); margin-bottom: 12px; margin-top: auto; }
.prop-card__owner { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--gray-100); }
.prop-card__owner-info { flex: 1; min-width: 0; }
.prop-card__owner-name { font-size: 12px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-card__owner-sub  { font-size: 11px; color: var(--gray-500); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.badge-featured  { background: var(--gold); color: #fff; }
.badge-verified  { background: var(--gold-soft); color: #92400E; }
.badge-type-house  { background: #EFF6FF; color: #1D4ED8; }
.badge-type-shop   { background: #F0FDF4; color: #166534; }
.badge-type-office { background: #F5F3FF; color: #6D28D9; }
.badge-type-land   { background: #FFF7ED; color: #9A3412; }
.badge-type-flat   { background: #EFF6FF; color: #1D4ED8; }
.badge-available  { background: #D1FAE5; color: #065F46; }
.badge-reserved   { background: #FEF3C7; color: #92400E; }
.badge-rented     { background: #FEE2E2; color: #991B1B; }
.badge-renovation { background: var(--gray-100); color: var(--gray-700); }
.badge::before { content:''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.badge-available::before  { background: var(--green); }
.badge-reserved::before   { background: var(--yellow); }
.badge-rented::before     { background: var(--red); }
.badge-renovation::before { background: var(--gray-500); }

/* ── Avatar ──────────────────────────────────────────────────── */
.avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex-shrink: 0; }
.avatar-40 { width: 40px; height: 40px; font-size: 15px; }
.avatar-52 { width: 52px; height: 52px; font-size: 19px; }
.avatar-72 { width: 72px; height: 72px; font-size: 26px; }
.avatar-blue   { background: var(--blue); }
.avatar-navy   { background: var(--navy); }
.avatar-purple { background: #7C3AED; }
.avatar-teal   { background: #0891B2; }
.avatar-emerald{ background: #059669; }

/* ── Property Detail Page ────────────────────────────────────── */
.prop-detail { max-width: 940px; margin: 0 auto; padding: 32px 20px 60px; }
.prop-detail__gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; border-radius: var(--radius); overflow: hidden; height: 400px; margin-bottom: 28px; }
.prop-detail__gallery .main-img { height: 100%; object-fit: cover; width: 100%; }
.prop-detail__gallery .thumb-col { display: grid; grid-template-rows: repeat(auto-fill, 1fr); gap: 10px; }
.prop-detail__gallery .thumb-img { height: 100%; object-fit: cover; width: 100%; cursor: pointer; border-radius: 4px; transition: var(--trans); }
.prop-detail__gallery .thumb-img:hover { opacity: .85; }
.prop-detail__body { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
.prop-detail__main {}
.prop-detail__sidebar {}
.prop-detail__title { font-size: 26px; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.prop-detail__loc   { color: var(--gray-500); font-size: 15px; margin-bottom: 16px; }
.prop-detail__price-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.prop-detail__price { font-size: 30px; font-weight: 900; color: var(--blue); }
.prop-detail__desc  { color: var(--gray-700); line-height: 1.8; margin-bottom: 24px; }
.prop-detail__specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.spec-box { background: var(--gray-50); border: 1.5px solid var(--gray-100); border-radius: 10px; padding: 14px; text-align: center; }
.spec-box__val   { font-size: 20px; font-weight: 900; color: var(--navy); }
.spec-box__label { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.prop-detail__amenities { margin-bottom: 24px; }
.amenities-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.amenity-tag { background: var(--blue-soft); color: var(--blue); border-radius: 6px; padding: 4px 12px; font-size: 13px; font-weight: 600; }

/* Sidebar card */
.sidebar-card { background: #fff; border-radius: var(--radius); border: 1.5px solid var(--gray-100); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.owner-info { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.owner-info__name  { font-weight: 700; color: var(--navy); font-size: 15px; }
.owner-info__sub   { color: var(--gray-500); font-size: 13px; margin-top: 2px; }
.owner-info__stats { color: var(--gray-500); font-size: 12px; margin-top: 3px; }
.sidebar-card .btn { margin-bottom: 10px; }
.login-gate { background: var(--gray-50); border: 1.5px dashed var(--gray-300); border-radius: 10px; padding: 16px; text-align: center; font-size: 13px; color: var(--gray-500); }
.login-gate a { color: var(--blue); font-weight: 700; }

/* ── Comments ────────────────────────────────────────────────── */
.comments-section { margin-top: 36px; border-top: 2px solid var(--gray-100); padding-top: 28px; }
.comments-section h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 22px; }
.comment-item { display: flex; gap: 12px; margin-bottom: 18px; }
.comment-bubble { flex: 1; background: var(--gray-50); border-radius: 12px; padding: 12px 16px; }
.comment-author { font-weight: 700; font-size: 13px; color: var(--navy); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.author-tag { background: var(--gold); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 10px; font-weight: 800; }
.comment-text { font-size: 14px; color: var(--gray-700); }
.comment-time { font-size: 11px; color: var(--gray-500); margin-top: 5px; }
.reply-btn { background: none; border: none; font-size: 12px; color: var(--blue); cursor: pointer; font-weight: 600; margin-top: 4px; }
.replies { margin-top: 12px; margin-left: 44px; }
.reply-item { background: #FEF9EC; border: 1.5px solid #FDE68A; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.comment-form { display: flex; gap: 10px; margin-top: 20px; }
.comment-form textarea { flex: 1; border: 1.5px solid var(--gray-300); border-radius: 10px; padding: 11px 14px; font-size: 14px; resize: none; height: 76px; }
.comment-form textarea:focus { outline: none; border-color: var(--blue); }

/* ── Chat Page ───────────────────────────────────────────────── */
.chat-layout { display: grid; grid-template-columns: 220px 1fr; height: calc(100vh - 140px); min-height: 520px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 24px 0 40px; border: 1.5px solid var(--gray-100); }
.chat-sidebar { background: var(--navy); display: flex; flex-direction: column; }
.chat-sidebar__title { color: #fff; font-weight: 800; font-size: 15px; padding: 20px 16px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.room-item { padding: 12px 16px; cursor: pointer; border-left: 3px solid transparent; transition: var(--trans); }
.room-item:hover { background: rgba(255,255,255,.08); }
.room-item.active { background: rgba(255,255,255,.12); border-left-color: var(--gold); }
.room-item__name  { color: #fff; font-weight: 600; font-size: 13px; }
.room-item__last  { color: rgba(255,255,255,.45); font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { display: flex; flex-direction: column; }
.chat-main__header { padding: 16px 20px; border-bottom: 1.5px solid var(--gray-100); font-weight: 700; color: var(--navy); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.chat-main__msgs   { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; align-items: flex-start; gap: 10px; }
.chat-msg__bubble { flex: 1; }
.chat-msg__header { display: flex; gap: 8px; align-items: baseline; margin-bottom: 3px; }
.chat-msg__user   { font-weight: 700; font-size: 13px; color: var(--navy); }
.chat-msg__time   { font-size: 11px; color: var(--gray-500); }
.chat-msg__text   { font-size: 14px; color: var(--gray-700); }
.chat-msg__reply-to { background: var(--gray-100); border-left: 3px solid var(--blue); border-radius: 0 6px 6px 0; padding: 4px 10px; font-size: 12px; color: var(--gray-500); margin-bottom: 4px; margin-left: 42px; }
.chat-main__input  { padding: 12px 16px; border-top: 1.5px solid var(--gray-100); display: flex; gap: 8px; align-items: flex-end; }
.chat-main__input textarea { flex: 1; border: 1.5px solid var(--gray-300); border-radius: 10px; padding: 10px 14px; font-size: 14px; resize: none; max-height: 100px; min-height: 42px; }
.chat-main__input textarea:focus { outline: none; border-color: var(--blue); }

/* ── Map Page ─────────────────────────────────────────────────── */
.map-page { display: grid; grid-template-columns: 320px 1fr; gap: 0; height: calc(100vh - 130px); margin: 20px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-sidebar { background: #fff; overflow-y: auto; border-right: 1.5px solid var(--gray-100); }
.map-sidebar__head { padding: 16px; border-bottom: 1px solid var(--gray-100); }
.map-sidebar__head h3 { font-size: 16px; font-weight: 800; color: var(--navy); }
.map-list-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--gray-50); cursor: pointer; transition: var(--trans); }
.map-list-item:hover { background: var(--gray-50); }
.map-list-item img { width: 64px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.map-list-item__title { font-weight: 700; font-size: 13px; color: var(--navy); margin-bottom: 2px; }
.map-list-item__price { font-weight: 800; font-size: 13px; color: var(--blue); }
.map-list-item__loc   { font-size: 11px; color: var(--gray-500); }
#map { flex: 1; width: 100%; }

/* ── Profile Page ────────────────────────────────────────────── */
.profile-page { max-width: 860px; margin: 0 auto; padding: 32px 20px 60px; }
.profile-header { background: linear-gradient(135deg, var(--navy), var(--navy-lg)); border-radius: var(--radius); padding: 36px; display: flex; gap: 24px; align-items: center; color: #fff; margin-bottom: 28px; }
.profile-header__name { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.profile-header__role { font-size: 14px; color: rgba(255,255,255,.7); }
.profile-stats { display: flex; gap: 24px; margin-top: 16px; }
.profile-stat { text-align: center; }
.profile-stat__val  { font-size: 22px; font-weight: 900; }
.profile-stat__label { font-size: 12px; color: rgba(255,255,255,.65); }
.profile-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--gray-100); border-radius: 10px; padding: 4px; }
.profile-tab { flex: 1; padding: 10px; border: none; background: transparent; cursor: pointer; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--gray-500); transition: var(--trans); }
.profile-tab.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.profile-section { background: #fff; border-radius: var(--radius); border: 1.5px solid var(--gray-100); padding: 24px; margin-bottom: 20px; }
.profile-section h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: #fff; border-radius: 20px; width: 100%; max-width: 460px; padding: 40px; box-shadow: var(--shadow-lg); }
.auth-logo  { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-gida { font-size: 28px; }
.auth-logo p { color: var(--gray-500); font-size: 14px; margin-top: 6px; }
.auth-tabs { display: flex; background: var(--gray-50); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 10px; border: none; background: transparent; cursor: pointer; border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--gray-500); transition: var(--trans); }
.auth-tab.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.role-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.role-btn { padding: 12px 6px; border: 2px solid var(--gray-200); border-radius: 10px; background: #fff; cursor: pointer; text-align: center; font-weight: 700; font-size: 13px; color: var(--gray-700); transition: var(--trans); }
.role-btn:hover { border-color: var(--blue); }
.role-btn.active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.role-btn span  { display: block; font-size: 22px; margin-bottom: 4px; }
.verification-notice { background: var(--gold-soft); border: 1.5px solid #FDE68A; border-radius: 10px; padding: 12px 16px; font-size: 13px; color: #92400E; margin-bottom: 16px; }

/* ── Admin ───────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar { background: var(--navy); padding: 24px 0; }
.admin-sidebar h2 { color: var(--gold); font-size: 14px; font-weight: 800; padding: 0 16px 12px; text-transform: uppercase; letter-spacing: .5px; }
.admin-nav-link { display: block; padding: 11px 16px; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 600; border-left: 3px solid transparent; transition: var(--trans); }
.admin-nav-link:hover, .admin-nav-link.active { color: #fff; background: rgba(255,255,255,.08); border-left-color: var(--gold); }
.admin-main { padding: 28px; background: var(--gray-50); }
.admin-main h1 { font-size: 24px; font-weight: 900; color: var(--navy); margin-bottom: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 22px; border: 1.5px solid var(--gray-100); box-shadow: var(--shadow-sm); }
.stat-card__val   { font-size: 32px; font-weight: 900; color: var(--navy); }
.stat-card__label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.stat-card__icon  { font-size: 28px; margin-bottom: 8px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th { background: var(--gray-50); color: var(--navy); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 12px 16px; text-align: left; }
.admin-table td { padding: 13px 16px; border-bottom: 1px solid var(--gray-50); font-size: 14px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }

/* ── Post Property ───────────────────────────────────────────── */
.post-page { max-width: 760px; margin: 0 auto; padding: 32px 20px 60px; }
.post-page h1 { font-size: 26px; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.post-page > p { color: var(--gray-500); margin-bottom: 28px; }
.post-section { background: #fff; border-radius: var(--radius); border: 1.5px solid var(--gray-100); padding: 26px; margin-bottom: 20px; }
.post-section h2 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-100); }
.image-drop { border: 2px dashed var(--gray-300); border-radius: 12px; padding: 32px; text-align: center; cursor: pointer; transition: var(--trans); }
.image-drop:hover { border-color: var(--blue); background: var(--blue-soft); }
.image-drop .icon { font-size: 36px; margin-bottom: 8px; }
.image-drop p { color: var(--gray-500); font-size: 14px; }
.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 16px; }
.image-preview-item { position: relative; border-radius: 8px; overflow: hidden; }
.image-preview-item img { width: 100%; height: 80px; object-fit: cover; }
.image-remove { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ── Verify Page ─────────────────────────────────────────────── */
.verify-page { max-width: 640px; margin: 0 auto; padding: 40px 20px 60px; }
.verify-steps { display: flex; gap: 0; margin-bottom: 32px; }
.verify-step { flex: 1; text-align: center; position: relative; }
.verify-step__circle { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gray-300); background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-weight: 800; font-size: 14px; color: var(--gray-500); }
.verify-step.done .verify-step__circle  { background: var(--green); border-color: var(--green); color: #fff; }
.verify-step.active .verify-step__circle { background: var(--blue); border-color: var(--blue); color: #fff; }
.verify-step__label { font-size: 12px; color: var(--gray-500); font-weight: 600; }
.verify-step::after { content: ''; position: absolute; top: 18px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; background: var(--gray-200); z-index: -1; }
.verify-step:last-child::after { display: none; }

/* ── Saved / Inbox ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 0; }
.empty-state__icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.empty-state p  { color: var(--gray-500); font-size: 14px; margin-bottom: 24px; }

/* ── Inbox ───────────────────────────────────────────────────── */
.inbox-layout { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 150px); min-height: 520px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1.5px solid var(--gray-100); margin: 24px 0; }
.inbox-threads { border-right: 1.5px solid var(--gray-100); overflow-y: auto; }
.inbox-thread  { padding: 14px 16px; border-bottom: 1px solid var(--gray-50); cursor: pointer; transition: var(--trans); }
.inbox-thread:hover, .inbox-thread.active { background: var(--blue-soft); }
.inbox-thread__name { font-weight: 700; font-size: 14px; color: var(--navy); }
.inbox-thread__preview { font-size: 12px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.inbox-thread.unread .inbox-thread__name::after { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--blue); border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.inbox-msg-area { display: flex; flex-direction: column; }
.inbox-msg-area__head { padding: 16px 20px; border-bottom: 1.5px solid var(--gray-100); font-weight: 700; color: var(--navy); }
.inbox-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg-out, .msg-in { max-width: 75%; }
.msg-out { align-self: flex-end; }
.msg-in  { align-self: flex-start; }
.msg-bubble { padding: 10px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg-out .msg-bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg-in  .msg-bubble { background: var(--gray-100); color: var(--gray-700); border-bottom-left-radius: 4px; }
.msg-time { font-size: 11px; color: var(--gray-500); margin-top: 3px; text-align: right; }
.inbox-input { padding: 12px 16px; border-top: 1.5px solid var(--gray-100); display: flex; gap: 8px; }
.inbox-input textarea { flex: 1; border: 1.5px solid var(--gray-300); border-radius: 10px; padding: 10px 14px; font-size: 14px; resize: none; height: 44px; }
.inbox-input textarea:focus { outline: none; border-color: var(--blue); }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.page-btn { padding: 8px 14px; border: 1.5px solid var(--gray-200); border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--navy); transition: var(--trans); }
.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar__nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .prop-detail__body { grid-template-columns: 1fr; }
  .prop-detail__gallery { grid-template-columns: 1fr; height: 260px; }
  .prop-detail__gallery .thumb-col { display: none; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .map-page { grid-template-columns: 1fr; }
  .map-sidebar { max-height: 300px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .inbox-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero__title { font-size: 24px; }
  .listings-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .navbar__search { display: none; }
}

/* ── Utilities ───────────────────────────────────────────────── */
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.text-muted  { color: var(--gray-500); font-size: 13px; }
.text-navy   { color: var(--navy); }
.fw-800 { font-weight: 800; }
.section-title { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.divider { border: none; border-top: 1.5px solid var(--gray-100); margin: 24px 0; }
.spinner { display: inline-block; width: 22px; height: 22px; border: 3px solid rgba(37,99,235,.2); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); margin-top: 60px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 48px 0 32px; }
.footer__logo { font-size: 22px; font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.footer__brand p { font-size: 13px; line-height: 1.7; }
.footer__col h4 { color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer__col a { display: block; color: rgba(255,255,255,.6); font-size: 13px; margin-bottom: 8px; transition: color var(--trans); }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; }
@media(max-width:768px){ .footer__inner { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .footer__inner { grid-template-columns: 1fr; } }

/* ── Mobile navbar open ──────────────────────────────────────── */
@media(max-width:900px){
    .navbar__nav, .navbar__auth {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 20px;
    }
    .navbar.mobile-open .navbar__nav,
    .navbar.mobile-open .navbar__auth {
        display: flex !important;
    }
    .navbar__inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
    }
    .navbar__nav { display: none; width: 100%; order: 3; }
    .navbar__auth { display: none; width: 100%; order: 4; padding-bottom: 12px; }
    .navbar__logo { order: 1; }
    .mobile-menu-toggle { order: 2; margin-left: auto; }
    .navbar__search { order: 5; width: 100%; max-width: 100%; margin-top: 8px; display: none; }
}

/* ── Avatar upload box ───────────────────────────────────────── */
.avatar-upload-box {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: 14px;
    padding: 18px 20px;
    transition: var(--trans);
}
.avatar-upload-box:hover { border-color: var(--blue); background: var(--blue-soft); }
.avatar-upload-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--gray-200);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-info p { color: var(--gray-500); font-size: 12px; margin-top: 5px; }

/* ── Chat avatar image ───────────────────────────────────────── */
.chat-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--gray-200);
}

/* ── Document upload box ─────────────────────────────────────── */
.doc-upload-box {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--trans);
    background: var(--gray-50);
}
.doc-upload-box:hover { border-color: var(--blue); background: var(--blue-soft); }
.doc-preview-empty { text-align: center; padding: 20px; }

/* ── Verify page steps ───────────────────────────────────────── */
.verify-steps {
    display: flex;
    align-items: flex-start;
    margin-bottom: 36px;
    position: relative;
}
.verify-step {
    flex: 1;
    text-align: center;
    position: relative;
}
.verify-step__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid var(--gray-300);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 800;
    font-size: 15px;
    color: var(--gray-500);
    position: relative;
    z-index: 2;
}
.verify-step.done .verify-step__circle  { background: var(--green);  border-color: var(--green);  color: #fff; }
.verify-step.active .verify-step__circle { background: var(--blue);   border-color: var(--blue);   color: #fff; }
.verify-step__label { font-size: 12px; color: var(--gray-500); font-weight: 600; }
.verify-step.done  .verify-step__label  { color: var(--green); }
.verify-step.active .verify-step__label { color: var(--blue);  }
.verify-step::after {
    content: '';
    position: absolute;
    top: 19px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    height: 2.5px;
    background: var(--gray-200);
    z-index: 1;
}
.verify-step.done::after { background: var(--green); }
.verify-step:last-child::after { display: none; }
