/* ===== INDEX PAGE - HERO & SLIDESHOW ===== */

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto;
  max-width: 1400px;
  background: var(--card);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4));
  z-index: 1;
}

/* Slideshow */
.slideshow-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay container (no widget) */
.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 92%);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
}

/* Slideshow Navigation */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(36px, 8vw, 40px);
  height: clamp(36px, 8vw, 40px);
  color: white;
  background: rgba(11,18,32,0.8);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  font-size: clamp(16px, 3vw, 18px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.next { right: clamp(10px, 2vw, 20px); }
.prev { left: clamp(10px, 2vw, 20px); }

.prev:hover, .next:hover {
  background: rgba(26,35,50,0.9);
  border-color: var(--accent);
}

/* Dots */
.dot-container {
  position: absolute;
  bottom: clamp(15px, 3vw, 20px);
  width: 100%;
  text-align: center;
  z-index: 2;
}

.dot {
  height: clamp(8px, 2vw, 10px);
  width: clamp(8px, 2vw, 10px);
  margin: 0 clamp(3px, 1vw, 4px);
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* Hero CTA */
.hero-cta {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Use shared button style; keep sizing responsive without overriding colors */
.hero-cta .btn-glass { white-space: nowrap; }

@media (max-width: 1024px) {
  .hero { height: 78vh; }
}

@media (max-width: 768px) {
  .hero {
    height: 68vh;
    border-radius: 0;
  }
  .hero-content { width: min(720px, 94%); }
  .hero-cta { bottom: 18%; }
  .hero-cta .btn-glass.sm { padding: 9px 18px; }
}

@media (max-width: 480px) {
  .hero { height: 60vh; }
  .dot-container { bottom: 10px; }
  .dot { height: 8px; width: 8px; margin: 0 3px; }
  .hero-cta { bottom: 14%; }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .prev, .next { transition: none; }
}

/* ===== PROPERTIES SECTION ===== */

.properties-section {
  margin: 60px auto;
  padding: 0 20px;
}

.properties-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.property-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.property-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.property-details {
  display: flex;
  gap: 15px;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

.property-info {
  padding: 25px;
}

.property-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}

.property-location {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.property-description {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255,107,107,0.3);
}

.view-all-properties {
  text-align: center;
  margin-top: 40px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .properties-section {
    margin: 40px auto;
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .property-image {
    height: 200px;
  }
  
  .property-info {
    padding: 20px;
  }
}