/* ==========================================
   EMİR EMLAK – DESIGN SYSTEM
   Brand Colors: #e31e24 (red), #1a3a6b (navy), #ffffff (white)
   ========================================== */

:root {
  --red: #e31e24;
  --red-light: #f87171;
  --red-bg: #fef2f2;
  --navy: #1a3a6b;
  --navy-light: #2d5299;
  --navy-bg: #eff6ff;
  --gold: #f59e0b;
  --green: #10b981;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

.hidden { display: none !important; }

/* ==========================================
   BRAND LOGO
   ========================================== */
.brand-circle, .sl-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2.5px solid var(--red);
  position: relative;
}
.sl-circle {
  width: 36px; height: 36px;
  border: 2px solid var(--red);
}
.sl-circle.small { width: 28px; height: 28px; border-width: 1.5px; }

.brand-e, .sl-e { color: var(--red); font-weight: 800; font-size: 16px; }
.brand-mir, .sl-mir { color: var(--navy); font-weight: 800; font-size: 14px; }
.sl-e { font-size: 12px; }
.sl-mir { font-size: 11px; }

.brand-logo-box { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.brand-emlak { color: var(--red); font-weight: 800; font-size: 11px; letter-spacing: 3px; }

/* ==========================================
   LOGIN SCREEN
   ========================================== */
#screen-login {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.login-left {
  flex: 1;
  background: linear-gradient(150deg, var(--navy) 0%, #2d5299 50%, #1a3a6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,.04);
  top: -100px; right: -100px;
}

.login-left::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.04);
  bottom: -80px; left: -60px;
}

.login-brand { color: white; max-width: 440px; position: relative; z-index: 1; }

.login-brand .brand-logo-box {
  align-items: flex-start;
  margin-bottom: 32px;
}

.login-brand .brand-circle {
  width: 64px; height: 64px;
  border-color: white;
}
.login-brand .brand-e { font-size: 22px; color: white; }
.login-brand .brand-mir { font-size: 18px; color: white; }
.login-brand .brand-emlak { color: var(--red-light); font-size: 13px; }

.login-brand h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.login-brand h1 span { color: var(--red-light); }

.login-brand p {
  color: rgba(255,255,255,.75);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.login-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}

.feat-item i {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red-light);
}

.login-right {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: white;
}

.login-card { width: 100%; max-width: 380px; }

.login-card-header { margin-bottom: 28px; }
.login-card-header h2 { font-size: 28px; font-weight: 800; color: var(--gray-900); }
.login-card-header p { color: var(--gray-500); margin-top: 4px; }

.scenario-hint {
  background: var(--navy-bg);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--navy);
  margin-bottom: 20px;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 14px;
}

.input-icon input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--gray-900);
  transition: all .2s;
}

.input-icon input:focus {
  outline: none;
  border-color: var(--navy);
  background: white;
  box-shadow: 0 0 0 3px rgba(26,58,107,.08);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-700);
  cursor: pointer;
}

.forgot-link { color: var(--navy); font-weight: 600; }
.forgot-link:hover { color: var(--red); }

.btn-login {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  margin-bottom: 20px;
}

.login-roles { margin-top: 20px; text-align: center; }
.login-roles p { color: var(--gray-400); font-size: 12px; margin-bottom: 10px; }

.role-buttons { display: flex; gap: 10px; }
.role-btn {
  flex: 1;
  padding: 9px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-700);
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.role-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-bg); }

/* ==========================================
   APP SHELL
   ========================================== */
#app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width .3s ease;
  z-index: 100;
}

.sidebar::-webkit-scrollbar { width: 0; }

