/* ── Propriodirect.ma — Centris-inspired Design ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy:        #002B5C;
  --navy-dark:   #001a3a;
  --navy-light:  #0044A0;
  --blue:        #0055B8;
  --blue-light:  #E8F1FD;
  --red:         #D92B2B;
  --red-hover:   #b52222;
  --green:       #1A7A4A;
  --gold:        #E8A020;
  --text:        #1A1A2E;
  --text-muted:  #6B7280;
  --text-light:  #9CA3AF;
  --bg:          #F5F7FA;
  --bg-white:    #FFFFFF;
  --border:      #E5E7EB;
  --border-dark: #D1D5DB;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow:      0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.13);
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   16px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar-pd {
  background: var(--navy);
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid rgba(255,255,255,0.06);
}
.navbar-pd .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.navbar-pd .logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.navbar-pd .logo span { color: #FF6B35; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.btn-nav-login {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  transition: all 0.15s;
  background: transparent;
  cursor: pointer;
}
.btn-nav-login:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-nav-publish {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  background: var(--red);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-nav-publish:hover { background: var(--red-hover); transform: translateY(-1px); }

/* ════════════════════════════════════════
   HERO (Homepage)
════════════════════════════════════════ */
.hero-centris {
  position: relative;
  height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-centris .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1600&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}
.hero-centris .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 1.5rem;
  text-align: center;
}
.hero-centris h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.hero-centris h1 span { color: #FF6B35; }
.hero-centris .hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}

/* Search card (Centris style) */
.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
}
.search-tabs {
  display: flex;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.search-tab {
  flex: 1;
  padding: 0.85rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.15s;
  border-bottom: 3px solid transparent;
}
.search-tab.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
  background: #fff;
}
.search-tab:hover:not(.active) { color: var(--text); background: var(--border); }

.search-form-inner { padding: 1.4rem 1.6rem; }
.search-row { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; }
.search-field { flex: 1; min-width: 160px; }
.search-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.search-field select,
.search-field input {
  width: 100%;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
  transition: border-color 0.15s;
}
.search-field input { background-image: none; padding-right: 0.9rem; }
.search-field select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,85,184,0.12);
}
.btn-search-main {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.68rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-search-main:hover { background: var(--navy-light); transform: translateY(-1px); }

/* Stats strip */
.stats-strip {
  background: rgba(0,0,0,0.55);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.stat-pill { text-align: center; }
.stat-pill .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
}
.stat-pill .lbl { font-size: 0.72rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.4px; }

/* ════════════════════════════════════════
   LISTINGS PAGE — SPLIT LAYOUT
════════════════════════════════════════ */
.listings-layout {
  display: flex;
  height: calc(100vh - 64px);
  overflow: hidden;
}

/* Left panel */
.listings-panel {
  width: 480px;
  min-width: 380px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.listings-panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
  flex-shrink: 0;
}
.listings-panel-header .results-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.listings-panel-header .results-count strong { color: var(--text); font-size: 0.95rem; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1.5px solid var(--border-dark);
  background: #fff;
  color: var(--text);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .remove { font-size: 0.9rem; opacity: 0.7; margin-left: 0.1rem; }

.sort-row { display: flex; align-items: center; gap: 0.5rem; }
.sort-row label { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.sort-select {
  font-size: 0.78rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 1.8rem 0.3rem 0.6rem;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}
.view-btns { margin-left: auto; display: flex; gap: 0.25rem; }
.view-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s;
}
.view-btn.active, .view-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--blue-light); }

/* Property list cards (horizontal) */
.listings-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 0.75rem;
}
.listings-scroll::-webkit-scrollbar { width: 5px; }
.listings-scroll::-webkit-scrollbar-track { background: transparent; }
.listings-scroll::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }

