/*
Theme Name: Estatein
Theme URI: https://estatein.com
Author: Estatein Dev Team
Description: Custom built real estate theme matching Figma exactly.
Version: 1.0.0
*/

:root {
  /* Colors - Exactly from Figma */
  --bg-dark: #141414;        /* Main Background */
  --bg-card: #1A1A1A;        /* Card Background */
  --bg-card-hover: #1E1E1E;  
  --bg-subtle: #1f1f1f;
  
  --border-light: #262626;   /* Borders, outlines */
  --primary: #703BF7;        /* Purple buttons/accents */
  
  --text-main: #FFFFFF;
  --text-dim: #999999;       /* Secondary text */
  --text-muted: #B3B3B3;

  --yellow: #FFE500;         /* Stars */

  /* Typography */
  --font-main: 'Urbanist', sans-serif;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 30px;
  
  /* Containers & Spacing */
  --max-width: 1440px;
  --pad: 16px;
  --spacing-lg: 80px;
  --spacing-md: 40px;
  --spacing-sm: 20px;
  --gap: 20px;
  
  /* Shadows */
  --shadow-elevated: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* ========================================================
   RESETS
======================================================== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"], ul { list-style: none; }
html:focus-within { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; }

/* ========================================================
   UTILITIES
======================================================== */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.placeholder {
  background-color: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  width: 100%;
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-65-35 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }

@media (min-width: 768px) { 
  :root { 
    --pad: 40px; 
    --spacing-lg: 100px;
    --gap: 30px;
  } 
  .grid-2, .grid-65-35 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) { 
  :root { 
    --pad: 80px; 
    --spacing-lg: 120px;
    --gap: 50px;
  }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .grid-65-35 { grid-template-columns: 65% 35%; align-items: start; }
}

/* ========================================================
   TYPOGRAPHY
======================================================== */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 68px); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { color: var(--text-dim); line-height: 1.6; }
label { font-size: 0.875rem; text-transform: capitalize; font-weight: 500; }

.section-label {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 20px;
}
.section-title {
  margin-bottom: 10px;
}
.section-desc {
  max-width: 60ch;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ========================================================
   BUTTONS
======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background: transparent;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: #5a2cc9;
}
.btn--outline {
  border-color: var(--border-light);
  background: var(--bg-card);
  color: #fff;
}
.btn--outline:hover {
  background: var(--bg-card-hover);
  border-color: #333;
}
.btn--sm {
  padding: 12px 20px;
  font-size: 0.9rem;
}

/* ========================================================
   HEADER
======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding-block: 20px;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
}
.logo svg { width: 32px; height: 32px; }

.main-nav {
  display: none;
}
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
  }
}
.main-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.3s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
}
.header-actions {
  display: none;
}
@media (min-width: 1024px) {
  .header-actions { display: flex; }
}

/* ========================================================
   HERO SECTION
======================================================== */
.hero {
  padding-block: 60px;
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-block: 80px;
  }
}
.hero-content h1 {
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 15px 20px;
  border-radius: var(--radius-md);
  flex-grow: 1;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
}
.hero-image {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  aspect-ratio: 1.2;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #1a1a1a;
  border: 1px solid #262626;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  z-index: 10;
  box-shadow: 0 10px 20px rgba(0,0,0, 0.4);
}

/* ========================================================
   PROPERTIES SECTION
======================================================== */
.section {
  padding-block: 80px;
}
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  box-shadow: var(--shadow-elevated);
}
.property-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}
.property-card__img {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: #333;
}
.property-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-card__title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.property-card__desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}
.property-card__specs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.spec-pill {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spec-pill svg { width: 14px; height: 14px; }
.property-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.property-card__price label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.property-card__price span {
  font-size: 1.25rem;
  font-weight: 700;
}
.property-card__footer .btn {
  border-radius: var(--radius-sm);
  padding: 12px 24px;
}

/* ========================================================
   TESTIMONIALS
======================================================== */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-elevated);
}
.stars {
  color: var(--yellow);
  margin-bottom: 20px;
  display: flex;
  gap: 5px;
}
.stars svg { width: 18px; height: 18px; }
.testimonial-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
}
.testimonial-text {
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}
.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.author-info h4 { font-size: 1rem; }
.author-info span { font-size: 0.85rem; color: var(--text-dim); }

/* ========================================================
   FAQ
======================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .faq-grid { grid-template-columns: repeat(3, 1fr); }
}
.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-elevated);
}
.faq-card h3 {
  font-size: 1.15rem;
  margin-bottom: 15px;
}

/* ========================================================
   PROPERTIES SEARCH / ARCHIVE PAGE
======================================================== */
.search-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 20px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-block: 40px;
}
@media (min-width: 1024px) {
  .search-container {
    grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
    align-items: center;
  }
}
.search-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0 15px;
  height: 50px;
}
.search-input-group input, .search-input-group select {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 100%;
  padding: 10px;
  outline: none;
}
.search-input-group select option { background: var(--bg-card); }

/* ========================================================
   FOOTER
======================================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding-top: 60px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }
}
.footer-logo { font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; display:inline-block;}
.footer-subs {
  display: flex;
  margin-top: 20px;
}
.footer-subs input {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 12px;
  color: var(--text-main);
  width: 100%;
}
.footer-subs button {
  background: var(--primary);
  border: none;
  padding: 12px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #fff;
  cursor: pointer;
}
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: var(--text-dim);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--text-main); }
.footer-bottom {
  background: var(--bg-dark);
  padding-block: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}
