:root {
  --primary-color: #0d47a1;
  --secondary-color: #00e676;
  --dark-color: #1e293b;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
  --text-color: #334155;
  --accent-red: #e11d48;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOP BAR */
.top-bar {
  background-color: var(--dark-color);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 5px;
}
.top-bar a:hover {
  color: #fff;
}
.top-contacts span {
  margin-right: 15px;
}

/* NAVBAR */
.navbar-header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary-color);
  text-decoration: none;
}
.logo-bold {
  font-weight: 800;
}
.nav-menu ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 20px;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary-color);
}
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 4px;
  min-width: 180px;
  flex-direction: column;
  padding: 10px 0;
}
.dropdown:hover .dropdown-menu {
  display: flex;
}
.dropdown-menu a {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-client-area {
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 4px;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  margin-bottom: 60px;
}
.hero-slider {
  height: 420px;
}
.slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-content h2 {
  font-size: 2.2rem;
  margin: 10px 0;
}
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}
.badge-rent { background-color: #0284c7; color: #fff; }
.badge-sale { background-color: var(--accent-red); color: #fff; }

.btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 15px;
}

/* SEARCH BOX */
.search-box-container {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.search-form {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) 120px;
  gap: 15px;
  align-items: end;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.form-group input, .form-group select {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
}
.btn-search {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

/* PROPERTIES GRID */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.view-all {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}
.property-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.card-image {
  position: relative;
  height: 200px;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-image .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.card-code {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 3px;
}
.card-body {
  padding: 15px;
  flex-grow: 1;
}
.card-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}
.card-location {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 10px;
}
.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 15px;
}
.card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-color);
}
.card-features {
  display: flex;
  justify-content: space-around;
  padding: 12px 10px;
  background: #f1f5f9;
  font-size: 0.82rem;
  border-top: 1px solid var(--border-color);
}
.card-footer {
  display: flex;
  border-top: 1px solid var(--border-color);
}
.btn-action {
  flex: 1;
  padding: 10px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
}
.btn-action:first-child {
  border-right: 1px solid var(--border-color);
}
.btn-whatsapp {
  color: #16a34a;
  font-weight: 600;
}

/* WIDGET WHATSAPP */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 999;
}

/* FOOTER */
.main-footer {
  background: var(--dark-color);
  color: #94a3b8;
  margin-top: 60px;
  padding-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
}
.main-footer h4 {
  color: #fff;
  margin-bottom: 15px;
}
.main-footer ul {
  list-style: none;
}
.main-footer a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid #334155;
  text-align: center;
  padding: 15px 0;
  font-size: 0.85rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .top-bar { display: none; }
  .mobile-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  .nav-menu.active { display: block; }
  .nav-menu ul {
    flex-direction: column;
    padding: 20px;
    align-items: flex-start;
  }
  .search-form {
    grid-template-columns: 1fr;
  }
}