/* ========== SELLING DUBAI — Agent Profile Styles ========== */
/* Design System: Manrope 800 headings, Inter 400 body, Playfair Display italic logo */
/* Brand blue: #1127d2 | Black bg: #000 | Muted text: #aaa */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #000;
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ========== LOADING & ERROR ========== */
.loading { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.loading-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); margin: 0 4px; animation: pulse 1.2s infinite; }
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; text-align: center; padding: 24px; }
.error-page h1 { font-family: 'Manrope', sans-serif; font-size: 24px; margin-bottom: 8px; }
.error-page p { color: rgba(255,255,255,0.5); font-size: 14px; }
.error-page .error-icon {
  width: 100px; height: 100px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.error-page .error-actions {
  width: 100%; max-width: 320px; margin: 24px auto 0;
  display: flex; flex-direction: column; gap: 12px;
}
.error-search {
  width: 100%; padding: 16px 18px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 15px; font-family: 'Inter', sans-serif;
  outline: none; text-align: center;
}
.error-search::placeholder { color: rgba(255,255,255,0.25); }
.error-search:focus { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }

/* ========== BACKGROUND ========== */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background-size: cover; background-position: center top;
}
.bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.12) 35%, rgba(0,0,0,0.22) 65%, rgba(0,0,0,0.35) 100%);
}
.bg-fallback {
  background: linear-gradient(160deg, #0c1929 0%, #1a2744 15%, #1e3555 25%, #2a4a6b 35%, #1a3050 45%, #162540 55%, #0f1c30 65%, #1a2b45 75%, #253d5c 85%, #0c1929 100%);
}

/* ========== PAGE LAYOUT ========== */
.page {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
}

/* ========== TOP NAV ========== */
.top-nav {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; max-width: 420px; padding: 20px 24px 0;
}
.brand {
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 800;
  letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.brand-spacer { margin-top: 28px; margin-bottom: 40px; }
.nav-claim {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5);
  text-decoration: none; padding: 6px 14px; border-radius: 6px;
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.15s;
}
.nav-claim:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.1); }
.nav-share {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  background: transparent; color: rgba(255,255,255,0.5); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; -webkit-tap-highlight-color: transparent;
}
.nav-share:hover { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }

