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

:root {
  --primary-color: #2c5aa0;
  --primary-dark: #1e3d6f;
  --secondary-color: #4a90e2;
  --accent-color: #f39c12;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #bdc3c7;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #ecf0f1;
  --border-color: #dee2e6;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 2px 4px 0 rgb(0 0 0 / 0.1);
  --shadow-lg: 0 4px 6px 0 rgb(0 0 0 / 0.1);
  --shadow-xl: 0 8px 15px 0 rgb(0 0 0 / 0.1);
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Add MAK-style header bar */
.header-bar {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  text-align: center;
}

.header-bar a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
}

.header-bar a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1400px;
  margin: auto;
  padding: 0 1.5rem;
}

/* HEADER */
header {
  background: var(--primary-color);
  border-bottom: 2px solid var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  gap: 2rem;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.navbar .logo:hover {
  transform: scale(1.02);
}

.navbar .logo .logo-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.navbar .logo .logo-icon:hover {
  background: var(--bg-secondary);
  transform: scale(1.05);
}

.navbar .logo h2 {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.navbar .logo .tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  margin-top: -0.25rem;
}

.navbar nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.navbar nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
}

.navbar nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.navbar nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid white;
}

.navbar nav a i {
  position: relative;
  z-index: 1;
}

.navbar nav a span {
  position: relative;
  z-index: 1;
}

/* Search Section like MAK */
.search-section {
  background: var(--bg-secondary);
  padding: 3rem 0;
  margin: 2rem 0;
  border-radius: var(--radius-lg);
}

.search-container {
  text-align: center;
}

.search-container h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.search-container h1 strong {
  color: var(--primary-color);
}

.search-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: end;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.filter-group select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

.search-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: fit-content;
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* HERO SLIDER */
.hero-slider {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0 3rem 0;
  box-shadow: var(--shadow-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.slider-container {
  position: relative;
  width: 100%;
  height: auto;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.slide:hover img {
  transform: scale(1.02);
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.slider-nav:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-md);
}

.slider-nav.prev {
  left: 30px;
}

.slider-nav.next {
  right: 30px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.dot.active {
  background: white;
  transform: scale(1.3);
}

/* FILTERS */
.filters {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: end;
  border: 1px solid var(--border-color);
}

.filters select, .filters button {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
}

.filters select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}

.filters select:hover {
  border-color: var(--primary-color);
}

.filters button {
  background: var(--primary-color);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.filters button:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

/* Featured Section like MAK */
.featured-section {
  margin: 3rem 0 2rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* PROPERTY CARDS */
.property-list {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.property-card {
  display: flex;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.property-card.featured {
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
}

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

.property-image {
  position: relative;
  flex: 0 0 350px;
  height: 250px;
  overflow: hidden;
  margin: 1rem;
  border-radius: var(--radius-md);
}

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

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

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-details {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.2;
}

.price small {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.condition-inline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--bg-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.location {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 1rem 0;
  font-weight: 600;
}

.location i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1rem;
}

.description {
  font-size: 0.95rem;
  margin: 1rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.actions .btn {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}

.actions .zoom { 
  background: var(--primary-color);
}
.actions .details { 
  background: var(--accent-color);
}
.actions .print { 
  background: var(--secondary-color);
}
.actions .whatsapp { 
  background: #25d366;
}

.actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.actions .zoom:hover { 
  background: var(--primary-dark);
}
.actions .details:hover { 
  background: #f97316;
}
.actions .print:hover { 
  background: #4b5563;
}
.actions .whatsapp:hover { 
  background: #128c7e;
}

/* Services Section like MAK */
.services-section {
  background: var(--bg-secondary);
  padding: 4rem 0;
  margin: 3rem 0;
  border-radius: var(--radius-lg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.service-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Footer minimalista */
footer {
  background: #f8f9fa;
  color: var(--text-primary);
  padding: 3rem 0 0 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 200px;
}

.footer-logo-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
}

.footer-logo-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.footer-logo-text p {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.footer-nav {
  display: flex;
  gap: 3rem;
  flex: 1;
}

.footer-column {
  flex: 1;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.membership h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.membership-logo {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.membership-logo strong {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.membership-logo p {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.3;
}

.footer-bottom {
  background: var(--bg-tertiary);
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-bottom-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .container {
    padding: 0 1rem;
  }
  
  .navbar {
    gap: 1.5rem;
  }
  
  .navbar nav {
    gap: 0.25rem;
  }
  
  .navbar nav a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .property-card {
    flex-direction: column;
    margin: 0 0.5rem;
  }

  .property-image {
    flex: none;
    width: calc(100% - 2rem);
    height: 250px;
    margin: 1rem;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .navbar nav {
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: white;
  }

  .navbar nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
  }

  .navbar nav a.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .actions .btn {
    justify-content: center;
    padding: 1rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-column {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .slider-nav {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .slider-nav.prev {
    left: 1rem;
  }

  .slider-nav.next {
    right: 1rem;
  }

  .slider-dots {
    bottom: 1rem;
    padding: 0.375rem 0.75rem;
  }

  .hero-slider {
    margin: 1rem 0 2rem 0;
  }
}

@media (max-width: 480px) {
  .navbar .logo h2 {
    font-size: 1.5rem;
  }
  
  .navbar .logo .logo-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  .price {
    font-size: 1.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .condition-inline {
    align-self: flex-start;
  }
  
  .property-details {
    padding: 1.5rem;
  }
  
  .filters {
    padding: 1rem;
  }
  
  .filters select, .filters button {
    padding: 0.875rem 1rem;
  }
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.property-card {
  animation: fadeInUp 0.6s ease forwards;
}
