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

:root {
  --primary:    #E84C1E;
  --primary-dk: #c43d15;
  --secondary:  #1A3C5E;
  --accent:     #F5A623;
  --bg:         #F9F6F2;
  --white:      #ffffff;
  --grey-100:   #f3f3f3;
  --grey-200:   #e5e5e5;
  --grey-400:   #aaa;
  --grey-600:   #666;
  --text:       #2D2D2D;
  --success:    #27AE60;
  --radius:     12px;
  --shadow:     0 2px 16px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.13);
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 70px; /* bottom nav */
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 4vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p  { color: var(--grey-600); }

a { color: inherit; text-decoration: none; }

/* ── Utility ───────────────────────────────────────────────── */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.hidden    { display: none !important; }
.flex      { display: flex; }
.gap-2     { gap: 8px; }
.gap-3     { gap: 12px; }
.gap-4     { gap: 16px; }
.align-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.text-center    { text-align: center; }
.w-full    { width: 100%; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.section { padding: 40px 0; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition); white-space: nowrap;
}
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #122c46; }
.btn-outline   { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost     { background: var(--grey-100); color: var(--text); }
.btn-ghost:hover { background: var(--grey-200); }
.btn-whatsapp  { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe57; }
.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-lg  { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }

/* ── Header / Nav ──────────────────────────────────────────── */
.header {
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 16px;
}
.logo {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.logo-icon {
  width: 36px; height: 36px; background: var(--primary); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 800;
}
.logo-text { font-size: 1.2rem; font-weight: 800; color: var(--secondary); }
.logo-text span { color: var(--primary); }

.nav-desktop { display: none; gap: 4px; }
.nav-desktop a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--grey-600); transition: var(--transition);
}
.nav-desktop a:hover, .nav-desktop a.active { background: var(--grey-100); color: var(--primary); }

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

.lang-toggle {
  background: var(--grey-100); border: none; border-radius: 6px;
  padding: 6px 10px; font-size: 12px; font-weight: 600;
  cursor: pointer; color: var(--secondary); transition: var(--transition);
}
.lang-toggle:hover { background: var(--grey-200); }

/* ── Bottom Nav (Mobile) ───────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--grey-200);
  display: flex; z-index: 100; box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 8px 4px; font-size: 10px; font-weight: 600; color: var(--grey-400);
  transition: var(--transition); cursor: pointer;
}
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a span.icon { font-size: 20px; line-height: 1; margin-bottom: 2px; }

@media (min-width: 768px) {
  .bottom-nav { display: none; }
  .nav-desktop { display: flex; }
  body { padding-bottom: 0; }
}

/* ── Pages ─────────────────────────────────────────────────── */
.page { display: none; animation: fadeIn .25s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── HOME — Hero ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #0f2540 100%);
  padding: 48px 16px 56px;
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 5px 14px; border-radius: 20px; font-size: 12px; margin-bottom: 16px;
}
.hero h1 { margin-bottom: 8px; }
.hero-sub { color: rgba(255,255,255,.75); font-size: 15px; margin-bottom: 28px; }

.search-box {
  background: var(--white); border-radius: var(--radius);
  padding: 6px; box-shadow: var(--shadow-lg);
  max-width: 640px; margin: 0 auto;
  display: flex; gap: 6px;
}
.search-box input {
  flex: 1; border: none; outline: none; padding: 10px 14px;
  font-size: 14px; background: transparent; color: var(--text);
}
.search-box input::placeholder { color: var(--grey-400); }

.search-tabs {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 20px; flex-wrap: wrap;
}
.search-tab {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 7px 18px; border-radius: 20px; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: var(--transition);
}
.search-tab:hover, .search-tab.active { background: var(--primary); border-color: var(--primary); }

