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

:root {
  --primary: #0a0a0a;
  --primary-mid: #1a1a1a;
  --primary-light: #2a2a2a;
  --accent: #c9a84c;
  --accent-light: #e4cc7a;
  --accent-dark: #a88a3a;
  --text: #1a1a1a;
  --text-light: #666;
  --text-muted: #999;
  --bg: #f8f7f4;
  --card-bg: #fff;
  --border: #e8e6e1;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-img {
  height: 52px;
  width: auto;
}

.logo-text { display: flex; align-items: baseline; gap: 2px; }

.footer-logo-img {
  height: 70px;
  width: auto;
  margin-bottom: 8px;
}

.logo-pro { color: var(--accent); }
.logo-bienes { color: #fff; }
.logo-mx { color: var(--accent-light); font-size: 0.8em; margin-left: 4px; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.lang-switch {
  background: rgba(255,255,255,0.12);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-light) !important;
  transition: var(--transition);
}
.lang-switch:hover { background: rgba(255,255,255,0.2); }

.nav-right-mobile { display: none; align-items: center; gap: 12px; }

.lang-switch-mobile {
  background: rgba(255,255,255,0.12);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-light);
  transition: var(--transition);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #000 0%, #0d0d0d 40%, #1a1a1a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 100px 0 60px;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--accent-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}

.hero > .container > p,
.hero-content > p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* === Search Bar === */
.search-bar {
  display: flex;
  align-items: stretch;
  max-width: 680px;
  margin: 0 auto 50px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}

.search-inputs {
  display: flex;
  flex: 1;
  min-width: 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  flex: 1;
  min-width: 0;
  color: var(--text-light);
}

.search-field + .search-field {
  border-left: 1px solid var(--border);
}

.search-field input,
.search-field select {
  border: none;
  padding: 16px 0;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--text);
}

.search-field select { cursor: pointer; }

.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 16px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.search-btn:hover { background: var(--accent-light); }

/* === Hero Stats === */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-light);
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* === Trust Bar === */
.trust-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-tag-light { color: var(--accent-light); }

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* === Properties Section === */
.properties-section { padding: 80px 0; }

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.property-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: block;
  animation: fadeUp 0.5s ease both;
}

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

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.property-image {
  position: relative;
  height: 240px;
  background: #eee;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f0ede8;
}

.property-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #000;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-info { padding: 20px; }

.property-price { margin-bottom: 8px; }

.property-price .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-dark);
  font-family: 'Playfair Display', serif;
}

.property-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.property-location svg { color: var(--text-muted); flex-shrink: 0; }