.sidebar-brand {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sl-text {
  color: var(--red-light);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: color .2s;
}
.sidebar-toggle:hover { color: white; }

.sidebar-user {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}

.user-avatar {
  width: 38px; height: 38px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}

.user-info { flex: 1; overflow: hidden; }
.user-name { display: block; color: white; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { display: block; color: rgba(255,255,255,.5); font-size: 11px; }

.user-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.user-status.online { background: var(--green); box-shadow: 0 0 0 2px rgba(16,185,129,.3); }

.sidebar-nav { padding: 12px 0; flex: 1; }

.nav-section-label {
  padding: 12px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.3);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,.65);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .2s;
  position: relative;
  cursor: pointer;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-item span:first-of-type { flex: 1; }

.nav-item:hover {
  background: rgba(255,255,255,.07);
  color: white;
}

.nav-item.active {
  background: rgba(227,30,36,.2);
  color: white;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  border-radius: 0 2px 2px 0;
}

.nav-badge {
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.nav-count {
  color: rgba(255,255,255,.4);
  font-size: 11px;
}

/* ==========================================
   MAIN WRAPPER
   ========================================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ==========================================
   TOPBAR
   ========================================== */
.topbar {
  height: var(--topbar-h);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px;
}

.breadcrumb { font-size: 15px; font-weight: 600; color: var(--gray-700); }

.topbar-right { display: flex; align-items: center; gap: 8px; }

.topbar-btn {
  width: 38px; height: 38px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  position: relative;
  transition: all .2s;
}

.topbar-btn:hover { background: var(--gray-50); color: var(--gray-900); }

.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid white;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
}
.topbar-user:hover { background: var(--gray-50); }

.topbar-avatar {
  width: 30px; height: 30px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: white;
}

.topbar-user-info span { display: block; font-size: 13px; font-weight: 600; color: var(--gray-900); }
.topbar-user-info small { display: block; font-size: 11px; color: var(--gray-500); }

/* ==========================================
   CONTENT AREA
   ========================================== */
.content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  background: var(--gray-50);
}

.content-screen { display: block; }
.content-screen.hidden { display: none; }

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

.page-sub {
  color: var(--gray-500);
  font-size: 13.5px;
  margin-top: 4px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary:hover { background: #c01920; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(227,30,36,.3); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: white;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-bg); }

.btn-back {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 0;
}
.btn-back:hover { color: var(--navy); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 14px; font-size: 15px; }

.icon-btn {
  width: 32px; height: 32px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  cursor: pointer;
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all .2s;
}
.icon-btn:hover { background: var(--navy-bg); border-color: var(--navy); color: var(--navy); }

/* ==========================================
   KPI CARDS
   ========================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-reports { grid-template-columns: repeat(4, 1fr); }

.kpi-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform .2s, box-shadow .2s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.kpi-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kpi-primary .kpi-icon { background: #fef2f2; color: var(--red); }
.kpi-success .kpi-icon { background: #ecfdf5; color: var(--green); }
.kpi-warning .kpi-icon { background: #fffbeb; color: var(--gold); }
.kpi-revenue .kpi-icon { background: #faf5ff; color: #7c3aed; }
.kpi-info .kpi-icon { background: var(--navy-bg); color: var(--navy); }
.kpi-social .kpi-icon { background: #fdf4ff; color: #9333ea; }

.kpi-body { flex: 1; overflow: hidden; }
.kpi-value { display: block; font-size: 22px; font-weight: 800; color: var(--gray-900); white-space: nowrap; }
.kpi-label { display: block; font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.kpi-trend { display: block; font-size: 11px; margin-top: 6px; font-weight: 600; }
.kpi-trend.up { color: var(--green); }
.kpi-trend.down { color: var(--red); }
.kpi-trend.neutral { color: var(--gray-400); }

/* ==========================================
   CHARTS
   ========================================== */
.charts-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.chart-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.chart-main { flex: 2; }
.chart-side { flex: 1; }

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-header h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); }

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-500);
}

.legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.red { background: var(--red); }
.legend-dot.yellow { background: var(--gold); }

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.dl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-700);
}

.dl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dl-item strong { margin-left: auto; color: var(--gray-900); }

/* ==========================================
   BOTTOM ROW (Dashboard)
   ========================================== */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.section-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h3 { font-size: 15px; font-weight: 700; }

.see-all { font-size: 13px; color: var(--navy); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.see-all:hover { color: var(--red); }

/* ==========================================
   LISTING LIST (Dashboard)
   ========================================== */
.listing-list { display: flex; flex-direction: column; gap: 10px; }

.listing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s;
}
.listing-item:hover { background: var(--gray-50); }