.popular-tags { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,.6); }
.popular-tags a {
  color: rgba(255,255,255,.85); text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.3); margin: 0 4px; cursor: pointer;
}

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--white); box-shadow: var(--shadow);
  display: flex; justify-content: space-around; text-align: center;
  padding: 20px 16px;
}
.stat-item { flex: 1; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat-lbl { font-size: 11px; color: var(--grey-600); margin-top: 2px; }

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-header h2 { }
.section-header a { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ── Property Cards ────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.property-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition); cursor: pointer;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img {
  position: relative; height: 190px; overflow: hidden;
  background: var(--grey-200);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff;
  padding: 3px 10px; border-radius: 5px; font-size: 11px; font-weight: 700;
}
.card-badge.rent { background: var(--secondary); }
.card-fav {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.85); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.card-fav:hover, .card-fav.active { background: #fff; color: var(--primary); }
.card-verified {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--success); color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700;
}

.card-body { padding: 14px; }
.card-price { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.card-price span { font-size: 13px; font-weight: 400; color: var(--grey-600); }
.card-title { font-size: 14px; font-weight: 600; margin: 4px 0 2px; }
.card-loc { font-size: 12px; color: var(--grey-600); display: flex; align-items: center; gap: 4px; }
.card-specs {
  display: flex; gap: 12px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--grey-200);
}
.card-spec { font-size: 12px; color: var(--grey-600); display: flex; align-items: center; gap: 4px; }

.card-footer {
  padding: 10px 14px; border-top: 1px solid var(--grey-200);
  display: flex; align-items: center; justify-content: space-between;
}
.card-agent { display: flex; align-items: center; gap: 8px; }
.agent-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--grey-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--secondary); flex-shrink: 0;
}
.agent-name { font-size: 12px; font-weight: 600; }
.agent-rating { font-size: 11px; color: var(--grey-600); }
.card-wa { }

/* ── Locality Cards ────────────────────────────────────────── */
.locality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.locality-card {
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow);
  padding: 14px 12px; cursor: pointer; transition: var(--transition);
  text-align: center; border: 2px solid transparent;
}
.locality-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.locality-icon { font-size: 24px; margin-bottom: 6px; }
.locality-name { font-size: 13px; font-weight: 600; color: var(--text); }
.locality-count { font-size: 11px; color: var(--grey-600); margin-top: 2px; }

/* ── Why Us ────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; box-shadow: var(--shadow);
}
.why-icon { font-size: 32px; margin-bottom: 10px; }
.why-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.why-desc { font-size: 12px; color: var(--grey-600); }

/* ── Filter Bar ────────────────────────────────────────────── */
.filter-bar {
  background: var(--white); box-shadow: var(--shadow);
  padding: 12px 16px; position: sticky; top: 60px; z-index: 90;
}
.filter-inner { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding-bottom: 4px; }
.filter-inner::-webkit-scrollbar { display: none; }

.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--grey-100); border: 1px solid var(--grey-200);
  padding: 7px 13px; border-radius: 20px; font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.filter-chip:hover, .filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.results-count { font-size: 13px; color: var(--grey-600); white-space: nowrap; flex-shrink: 0; margin-left: auto; }

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
  background: var(--secondary); color: #fff; padding: 28px 16px;
}
.page-header h1 { font-size: 1.5rem; }
.page-header p { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 4px; }

/* ── Property Detail ───────────────────────────────────────── */
.detail-back {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; background: var(--white); border-bottom: 1px solid var(--grey-200);
  cursor: pointer; font-weight: 600; font-size: 14px; color: var(--secondary);
}

.photo-gallery {
  position: relative; background: #000;
  height: 280px; overflow: hidden;
}
.photo-gallery img { width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.gallery-nav {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.5); color: #fff;
  padding: 4px 10px; border-radius: 12px; font-size: 12px;
}

.detail-body { display: flex; flex-direction: column; gap: 0; }
@media (min-width: 900px) {
  .detail-body { flex-direction: row; gap: 24px; padding: 24px 0; }
  .detail-main { flex: 1; }
  .detail-sidebar { width: 320px; flex-shrink: 0; }
}

.detail-main { padding: 20px 16px; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--text); }
.detail-price span { font-size: 14px; color: var(--grey-600); font-weight: 400; }
.detail-title { font-size: 1.1rem; font-weight: 700; margin: 6px 0 4px; }
.detail-loc { font-size: 14px; color: var(--grey-600); display: flex; align-items: center; gap: 5px; }

