/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --primary: #0f172a;
  --accent: #fbbf24;
  --blue: #3b82f6;
  --green: #0d9488;
  --orange: #b45309;
  --indigo: #4f46e5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 48px rgba(0,0,0,.14);

  --appbar-h: 54px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body { height: 100%; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: 'Inter', sans-serif; }

/* ══════════════════════════════════════════
   APP BAR
══════════════════════════════════════════ */
.appbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--appbar-h);
  padding: 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.appbar__logo { display: flex; align-items: center; gap: 8px; }
.appbar__logo img { height: 26px; width: auto; }
.appbar__brand { font-size: 1.02rem; font-weight: 600; letter-spacing: -.2px; }
.appbar__brand strong { font-weight: 800; color: var(--indigo); }

.appbar__actions { display: flex; align-items: center; gap: 8px; }

.appbar__country {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); border-radius: 40px;
  padding: 6px 11px; font-size: .78rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.appbar__country:active { background: var(--border); }
.appbar__country i { font-size: .6rem; opacity: .55; }

.appbar__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  transition: background .15s;
}
.appbar__avatar:active { background: var(--border); }
.appbar__avatar img { width: 100%; height: 100%; object-fit: cover; }
.appbar__avatar.icon-only i { font-size: 1.15rem; }
.appbar__avatar.initial-avatar::after {
  content: attr(data-initial);
  position: absolute; font-size: .85rem; font-weight: 700;
  color: var(--text);
}

/* ══════════════════════════════════════════
   SEARCH STICKY
══════════════════════════════════════════ */
.searchbar-wrap {
  position: sticky; top: var(--appbar-h); z-index: 90;
  background: var(--surface);
  padding: 10px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.searchbar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 40px; padding: 6px 6px 6px 14px;
}
.searchbar i { color: var(--text-muted); font-size: .88rem; flex-shrink: 0; }
.searchbar input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: .88rem; font-family: 'Inter', sans-serif; color: var(--text);
  min-width: 0;
}
.searchbar input::placeholder { color: var(--text-subtle); }
.searchbar button {
  background: var(--primary); color: white;
  border: none; width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.searchbar button:active { transform: scale(.94); }

/* Search + Request row */
.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-row .searchbar { flex: 1; min-width: 0; }
.search-row .request-cta-btn {
  padding: 10px 16px;
  font-size: .8rem;
  box-shadow: 0 4px 12px rgba(251,191,36,.3);
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .search-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .search-row .request-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .request-slot { width: 100%; }
  .request-slot .request-cta-btn { width: 100%; }
  .status-banner { padding: 10px 12px; font-size: .78rem; }
}

/* Request slot — bouton / bandeau superposés (pas de décalage) */
.request-slot {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  flex-shrink: 0;
}
.request-slot > * {
  grid-area: 1 / 1;
}

.request-slot .request-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  transition: opacity .2s, visibility .2s;
}
.request-slot .request-cta-btn.is-loading {
  visibility: hidden;
  pointer-events: none;
}
.request-slot .request-cta-btn:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(251,191,36,.3);
}
.request-slot .request-cta-btn:active {
  transform: scale(.97);
}

/* Status banner — pile sur le bouton via grid */
.status-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  justify-self: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.status-banner.is-visible {
  opacity: 1;
  visibility: visible;
}
.status-banner__spinner {
  width: 12px; height: 12px;
  border: 2px solid var(--border);
  border-top-color: var(--indigo);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
.status-banner--done {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: var(--green);
}
.status-banner--done .status-banner__spinner {
  border-color: #6ee7b7;
  border-top-color: #6ee7b7;
  animation: none;
}

/* ══════════════════════════════════════════
   SEGMENTED CONTROL
══════════════════════════════════════════ */
.segments {
  display: flex; gap: 4px;
  background: var(--surface);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: calc(var(--appbar-h) + 58px);
  z-index: 85;
}
.segment {
  flex: 1; border: none; background: var(--bg);
  color: var(--text-muted); font-weight: 600;
  font-size: .8rem;
  padding: 9px 10px; border-radius: 10px;
  cursor: pointer; transition: all .15s;
}
.segment:active { transform: scale(.97); }
.segment.active {
  background: var(--primary); color: white;
  box-shadow: 0 2px 8px rgba(15,23,42,.18);
}

/* Active filters chips */
.active-filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.active-filters.hidden { display: none; }
.filter-chip {
  display: flex; align-items: center; gap: 5px;
  background: #eef2ff; color: var(--indigo);
  padding: 4px 10px; border-radius: 20px;
  font-size: .74rem; font-weight: 500;
}
.filter-chip button {
  background: none; border: none; color: var(--indigo);
  cursor: pointer; padding: 0; line-height: 1;
  font-size: .9rem; opacity: .7;
}
.filter-chip button:hover { opacity: 1; }
.clear-all-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); padding: 4px 10px; border-radius: 20px;
  font-size: .74rem; cursor: pointer;
  transition: all .15s;
}
.clear-all-btn:active { background: var(--border); }

