/*
Theme Name: TOKİ Takas
Theme URI: https://tokitakas.com
Author: TOKİ Takas
Author URI: https://tokitakas.com
Description: TOKİ hak sahipleri için konut takas platformu teması. CPT, AJAX filtreler, mesajlaşma ve kullanıcı paneli içerir.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toki-takas
Tags: real-estate, custom-post-types, ajax, user-panel
*/

/* ─── CSS DEĞİŞKENLERİ ─── */
:root {
  /* Benetton Yeşil + Lacivert */
  --primary:       #00a550;   /* Benetton yeşil */
  --primary-dark:  #007a3a;   /* koyu yeşil     */
  --primary-light: #e6f7ed;   /* açık yeşil     */
  --accent:        #1b2a6b;   /* lacivert        */
  --accent-dark:   #111c4e;   /* koyu lacivert   */
  --accent-light:  #eceffe;   /* açık lacivert   */
  --success:       #00a550;
  --danger:        #e74c3c;
  --warning:       #f39c12;
  --text:          #0f1730;   /* çok koyu lacivert */
  --muted:         #5a6478;
  --border:        #dde3ef;
  --bg:            #f5f7fc;
  --white:         #ffffff;
  --shadow:        0 2px 16px rgba(27,42,107,.08);
  --shadow-lg:     0 8px 32px rgba(27,42,107,.16);
  --r:    12px;
  --r-sm:  8px;

  /* Reklam renkleri */
  --ad-bg:      #fff9e6;
  --ad-border:  #f4c542;
  --ad-text:    #7c5c00;
  --ad-label:   #e6a800;
}

/* ─── REKLAM ALANLARI ─── */
.ad-slot {
  background: var(--ad-bg);
  border: 2px dashed var(--ad-border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background .18s, border-color .18s;
  position: relative;
  text-decoration: none;
}
.ad-slot:hover {
  background: #fff3cc;
  border-color: #e6a800;
}
.ad-slot-tag {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 9px; font-weight: 800;
  color: var(--ad-label);
  text-transform: uppercase;
  letter-spacing: .6px;
  background: rgba(244,197,66,.18);
  padding: 2px 7px;
  border-radius: 20px;
}
.ad-slot-icon  { font-size: 28px; }
.ad-slot-title { font-size: 13px; font-weight: 800; color: var(--ad-text); }
.ad-slot-sub   { font-size: 11px; color: #a07a20; text-align: center; line-height: 1.5; }

/* Banner (yatay — leaderboard) */
.ad-banner {
  width: 100%;
  min-height: 90px;
  padding: 18px 24px;
}
/* Kare / kutu */
.ad-box {
  min-height: 250px;
  padding: 24px 16px;
}
/* İnce şerit */
.ad-strip {
  min-height: 60px;
  flex-direction: row;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
}
.ad-strip .ad-slot-icon { font-size: 20px; }
.ad-strip .ad-slot-title { font-size: 12px; }

/* Sidebar reklam */
.ad-sidebar {
  min-height: 200px;
  padding: 20px 14px;
}

/* Reklam kapsayıcı etiket */
.ad-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.ad-label-pill {
  font-size: 10px;
  font-weight: 800;
  color: var(--ad-text);
  background: var(--ad-bg);
  border: 1px solid var(--ad-border);
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ad-label-line {
  flex: 1; height: 1px;
  background: var(--ad-border);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }

/* ─── HEADER ─── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: var(--primary);
}
.logo-text span { color: var(--accent); }

/* NAV */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 7px 13px; border-radius: 7px;
  color: var(--muted); font-weight: 700; font-size: 13px;
  transition: all .18s; white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.current-menu-item,
.main-nav a.active { background: var(--primary-light); color: var(--primary); }

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 8px; }
.hamburger {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--text); padding: 4px;
}

/* ─── BUTTONS ─── */
.btn {
  padding: 8px 16px; border-radius: 8px;
  font-weight: 700; font-size: 13px;
  cursor: pointer; border: none;
  transition: all .18s;
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; text-decoration: none;
}
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 10px; }
.btn-xl { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,165,80,.3); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(27,42,107,.35); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-danger-soft { background: #fef2f2; color: var(--danger); }
.btn-danger-soft:hover { background: #fde8e8; }
.btn-success { background: var(--success); color: #fff; }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  position: fixed; inset: 0; background: var(--white); z-index: 200;
  padding: 20px; transform: translateX(-100%); transition: transform .28s;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-close {
  align-self: flex-end; background: var(--bg); border: none;
  width: 34px; height: 34px; border-radius: 7px; cursor: pointer;
  font-size: 18px; margin-bottom: 12px;
}
.mobile-nav a {
  padding: 13px 16px; border-radius: 10px;
  font-weight: 700; font-size: 15px; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.mobile-nav a:hover { background: var(--primary-light); color: var(--primary); }
.mobile-nav .mn-divider { height: 1px; background: var(--border); margin: 6px 0; }
.mobile-nav .mn-section { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; padding: 8px 16px 4px; }

/* ─── TOAST ─── */
#toki-toast {
  position: fixed; bottom: 22px; right: 22px;
  background: var(--text); color: #fff;
  padding: 12px 18px; border-radius: 10px;
  font-weight: 700; font-size: 13px;
  transform: translateY(80px); opacity: 0;
  transition: all .28s; z-index: 999;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); max-width: 320px;
}
#toki-toast.show { transform: translateY(0); opacity: 1; }

/* ─── SECTIONS ─── */
.section { padding: 52px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-hd {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px; gap: 12px; flex-wrap: wrap;
}
.section-title { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; }
.section-title span { color: var(--primary); }
.section-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 40%, var(--primary) 100%);
  color: #fff; padding: 0 20px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 15% 50%, rgba(255,255,255,.06) 0%, transparent 50%),
              radial-gradient(circle at 85% 20%, rgba(255,255,255,.04) 0%, transparent 40%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; padding: 52px 0;
}
.hero-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px,3.2vw,44px);
  font-weight: 800; line-height: 1.18; margin-bottom: 14px;
}
.hero-left h1 span { color: #f39c12; }
.hero-left > p { font-size: 15px; opacity: .85; margin-bottom: 24px; line-height: 1.75; max-width: 440px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 0;
  background: rgba(255,255,255,.1); border-radius: 10px;
  backdrop-filter: blur(4px); margin-top: 22px; overflow: hidden;
}
.stat { flex: 1; padding: 13px 10px; text-align: center; border-right: 1px solid rgba(255,255,255,.15); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 20px; font-weight: 800; font-family: 'Playfair Display', serif; }
.stat-label { font-size: 10px; opacity: .65; margin-top: 2px; }

/* SEARCH CARD */
.search-card {
  background: #fff; border-radius: 16px;
  padding: 24px; box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.search-card h3 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 16px; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--muted); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: .4px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 13px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--text);
  background: #fff; outline: none; transition: border-color .18s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; display: none; }
