/* 💚 Ye style.css index/home page ka complete premium design handle karta hai */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: radial-gradient(circle at top, #ffe29f, #ffa99f, #ff7e5f);
  min-height: 100vh;
  color: #111827;
}

/* ---------- PRELOADER ---------- */

#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #111827, #020617);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #e5e7eb;
  z-index: 999;
}

.loader-ring {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: 5px solid rgba(148, 163, 184, 0.6);
  border-top-color: #facc15;
  border-right-color: #22c55e;
  border-left-color: #fb7185;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: spin 1s linear infinite;
}

.loader-ring .dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #facc15;
}

#preloader p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.hidden {
  display: none;
}

/* ---------- BACKGROUND GLOWS ---------- */

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.7;
  z-index: -1;
}

.bg-glow-1 {
  width: 260px;
  height: 260px;
  background: #22c55e;
  top: -60px;
  left: -60px;
}

.bg-glow-2 {
  width: 260px;
  height: 260px;
  background: #f97316;
  bottom: -60px;
  right: -60px;
}

/* ---------- LAYOUT ---------- */

#app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 14px 40px;
}

/* ---------- HEADER ---------- */

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #22c55e, #15803d);
  color: #fff;
  font-size: 1.2rem;
}

.brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand span {
  font-size: 0.8rem;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: #111827;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-links a:hover {
  background: rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

/* ---------- HERO ---------- */

.hero {
  margin: 22px 0 10px;
  padding: 22px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 237, 213, 0.92));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.hero-text h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-text p {
  font-size: 0.95rem;
  max-width: 620px;
}

/* ---------- HOUSES GRID ---------- */

.houses-section {
  margin-top: 20px;
}

.section-head {
  text-align: left;
  margin-bottom: 10px;
  padding-inline: 4px;
}

.section-head h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.section-head p {
  font-size: 0.85rem;
  opacity: 0.8;
}

.houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.house-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
  transition: transform 0.18s ease, box-shadow 0.18s ease, translate 0.18s ease;
  position: relative;
}

.house-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.7) 50%, transparent 60%, transparent 100%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.house-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.house-card:hover::after {
  opacity: 1;
  transform: translateX(20%);
}

.card-top {
  width: 100%;
  height: 220px;
  background: #3e9194;
  overflow: hidden;
}

.card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-bottom {
  padding: 10px 10px 12px;
}

.card-bottom h4 {
  font-size: 1rem;
  font-weight: 700;
}

.nickname {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
}

/* ---------- FOOTER ---------- */

.footer {
  margin-top: 26px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  #app {
    padding-inline: 10px;
  }

  .hero {
    padding-inline: 16px;
  }
}

/* ---------- ANIMATIONS ---------- */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* 💚 Hero section 2-column layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: center;
}

/* Map Card */
.map-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 20px 16px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.map-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
}

.map-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.map-card p {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Mobile Responsive */
@media(max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .map-card {
    margin-top: 20px;
  }
}
