/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, transparent 100%);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 80px;
  width: auto;
}

.nav-cta {
  background: #111;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: #333;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height - handles mobile browser chrome */
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background: #fff; /* White letterboxing */
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain; /* No cropping - shows full video */
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(255,255,255,0.9) 0%,
    rgba(255,255,255,0.1) 30%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.2) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 3rem;
  max-width: 900px;
  color: #111;
}

.hero-tag {
  display: inline-block;
  background: #10b981;
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 300;
  opacity: 0.7;
  color: #333;
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(0,0,0,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}

.hero-scroll span {
  font-size: 1.2rem;
  opacity: 0.8;
  color: #111;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* Property Details - Combined Section */
.property-details {
  background: #f5f5f5;
  padding: 3rem 2rem 4rem;
}

.property-details-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #ddd;
}

.stat {
  text-align: center;
  flex: 1;
}

.stat-value {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-top: 0.4rem;
}

/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.details-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.details-text {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.details-highlight {
  font-size: 1rem;
  font-weight: 500;
  color: #059669;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

/* Features Tags */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 400;
  color: #333;
  transition: all 0.2s ease;
}

.feature-tag:hover {
  background: #f0f0f0;
  border-color: #ccc;
}

/* Section Titles */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

/* Gallery Section */
.gallery {
  padding: 5rem 2rem;
  background: #fff;
}

.gallery-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.gallery-load-more {
  display: block;
  margin: 3rem auto 0;
  padding: 1rem 2.5rem;
  background: transparent;
  color: #111;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-load-more:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Agent Section */
.agent {
  padding: 5rem 2rem;
  background: #f5f5f5;
}

.agent-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.agent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.agent-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eee;
}

.agent-info {
  text-align: center;
}

.agent-name {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.agent-title {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.agent-license {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.agent-contact {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.agent-btn {
  padding: 0.75rem 1.5rem;
  background: #111;
  color: #fff;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

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

.agent-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.agent-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #333;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.agent-social a:hover {
  background: #ddd;
  transform: translateY(-2px);
}

.agent-social svg {
  width: 18px;
  height: 18px;
}

.agent-website {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.agent-website:hover {
  opacity: 1;
}

/* Map Section */
.map {
  background: #fff;
}

.map-container {
  width: 100%;
}

.map-container iframe {
  display: block;
  width: 100%;
  filter: none;
}

.map-address {
  text-align: center;
  padding: 2rem;
  background: #f5f5f5;
}

.map-address p {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.map-neighborhood {
  opacity: 0.6;
  font-size: 0.95rem !important;
  margin-top: 0.5rem !important;
}

/* Footer */
.footer {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-cta {
  display: inline-block;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #fff;
  transition: opacity 0.2s ease;
}

.footer-cta:hover {
  opacity: 0.7;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  line-height: 1;
  padding: 0.5rem;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem;
  }
  
  .nav-logo img {
    height: 60px;
  }
  
  .nav-cta {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .hero-content {
    padding: 2rem;
  }
  
  .hero-title {
    white-space: normal;
  }
  
  .hero-scroll {
    right: 2rem;
    bottom: 2rem;
    width: 40px;
    height: 40px;
  }
  
  .stats-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .stat {
    min-width: 80px;
    flex: 0 0 auto;
  }
  
  .property-details,
  .gallery,
  .agent {
    padding: 3rem 1.5rem;
  }
  
  .agent-card {
    padding: 2rem 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .gallery-grid img {
    height: 150px;
  }
  
  .map-container iframe {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .stats-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  
  .stat {
    flex: 0 0 45%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid img {
    height: 220px;
  }
  
  .agent-contact {
    flex-direction: column;
  }
  
  .agent-btn {
    width: 100%;
  }
  
  .map-container iframe {
    height: 300px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 0.75rem 1rem;
  }
  
  .lightbox-prev {
    left: 0.5rem;
  }
  
  .lightbox-next {
    right: 0.5rem;
  }
  
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
  }
}
