/* ================================
   Base Styling
   ================================ */
body {
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  color: #1E1E1E;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F3F4F6;
}
::-webkit-scrollbar-thumb {
  background: #F97316; /* orange */
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #DC2626; /* red */
}

/* ================================
   Hero Background
   ================================ */
.hero-bg {
  background-image: linear-gradient(
      rgba(220, 38, 38, 0.6),
      rgba(249, 115, 22, 0.6)
    ),
    url('https://raw.githubusercontent.com/farazc60/Project-Images/refs/heads/main/Rent%20Apartment%20Booking%20Template/hero-section.webp');
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
}

.hero-text {
  text-shadow: 0 4px 10px rgba(220, 38, 38, 0.7);
}

/* Rainfall canvas */
#rainCanvas {
  pointer-events: none;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
}

/* ================================
   Modal & Map
   ================================ */
.modal-backdrop {
  background-color: rgba(220, 38, 38, 0.6);
}
.map-placeholder {
  background-color: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DC2626;
  font-size: 1.2rem;
  border-radius: 0.5rem;
}

/* ================================
   Cards
   ================================ */
.apartment-card {
  background: #FFFFFF;
  border: 1px solid #F3F4F6;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
}
.apartment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.15);
}
.apartment-card-description {
  height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* ================================
   Buttons
   ================================ */
.btn-primary {
  background: #F97316; /* orange */
  color: #FFFFFF;
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: #DC2626;
  box-shadow: 0 6px 15px rgba(220, 38, 38, 0.25);
}
.btn-primary:active {
  background: #B91C1C;
  transform: scale(0.97);
}

.btn-secondary {
  background: #FFFFFF;
  color: #F97316;
  border: 2px solid #F97316;
  padding: 0.65rem 1.1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
  box-shadow: 0 6px 15px rgba(220, 38, 38, 0.25);
}
.btn-secondary:active {
  background: #B91C1C;
  border-color: #B91C1C;
  transform: scale(0.97);
}

/* Fire Button Effect */
.fire-btn {
  position: relative;
  overflow: hidden;
  animation: fireGlow 1.5s infinite alternate;
}
.fire-btn span {
  position: relative;
  z-index: 1;
}
.fire-btn .flame {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #ffcf33 0%, #ff6600 70%, transparent 80%);
  border-radius: 50%;
  animation: flameRise 1s infinite ease-in-out;
  opacity: 0.8;
}
.fire-btn .flame2 {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #ff9933 0%, #ff3300 70%, transparent 80%);
  animation-duration: 1.2s;
  animation-delay: 0.2s;
}
.fire-btn .flame3 {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ffff66 0%, #ff6600 70%, transparent 80%);
  animation-duration: 0.9s;
  animation-delay: 0.4s;
}
@keyframes flameRise {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateX(-50%) translateY(-15px) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: translateX(-50%) translateY(-30px) scale(0.8);
    opacity: 0;
  }
}
@keyframes fireGlow {
  0% {
    box-shadow: 0 0 10px #ff8c00, 0 0 20px #ff4500;
  }
  100% {
    box-shadow: 0 0 25px #ff4500, 0 0 50px #ff0000;
  }
}

/* ================================
   Badges
   ================================ */
.amenity-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: #FFF7ED;
  color: #F97316;
  font-size: 0.8rem;
  border-radius: 0.375rem;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

/* ================================
   Responsive Enhancements
   ================================ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

#home h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
}
#home p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 1.5rem;
}

#home form {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

#apartments .grid {
  gap: 1.5rem;
}

#booking form {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  padding: 2rem;
}

#reviews .review-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
#reviews .review-card:hover {
  transform: translateY(-5px);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  background: #f5f5f5;
  color: #666;
}

/* Tablets */
@media (max-width: 992px) {
  #home h1 {
    font-size: 2rem;
  }
  #home form {
    grid-template-columns: 1fr !important;
  }
  #apartments .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobiles */
@media (max-width: 640px) {
  #home h1 {
    font-size: 1.8rem;
  }
  #home p {
    font-size: 1rem;
  }
  #apartments .grid {
    grid-template-columns: 1fr;
  }
  #cta h2 {
    font-size: 1.5rem;
  }
}
