/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* GLOBAL */
html{
  scroll-behavior:smooth;
}

body{
  background: linear-gradient(to right, #eef2ff, #f8fafc);
  color:#1e293b;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* NAVBAR */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 50px;
  background:white;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

header h1{
  color:#1e40af;
  font-size:24px;
}

header p{
  font-size:12px;
  color:#64748b;
}

/* NAV BUTTONS */
.nav-buttons a{
  margin-left:10px;
}

/* BUTTONS */
.btn{
  padding:10px 20px;
  background:#2563eb;
  color:white;
  text-decoration:none;
  border-radius:8px;
  font-weight:500;
  transition:0.3s;
}

.btn:hover{
  background:#1d4ed8;
  transform:translateY(-2px);
}

/* HERO */
.hero{
  padding:120px 20px;
  text-align:center;
  color:white;

  background: linear-gradient(
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.55)
    ),
    url("https://images.unsplash.com/photo-1502672260266-1c1ef2d93688");

  background-size:cover;
  background-position:center;
}

.hero-content{
  max-width:800px;
  margin:auto;
}

.hero h1{
  font-size:42px;
  font-weight:700;
  text-shadow:0 4px 12px rgba(0,0,0,0.4);
}

.hero p{
  color:#f1f5f9;
  font-size:18px;
  text-shadow:0 2px 8px rgba(0,0,0,0.3);
}

/* SEARCH BAR */
.search-bar{
  margin-top:25px;
  display:flex;
  justify-content:center;
  gap:10px;
}

.search-bar input{
  width:60%;
  padding:12px;
  border:none;
  border-radius:30px;
  outline:none;
}

.search-bar button{
  padding:12px 20px;
  border:none;
  border-radius:30px;
  background:#3b82f6;
  color:white;
  cursor:pointer;
}

/* FEATURES */
.features{
  display:flex;
  justify-content:center;
  gap:30px;
  padding:40px;
  flex-wrap:wrap;
}

.feature{
  background:white;
  padding:20px;
  border-radius:12px;
  width:250px;
  text-align:center;
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

/* LISTINGS SECTION */
.home{
  text-align:center;
  margin:60px auto;
}

.home h2{
  font-size:28px;
  margin-bottom:10px;
}

/* LISTINGS GRID */
#listings{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
  padding:20px 40px;
}

/* CARD */
.card{
  background:white;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.card:hover{
  transform: translateY(-6px);
  box-shadow:0 12px 30px rgba(0,0,0,0.12);
}

.card img{
  width:100%;
  height:180px;
  object-fit:cover;
  transition: transform 0.3s ease;
}

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

.card-content{
  padding:15px;
}

.card h3{
  color:#1e40af;
  margin-bottom:10px;
}

.card p{
  color:#475569;
  margin:4px 0;
}

/* SMALL BUTTON */
.btn-small{
  margin-top:10px;
  padding:8px 12px;
  border:none;
  background:#00c2a8;
  color:white;
  border-radius:5px;
  cursor:pointer;
}

/* LOGIN / REGISTER */
.login-box{
  width:380px;
  margin:100px auto;
  padding:30px;
  background:white;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,0.05);
  text-align:center;
}

.login-box h2{
  margin-bottom:20px;
}

.login-box input,
.login-box select{
  width:100%;
  padding:12px;
  margin:10px 0;
  border-radius:8px;
  border:1px solid #e2e8f0;
}

.login-box button{
  width:100%;
  padding:12px;
  background:#2563eb;
  color:white;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-size:16px;
}

.login-box button:hover{
  background:#1d4ed8;
}

/* FORMS */
input{
  display:block;
  width:300px;
  margin:10px auto;
  padding:12px;
  border-radius:8px;
  border:1px solid #e2e8f0;
}

button{
  display:block;
  margin:10px auto;
  padding:12px 20px;
  background:#16a34a;
  color:white;
  border:none;
  border-radius:8px;
  cursor:pointer;
}

button:hover{
  background:#15803d;
}

/* FOOTER */
footer{
  background:#1e293b;
  color:white;
  padding:40px 60px;
  margin-top:50px;
}

.footer-content{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
}

.footer-content div{
  margin:10px;
}

footer h4{
  margin-bottom:10px;
}

footer p{
  color:#cbd5f5;
}

.copyright{
  text-align:center;
  margin-top:20px;
  font-size:14px;
  color:#94a3b8;
}

/* WHATSAPP FLOAT */
.whatsapp-float{
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: 0.3s ease;
}

.whatsapp-float:hover{
  transform: scale(1.1);
}

/* PAGE HERO */
.page-hero{
  min-height:100vh;
  padding:60px 20px;
  color:white;

  background-image: linear-gradient(
      rgba(0,0,0,0.65),
      rgba(0,0,0,0.65)
    ),
    url("https://images.unsplash.com/photo-1502672260266-1c1ef2d93688");

  background-size:cover;
  background-position:center;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px){

  header{
    flex-direction:column;
    text-align:center;
    padding:20px;
  }

  .nav-buttons{
    margin-top:10px;
  }

  .hero{
    padding:80px 20px;
  }

  .hero h1{
    font-size:26px;
  }

  .hero p{
    font-size:14px;
  }

  .search-bar{
    flex-direction:column;
    gap:10px;
  }

  .search-bar input{
    width:100%;
  }

  .search-bar button{
    width:100%;
  }

  #listings{
    grid-template-columns:1fr;
    padding:20px;
  }

  .feature{
    width:100%;
  }

  .footer-content{
    flex-direction:column;
    text-align:center;
  }
}