.property-details {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  color: var(--text-light);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.detail-chip svg { color: var(--text-muted); }

.property-agent {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.property-agent svg { color: var(--accent); flex-shrink: 0; }

/* === Featured Cards === */
.featured-section {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.featured-card {
  border: 2px solid rgba(201, 168, 76, 0.25);
  position: relative;
}

.featured-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
}

.badge-featured {
  background: linear-gradient(135deg, #c9a84c 0%, #e4cc7a 100%);
  color: #000;
  top: 14px;
  left: 14px;
  font-size: 0.7rem;
}

.badge-type {
  top: 14px;
  right: 14px;
  left: auto;
  background: rgba(0,0,0,0.7);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* === MLS Section === */
.mls-section {
  background: var(--bg);
}

.mls-cta {
  text-align: center;
  padding: 60px 20px;
}

.mls-cta-content {
  max-width: 500px;
  margin: 0 auto;
}

.mls-cta svg { margin-bottom: 20px; }

.mls-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.mls-cta p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* === No Results === */
.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results svg { margin-bottom: 16px; }
.no-results h3 { margin-bottom: 8px; }
.no-results a { color: var(--accent); text-decoration: underline; }

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}

.page-info {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover { background: var(--accent-light); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #000;
}

.btn-white {
  background: #fff;
  color: var(--accent-dark);
}

.btn-white:hover { background: var(--accent-light); color: var(--accent-dark); }

.btn-full { width: 100%; }

/* === About Section === */
.about-section {
  padding: 100px 0;
  background: var(--card-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-content > p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.about-features { display: flex; flex-direction: column; gap: 24px; }

.about-feature {
  display: flex;
  gap: 16px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.about-feature h4 { font-size: 1rem; margin-bottom: 4px; }
.about-feature p { color: var(--text-light); font-size: 0.9rem; }

.about-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 400px;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Agent Card */
.agent-card {
  background: linear-gradient(145deg, #000 0%, #1a1a1a 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.agent-photo-wrap {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.agent-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.agent-info {
  padding: 24px;
  text-align: center;
}

.agent-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--accent);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.agent-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 4px;
}

.agent-role {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* === CTA Section === */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  text-align: center;
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 12px;
}

.cta-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* === Contact Section === */
.contact-section {
  padding: 100px 0;
  background: #0a0a0a;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info { color: #fff; }

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info > p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-methods { display: flex; flex-direction: column; gap: 16px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
}

.contact-method svg { color: var(--accent-light); flex-shrink: 0; }

/* === Contact Form === */
.contact-form-wrap {
  background: var(--card-bg);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.contact-form { text-align: left; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: #fff;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

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

.contact-status {
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-status.success { color: var(--accent); }
.contact-status.error { color: #d32f2f; }

/* === Property Detail === */
.property-detail { padding: 96px 0 60px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.back-link:hover { gap: 10px; }

.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.detail-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 8px;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 1rem;
}

.detail-prices { display: flex; gap: 20px; flex-wrap: wrap; }

.price-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.price-type {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Gallery */
.gallery { margin-bottom: 32px; }

.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.gallery-main img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.gallery-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}

.thumb {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
  flex-shrink: 0;
  border: 2px solid transparent;
}

.thumb:hover { opacity: 0.8; }
.thumb.active { opacity: 1; border-color: var(--accent); }

/* Detail grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
}

.detail-specs {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.spec svg { color: var(--accent); margin-bottom: 4px; }
.spec-value { font-size: 1.2rem; font-weight: 700; color: var(--accent-dark); }
.spec-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.detail-description {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-description h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.description-content {
  color: var(--text-light);
  line-height: 1.8;
}

.description-content p { margin-bottom: 12px; }

/* Agent Detail Card */
.agent-detail-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.agent-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.agent-detail-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.agent-detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.agent-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

.agent-detail-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-top: 2px;
}

.agent-detail-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

.agent-contact-link:hover { color: var(--accent); }
.agent-contact-link svg { color: var(--accent); flex-shrink: 0; }

.exclusive-badge {
  display: inline-block;
  margin-top: 14px;
  background: linear-gradient(135deg, #c9a84c 0%, #e4cc7a 100%);
  color: #000;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features */
.detail-features {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.detail-features h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.feature-category h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-category ul { list-style: none; }

.feature-category li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Location */
.detail-location-map {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.detail-location-map h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.location-address {
  color: var(--text-light);
  line-height: 1.6;
}

/* Sidebar */
.contact-card {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 96px;
}

.contact-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.contact-card-sub {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.contact-card .contact-form input,
.contact-card .contact-form textarea {
  padding: 11px 14px;
  font-size: 0.9rem;
}

/* === Error Page === */
.error-section {
  text-align: center;
  padding: 160px 0 100px;
}

.error-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 12px;
}

.error-section p { margin-bottom: 24px; color: var(--text-light); }

/* === Footer === */
.footer {
  background: #0d0d0d;
  color: rgba(255,255,255,0.6);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.7; }

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-nav li { margin-bottom: 10px; }
.footer-nav a { transition: var(--transition); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--accent); }

.footer-contact li { margin-bottom: 10px; font-size: 0.9rem; }

.social-links { display: flex; gap: 12px; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.social-link:hover { background: var(--accent); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* === WhatsApp Float === */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* === Responsive === */
@media (max-width: 968px) {
  .detail-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-top { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(12, 45, 27, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }

  .nav-links.active { display: flex; }

  .nav-right-mobile { display: flex; }
  .nav-toggle { display: flex; }
  .nav-links .lang-switch { display: none; }

  .hero { min-height: 80vh; }
  .hero h1 { font-size: 1.8rem; }

  .search-bar { flex-direction: column; }
  .search-inputs { flex-direction: column; }
  .search-field + .search-field { border-left: none; border-top: 1px solid var(--border); }
  .search-btn { justify-content: center; }

  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.4rem; }

  .trust-items { gap: 20px; }
  .trust-item span { display: none; }

  .property-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .section-header h2 { font-size: 1.6rem; }

  .footer-grid { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 24px; }
  .search-filters { grid-template-columns: 1fr !important; }
  .filter-location { grid-column: 1 !important; }
}

/* === Property Search Section === */
.search-section { background: var(--bg); }

.property-search-form {
  margin-bottom: 32px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.search-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.filter-location { grid-column: 1; }

.filter-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.filter-group input::placeholder { color: var(--text-muted); }

.filter-btn-group { display: flex; align-items: flex-end; }

.search-filter-btn {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  height: 42px;
}

/* Search Status */
.search-status {
  text-align: center;
  padding: 16px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.search-status.loading {
  color: var(--accent);
  font-weight: 500;
}

.search-status.loading::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.search-status.results-count {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.search-status.empty {
  padding: 48px 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.search-status.error {
  color: #c0392b;
  font-weight: 500;
}

/* Search result cards */
.search-result-card {
  animation: fadeInUp 0.3s ease forwards;
}

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

/* Load More */
.search-load-more {
  display: flex;
  justify-content: center;
  padding: 32px 0 8px;
}

/* Search CTA */
.search-cta {
  margin-top: 40px;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius);
  color: #fff;
}

.search-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--accent-light);
}

.search-cta p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.search-cta .btn-outline {
  color: #fff;
  border-color: var(--accent);
}

.search-cta .btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Responsive search filters */
@media (max-width: 1024px) {
  .search-filters {
    grid-template-columns: 1fr 1fr;
  }
  .filter-location { grid-column: 1 / -1; }
  .filter-btn-group { grid-column: 1 / -1; }
  .search-filter-btn { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .search-filters {
    grid-template-columns: 1fr;
  }
  .filter-location { grid-column: 1; }
  .filter-btn-group { grid-column: 1; }
  .property-search-form { padding: 16px; }
}

/* ====== Team page ====== */
.team-hero {
  background: linear-gradient(135deg, #0a2540 0%, #143a63 100%);
  color: #fff;
  padding: 90px 0 60px;
  text-align: center;
}
.team-hero .section-tag { color: var(--accent); }
.team-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  margin: 12px 0 14px;
  color: #fff;
}
.team-hero-sub {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
}

.team-lead-section {
  padding: 60px 0;
  background: #f9f9f9;
}
.team-lead-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}
.team-lead-photo-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a2540 0%, #143a63 100%);
}
.team-lead-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-lead-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-lead-badge {
  display: inline-block;
  background: var(--accent);
  color: #0a2540;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.team-lead-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin: 14px 0 6px;
  color: #0a2540;
}
.team-lead-role {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}
.team-lead-bio {
  color: #555;
  line-height: 1.7;
  margin-bottom: 28px;
  font-size: 1.02rem;
}
.team-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-wa-green {
  background: #25d366 !important;
  color: #fff !important;
  border-color: #25d366 !important;
}
.btn-wa-green:hover { background: #1fb057 !important; border-color: #1fb057 !important; }

.team-section { padding: 60px 0 90px; }
.team-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 40px;
  color: #0a2540;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.team-member-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  border: 1px solid #eee;
  transition: transform 0.15s, box-shadow 0.15s;
}
.team-member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.team-member-photo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0a2540, #143a63);
}
.team-member-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-member-photo-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.team-member-name { font-size: 1.2rem; color: #0a2540; margin-bottom: 4px; }
.team-member-role { color: var(--accent); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }
.team-member-bio { color: #666; font-size: 0.9rem; margin-bottom: 16px; line-height: 1.55; }
.team-member-actions { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.team-link { color: #0a2540; text-decoration: none; padding: 4px 0; }
.team-link:hover { color: var(--accent); }

@media (max-width: 760px) {
  .team-lead-card { grid-template-columns: 1fr; padding: 28px; gap: 24px; text-align: center; }
  .team-lead-photo-wrap { width: 200px; height: 200px; margin: 0 auto; }
  .team-lead-actions { justify-content: center; }
  .team-hero h1 { font-size: 2rem; }
}