.form-error.show { display: block; }

/* ─── LISTING CARDS ─── */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 20px; }
.listing-card {
  background: #fff; border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
  transition: all .22s; cursor: pointer; position: relative;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img {
  height: 188px; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 9px; border-radius: 5px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
}
.badge-featured { background: var(--accent); color: #fff; }
.badge-new { background: var(--success); color: #fff; }
.badge-urgent { background: var(--danger); color: #fff; }
.card-fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none; cursor: pointer;
  font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.card-fav:hover { transform: scale(1.12); }
.card-fav.active { color: var(--danger); }
.card-body { padding: 14px 16px 16px; }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; line-height: 1.35; }
.card-location { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.card-specs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card-spec { font-size: 12px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 3px; }
.card-exchange {
  background: var(--primary-light); border-radius: 7px;
  padding: 7px 10px; font-size: 12px; color: var(--primary);
  font-weight: 700; display: flex; align-items: center; gap: 5px;
}
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
}
.card-views { font-size: 12px; color: var(--muted); }

/* ─── AVATAR ─── */
.avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ─── HOW SECTION ─── */
.how-section { background: var(--primary-light); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.step {
  background: #fff; border-radius: var(--r);
  padding: 24px 20px; text-align: center;
  box-shadow: var(--shadow); transition: transform .2s;
}
.step:hover { transform: translateY(-4px); }
.step-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #d0eaf4);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(26,95,122,.12);
}
.step-num { font-size: 10px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── CITIES ─── */
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.city-card {
  background: #fff; border-radius: var(--r-sm);
  padding: 18px 14px; text-align: center;
  border: 2px solid var(--border); cursor: pointer;
  transition: all .18s; display: block;
}
.city-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); }
.city-icon { font-size: 26px; margin-bottom: 7px; }
.city-name { font-weight: 700; font-size: 13px; color: var(--text); }
.city-count { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ─── ARCHIVE / İLANLAR ─── */
.archive-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 28px; max-width: 1200px; margin: 0 auto; padding: 28px 20px;
}
.filter-sidebar {
  background: #fff; border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow);
  height: fit-content; position: sticky; top: 74px;
}
.filter-title { font-weight: 800; font-size: 15px; margin-bottom: 18px; display: flex; align-items: center; gap: 7px; }
.filter-group { margin-bottom: 16px; }
.filter-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.filter-select {
  width: 100%; padding: 9px 12px; border: 2px solid var(--border);
  border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--text); background: #fff; outline: none; cursor: pointer; transition: border-color .18s;
}
.filter-select:focus { border-color: var(--primary); }
.filter-range { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.filter-range input {
  width: 100%; padding: 9px 8px; border: 2px solid var(--border);
  border-radius: 7px; font-size: 13px; font-weight: 600;
  text-align: center; outline: none; transition: border-color .18s;
}
.filter-range input:focus { border-color: var(--primary); }
.results-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.results-count { font-size: 13px; color: var(--muted); }
.results-count strong { color: var(--text); }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r); height: 280px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ─── SINGLE LISTING ─── */
.single-listing-layout {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 28px; max-width: 1200px; margin: 0 auto; padding: 28px 20px;
}
.listing-gallery { border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.listing-main-img {
  width: 100%; height: 380px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: #fff;
}
.listing-specs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 20px;
}
.spec-item {
  background: var(--bg); border-radius: var(--r-sm);
  padding: 14px 10px; text-align: center;
}
.spec-icon { font-size: 22px; margin-bottom: 5px; }
.spec-label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.spec-value { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 2px; }
.listing-sidebar-card {
  background: #fff; border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow);
  margin-bottom: 16px; position: sticky; top: 74px;
}

/* ─── NASIL ÇALIŞIR ─── */
.how-hero {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff; padding: 52px 20px; text-align: center;
}
.how-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(24px,4vw,42px); font-weight: 800; margin-bottom: 14px; }
.how-hero h1 span { color: #f39c12; }
.how-hero p { font-size: 16px; opacity: .85; max-width: 580px; margin: 0 auto; line-height: 1.75; }
.disclaimer {
  background: #fff8e1; border-bottom: 3px solid #f39c12; padding: 14px 20px;
}
.disclaimer-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: flex-start; gap: 12px; }
.disclaimer p { font-size: 13px; color: #7c5700; line-height: 1.65; margin: 0; }
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 37px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--primary), var(--accent)); opacity: .25;
}
.tl-item { display: flex; gap: 20px; margin-bottom: 36px; position: relative; }
.tl-icon {
  width: 76px; height: 76px; border-radius: 50%; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 1; box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.tl-body {
  background: #fff; border-radius: var(--r);
  padding: 22px 24px; flex: 1; box-shadow: var(--shadow);
}
.tl-step { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.tl-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 9px; }
.tl-body p { font-size: 13px; color: var(--muted); line-height: 1.75; }
.info-box { border-radius: 8px; padding: 11px 15px; font-size: 13px; font-weight: 600; margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; }
.info-box-warn { background: #fff8e1; color: #7c5700; }
.info-box-info { background: var(--primary-light); color: var(--primary); }

/* ─── FAQ ─── */
.faq-item { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 10px; }
.faq-q {
  width: 100%; padding: 16px 20px; background: none; border: none;
  text-align: left; font-weight: 700; font-size: 14px;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; color: var(--text); transition: background .18s;
}
.faq-q:hover { background: var(--bg); }
.faq-icon { font-size: 20px; flex-shrink: 0; transition: transform .22s; line-height: 1; }
.faq-a { display: none; padding: 0 20px 16px; font-size: 13px; color: var(--muted); line-height: 1.75; }
.faq-a.open { display: block; }

/* ─── DASHBOARD ─── */
.dash-tabs { background: #fff; border-bottom: 2px solid var(--border); overflow-x: auto; }
.dash-tabs-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; }
.tab {
  padding: 14px 18px; font-weight: 700; font-size: 13px;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; white-space: nowrap; transition: all .18s;
  background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.dash-layout {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 24px; max-width: 1200px; margin: 0 auto; padding: 24px 20px;
}
.dash-sidebar {
  background: #fff; border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow);
  height: fit-content; position: sticky; top: 74px;
}
.dash-user-card {
  text-align: center; padding-bottom: 18px;
  border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.dash-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 14px rgba(0,165,80,.28);
}
.dash-name { font-weight: 800; font-size: 15px; }
.dash-email { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dash-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 8px;
  font-weight: 700; font-size: 13px; color: var(--muted);
  transition: all .18s; margin-bottom: 2px;
}
.dash-nav a:hover, .dash-nav a.active { background: var(--primary-light); color: var(--primary); }
.dash-nav .dn-divider { height: 1px; background: var(--border); margin: 8px 0; }
.dash-section {
  background: #fff; border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.dash-section-title {
  font-weight: 800; font-size: 15px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.stat-card-icon { font-size: 22px; margin-bottom: 7px; }
.stat-card-num { font-size: 28px; font-weight: 800; font-family: 'Playfair Display', serif; color: var(--primary); }
.stat-card-lbl { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ─── LISTING TABLE ─── */
.listing-table { width: 100%; border-collapse: collapse; }
.listing-table th {
  text-align: left; padding: 9px 11px;
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 2px solid var(--border);
}
.listing-table td { padding: 13px 11px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
.listing-table tr:last-child td { border-bottom: none; }
.listing-table tr:hover td { background: var(--bg); }
.status-pill { padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.s-active { background: #d4f6e8; color: #0e7a45; }
.s-pending { background: #fef3c7; color: #d97706; }
.s-draft { background: #f3f4f6; color: #6b7280; }
.s-deleted { background: #fde8e8; color: var(--danger); }

/* ─── CHAT ─── */
.chat-layout { display: grid; grid-template-columns: 260px 1fr; height: 480px; }
.conv-list { border-right: 1px solid var(--border); overflow-y: auto; }
.conv-hd { padding: 14px 16px; font-weight: 800; font-size: 14px; border-bottom: 1px solid var(--border); }
.conv-item { padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .15s; display: flex; align-items: center; gap: 10px; }
.conv-item:hover, .conv-item.active { background: var(--primary-light); }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 700; font-size: 13px; }
.conv-preview { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.conv-time { font-size: 11px; color: var(--muted); }
.unread-badge { background: var(--danger); color: #fff; border-radius: 50%; width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.chat-main { display: flex; flex-direction: column; }
.chat-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }
.chat-messages { flex: 1; padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; max-width: 72%; }
.msg.me { align-self: flex-end; }
.msg-bubble { padding: 10px 13px; font-size: 13px; line-height: 1.55; }
.msg.other .msg-bubble { background: var(--bg); border-radius: 14px 14px 14px 4px; }
.msg.me .msg-bubble { background: var(--primary); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg-time { font-size: 11px; opacity: .6; margin-top: 3px; text-align: right; }
.chat-input-wrap { padding: 10px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.48); backdrop-filter: blur(3px);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .22s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff; border-radius: 16px;
  padding: 28px; max-width: 480px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  transform: scale(.96) translateY(16px); transition: all .22s;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-lg { max-width: 580px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; }
.modal-close {
  background: var(--bg); border: none; width: 30px; height: 30px;
  border-radius: 7px; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.modal-close:hover { background: var(--border); }

/* ─── TOGGLE ─── */
.toggle-wrap { width: 42px; height: 22px; border-radius: 11px; background: #ccc; cursor: pointer; position: relative; transition: background .22s; flex-shrink: 0; }
.toggle-wrap[data-on="true"] { background: var(--primary); }
.toggle-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: left .22s; pointer-events: none; }
.toggle-wrap[data-on="true"] .toggle-knob { left: 23px; }

/* ─── PASSWORD STRENGTH ─── */
.pass-strength-bar { height: 4px; border-radius: 2px; background: var(--border); margin-bottom: 12px; overflow: hidden; }
.pass-strength-fill { height: 100%; width: 0; background: var(--danger); transition: all .3s; }

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ─── BREADCRUMB ─── */
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 14px 0; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb span { opacity: .5; }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state-icon { font-size: 52px; margin-bottom: 14px; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* ─── PAGINATION ─── */
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 28px; flex-wrap: wrap; }

/* ─── ALERTS ─── */
.alert { border-radius: 10px; padding: 14px 18px; font-size: 13px; font-weight: 600; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.alert-info { background: var(--primary-light); color: var(--primary); }
.alert-warn { background: #fff8e1; color: #7c5700; }
.alert-success { background: #d4f6e8; color: #0e7a45; }
.alert-danger { background: #fde8e8; color: var(--danger); }

/* ─── FOOTER ─── */
.site-footer { background: var(--text); color: #fff; padding: 44px 20px 22px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 13px; margin-top: 10px; line-height: 1.7; max-width: 240px; }
.footer-col h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.65); font-size: 13px; margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.38); flex-wrap: wrap; gap: 8px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 0; }
  .archive-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .single-listing-layout { grid-template-columns: 1fr; }
  .listing-sidebar-card { position: static; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .conv-list { height: 200px; border-right: none; border-bottom: 1px solid var(--border); }
  .chat-messages { height: 240px; }
}
@media (max-width: 640px) {
  .main-nav, .header-actions { display: none; }
  .hamburger { display: block; }
  .hero-left h1 { font-size: 26px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .listing-specs-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .tl-item { flex-direction: column; }
  .tl-icon { width: 54px; height: 54px; font-size: 24px; }
}

/* Shimmer skeleton animation */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
