@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap');

:root {
  --gold: #c5a059;
  --dark: #1a1a1a;
  --light-gray: #f8f9fa;
  --text: #333;
  --border: #eaeaea;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Jost', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  font-size: 14px;
}

h1 { font-size: 36px; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 28px; font-weight: 600; margin-bottom: 1rem; }
h3, h4, h5, h6 { font-size: 22px; font-weight: 600; margin-bottom: 0.75rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Navbar (Glass Effect) ----- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.nav-logo span { color: var(--gold); }
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-link {
  font-weight: 500;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gold);
  transition: width 0.2s;
}
.nav-link:hover::after { width: 100%; }
.nav-link.external {
  color: var(--gold);
}
.nav-cta {
  background: var(--dark);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.2s;
}
.nav-cta:hover { background: #333; transform: translateY(-2px); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--dark);
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: 0.3s;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  .nav-menu.active { right: 0; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--white);
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 0;
  border-top: 1px solid var(--border);
  z-index: 1000;
  text-align: center;
}
.mobile-bottom-nav a {
  font-size: 12px;
  font-weight: 500;
  color: #666;
}
.mobile-bottom-nav a i { display: block; font-size: 20px; margin-bottom: 4px; }
@media (max-width: 768px) {
  .mobile-bottom-nav { display: grid; }
  body { padding-bottom: 70px; }
}

/* Property Cards (2 per row on mobile) */
.listings-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  padding: 20px 16px;
}
@media (min-width: 768px) {
  .listings-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px;
  }
}
@media (min-width: 1200px) {
  .listings-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.property-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}
.card-image {
  position: relative;
  height: 200px;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.price-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}
.card-content {
  padding: 16px;
}
.estate-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.property-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.specs {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 12px;
}
.whatsapp-quick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #25D366;
  color: white;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 8px;
  text-decoration: none;
}

/* Filter Buttons (2 per row on mobile) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  justify-content: center;
}
.filter-btn {
  flex: 0 0 calc(50% - 12px);
  background: var(--light-gray);
  border: none;
  padding: 10px;
  border-radius: 30px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}
.filter-btn.active {
  background: var(--dark);
  color: var(--white);
}
@media (min-width: 640px) {
  .filter-btn {
    flex: 0 0 auto;
    padding: 8px 20px;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 40px 0;
  align-items: center;
}
.page-btn {
  background: var(--light-gray);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  color: var(--dark);
  transition: 0.2s;
}
.page-btn:hover { background: var(--dark); color: var(--white); }
.page-indicator {
  font-size: 14px;
  color: #666;
}

/* Buttons */
.btn-primary {
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--dark);
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--dark);
  transition: 0.2s;
}
.btn-secondary:hover {
  background: var(--dark);
  color: var(--white);
}