.listing-thumb {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.listing-info { flex: 1; overflow: hidden; }
.listing-info strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-info span { display: block; font-size: 11px; color: var(--gray-400); margin-top: 1px; }

.listing-price { font-size: 13px; font-weight: 700; color: var(--gray-900); white-space: nowrap; }

/* ==========================================
   STATUS BADGES
   ========================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status-active { background: #ecfdf5; color: #059669; }
.status-sold { background: #fef2f2; color: var(--red); }
.status-rented { background: #fffbeb; color: #d97706; }

.type-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.type-buyer { background: var(--navy-bg); color: var(--navy); }
.type-seller { background: #fef2f2; color: var(--red); }
.type-tenant { background: #fffbeb; color: #d97706; }
.type-landlord { background: #ecfdf5; color: #059669; }

/* ==========================================
   TEAM LIST (Dashboard)
   ========================================== */
.team-list { display: flex; flex-direction: column; gap: 14px; }

.team-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}

.team-info { flex: 1; overflow: hidden; }
.team-info strong { display: block; font-size: 13px; font-weight: 600; }
.team-info span { display: block; font-size: 11px; color: var(--gray-400); }

.team-ciro { font-size: 13px; font-weight: 700; color: var(--gray-900); white-space: nowrap; width: 80px; text-align: right; }

.team-bar-wrap {
  width: 60px;
  height: 4px;
  background: var(--gray-100);
  border-radius: 2px;
  overflow: hidden;
}

.team-bar { height: 100%; border-radius: 2px; transition: width .5s; }

/* ==========================================
   NOTIFICATIONS ROW
   ========================================== */
.notif-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border-left: 4px solid transparent;
}

.notif-info { background: var(--navy-bg); border-color: var(--navy); }
.notif-warning { background: #fffbeb; border-color: var(--gold); }
.notif-success { background: #ecfdf5; border-color: var(--green); }

.notif-card > i { font-size: 18px; flex-shrink: 0; }
.notif-info > i { color: var(--navy); }
.notif-warning > i { color: var(--gold); }
.notif-success > i { color: var(--green); }

.notif-card > div { flex: 1; }
.notif-card strong { display: block; font-size: 13.5px; font-weight: 700; }
.notif-card span { display: block; font-size: 12.5px; color: var(--gray-500); margin-top: 2px; }

.notif-action {
  padding: 7px 14px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-700);
  transition: all .2s;
  white-space: nowrap;
}
.notif-action:hover { border-color: var(--navy); color: var(--navy); }

/* ==========================================
   FILTER BAR
   ========================================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 13px;
}

.search-input input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--gray-900);
  font-size: 13.5px;
  transition: all .2s;
}

.search-input input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,107,.06); }

.filter-select {
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--gray-700);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.filter-select:focus { outline: none; border-color: var(--navy); }

/* ==========================================
   LISTINGS GRID
   ========================================== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.listing-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all .2s;
}

.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.lcard-image {
  position: relative;
  height: 160px;
}

.lcard-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lcard-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.badge-active { background: #ecfdf5; color: #059669; }
.badge-sold { background: #fef2f2; color: var(--red); }
.badge-rented { background: #fffbeb; color: #d97706; }

.lcard-type {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--navy);
  color: white;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.lcard-body { padding: 16px; }
.lcard-body h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }

.lcard-location { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.lcard-location i { color: var(--red); font-size: 11px; }

.lcard-specs {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.lcard-specs span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gray-500);
}

.lcard-specs i { color: var(--navy); font-size: 11px; }

.lcard-footer { display: flex; align-items: center; justify-content: space-between; }
.lcard-price { font-size: 15px; font-weight: 800; color: var(--red); }

.lcard-actions { display: flex; gap: 4px; }

.listing-card-add {
  border: 2px dashed var(--gray-200);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.listing-card-add:hover { border-color: var(--red); background: var(--red-bg); }

.add-listing-center { text-align: center; color: var(--gray-400); }
.add-listing-center:hover { color: var(--red); }
.add-icon {
  width: 48px; height: 48px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 8px;
}
.listing-card-add:hover .add-icon { background: var(--red-bg); color: var(--red); }
.add-listing-center p { font-size: 14px; font-weight: 600; }

/* ==========================================
   WIZARD
   ========================================== */
.wizard-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.wizard-steps {
  display: flex;
  align-items: center;
  padding: 24px 32px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all .2s;
}

.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-400);
  transition: all .2s;
}