/* ========== TRUST BAR ========== */
.trust-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 12px; flex-wrap: wrap;
}
.trust-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.06);
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}
.trust-chip-active { color: #25d366; background: rgba(37,211,102,0.08); }

/* ========== PROFILE ========== */
.profile { display: flex; flex-direction: column; align-items: center; margin-bottom: 36px; }

.avatar {
  width: 100px; height: 100px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.35); object-fit: cover;
  margin-bottom: 18px; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.avatar-fallback {
  width: 100px; height: 100px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.35);
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 32px; font-weight: 700;
  font-family: 'Manrope', sans-serif; letter-spacing: -0.5px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.name-row { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.name { font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.verified svg { display: block; }
.bio { font-size: 14px; color: #aaa; text-align: center; line-height: 1.5; max-width: 280px; }
.agency-badge {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.06);
}
.agency-logo { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }
.agency-name { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 600; letter-spacing: 0.02em; }

/* ========== LINK BUTTONS ========== */
.links {
  width: 100%; max-width: 420px; padding: 0 24px;
  display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px;
}

.link-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 24px;
  background: #1127d2; color: #fff;
  border-radius: 8px; font-size: 15px; font-weight: 700;
  text-decoration: none; letter-spacing: -0.1px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
}
.link-btn:active { transform: scale(0.96); }
@media (hover: hover) {
  .link-btn:hover { transform: scale(1.02); box-shadow: 0 8px 28px rgba(17,39,210,0.35); }
  .link-btn-wa:hover { box-shadow: 0 8px 28px rgba(37,211,102,0.35); }
}

.link-btn-wa { background: #25d366; color: #fff; }
.btn-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

/* ========== SOCIALS ========== */
.socials { display: flex; justify-content: center; gap: 28px; margin-bottom: 48px; }
.socials a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); text-decoration: none;
  transition: transform 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.socials a:active { transform: scale(0.9); }
@media (hover: hover) { .socials a:hover { color: #fff; transform: scale(1.1); } }

.trust { margin-top: auto; padding: 0 24px 36px; text-align: center; opacity: 0.4; }
.trust-copy { font-size: 7px; text-transform: uppercase; letter-spacing: 0.18em; }

.hidden { display: none; }

/* ========== BUTTON HIERARCHY ========== */
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link-btn-glass {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.1); box-shadow: none;
  font-size: 14px; padding: 16px 18px; backdrop-filter: blur(8px);
}
.link-btn-glass .btn-icon { opacity: 0.7; }
@media (hover: hover) {
  .link-btn-glass:hover { background: rgba(255,255,255,0.14); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
}
.link-btn-ghost {
  background: none; color: rgba(255,255,255,0.45); box-shadow: none;
  border: 1px dashed rgba(255,255,255,0.12); font-size: 13px; padding: 14px;
}
@media (hover: hover) { .link-btn-ghost:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); } }

/* ========== GOLDEN VISA INFO LINE ========== */
.gv-widget {
  width: 100%; max-width: 420px; padding: 0 24px; margin-bottom: 20px;
}
.gv-card {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.gv-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.gv-info {
  font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.4;
  font-family: 'Inter', sans-serif;
}
.gv-threshold {
  font-weight: 700; color: rgba(255,255,255,0.5);
}

/* ========== LEAD CAPTURE MODAL ========== */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%; max-width: 420px; max-height: 90vh;
  background: #000; border-radius: 16px 16px 0 0;
  padding: 0; overflow-y: auto; overscroll-behavior: contain;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header {
  position: sticky; top: 0; z-index: 2;
  background: #000; padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title {
  font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 500;
  letter-spacing: -0.2px;
}
.modal-close {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.08); color: #fff;
  font-size: 18px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover { background: rgba(255,255,255,0.15); }
.modal-body { padding: 20px 24px 36px; }

.modal-field { margin-bottom: 16px; }
.modal-field label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #aaa; margin-bottom: 8px;
}
.modal-field input, .modal-field select, .modal-field textarea {
  width: 100%; padding: 12px 0;
  border-radius: 0; background: transparent;
  border: none; border-bottom: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 0.8rem; font-weight: 400;
  font-family: 'Inter', sans-serif; outline: none;
  transition: all 0.2s; -webkit-appearance: none;
}
.modal-field select { cursor: pointer; padding: 12px 0; }
.modal-field select option { background: #111; color: #fff; }
.modal-field input:focus, .modal-field select:focus, .modal-field textarea:focus {
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.8);
}
.modal-field input::placeholder, .modal-field textarea::placeholder { color: rgba(255,255,255,0.25); }
.modal-field textarea { resize: none; height: 80px; }
.modal-hint { display: block; font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 4px; }
.modal-req { color: #25d366; }
.modal-expander {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; margin: 4px 0 16px; cursor: pointer;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.35);
  border: 1px dashed rgba(255,255,255,0.1); border-radius: 8px;
  background: transparent; width: 100%; transition: all 0.2s;
}
.modal-expander:hover { color: rgba(255,255,255,0.55); border-color: rgba(255,255,255,0.2); }
.modal-expander svg { transition: transform 0.2s; }
.modal-expander.open svg { transform: rotate(180deg); }
.modal-extra { display: none; }
.modal-extra.open { display: block; }

.modal-btn {
  width: 100%; padding: 18px 24px; margin-top: 12px;
  background: #1127d2;
  color: #fff;
  border-radius: 8px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all 0.25s ease;
  box-shadow: none;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.modal-btn:active { transform: scale(0.96); }
.modal-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.modal-error {
  border-radius: 8px; background: rgba(248,113,113,0.06);
  padding: 14px; font-size: 13px; color: #f87171;
  display: none; line-height: 1.4; text-align: center; margin-bottom: 16px;
}
.modal-error.show { display: block; }

.modal-success { text-align: center; padding: 20px 0; }
.modal-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(37,211,102,0.1); border: 2px solid rgba(37,211,102,0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.modal-success h3 { font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.modal-success p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.5; }

.spinner-sm {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== PROPERTY POPUP OVERLAY ========== */
.prop-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(12px);
  align-items: flex-end; justify-content: center;
}
.prop-overlay.open { display: flex; animation: fadeIn 0.2s ease-out; }
.prop-sheet {
  width: 100%; max-width: 420px; max-height: 88vh;
  background: #000; border-radius: 0;
  overflow-y: auto; overscroll-behavior: contain;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.prop-header {
  position: sticky; top: 0; z-index: 2;
  background: #000; padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.prop-header-title {
  font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700;
  letter-spacing: -0.3px; color: #fff;
}
.prop-header-count {
  font-size: 11px; color: #aaa; font-weight: 500;
  margin-left: 8px; letter-spacing: 0.03em;
}
.prop-close {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: #fff;
  font-size: 16px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.prop-close:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.prop-list { padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 32px; }

/* ========== PROPERTY CARD ========== */
.prop-card {
  position: relative; overflow: hidden;
  cursor: pointer; color: #fff; display: block;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  transition: opacity 0.3s ease;
}
.prop-card:active { opacity: 0.85; }
@media (hover: hover) {
  .prop-card:hover { opacity: 0.85; }
}

.prop-img-wrap { position: relative; overflow: hidden; }
.prop-img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.prop-card:hover .prop-img { transform: scale(1.03); }
.prop-img-placeholder {
  width: 100%; aspect-ratio: 16/10;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
}

/* Image error fallback */
.img-error {
  width: 100%; aspect-ratio: 16/10;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.15); font-size: 12px;
  font-family: 'Inter', sans-serif;
}

/* Status badge */
.prop-status {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 12px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.prop-tag-just-listed { background: rgba(96,165,250,0.2); color: #93bbfd; }
.prop-tag-available { background: rgba(37,211,102,0.18); color: #5ee89c; }
.prop-tag-open-house { background: rgba(168,85,247,0.2); color: #c084fc; }
.prop-tag-under-offer { background: rgba(251,191,36,0.2); color: #fcd34d; }
.prop-tag-just-sold { background: rgba(244,63,94,0.2); color: #fb7185; }
.prop-tag-sold { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
.prop-tag-rented { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }

.prop-source-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(0,0,0,0.3);
}

.prop-body {
  padding: 20px 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
}

.prop-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 2px;
}
.prop-price-currency {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.6);
}
.prop-price-value {
  font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800;
  color: #fff; line-height: 1.2; letter-spacing: -0.3px;
}

.prop-title {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 400;
  line-height: 1.5; color: #aaa;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}

.prop-features {
  display: flex; flex-wrap: wrap; gap: 22px; row-gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.prop-feature-item {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 400;
  color: #aaa; white-space: nowrap;
}
.prop-feature-item svg {
  flex-shrink: 0; opacity: 0.45;
  width: 20px; height: 20px; stroke-width: 1.2;
}

.prop-description {
  font-family: 'Inter', sans-serif; font-size: 14px;
  line-height: 1.7; color: #aaa;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 6px;
}

.prop-location {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: rgba(255,255,255,0.3);
  font-family: 'Inter', sans-serif;
}
.prop-location svg { opacity: 0.3; flex-shrink: 0; }

/* Trakheesi permit — RERA compliance */
.prop-permit {
  font-size: 10px; color: rgba(255,255,255,0.35); font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em; margin-top: 6px;
}

/* VIEW DETAILS button */
.prop-cta-shop {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 6px; border: none;
  background: #1127d2;
  color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 10px; width: fit-content;
  box-shadow: none;
}
.prop-cta-shop svg { transition: transform 0.2s ease; }
@media (hover: hover) {
  .prop-cta-shop:hover {
    box-shadow: 0 8px 40px rgba(17, 39, 210, 0.4);
    transform: translateY(-1px);
  }
  .prop-cta-shop:hover svg { transform: translateX(4px); }
}

.prop-empty {
  text-align: center; padding: 60px 24px;
  color: #aaa; font-size: 14px;
  font-family: 'Inter', sans-serif;
}

/* ========== SKELETON LOADER ========== */
.skeleton-card {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}
.skeleton-img {
  width: 100%; height: 200px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-body { padding: 16px; }
.skeleton-line {
  height: 14px; border-radius: 7px; margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-line:nth-child(1) { width: 40%; height: 18px; }
.skeleton-line:nth-child(2) { width: 70%; }
.skeleton-line:nth-child(3) { width: 55%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ========== FILTERS ========== */
.prop-filter-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease; margin-right: 8px;
}
.prop-filter-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }
.prop-filter-btn.active {
  background: rgba(17,39,210,0.2);
  border-color: rgba(17,39,210,0.4); color: #4d65ff;
}

.filters-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.98); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
}
.filters-overlay.open { display: flex; animation: fadeIn 0.2s ease-out; }
.filters-sheet {
  width: 100%; max-width: 420px; height: 100%;
  margin: 0 auto;
  display: flex; flex-direction: column;
}
.filters-header {
  flex-shrink: 0; z-index: 2; background: rgba(0,0,0,0.98);
  padding: 28px 24px 24px; display: flex; justify-content: space-between; align-items: center;
}
.filters-title {
  font-family: 'Manrope', sans-serif; font-size: 32px; font-weight: 800;
  letter-spacing: -0.5px; color: #fff;
}
.filters-body {
  padding: 0 24px 24px; flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.filters-section { margin-bottom: 28px; }
.filters-label {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  color: #fff; margin-bottom: 14px; display: block;
}
.filters-search {
  width: 100%; padding: 14px 16px 14px 44px; border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 14px; font-family: 'Inter', sans-serif;
  outline: none; transition: all 0.25s ease;
  box-sizing: border-box;
}
.filters-search:focus { border-color: rgba(255,255,255,0.4); }
.filters-search::placeholder { color: rgba(255,255,255,0.3); }
.filters-search-wrap { position: relative; }
.filters-search-wrap svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  opacity: 0.35;
}
.filters-row { display: flex; gap: 12px; }
.filters-input {
  flex: 1; padding: 14px 16px; border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 14px; font-family: 'Inter', sans-serif; outline: none;
  box-sizing: border-box; transition: all 0.25s ease;
}
.filters-input:focus { border-color: rgba(255,255,255,0.4); }
.filters-input::placeholder { color: rgba(255,255,255,0.3); }
.filters-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.filters-pill {
  padding: 10px 20px; border-radius: 20px;
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: #aaa; font-size: 14px; font-weight: 500;
  font-family: 'Inter', sans-serif; cursor: pointer;
  transition: all 0.2s ease;
}
.filters-pill:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.filters-pill.active {
  background: #1127d2;
  border-color: #1127d2; color: #fff;
}
.filters-footer {
  flex-shrink: 0; background: rgba(0,0,0,0.98);
  padding: 20px 24px; padding-bottom: max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.filters-clear {
  background: none; border: none; color: #aaa;
  font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em; transition: color 0.2s;
}
.filters-clear:hover { color: #fff; }
.filters-apply {
  padding: 15px 40px; border-radius: 8px; border: none;
  background: #1127d2;
  color: #fff; font-size: 14px; font-weight: 700;
  font-family: 'Inter', sans-serif; cursor: pointer;
  letter-spacing: 0.15em; text-transform: uppercase;
  box-shadow: none;
  transition: all 0.25s ease;
}
.filters-apply:hover { box-shadow: 0 6px 32px rgba(59, 130, 246, 0.35); transform: translateY(-1px); }

/* ========== PROPERTY DETAIL OVERLAY ========== */
.detail-overlay {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: #000;
  align-items: flex-start; justify-content: center;
}
.detail-overlay.open { display: flex; animation: fadeIn 0.15s ease-out; }
.detail-sheet {
  width: 100%; max-width: 420px; height: 100vh;
  background: #000; overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: 84px;
}
.detail-back {
  position: absolute; top: 16px; left: 16px; z-index: 160;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.55); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); color: #fff;
  font-size: 18px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.detail-back:hover { background: rgba(0,0,0,0.8); border-color: rgba(255,255,255,0.2); }

.detail-hero {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}
.detail-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 0;
}
.detail-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}
.detail-gallery-wrap { position: relative; display: flex; flex-direction: column; gap: 3px; }
.detail-show-all {
  position: absolute; bottom: 16px; right: 16px;
  padding: 10px 22px; border-radius: 24px; border: none;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.2s ease;
}
.detail-show-all:hover { background: rgba(0,0,0,0.85); border-color: rgba(255,255,255,0.25); }

.detail-title-bar { padding: 20px 24px 12px; }
.detail-breadcrumb {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 400;
  color: #666; margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.detail-title-above {
  font-family: 'Manrope', sans-serif; font-size: 28px; font-weight: 800;
  color: #fff; letter-spacing: -0.5px; line-height: 1.15;
  margin-bottom: 4px;
}

/* Full gallery overlay */
.gallery-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: #000; flex-direction: column;
}
.gallery-overlay.open { display: flex; animation: fadeIn 0.2s ease-out; }
.gallery-overlay-header {
  flex-shrink: 0; padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gallery-overlay-title {
  font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700; color: #fff;
}
.gallery-overlay-close {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1); background: transparent;
  color: #fff; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gallery-overlay-body {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.gallery-overlay-body img {
  width: 100%; display: block; object-fit: cover;
  cursor: pointer; transition: opacity 0.15s;
}
.gallery-overlay-body img:active { opacity: 0.8; }

/* Single photo fullscreen viewer */
.photo-viewer {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
  cursor: zoom-out; -webkit-tap-highlight-color: transparent;
}
.photo-viewer.open { display: flex; animation: fadeIn 0.15s ease-out; }
.photo-viewer img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.photo-viewer-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.photo-viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.photo-viewer-prev { left: 12px; }
.photo-viewer-next { right: 12px; }
.photo-viewer-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.6); letter-spacing: 0.05em;
}

/* Detail body */
.detail-body { padding: 32px 24px 120px; }
.detail-price {
  font-family: 'Manrope', sans-serif; font-size: 32px; font-weight: 800;
  color: #fff; letter-spacing: -0.5px; margin-bottom: 4px; line-height: 1.1;
}
.detail-price-label {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
  color: #aaa; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 20px; display: block;
}
.detail-specs-row {
  display: flex; align-items: center; gap: 0; margin-bottom: 32px;
  flex-wrap: wrap; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.detail-spec {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
  color: #aaa;
}
.detail-spec svg { opacity: 0.5; width: 22px; height: 22px; }
.detail-spec-divider {
  width: 1px; height: 18px; background: rgba(255,255,255,0.1);
  margin: 0 20px;
}

.detail-info-card {
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  padding: 24px; margin-bottom: 28px;
  background: transparent;
}
.detail-info-title {
  font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800;
  color: #fff; margin-bottom: 20px; letter-spacing: -0.3px;
}
.detail-info-row {
  display: flex; flex-wrap: wrap; gap: 24px; row-gap: 18px;
}
.detail-info-item {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 400;
  color: #aaa;
}
.detail-info-item svg { opacity: 0.45; flex-shrink: 0; width: 22px; height: 22px; }
.detail-info-item strong { color: #fff; font-weight: 600; }
.detail-info-divider {
  width: 100%; height: 1px; background: rgba(255,255,255,0.06);
  margin: 22px 0;
}

.detail-section-title {
  font-family: 'Manrope', sans-serif; font-size: 24px; font-weight: 800;
  color: #fff; margin-bottom: 14px; letter-spacing: -0.3px;
}
.detail-description {
  font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.75;
  color: #aaa; margin-bottom: 0;
}
.detail-description-card {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 28px 0; margin-bottom: 0;
  background: transparent;
}

.detail-location-card {
  padding: 28px 0 28px; margin-bottom: 0;
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.detail-location-text {
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: #ccc; margin-bottom: 18px; font-weight: 500;
}
.detail-map {
  width: 100%; height: 280px; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s ease;
}
.detail-map:hover {
  border-color: rgba(201,169,110,0.3);
}
.detail-map iframe { width: 100%; height: 100%; border: 0; }

.detail-reg-card {
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  padding: 24px; margin-top: 8px; margin-bottom: 28px;
  background: transparent;
}
.detail-reg-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px;
}
.detail-reg-label {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.35); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.detail-reg-value {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  color: #fff;
}

/* Fixed bottom CTA on detail view */
.detail-cta-bar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 160;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 24px; padding-bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; justify-content: center; gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.detail-cta-inquire {
  flex: 1; max-width: 280px; padding: 16px; border-radius: 8px; border: none;
  background: #1127d2;
  color: #fff; font-size: 11px; font-weight: 700;
  font-family: 'Inter', sans-serif; cursor: pointer;
  letter-spacing: 0.15em; text-transform: uppercase;
  box-shadow: none;
  transition: all 0.25s ease;
}
.detail-cta-inquire:hover { opacity: 0.85; }
.detail-cta-wa {
  width: 52px; height: 52px; border-radius: 8px; border: none;
  background: #25d366; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.detail-cta-wa:hover { background: #20bd5a; transform: translateY(-1px); }

/* ========== REFERRAL CTA ========== */
.referral-cta {
  width: 100%; padding: 16px 24px;
  background: linear-gradient(135deg, rgba(17,39,210,0.15), rgba(17,39,210,0.05));
  border-top: 1px solid rgba(17,39,210,0.3);
  text-align: center;
}
.referral-cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #93a3f8; font-size: 14px; font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none; transition: color 0.2s;
}
.referral-cta-link:hover { color: #fff; }

/* ========== FOOTER ========== */
.sd-footer {
  width: 100%; padding: 36px 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 16px; margin-top: 24px;
}
.sd-footer-brand {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic; font-size: 22px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  text-decoration: none; transition: opacity 0.2s;
}
.sd-footer-brand:hover { opacity: 0.8; }
.sd-footer-tagline {
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: #666; font-style: italic;
}
.sd-footer-legal {
  font-family: 'Inter', sans-serif; font-size: 11px; color: #666;
}
.sd-footer-legal a { color: #aaa; text-decoration: none; }
.sd-footer-legal a:hover { color: #fff; }

/* ========== RESPONSIVE ========== */
@media (max-width: 380px) {
  .brand { margin-top: 20px; margin-bottom: 32px; }
  .avatar, .avatar-fallback { width: 88px; height: 88px; }
  .name { font-size: 20px; }
  .links { gap: 14px; padding: 0 18px; }
  .link-btn { padding: 16px 20px; font-size: 15px; border-radius: 8px; }
}
@media (min-height: 800px) {
  .brand { margin-top: 40px; margin-bottom: 48px; }
  .profile { margin-bottom: 44px; }
}
@media (min-width: 480px) {
  .modal-overlay { align-items: center; }
  .modal { border-radius: 16px; max-height: 85vh; }
  .prop-overlay { align-items: center; }
  .prop-sheet { border-radius: 16px; max-height: 85vh; }
  .detail-sheet { max-height: 100vh; border-radius: 16px; }
}
@media (min-width: 768px) {
  .page { max-width: 600px; margin: 0 auto; }
  .prop-sheet { max-width: 600px; }
  .detail-sheet { max-width: 600px; }
  .filters-sheet { max-width: 500px; }
  .modal { max-width: 500px; }
  .sd-footer { max-width: 600px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 1024px) {
  .page { max-width: 720px; }
  .prop-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    padding: 24px;
  }
  .prop-card { border-bottom: none; padding-bottom: 0; }
  .prop-sheet { max-width: 720px; }
  .detail-sheet { max-width: 720px; }
  .sd-footer { max-width: 720px; padding: 60px 24px 40px; }
}

/* ========== STICKY BOTTOM CTA BAR ========== */
.sticky-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(10,10,10,0.92); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 0.3s ease;
}
.sticky-cta-bar.visible { transform: translateY(0); }
.sticky-cta-inner {
  display: flex; gap: 10px; max-width: 600px; margin: 0 auto;
}
.sticky-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px; border-radius: 12px; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  transition: opacity 0.15s ease;
}
.sticky-btn:active { opacity: 0.8; }
.sticky-btn-wa {
  background: #25d366; color: #fff;
}
.sticky-btn-contact {
  background: #fff; color: #111;
}
/* ========== DETAIL VIEW: Price row & map ========== */
.detail-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.detail-map-clickable { cursor: pointer; position: relative; }
.detail-map-iframe {
  pointer-events: none;
  filter: saturate(0.3) brightness(0.7) contrast(1.2);
}
.detail-map-overlay {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 8px;
  display: flex; align-items: center; gap: 6px;
}
.detail-map-label {
  color: #fff; font-size: 11px; font-weight: 600;
}

/* ========== SHARE BUTTON (property detail) ========== */
.detail-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap;
}
.detail-share-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.detail-share-btn:active { transform: scale(0.96); }

/* Add padding to page bottom so content isn't hidden behind sticky bar */
.page { padding-bottom: 80px; }