
:root {
  --primary: [SITE_PRIMARY_COLOR];
  --primary-dark: color-mix(in srgb, var(--primary) 85%, black);
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

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

.header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.logo img { height: 36px; }

.nav { display: flex; gap: 20px; }

.nav a {
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}

.nav a:hover { color: var(--primary); }

.header-contact { display: flex; align-items: center; gap: 12px; }

.phone { font-weight: 500; color: var(--text); }

.whatsapp-btn {
  background: #25d366;
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
}

.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 64px 0;
  text-align: center;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 8px; }
.hero p { font-size: 1.125rem; opacity: 0.9; margin-bottom: 32px; }

.search-form {
  display: flex;
  gap: 8px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.search-form select,
.search-form input {
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  min-width: 160px;
}

.search-form input { flex: 1; min-width: 200px; }

.search-form button {
  background: var(--primary-dark);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.properties-section { padding: 48px 0; }
.properties-section h2 { font-size: 1.75rem; margin-bottom: 24px; }

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

.property-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.property-image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.property-image img { width: 100%; height: 100%; object-fit: cover; }

.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.property-info { padding: 16px; }
.property-info h3 { font-size: 1.125rem; margin-bottom: 4px; }
.property-location { color: var(--text-light); font-size: 0.875rem; margin-bottom: 12px; }

.property-features {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.property-price { display: flex; gap: 16px; }
.sale-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.rental-price { font-size: 1rem; font-weight: 600; color: var(--text); }

.cta-center { text-align: center; margin-top: 32px; }

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--primary-dark); }

.empty-section {
  text-align: center;
  padding: 64px 0;
}

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

.property-detail { padding: 32px 0; }
.property-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }

.property-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  border-radius: var(--radius);
  overflow: hidden;
}

.property-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.property-gallery img:first-child {
  grid-column: span 2;
  height: 400px;
}

.property-detail-info {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.property-detail-info h1 { font-size: 1.5rem; margin-bottom: 8px; }
.property-detail-price { font-size: 2rem; font-weight: 700; color: var(--primary); margin: 16px 0; }

.property-detail-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-item { display: flex; flex-direction: column; }
.feature-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; }
.feature-value { font-size: 1.125rem; font-weight: 600; }

.property-description { margin: 24px 0; line-height: 1.8; }

.contact-form { margin-top: 24px; }
.contact-form h3 { margin-bottom: 16px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 1rem;
}

.contact-form button {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.footer {
  background: #1a1a2e;
  color: #cccccc;
  padding: 48px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer h3, .footer h4 { color: white; margin-bottom: 12px; }
.footer a { color: #aaa; display: block; margin-bottom: 8px; }
.footer a:hover { color: white; }

.social-links { display: flex; gap: 16px; margin-top: 8px; }
.social-links a { display: inline-block; }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #333;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .header-content { flex-direction: column; }
  .nav { flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 1.75rem; }
  .search-form { flex-direction: column; }
  .search-form select, .search-form input { width: 100%; }
  .properties-grid { grid-template-columns: 1fr; }
  .property-detail-grid { grid-template-columns: 1fr; }
  .property-gallery { grid-template-columns: 1fr; }
  .property-gallery img:first-child { grid-column: span 1; height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
}