.detail-badges { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.badge {
  padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
}
.badge-green { background: #e6f7ee; color: var(--success); }
.badge-blue  { background: #e8f0fb; color: var(--secondary); }
.badge-orange{ background: #fff0eb; color: var(--primary); }

.detail-specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 20px;
}
.spec-item {
  background: var(--grey-100); border-radius: 8px;
  padding: 12px; text-align: center;
}
.spec-val { font-size: 15px; font-weight: 700; }
.spec-key { font-size: 11px; color: var(--grey-600); margin-top: 2px; }

.amenities-grid {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.amenity-tag {
  background: var(--grey-100); padding: 6px 12px;
  border-radius: 6px; font-size: 12px; display: flex; align-items: center; gap: 5px;
}

.detail-sidebar {
  padding: 20px 16px;
  background: var(--white);
}
.contact-card {
  border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.contact-agent { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.contact-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grey-200); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 16px; color: var(--secondary);
  flex-shrink: 0;
}
.contact-name { font-weight: 700; font-size: 15px; }
.contact-agency { font-size: 12px; color: var(--grey-600); }
.contact-rating { font-size: 12px; color: var(--accent); margin-top: 2px; }
.contact-btns { display: flex; flex-direction: column; gap: 8px; }

.interest-bar {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grey-200);
  font-size: 12px; color: var(--grey-600); text-align: center;
}
.interest-bar span { color: var(--primary); font-weight: 700; }

.detail-actions {
  display: flex; gap: 10px; margin-top: 20px; padding: 0 16px;
}

/* ── Agent Portal ──────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 130px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 32px 24px;
  width: 100%; max-width: 420px;
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo .logo-icon { margin: 0 auto 10px; width: 52px; height: 52px; font-size: 24px; }
.auth-title { font-size: 1.3rem; font-weight: 800; }
.auth-sub { font-size: 13px; color: var(--grey-600); margin-top: 4px; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; color: var(--text); }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--grey-200);
  border-radius: 8px; font-size: 14px; color: var(--text);
  background: var(--white); transition: var(--transition); outline: none;
  font-family: inherit;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,76,30,.1); }
.form-control::placeholder { color: var(--grey-400); }
textarea.form-control { resize: vertical; min-height: 90px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.radio-group { display: flex; gap: 10px; }
.radio-opt {
  flex: 1; border: 1.5px solid var(--grey-200); border-radius: 8px;
  padding: 10px; text-align: center; cursor: pointer; font-size: 14px;
  font-weight: 600; transition: var(--transition);
}
.radio-opt.selected { border-color: var(--primary); background: #fff0eb; color: var(--primary); }

.checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-opt {
  display: flex; align-items: center; gap: 6px;
  background: var(--grey-100); border: 1.5px solid var(--grey-200);
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-weight: 500; transition: var(--transition); user-select: none;
}
.checkbox-opt.selected { background: #fff0eb; border-color: var(--primary); color: var(--primary); }
.checkbox-opt input { display: none; }

/* ── Stepper ───────────────────────────────────────────────── */
.stepper {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; max-width: 320px; margin-left: auto; margin-right: auto;
}
.step {
  flex-shrink: 0;
}
.step-circle {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--grey-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--grey-400); flex-shrink: 0;
  transition: var(--transition);
}
.step.done .step-circle { background: var(--success); border-color: var(--success); color: #fff; }
.step.active .step-circle { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(232,76,30,0.3); }
.step-line { flex: 1; height: 3px; background: var(--grey-200); transition: var(--transition); margin: 0 6px; min-width: 60px; }

/* ── Dashboard ─────────────────────────────────────────────── */
.dashboard-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #0f2540 100%);
  color: #fff; padding: 24px 16px;
}
.dash-welcome { font-size: 1.1rem; font-weight: 700; }
.dash-sub { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 2px; }

.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  padding: 16px;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); text-align: center;
}
.stat-card .num { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat-card .lbl { font-size: 11px; color: var(--grey-600); margin-top: 3px; }

.quick-actions {
  display: flex; gap: 10px; padding: 0 16px 16px; flex-wrap: wrap;
}

.listing-table { padding: 0 16px; }
.listing-row {
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.listing-thumb {
  width: 60px; height: 50px; border-radius: 7px; object-fit: cover;
  background: var(--grey-200); flex-shrink: 0;
}
.listing-info { flex: 1; min-width: 0; }
.listing-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-meta { font-size: 12px; color: var(--grey-600); margin-top: 2px; }
.listing-price { font-weight: 700; font-size: 14px; color: var(--primary); }
.listing-status {
  padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 700;
}
.status-active { background: #e6f7ee; color: var(--success); }
.status-pending { background: #fff8e1; color: #f59e0b; }
.listing-views { font-size: 12px; color: var(--grey-600); text-align: right; }

.enquiry-item {
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.enquiry-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.enquiry-text { flex: 1; font-size: 13px; }
.enquiry-time { font-size: 11px; color: var(--grey-400); flex-shrink: 0; }

/* ── Photo Upload ──────────────────────────────────────────── */
.photo-upload-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-slot {
  aspect-ratio: 1; border-radius: 8px; border: 2px dashed var(--grey-200);
  background: var(--grey-100); display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer;
  font-size: 22px; color: var(--grey-400); transition: var(--transition);
}
.photo-slot:hover { border-color: var(--primary); color: var(--primary); }
.photo-slot span { font-size: 10px; margin-top: 4px; color: var(--grey-400); }

/* ── Success ───────────────────────────────────────────────── */
.success-screen {
  text-align: center; padding: 48px 24px;
}
.success-icon {
  width: 80px; height: 80px; background: #e6f7ee; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 20px;
}
.success-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.success-sub { color: var(--grey-600); max-width: 320px; margin: 0 auto 24px; }

/* ── Install Banner ────────────────────────────────────────── */
.install-banner {
  position: fixed; bottom: 80px; left: 16px; right: 16px;
  background: var(--secondary); color: #fff; border-radius: var(--radius);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg); z-index: 200; animation: slideUp .3s ease;
}
@media (min-width: 768px) { .install-banner { bottom: 20px; max-width: 380px; right: 20px; left: auto; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.install-text { flex: 1; font-size: 13px; }
.install-text strong { display: block; font-size: 14px; }
.install-close {
  background: none; border: none; color: rgba(255,255,255,.6);
  cursor: pointer; font-size: 18px; padding: 4px;
}

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  background: var(--secondary); color: #fff; padding: 10px 20px;
  border-radius: 20px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 300; animation: fadeIn .2s ease;
  white-space: nowrap;
}

/* ── Market Pulse ──────────────────────────────────────────── */
.pulse-cards { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.pulse-cards::-webkit-scrollbar { display: none; }
.pulse-card {
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow);
  padding: 14px 16px; min-width: 170px; flex-shrink: 0;
}
.pulse-area { font-size: 13px; font-weight: 700; }
.pulse-price { font-size: 15px; font-weight: 800; color: var(--primary); margin-top: 4px; }
.pulse-change { font-size: 11px; margin-top: 3px; }
.pulse-up   { color: var(--success); }
.pulse-down { color: #e74c3c; }

/* ── Photo Gallery (Detail Page) ──────────────────────────── */
.gallery-wrap {
  position: relative; background: #000; overflow: hidden;
  height: 300px; user-select: none;
}
@media (min-width: 768px) { .gallery-wrap { height: 460px; } }

.gallery-main {
  width: 100%; height: 100%;
  display: flex; transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.gallery-slide {
  min-width: 100%; height: 100%;
  cursor: zoom-in; position: relative;
}
.gallery-slide img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; pointer-events: none;
}
.gallery-slide .slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 50%);
}

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.92); border: none; border-radius: 50%;
  width: 42px; height: 42px; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 2px 12px rgba(0,0,0,.25);
  transition: var(--transition); color: var(--text);
}
.gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-arrow:disabled { opacity: .3; cursor: default; }

.gallery-counter {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(0,0,0,.55); color: #fff;
  padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600;
}
.gallery-expand {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(0,0,0,.55); color: #fff; border: none;
  padding: 6px 12px; border-radius: 20px; font-size: 12px;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
}

/* Thumbnails */
.gallery-thumbs {
  display: flex; gap: 6px; padding: 8px 12px;
  background: #111; overflow-x: auto;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  width: 64px; height: 48px; border-radius: 5px; overflow: hidden;
  cursor: pointer; flex-shrink: 0; border: 2px solid transparent;
  transition: var(--transition); opacity: .6;
}
.gallery-thumb.active { border-color: var(--primary); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.96);
  z-index: 1000; display: flex; flex-direction: column;
  animation: lbIn .2s ease;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; color: #fff; flex-shrink: 0;
}
.lightbox-counter { font-size: 14px; color: rgba(255,255,255,.7); }
.lightbox-close {
  background: none; border: none; color: #fff; font-size: 28px;
  cursor: pointer; width: 40px; height: 40px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.1); }

.lightbox-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; min-height: 0;
}
.lightbox-img-wrap {
  width: 100%; height: 100%;
  display: flex; transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.lightbox-img-slide {
  min-width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center; padding: 8px;
}
.lightbox-img-slide img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 4px; box-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 50%; width: 48px; height: 48px;
  font-size: 20px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: background .15s; z-index: 10;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.25); }
.lightbox-arrow.prev { left: 12px; }
.lightbox-arrow.next { right: 12px; }

.lightbox-thumbs {
  display: flex; gap: 6px; padding: 10px 12px; justify-content: center;
  overflow-x: auto; flex-shrink: 0; background: rgba(0,0,0,.5);
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumb {
  width: 56px; height: 42px; border-radius: 4px; overflow: hidden;
  cursor: pointer; flex-shrink: 0; border: 2px solid transparent;
  opacity: .5; transition: var(--transition);
}
.lightbox-thumb.active { border-color: var(--primary); opacity: 1; }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Responsive ────────────────────────────────────────────── */
@media (min-width: 768px) {
  .hero { padding: 72px 16px 80px; }
  .detail-body { max-width: 1140px; margin: 0 auto; }
  .filter-bar .container { display: flex; align-items: center; }
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--grey-100); }
::-webkit-scrollbar-thumb { background: var(--grey-200); border-radius: 10px; }