/* ══════════════════════════════════════════
   CATALOGUE MAIN
══════════════════════════════════════════ */
.catalogue-main {
  padding: 12px 14px 20px;
}

.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.property-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .15s;
  -webkit-user-select: none; user-select: none;
}
.property-card:active { transform: scale(.98); }

.card-image {
  position: relative;
  height: 118px;
  overflow: hidden;
  background: var(--border);
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; color: var(--text-subtle); font-size: 1.8rem;
}

.badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 40px;
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  color: white; letter-spacing: .3px;
}
.badge.rent { background: var(--green); }
.badge.sale { background: var(--orange); }

.card-content {
  padding: 9px 11px 11px;
  display: flex; flex-direction: column; flex: 1;
}
.card-price {
  font-size: .98rem; font-weight: 800; color: var(--text);
  letter-spacing: -.2px; margin-bottom: 2px;
}
.card-price small {
  font-size: .7rem; font-weight: 500; color: var(--text-muted);
  letter-spacing: normal;
}
.card-title {
  font-size: .8rem; font-weight: 600; margin-bottom: 3px;
  color: #1e293b; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-location {
  display: flex; align-items: center; gap: 4px;
  font-size: .72rem; color: var(--text-muted);
}
.card-location i { color: var(--accent); font-size: .66rem; }

.chips-row {
  display: flex; flex-wrap: wrap; gap: 3px;
  margin-top: 6px; padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}
.chip {
  background: #eef2ff; color: var(--indigo);
  padding: 2px 7px; border-radius: 20px;
  font-size: .64rem; font-weight: 500;
}
.chip.more { background: #f1f5f9; color: var(--text-muted); }


.request-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #0f172a;
  border: none;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(251,191,36,.35);
  transition: transform .15s, box-shadow .2s;
}
.request-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(251,191,36,.45); }
.request-cta-btn:active { transform: scale(.97); }

/* Load more */
.load-more-container { text-align: center; padding: 12px 0 8px; }
.load-more-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 9px 26px; border-radius: 40px;
  font-size: .84rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.load-more-btn:active { background: var(--bg); }
.load-more-btn:disabled { opacity: .5; cursor: not-allowed; }

/* No results */
.no-results {
  text-align: center; padding: 40px 20px;
  background: var(--surface);
  border-radius: var(--radius); border: 1px solid var(--border);
  margin: 8px 0 16px;
}
.no-results i { font-size: 2rem; color: var(--border); margin-bottom: 10px; }
.no-results p { font-size: .9rem; color: var(--text-muted); margin-bottom: 14px; }
.no-results-hint {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.no-results-hint strong { color: var(--indigo); font-weight: 600; }
.no-results-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.reset-btn {
  background: var(--primary); color: white;
  border: none; padding: 9px 22px; border-radius: 40px;
  font-size: .82rem; font-weight: 600;
  cursor: pointer;
}


/* Spinner */
.loading-spinner { display: flex; justify-content: center; padding: 30px 0; }
.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   SKELETON
══════════════════════════════════════════ */
.catalogue-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.catalogue-skeleton.hidden { display: none; }

.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.skeleton-image {
  height: 118px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-content { padding: 11px; }
.skeleton-line {
  height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 6px;
}
.skeleton-line--lg { height: 14px; width: 60%; }
.skeleton-line--md { height: 11px; width: 85%; }
.skeleton-line--sm { height: 10px; width: 45%; }
.skeleton-chips { display: flex; gap: 5px; margin-top: 8px; }
.skeleton-chip {
  height: 14px; width: 48px; border-radius: 20px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════
   PAGE DÉTAIL
══════════════════════════════════════════ */
#page-detail {
  min-height: 100vh;
  padding-bottom: 20px;
}
.detail-topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  min-height: var(--appbar-h);
}
.back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: .95rem; flex-shrink: 0;
}
.back-btn:active { background: var(--border); }
#detailTopTitle {
  font-weight: 600; font-size: .88rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.detail-content { padding: 12px 14px 40px; max-width: 720px; margin: 0 auto; }