.prop-card-h {
  display: flex;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.18s;
}
.prop-card-h:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.prop-card-h.highlighted { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-light); }
.prop-card-h .card-img {
  width: 150px;
  min-width: 150px;
  height: 118px;
  object-fit: cover;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.prop-card-h .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.prop-card-h:hover .card-img img { transform: scale(1.05); }
.prop-card-h .card-body { padding: 0.85rem 1rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.prop-card-h .card-price { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 0.2rem; }
.prop-card-h .card-price .per-m2 { font-size: 0.72rem; font-weight: 400; color: var(--text-muted); }
.prop-card-h .card-title { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; line-height: 1.3; }
.prop-card-h .card-loc { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.25rem; }
.prop-card-h .card-meta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.prop-card-h .card-meta span { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.2rem; }
.badge-trans {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-vente { background: var(--navy); color: #fff; }
.badge-location { background: var(--green); color: #fff; }
.badge-new { background: var(--gold); color: #fff; position: absolute; top: 6px; right: 6px; font-size: 0.62rem; font-weight: 700; padding: 0.18rem 0.45rem; border-radius: 4px; }
.btn-fav {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.btn-fav:hover, .btn-fav.active { color: #e74c3c; }

/* Map panel */
.map-panel {
  flex: 1;
  position: relative;
  background: #e8edf0;
}
#map { width: 100%; height: 100%; }

.map-toggle-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  background: #fff;
  border: 1.5px solid var(--border-dark);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow);
  transition: all 0.15s;
}
.map-toggle-btn:hover { background: var(--blue-light); }

/* Price popup on map */
.map-price-pin {
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid #fff;
}
.map-price-pin:hover, .map-price-pin.active { background: var(--red); transform: scale(1.1); }

/* Filter sidebar (collapsible) */
.filter-sidebar-top {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-select {
  font-size: 0.78rem;
  border: 1.5px solid var(--border-dark);
  border-radius: 20px;
  padding: 0.35rem 1.8rem 0.35rem 0.8rem;
  background: #fff;
  cursor: pointer;
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  transition: all 0.15s;
}
.filter-select:hover, .filter-select:focus { border-color: var(--navy); outline: none; }
.btn-more-filters {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s;
}
.btn-more-filters:hover { background: var(--navy); color: #fff; }

/* ════════════════════════════════════════
   PROPERTY GRID CARDS (Homepage & grid view)
════════════════════════════════════════ */
.prop-card-v {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.18s;
}
.prop-card-v:hover { border-color: var(--navy); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.prop-card-v .img-wrap { height: 195px; overflow: hidden; position: relative; background: var(--bg); }
.prop-card-v .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.prop-card-v:hover .img-wrap img { transform: scale(1.04); }
.prop-card-v .card-body { padding: 1rem; }
.prop-card-v .price { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 0.25rem; }
.prop-card-v .prop-title { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; line-height: 1.35; }
.prop-card-v .prop-loc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.65rem; display: flex; align-items: center; gap: 0.25rem; }
.prop-card-v .prop-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 0.65rem; flex-wrap: wrap; }
.prop-card-v .prop-meta span { display: flex; align-items: center; gap: 0.2rem; }

/* ════════════════════════════════════════
   LISTING DETAIL
════════════════════════════════════════ */
.detail-top-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.detail-gallery { display: grid; gap: 4px; border-radius: var(--radius); overflow: hidden; }
.detail-gallery.grid-2 { grid-template-columns: 3fr 1fr; grid-template-rows: 300px; }
.detail-gallery .main-img { grid-row: 1 / 3; height: 100%; overflow: hidden; }
.detail-gallery .main-img img { width: 100%; height: 420px; object-fit: cover; }
.detail-gallery .side-imgs { display: flex; flex-direction: column; gap: 4px; }
.detail-gallery .side-imgs img { width: 100%; height: 208px; object-fit: cover; cursor: pointer; transition: filter 0.2s; }
.detail-gallery .side-imgs img:hover { filter: brightness(0.9); }
.detail-gallery .see-all-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.price-tag { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.price-tag .per-m2 { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); margin-left: 0.5rem; }

.detail-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.sticky-contact {
  position: sticky;
  top: 80px;
}
.contact-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-card-header {
  background: var(--navy);
  padding: 1.2rem 1.5rem;
  color: #fff;
}
.contact-card-header .price { font-size: 1.6rem; font-weight: 800; }
.contact-card-header .price-detail { font-size: 0.78rem; opacity: 0.8; margin-top: 0.2rem; }
.contact-card-body { padding: 1.4rem; }
.btn-contact-primary {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.btn-contact-primary:hover { background: var(--navy-light); }
.btn-contact-secondary {
  width: 100%;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.btn-contact-secondary:hover { background: var(--blue-light); }
.btn-whatsapp {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-whatsapp:hover { background: #1eba57; }
.seller-row { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.4rem; border-top: 1px solid var(--border); }
.seller-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.88rem; flex-shrink: 0; }
.seller-name { font-weight: 700; font-size: 0.88rem; }
.seller-since { font-size: 0.73rem; color: var(--text-muted); }
.verified-badge { font-size: 0.7rem; font-weight: 700; color: var(--green); background: #d4edda; padding: 0.18rem 0.55rem; border-radius: 20px; margin-left: auto; }

/* Map in detail page */
.detail-map { height: 280px; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); }

/* ════════════════════════════════════════
   PACKAGES (Duproprio model)
════════════════════════════════════════ */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pkg-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.2s;
}
.pkg-card:hover { box-shadow: var(--shadow-lg); border-color: var(--navy); }
.pkg-card.featured { border-color: var(--navy); box-shadow: var(--shadow-lg); }
.pkg-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.28rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pkg-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.pkg-price { font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.pkg-price sup { font-size: 1rem; font-weight: 600; vertical-align: super; }
.pkg-duration { font-size: 0.75rem; color: var(--text-muted); margin: 0.5rem 0 1.5rem; }
.pkg-features { list-style: none; text-align: left; margin-bottom: 1.8rem; }
.pkg-features li { font-size: 0.85rem; padding: 0.4rem 0; display: flex; align-items: flex-start; gap: 0.5rem; color: var(--text); }
.pkg-features li .icon-ok { color: var(--green); font-size: 0.85rem; flex-shrink: 0; margin-top: 0.1rem; }
.pkg-features li .icon-no { color: var(--text-light); font-size: 0.85rem; flex-shrink: 0; margin-top: 0.1rem; }
.pkg-features li.dim { color: var(--text-muted); }
.btn-pkg {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}
.btn-pkg-primary { background: var(--navy); color: #fff; }
.btn-pkg-primary:hover { background: var(--navy-light); }
.btn-pkg-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-pkg-outline:hover { background: var(--navy); color: #fff; }

/* ════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════ */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step-card { text-align: center; padding: 1.5rem 1rem; }
.step-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  position: relative;
  font-size: 1.8rem;
}
.step-num-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.step-card h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.step-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════ */
.testimonial-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.stars { color: #F59E0B; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 0.8rem; }
.testimonial-text { font-size: 0.88rem; color: var(--text); line-height: 1.75; font-style: italic; margin-bottom: 1.1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-av { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.author-name { font-size: 0.85rem; font-weight: 700; }
.author-info { font-size: 0.75rem; color: var(--text-muted); }
.savings-tag { display: inline-block; background: #d4edda; color: #155724; font-size: 0.73rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 20px; margin-top: 0.5rem; }

/* ════════════════════════════════════════
   AUTH PAGES
════════════════════════════════════════ */
.auth-page { min-height: 100vh; display: flex; align-items: center; background: var(--bg); padding: 2rem 0; }
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.auth-logo { font-size: 1.6rem; font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 0.25rem; }
.auth-logo span { color: #FF6B35; }
.auth-title { font-size: 1.15rem; font-weight: 700; text-align: center; margin-bottom: 0.25rem; }
.auth-sub { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-bottom: 1.8rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.form-input {
  width: 100%;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,85,184,0.1); }
.btn-auth {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-auth:hover { background: var(--navy-light); }
.divider { text-align: center; color: var(--text-muted); font-size: 0.82rem; margin: 1rem 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--border); }
.divider::before { left: 0; }
.divider::after { right: 0; }

/* ════════════════════════════════════════
   DASHBOARD (Sidebar layout)
════════════════════════════════════════ */
.dash-layout { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar {
  width: 240px;
  background: var(--navy-dark);
  min-height: 100vh;
  position: fixed;
  left: 0; top: 0;
  overflow-y: auto;
  padding-bottom: 2rem;
  z-index: 200;
}
.sidebar-logo { padding: 1.2rem 1.4rem 1rem; font-size: 1.2rem; font-weight: 800; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 0.5rem; }
.sidebar-logo span { color: #FF6B35; }
.sidebar-section { padding: 0.5rem 0.75rem 0; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: rgba(255,255,255,0.35); margin-bottom: 0.25rem; }
.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.4rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar .nav-link i { width: 18px; font-size: 0.95rem; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,0.07); border-left-color: #FF6B35; }
.main-content { margin-left: 240px; padding: 2rem; flex: 1; }
.page-title { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-bottom: 0.25rem; }
.page-sub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.kpi-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.kpi-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.kpi-val { font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1; }
.kpi-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }
.kpi-trend { font-size: 0.73rem; font-weight: 600; margin-top: 0.15rem; }
.kpi-trend.up { color: var(--green); }
.kpi-trend.dn { color: var(--red); }
.card-white { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.table-pd thead th { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); border-bottom: 2px solid var(--border); padding: 0.7rem 0.9rem; }
.table-pd tbody td { padding: 0.85rem 0.9rem; font-size: 0.85rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.badge-active { background: #d4edda; color: #155724; font-size: 0.7rem; font-weight: 700; padding: 0.22rem 0.6rem; border-radius: 20px; }
.badge-pending { background: #fff3cd; color: #856404; font-size: 0.7rem; font-weight: 700; padding: 0.22rem 0.6rem; border-radius: 20px; }
.badge-expired { background: #f8d7da; color: #721c24; font-size: 0.7rem; font-weight: 700; padding: 0.22rem 0.6rem; border-radius: 20px; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 3rem 0 1.5rem; }
.footer-logo { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.footer-logo span { color: #FF6B35; }
.footer h6 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.55rem; }
.footer ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.7); transition: color 0.15s; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; margin-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; font-size: 0.78rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { color: rgba(255,255,255,0.6); font-size: 1.1rem; transition: color 0.15s; }
.footer-social a:hover { color: #fff; }

/* ════════════════════════════════════════
   UTILITY
════════════════════════════════════════ */
.container { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.section-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--blue); margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--text); margin-bottom: 0.5rem; line-height: 1.2; }
.section-sub { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.btn-primary { background: var(--navy); color: #fff; border: none; border-radius: 8px; padding: 0.75rem 1.8rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.15s; font-family: inherit; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); border-radius: 8px; padding: 0.72rem 1.8rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.15s; font-family: inherit; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-red { background: var(--red); color: #fff; border: none; border-radius: 8px; padding: 0.75rem 1.8rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.15s; font-family: inherit; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-red:hover { background: var(--red-hover); }
.text-navy { color: var(--navy) !important; }
.text-red { color: var(--red) !important; }
.py-4 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-5 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.mb-1 { margin-bottom: 0.4rem; }
.mb-2 { margin-bottom: 0.8rem; }
.mb-3 { margin-bottom: 1.2rem; }
.mb-4 { margin-bottom: 1.8rem; }
.bg-light { background: var(--bg); }
.savings-calc-card { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; border-radius: var(--radius-lg); padding: 2.5rem; }
.savings-amount { font-size: 2.8rem; font-weight: 800; color: #FFD700; }

/* ════════════════════════════════════════
   MOBILE NAV — Hamburger + Slide-down menu
════════════════════════════════════════ */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: all 0.22s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.82);
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.nav-mobile a:hover, .nav-mobile a.active { background: rgba(255,255,255,0.06); color: #fff; }
.nav-mobile-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
}
.nav-mobile-actions a { flex: 1; display: block; text-align: center; }
.nav-mobile-actions .btn-nav-login {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
}
.nav-mobile-actions .btn-nav-publish {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
}

/* ════════════════════════════════════════
   MOBILE CONTACT BAR (listing detail)
════════════════════════════════════════ */
.mobile-contact-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1.5px solid var(--border);
  padding: 0.75rem 1rem;
  gap: 0.75rem;
  z-index: 600;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
}
.mobile-contact-bar .btn-contact-primary,
.mobile-contact-bar .btn-whatsapp {
  flex: 1;
  margin-bottom: 0;
  padding: 0.85rem 0.5rem;
  font-size: 0.88rem;
}

/* ════════════════════════════════════════
   DASHBOARD MOBILE HEADER
════════════════════════════════════════ */
.dash-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--navy-dark);
  padding: 0 1rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 300;
}
.dash-mobile-header .dash-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.dash-mobile-header .dash-logo span { color: #FF6B35; }
.dash-burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dash-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
}
.sidebar-overlay.open { display: block; }

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════ */
@media (max-width: 1199px) {
  .listings-panel { width: 420px; }
}

@media (max-width: 991px) {
  /* Navbar */
  .nav-burger { display: flex; }
  .nav-links { display: none !important; }
  .nav-actions { display: none; }

  /* Listings layout */
  .listings-layout { flex-direction: column; height: auto; }
  .listings-panel { width: 100%; max-width: 100%; height: auto; }
  .map-panel { height: 45vh; }

  /* Homepage */
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-grid { grid-template-columns: 1fr; }

  /* Dashboard */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s;
    z-index: 200;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 1.25rem; }
  .dash-mobile-header { display: flex; }
  .dash-layout { padding-top: 0; }

  /* Gallery */
  .detail-gallery.grid-2 { grid-template-columns: 1fr; }
  .detail-gallery .side-imgs { display: none; }

  /* Contact card — hide sidebar card, show bottom bar */
  .sticky-contact { display: none; }
  .mobile-contact-bar { display: flex; }

  /* Add padding for fixed bottom bar */
  .detail-page-body { padding-bottom: 80px; }
}

@media (max-width: 767px) {
  /* Hero */
  .hero-centris { height: auto; padding: 2.5rem 0 0; }
  .stats-strip { position: static; gap: 1rem; flex-wrap: wrap; justify-content: space-around; }
  .stat-pill .num { font-size: 1.2rem; }

  /* Search */
  .search-row { flex-direction: column; }
  .search-field { min-width: 100%; }
  .btn-search-main { width: 100%; justify-content: center; padding: 0.8rem; }

  /* Packages */
  .pkg-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Cards */
  .prop-card-h .card-img { width: 120px; min-width: 120px; height: 100px; }
  .prop-card-h .card-price { font-size: 0.95rem; }
  .prop-card-h .card-body { padding: 0.65rem 0.75rem; }

  /* Filter bar — give more height on mobile */
  .filter-bar { height: auto; min-height: 56px; flex-wrap: nowrap; padding: 0.5rem 1rem; gap: 0.5rem; }
  .filter-select { font-size: 0.82rem; padding: 0.45rem 1.6rem 0.45rem 0.75rem; min-height: 40px; }
  .btn-more-filters { min-height: 40px; font-size: 0.82rem; }

  /* Dashboard */
  .kpi-card { padding: 1rem; }
  .kpi-val { font-size: 1.4rem; }
  .table-pd thead th { font-size: 0.68rem; padding: 0.5rem 0.6rem; }
  .table-pd tbody td { padding: 0.65rem 0.6rem; font-size: 0.8rem; }

  /* Auth */
  .auth-card { padding: 1.75rem 1.25rem; }

  /* Typography */
  .section-title { font-size: 1.3rem; }
  .section-sub { font-size: 0.88rem; }
  .container { padding: 0 1rem; }

  /* Footer */
  .footer { padding: 2rem 0 1rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  /* Very small phones */
  .prop-card-h { flex-direction: column; }
  .prop-card-h .card-img { width: 100%; min-width: 100%; height: 180px; }
  .prop-card-h .card-body { padding: 0.75rem; }

  /* Navbar */
  .navbar-pd .logo { font-size: 1.15rem; }

  /* Pkg cards */
  .pkg-card { padding: 1.5rem 1rem; }

  /* Hero */
  .hero-centris h1 { font-size: 1.6rem; }
  .search-form-inner { padding: 1rem; }

  /* Detail gallery */
  .detail-gallery .main-img img { height: 260px; }

  /* Steps: single column */
  .step-grid { grid-template-columns: 1fr; }
}