.wizard-step.active .step-circle {
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: 0 0 0 4px rgba(227,30,36,.15);
}

.wizard-step.completed .step-circle {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.wizard-step span {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
}

.wizard-step.active span { color: var(--red); }
.wizard-step.completed span { color: var(--green); }

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  min-width: 20px;
  margin-bottom: 18px;
}

.wizard-content { padding: 32px; }

.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

.wizard-panel h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.wizard-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-full { grid-column: 1 / -1; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--gray-900);
  font-size: 13.5px;
  transition: all .2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,58,107,.07);
}

textarea.form-control { resize: vertical; }

.radio-group { display: flex; gap: 10px; }

.radio-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  transition: all .2s;
}

.radio-btn.active, .radio-btn:has(input:checked) {
  border-color: var(--red);
  background: var(--red-bg);
  color: var(--red);
}

.input-with-suffix { position: relative; }
.input-with-suffix input { padding-right: 36px; }
.input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-weight: 600;
}

.toggle-switch {
  width: 44px; height: 24px;
  background: var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background .2s;
}

.toggle-switch.active { background: var(--green); }

.toggle-knob {
  position: absolute;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.toggle-switch.active .toggle-knob { left: 23px; }

/* ==========================================
   MAP STEP
   ========================================== */
.map-placeholder {
  margin-top: 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-mock {
  height: 220px;
  background: #e8f4f8;
  position: relative;
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(26,58,107,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,58,107,.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-mock .map-pin {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: move;
}

.map-mock .map-pin i { color: var(--red); font-size: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.map-mock .map-pin span {
  background: white;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  white-space: nowrap;
}

.map-hint { padding: 10px 14px; background: var(--gray-50); font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 6px; }

/* ==========================================
   MEDIA UPLOAD
   ========================================== */
.media-upload-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
}

.upload-zone:hover { border-color: var(--red); background: var(--red-bg); color: var(--red); }
.upload-zone i { font-size: 28px; }
.upload-zone p { font-size: 13.5px; font-weight: 600; margin: 0; }
.upload-zone span { font-size: 11px; }

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.uploaded-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uploaded-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font-size: 13px;
}

.uploaded-file > i:first-child { color: var(--red); font-size: 16px; }
.uploaded-file span:first-of-type { flex: 1; font-weight: 600; }
.file-size { color: var(--gray-400); font-size: 11px; }

/* ==========================================
   CUSTOMER SEARCH (STEP 5)
   ========================================== */
.step-desc { color: var(--gray-500); font-size: 13.5px; margin-bottom: 20px; line-height: 1.6; }

.customer-search-box { margin-bottom: 16px; }

.customer-results { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.customer-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
}

.customer-result-item:hover { border-color: var(--navy); background: var(--navy-bg); }
.customer-result-item.selected { border-color: var(--green); background: #f0fdf4; }

.cr-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.cr-info { flex: 1; }
.cr-info strong { display: block; font-size: 14px; font-weight: 700; }
.cr-info span { display: block; font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 4px; margin-top: 2px; }

.divider-or {
  position: relative;
  text-align: center;
  margin: 16px 0;
}

.divider-or::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--gray-200);
}

.divider-or span {
  background: white;
  padding: 0 12px;
  position: relative;
  color: var(--gray-400);
  font-size: 12px;
}

/* ==========================================
   SOCIAL PREVIEW (STEP 6)
   ========================================== */
.social-preview-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  max-width: 400px;
}

.spc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.spc-avatar {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
}

.spc-header strong { display: block; font-size: 13.5px; }
.spc-header small { display: block; font-size: 11px; color: var(--gray-400); }

.spc-image-placeholder {
  height: 160px;
  background: linear-gradient(135deg, #e31e2420, #1a3a6b15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.spc-text { font-size: 13px; color: var(--gray-700); line-height: 1.7; }

.social-platforms {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  opacity: .6;
}

.platform-toggle.active { opacity: 1; }

.platform-fb.active { border-color: #1877f2; color: #1877f2; background: #eff6ff; }
.platform-ig.active { border-color: #e1306c; color: #e1306c; background: #fdf2f8; }
.platform-x.active { border-color: #000; color: #000; background: #f9f9f9; }

.ptoggle { margin-left: auto; }

/* ==========================================
   LISTING DETAIL
   ========================================== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.detail-gallery { margin-bottom: 20px; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumb {
  width: 60px; height: 44px;
  border-radius: 6px;
  background: var(--gray-200);
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
}

.gallery-thumb.active { border-color: var(--red); }
.gallery-thumb:hover { border-color: var(--navy); }

.add-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 16px;
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.spec-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.spec-item i { color: var(--navy); font-size: 16px; }
.spec-item span { font-size: 11px; color: var(--gray-500); }
.spec-item strong { font-size: 14px; font-weight: 700; }

.detail-desc h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.detail-desc p { color: var(--gray-600); font-size: 13.5px; line-height: 1.7; }

.price-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-label { font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.price-value { font-size: 26px; font-weight: 800; color: var(--red); }

.agent-card, .customer-card, .contract-card, .social-share-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  margin-bottom: 16px;
}

.agent-card h4, .customer-card h4, .contract-card h4, .social-share-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ac-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ac-avatar {
  width: 38px; height: 38px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
}
.ac-header strong { display: block; font-size: 14px; }
.ac-header small { display: block; font-size: 11px; color: var(--gray-500); }

.ac-contact { display: flex; flex-direction: column; gap: 6px; }
.ac-contact a { font-size: 12.5px; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.ac-contact a:hover { color: var(--red); }

.cc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cc-item strong { display: block; font-size: 13.5px; }
.cc-item small { display: block; font-size: 11.5px; color: var(--gray-500); }

.contract-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--gray-50);
  border-radius: 6px;
  font-size: 12.5px;
  margin-bottom: 10px;
  cursor: pointer;
}
.contract-item:hover { background: var(--red-bg); }
.contract-item span { flex: 1; }

.share-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.share-item:last-of-type { border-bottom: none; margin-bottom: 10px; }
.share-date { margin-left: auto; font-size: 11px; color: var(--gray-400); }

/* ==========================================
   CUSTOMER TABLE
   ========================================== */
.customer-table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table thead tr {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13.5px;
}

.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }

.table-total td { font-size: 14px; background: var(--gray-50); border-top: 2px solid var(--gray-200) !important; }

.table-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tu-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.table-user strong { display: block; font-size: 13.5px; font-weight: 600; }
.table-user small { display: block; font-size: 11px; color: var(--gray-400); }

/* ==========================================
   CUSTOMER DETAIL
   ========================================== */
.customer-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.customer-profile-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  text-align: center;
  height: fit-content;
}

.cpf-avatar {
  width: 72px; height: 72px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin: 0 auto 12px;
  border: 3px solid var(--navy-bg);
}

.customer-profile-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }

.cpf-contact {
  margin-top: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cpf-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}
.cpf-contact i { color: var(--navy); width: 16px; }

.cpf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag {
  padding: 4px 10px;
  background: var(--navy-bg);
  color: var(--navy);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.customer-timeline {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.customer-timeline h3 { font-size: 15px; font-weight: 700; margin-bottom: 20px; }

.timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 24px; }

.tl-item {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 11px; top: 20px;
  width: 2px;
  height: calc(100% - 8px);
  background: var(--gray-200);
}

.tl-item:last-child::before { display: none; }

.tl-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--gray-200);
}

.tl-content strong { display: block; font-size: 13.5px; font-weight: 700; }
.tl-content span { display: block; font-size: 11.5px; color: var(--gray-500); margin-top: 2px; }
.tl-content p { font-size: 13px; color: var(--gray-600); margin-top: 6px; line-height: 1.5; }

.related-listings h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

.rl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
}
.rl-item:hover { border-color: var(--navy); background: var(--navy-bg); }
.rl-item > i { font-size: 20px; }
.rl-item strong { flex: 1; font-size: 14px; }
.rl-item span { font-size: 12px; color: var(--gray-500); margin: 0 8px; }

/* ==========================================
   SOCIAL MEDIA SCREEN
   ========================================== */
.social-layout {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.social-left {
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  padding: 20px;
}

.social-center { padding: 20px; }
.social-right { border-left: 1px solid var(--gray-200); padding: 20px; }

.social-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s;
  margin-bottom: 8px;
}

.queue-item:hover { background: white; border-color: var(--gray-200); }
.queue-item.active { background: white; border-color: var(--navy); }

.qi-icon { font-size: 18px; }
.qi-info strong { display: block; font-size: 12.5px; font-weight: 700; }
.qi-info span { display: block; font-size: 11px; color: var(--gray-500); }

.qi-status {
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.qi-status.pending { background: #fffbeb; color: #d97706; }
.qi-status.done { background: #ecfdf5; color: #059669; }

.template-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-500);
  transition: all .2s;
}

.tab-btn.active { border-color: var(--navy); color: var(--navy); background: var(--navy-bg); }

.post-preview {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.pp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.pp-brand strong { display: block; font-size: 13.5px; font-weight: 700; }
.pp-brand small { display: block; font-size: 11px; color: var(--gray-400); }

.pp-image { position: relative; }

.pp-img-bg {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), #2d5299);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pp-price-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--red);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
}

.pp-caption {
  padding: 14px;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
}

.hashtags { color: #1877f2; }

.platform-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.pcheck {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.pcheck.active { background: var(--gray-50); }
.pcheck i { font-size: 16px; }
.pcheck span { flex: 1; }

.schedule-options { margin-bottom: 20px; }

/* ==========================================
   SUCCESS SCREEN
   ========================================== */
.success-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.success-card {
  background: white;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.success-icon {
  width: 80px; height: 80px;
  background: #ecfdf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: var(--green);
}

.success-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.success-card p { color: var(--gray-500); font-size: 14px; margin-bottom: 24px; }

.share-results { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.sr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid;
  text-align: left;
}

.sr-item.success { background: #f0fdf4; border-color: #bbf7d0; }

.sr-item > div { flex: 1; }
.sr-item strong { display: block; font-size: 14px; }
.sr-item small { display: block; font-size: 12px; color: var(--gray-500); }

.share-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.ss-item { text-align: center; }
.ss-item span { display: block; font-size: 22px; font-weight: 800; color: var(--navy); }
.ss-item small { display: block; font-size: 12px; color: var(--gray-500); }

.success-actions { display: flex; gap: 10px; justify-content: center; }

/* ==========================================
   MAP SCREEN
   ========================================== */
.map-screen-layout { display: flex; flex-direction: column; gap: 16px; }

.map-filters-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.mf-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  transition: all .2s;
}
.mf-btn.active { background: var(--navy); border-color: var(--navy); color: white; }

.mf-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-left: auto;
}

.map-container {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.map-area {
  height: 520px;
  position: relative;
  background: #e8f4f8;
}

.map-background {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.map-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,58,107,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,58,107,.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.map-road {
  position: absolute;
  background: rgba(255,255,255,.7);
}
.map-road.horizontal { height: 6px; }
.map-road.vertical { width: 6px; }

.map-block {
  position: absolute;
  background: rgba(26,58,107,.06);
  border-radius: 4px;
  border: 1px solid rgba(26,58,107,.1);
}

.map-label {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  color: rgba(26,58,107,.6);
  background: rgba(255,255,255,.7);
  padding: 2px 8px;
  border-radius: 10px;
  pointer-events: none;
}

.map-pin-item {
  position: absolute;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform .2s;
}

.map-pin-item:hover { transform: translateX(-50%) scale(1.1); z-index: 20; }

.map-pin-item i { font-size: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); color: var(--red); }

.pin-price-tag {
  background: var(--red);
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.pin-price-tag.sold-pin { background: #6b7280; }

.map-popup {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 100;
}

.popup-close {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,.4);
  border: none;
  color: white;
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.popup-image {
  height: 120px;
  background: linear-gradient(135deg, var(--red-bg), var(--navy-bg));
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-info { padding: 14px; }
.popup-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }

.popup-price { display: block; font-size: 16px; font-weight: 800; color: var(--red); }
.popup-type {
  display: inline-block;
  background: var(--navy-bg);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

/* ==========================================
   PERFORMANCE REPORT
   ========================================== */
.revenue-table-wrap { }

.perf-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.perf-bar {
  height: 6px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: width .5s;
}

.perf-bar-wrap span { font-size: 12px; font-weight: 700; color: var(--gray-700); }

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: white;
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 { font-size: 17px; font-weight: 800; }

.modal-close {
  width: 32px; height: 32px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all .2s;
}
.modal-close:hover { background: var(--gray-100); }

.modal-body { padding: 24px; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
}

/* ==========================================
   TOAST
   ========================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gray-900);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
}

.toast i { color: var(--green); font-size: 16px; }

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================
   SCENARIO BAR
   ========================================== */
.scenario-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: white;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 800;
  border-top: 2px solid var(--red);
}

.scenario-bar i { color: var(--red); }
.scenario-bar span { flex: 1; }

.scenario-bar button {
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr 300px; }
}

@media (max-width: 1024px) {
  .social-layout { grid-template-columns: 1fr; }
  .social-left, .social-right { border: none; border-bottom: 1px solid var(--gray-200); }
  .social-left, .social-right { padding: 16px; }
  .customer-detail-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .bottom-row { grid-template-columns: 1fr; }
  .charts-row { flex-direction: column; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0; bottom: 0;
    width: 260px;
    z-index: 200;
    transition: left .3s ease;
  }

  .sidebar.open { left: 0; }

  .main-wrapper { width: 100%; }

  .mobile-menu-btn { display: flex; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-reports { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .media-upload-area { grid-template-columns: 1fr; }

  .login-wrapper { flex-direction: column; }
  .login-left { padding: 32px 24px; min-height: 220px; }
  .login-right { width: 100%; padding: 24px; }

  .topbar-user-info { display: none; }
  .topbar-btn:not(.notification-btn) { display: none; }

  .wizard-steps { gap: 8px; }
  .step-connector { min-width: 12px; }

  .content-area { padding: 16px; }

  .page-header { flex-direction: column; align-items: flex-start; }

  .map-area { height: 400px; }

  .detail-specs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .login-left .login-features { grid-template-columns: 1fr; }
  .login-brand h1 { font-size: 26px; }
}

/* ==========================================
   REAL LOGO – Image replacements
   ========================================== */

/* Login sol panel – büyük logo */
.login-logo-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.25));
  margin-bottom: 8px;
}

/* Sidebar – küçük logo */
.sidebar-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Eski text logo elementlerini gizle */
.brand-circle, .sl-circle, .brand-emlak, .sl-text {
  display: none !important;
}

/* ==========================================
   FOOTER / TELİF
   ========================================== */
.site-footer {
  background: var(--navy);
  color: white;
  padding: 0;
  flex-shrink: 0;
  border-top: 3px solid var(--red);
  z-index: 10;
  position: relative;
}

/* Login ekranında footer sayfanın altında sabit dursun */
#screen-login ~ .site-footer,
body > .site-footer {
  width: 100%;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  max-width: 100%;
  flex-wrap: wrap;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 3px;
  flex-shrink: 0;
}

.footer-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-copy span {
  font-size: 12.5px;
  color: rgba(255,255,255,.75);
}

.footer-copy strong {
  color: white;
}

.footer-credit {
  font-size: 12px !important;
  color: rgba(255,255,255,.55) !important;
}

.footer-credit strong {
  color: var(--red-light) !important;
  font-weight: 700;
}

.footer-right {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
}

/* App shell içindeki footer – main-wrapper'ın alt kısmına yapışık */
#app-shell {
  flex-direction: column;
}

#app-shell .main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* Footer'ı app-shell dışına aldığımız için body flex düzeni */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#screen-login {
  flex: 1;
}

#app-shell {
  flex: 1;
  min-height: 0;
}

@media (max-width: 600px) {
  .footer-inner {
    padding: 10px 16px;
    gap: 10px;
  }
  .footer-right { display: none; }
  .footer-copy { gap: 1px; }
}