/* Gallery */
.detail-gallery {
  border-radius: var(--radius); overflow: hidden;
  background: var(--border); margin-bottom: 14px; position: relative;
}
.gallery-main { height: 240px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-main-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text-subtle);
}
.gallery-thumbs {
  display: flex; gap: 3px; padding: 3px;
  background: rgba(0,0,0,.04); overflow-x: auto;
}
.gallery-thumbs img {
  width: 56px; height: 44px; object-fit: cover;
  border-radius: 6px; cursor: pointer; flex-shrink: 0;
  opacity: .65; transition: opacity .2s;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; }
.gallery-count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.55); color: white;
  padding: 3px 8px; border-radius: 20px;
  font-size: .7rem; font-weight: 600;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.lightbox-overlay img {
  max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 8px;
}
.lightbox-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.15); border: none;
  color: white; width: 36px; height: 36px; border-radius: 50%;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none;
  color: white; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }
.lightbox-counter {
  color: rgba(255,255,255,.7); font-size: .8rem; margin-top: 8px;
}

/* Detail header */
.detail-header { margin-bottom: 14px; }
.detail-badges { display: flex; gap: 6px; margin-bottom: 8px; }
.detail-badge {
  padding: 3px 9px; border-radius: 40px;
  font-size: .66rem; font-weight: 700; text-transform: uppercase; color: white;
}
.detail-badge.rent { background: var(--green); }
.detail-badge.sale { background: var(--orange); }

.detail-price {
  font-size: 1.5rem; font-weight: 800; color: var(--text);
  letter-spacing: -.3px;
}
.detail-price small { font-size: .85rem; font-weight: 500; color: var(--text-muted); }
.detail-type { font-size: .95rem; font-weight: 600; margin: 4px 0 2px; color: #1e293b; }
.detail-location {
  display: flex; align-items: center; gap: 5px;
  color: var(--text-muted); font-size: .84rem;
}
.detail-location i { color: var(--accent); }

/* Detail sections */
.detail-section { margin-bottom: 16px; }
.detail-section h4 {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted); margin-bottom: 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.info-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
}
.info-item i { color: var(--indigo); font-size: .9rem; width: 14px; text-align: center; }
.info-item-label { font-size: .66rem; color: var(--text-muted); }
.info-item-value { font-size: .82rem; font-weight: 600; color: var(--text); }

.chips-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.detail-chip {
  background: #eef2ff; color: var(--indigo);
  padding: 5px 11px; border-radius: 20px;
  font-size: .76rem; font-weight: 500;
}

.detail-details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; font-size: .86rem;
  color: #334155; line-height: 1.6; white-space: pre-wrap;
}

/* Agent card */
.agent-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px;
  display: flex; align-items: center; gap: 12px;
}
.agent-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: white;
  background: var(--indigo);
}
.agent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-name {
  font-weight: 700; font-size: .92rem;
  display: flex; align-items: center; gap: 5px;
}
.agent-name i { color: #3b82f6; font-size: .78rem; }
.agent-sub { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }

/* CTA sticky */
.detail-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + var(--safe-bottom));
  display: flex; gap: 10px;
}
.cta-btn {
  flex: 1; padding: 12px; border-radius: 40px; border: none;
  font-size: .9rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity .15s;
}
.cta-btn:active { opacity: .85; }
.cta-btn.whatsapp { background: #18654a; color: white; }
.cta-btn.call { background: var(--primary); color: white; }

/* ══════════════════════════════════════════
   MODALS
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-box {
  background: var(--surface); border-radius: 20px 20px 0 0;
  padding: 22px 18px calc(24px + var(--safe-bottom));
  width: 100%; max-width: 460px;
  position: relative; animation: slideUp .25s ease;
  max-height: 92vh; overflow-y: auto;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .8rem;
  z-index: 5;
}
.modal-close:active { background: var(--border); }
.modal-icon {
  font-size: 1.9rem; color: var(--indigo);
  margin-bottom: 10px; text-align: center;
}
.modal-box h3 {
  font-size: 1.05rem; font-weight: 700; text-align: center; margin-bottom: 4px;
}
.modal-sub {
  font-size: .82rem; color: var(--text-muted); text-align: center;
  margin-bottom: 16px; line-height: 1.45;
}

.modal-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  border-radius: 10px; padding: 8px 12px; font-size: .8rem;
  margin-bottom: 10px; text-align: center;
}

#aiSearchText {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: .88rem; font-family: 'Inter', sans-serif;
  resize: none; outline: none; color: var(--text);
  background: var(--bg); margin-bottom: 14px;
  transition: border-color .2s;
}
#aiSearchText:focus { border-color: var(--indigo); }

.modal-primary-btn {
  width: 100%; padding: 12px; border-radius: 40px; border: none;
  background: var(--primary); color: white;
  font-size: .9rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity .15s;
}
.modal-primary-btn:active { opacity: .88; }
.modal-primary-btn:disabled { opacity: .5; cursor: not-allowed; }

.modal-secondary-btn {
  flex: 1; padding: 12px; border-radius: 40px;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: .88rem; font-weight: 600; cursor: pointer;
}
.modal-actions { display: flex; gap: 10px; margin-top: 12px; }

/* Pays */
.country-list { display: flex; flex-direction: column; gap: 8px; }
.country-option {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg);
  font-size: .92rem; font-weight: 600;
  cursor: pointer; text-align: left; transition: all .15s; color: var(--text);
}
.country-option:active { transform: scale(.98); }
.country-option.active {
  background: #eef2ff; border-color: var(--indigo); color: var(--indigo);
}

/* Quartier */
.neighborhood-search-wrap { margin-bottom: 10px; }
#neighborhoodSearchInput {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: .86rem;
  background: var(--bg); outline: none; color: var(--text);
}
.neighborhood-list {
  max-height: 300px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); padding: 4px;
}
.neighborhood-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  font-size: .86rem; transition: background .15s;
}
.neighborhood-item:active { background: white; }
.neighborhood-item.selected {
  background: #eef2ff; color: var(--indigo); font-weight: 600;
}
.neighborhood-item input[type="radio"] { accent-color: var(--indigo); }

/* Contact */
.contact-loading {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 0; font-size: .82rem; color: var(--text-muted);
}
.contact-actions { display: flex; gap: 10px; }
.contact-btn {
  flex: 1; padding: 12px; border-radius: 40px; border: none;
  font-size: .9rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity .15s;
}
.contact-btn:active { opacity: .88; }
.contact-btn.whatsapp { background: #18654a; color: white; }
.contact-btn.call { background: var(--primary); color: white; }

/* Google */
.google-btn {
  width: 100%; padding: 12px; border-radius: 40px;
  border: 1px solid var(--border); background: white;
  font-size: .88rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text); transition: background .15s;
}
.google-btn img { width: 18px; height: 18px; }
.google-btn:active { background: var(--bg); }

/* ══════════════════════════════════════════
   ACCOUNT MENU
══════════════════════════════════════════ */
.account-menu {
  position: fixed;
  top: 62px;
  right: 14px; left: 14px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 300;
  overflow: hidden;
  animation: menuIn .15s ease;
  max-width: 300px;
  margin-left: auto;
}
.account-menu.hidden { display: none; }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.account-menu__header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.account-menu__header img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: var(--border);
}
.account-menu__name { font-size: .86rem; font-weight: 700; }
.account-menu__email { font-size: .74rem; color: var(--text-muted); }
.account-menu__item {
  width: 100%; padding: 13px 14px;
  border: none; background: transparent;
  color: #dc2626; font-size: .84rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  text-align: left;
}
.account-menu__item:active { background: #fef2f2; }

/* ══════════════════════════════════════════
   FOOTER — intact
══════════════════════════════════════════ */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 18px 14px calc(18px + var(--safe-bottom));
  text-align: center;
  color: var(--text-muted); font-size: .8rem;
}
footer a { color: var(--indigo); font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 16px; }
  .modal-box { border-radius: 20px; }
}

@media (max-width: 480px) {
  .catalogue { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .appbar { padding: 0 22px; }
  .searchbar-wrap { padding: 10px 22px; }
  .segments { padding: 10px 22px; }
  .catalogue-main { padding: 14px 22px 20px; }
  .catalogue { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .card-image { height: 140px; }
}


/* ══════════════════════════════════════════
   MODAL DEMANDE CLIENT
══════════════════════════════════════════ */
.request-modal-box {
  padding: 18px 18px 18px;
  max-width: 520px;
}

.request-progress {
  height: 4px; background: var(--border); border-radius: 4px;
  overflow: hidden; margin: 4px 0 16px;
}
.request-progress-bar {
  height: 100%; background: var(--indigo);
  border-radius: 4px;
  transition: width .3s ease;
  width: 14%;
}

.request-steps { min-height: 0px; }

.request-step-title {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 4px;
  color: var(--text); line-height: 1.3;
}
.request-step-sub {
  font-size: .82rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.45;
}

/* Grille types */
.request-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.request-type-card {
  padding: 12px 10px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: .82rem; font-weight: 500; font-family: 'Inter', sans-serif;
  text-align: left; cursor: pointer; color: var(--text);
  transition: all .15s; line-height: 1.3;
}
.request-type-card:hover { border-color: var(--indigo); }
.request-type-card.selected {
  border-color: var(--indigo); background: #eef2ff;
  color: var(--indigo); font-weight: 600;
}

/* Inputs */
.request-input {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 14px; font-size: .9rem; font-family: 'Inter', sans-serif;
  background: var(--bg); outline: none; color: var(--text);
  transition: border-color .2s;
}
.request-input:focus { border-color: var(--indigo); }
.request-input-label {
  display: block; font-size: .76rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .3px;
}
.request-budget-row { display: flex; gap: 10px; margin-bottom: 12px; }

/* Chips de sélection */
.request-chips-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.request-chip {
  padding: 7px 12px; border-radius: 20px;
  border: 1px solid var(--border); background: white;
  font-size: .8rem; font-weight: 500; font-family: 'Inter', sans-serif;
  cursor: pointer; color: var(--text); transition: all .15s;
}
.request-chip:hover { border-color: var(--indigo); }
.request-chip.selected {
  background: var(--indigo); color: white; border-color: var(--indigo);
}

/* Type d'offre — ligne */
.request-offer-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.request-offer-card {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: .88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  color: var(--text);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s;
}
.request-offer-card i { font-size: 1rem; }
.request-offer-card:hover { border-color: var(--indigo); }
.request-offer-card.selected {
  border-color: var(--indigo);
  background: #eef2ff;
  color: var(--indigo);
}

/* Features categories */
.request-feature-category { margin-bottom: 14px; }
.request-feature-category-title {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--text-muted); margin-bottom: 8px;
}

/* Récap */
.request-recap-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; margin-bottom: 14px;
}
.request-recap-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: .85rem;
  border-bottom: 1px dashed var(--border);
}
.request-recap-row:last-child { border-bottom: none; }
.request-recap-label { color: var(--text-muted); flex-shrink: 0; }
.request-recap-value { font-weight: 600; text-align: right; word-break: break-word; }

/* Nav bas de modal */
.request-nav {
  display: flex; gap: 10px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.request-nav-back {
  padding: 11px 16px; border-radius: 40px; border: 1px solid var(--border);
  background: white; color: var(--text);
  font-size: .88rem; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: background .15s;
}
.request-nav-back:hover { background: var(--bg); }
.request-nav-next {
  flex: 1; padding: 12px; border-radius: 40px; border: none;
  background: var(--indigo); color: white;
  font-size: .92rem; font-weight: 700; font-family: 'Inter', sans-serif;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity .15s;
}
.request-nav-next:hover:not(:disabled) { opacity: .9; }
.request-nav-next:disabled { opacity: .4; cursor: not-allowed; }

/* ══════════════════════════════════════════
   REQUEST PAGE (demande isolée)
══════════════════════════════════════════ */
.request-page { background: var(--bg); }
.request-page__topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: white;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: .95rem;
}
.request-page__topbar > span:nth-child(2) { flex: 1; }
.request-page__badge {
  background: var(--accent);
  color: #0f172a;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}
.request-page__main {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}
.request-page__hero { margin-bottom: 24px; text-align: center; }
.request-page__hero h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 6px;
}
.request-page__hero p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.request-page__hero strong { color: var(--indigo); }

.request-page__app {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}


/* Navigation dans le topbar */
.request-page__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.request-page__nav .request-nav-back,
.request-page__nav .request-nav-next {
  padding: 6px 12px;
  font-size: .78rem;
  border-radius: 30px;
  height: 32px;
}
.request-page__nav .request-nav-back {
  width: 32px;
  padding: 0;
  justify-content: center;
}
.request-page__nav .request-nav-next {
  gap: 5px;
}
.request-page__nav .request-nav-next i { font-size: .72rem; }

/* Responsive request */
@media (max-width: 768px) {
  .request-modal-box { padding: 16px 14px; }
  .request-type-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .request-type-card { font-size: .76rem; padding: 10px 8px; }
  .request-step-title { font-size: .98rem; }
}
@media (max-width: 480px) {
  .request-type-grid { grid-template-columns: 1fr; }
  .request-budget-row { flex-direction: column; gap: 8px; }
}