/* =================== PROPERTY PAGE STYLES =================== */

* {
  box-sizing: border-box;
}

img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* Hero Section */
.property-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
}

.property-hero-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.property-hero-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.property-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
}

.property-hero-content {
  color: white;
  max-width: 900px;
}

.property-hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 12px;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.property-hero-subtitle {
  font-size: 20px;
  margin: 0 0 24px;
  opacity: 0.95;
  font-weight: 500;
}

.property-hero-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.feature-badge {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Property Details Section */
.property-details {
  padding: 80px 0;
  background: #fafaf9;
}

.property-grid-layout {
  display: grid;
  grid-template-columns: 1fr min(400px, 35%);
  gap: 60px;
  max-width: 100%;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 700;
  color: #2d2d2d;
  margin: 0 0 24px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 18px;
  color: #6b6b6b;
  margin: -16px 0 40px;
}

.property-description {
  margin-bottom: 48px;
  max-width: 100%;
  word-wrap: break-word;
}

.lead {
  font-size: 20px;
  line-height: 1.7;
  color: #4a4a4a;
  margin: 0 0 20px;
  font-weight: 500;
}

.property-description p {
  font-size: 16px;
  line-height: 1.8;
  color: #5a5a5a;
  margin: 0 0 16px;
}

.property-highlights {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 40px;
  max-width: 100%;
}

.highlights-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 700;
  color: #2d2d2d;
  margin: 0 0 24px;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #4a4a4a;
}

.highlights-list li:last-child {
  margin-bottom: 0;
}

.highlights-list .icon {
  width: 24px;
  height: 24px;
  color: #ac8f34;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Property CTA */
.property-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 100%;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
}

.btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Sidebar */
.property-sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.info-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  max-width: 100%;
}

.info-card--highlight {
  background: #ac8f34;
  color: white;
}

.info-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
}

.info-card--highlight .info-card-title {
  color: white;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 24px;
  height: 24px;
  color: #ac8f34;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-card--highlight .info-icon {
  color: white;
}

.info-item > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-card--highlight .info-label {
  color: rgba(255,255,255,0.8);
}

.info-value {
  font-size: 16px;
  color: #2d2d2d;
  font-weight: 600;
}

.info-card--highlight .info-value {
  color: white;
}

/* Amenities Grid */
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: white;
}

.amenity svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Photo Gallery */
.photo-gallery {
  padding: 80px 0;
  background: white;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #f5f5f5;
  max-width: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(0,0,0,0.15);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  color: white;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
}

.lightbox-nav svg {
  width: 28px;
  height: 28px;
  color: white;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px 24px;
  border-radius: 24px;
  color: white;
  font-size: 15px;
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #ac8f34 0%, #8a7329 100%);
  padding: 80px 0;
  color: white;
  text-align: center;
  overflow: hidden;
}

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

.cta-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 16px;
  color: white;
}

.cta-text {
  font-size: 18px;
  margin: 0 0 32px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn {
  background: white;
  color: #ac8f34;
  border-color: white;
}

.cta-section .btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

.cta-section .btn--ghost {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-section .btn--ghost:hover {
  background: rgba(255,255,255,0.15);
}

/* Footer */
.property-footer {
  background: #2d2d2d;
  color: white;
  padding: 32px 0;
  text-align: center;
}

.property-footer p {
  margin: 8px 0;
  font-size: 14px;
}

.property-footer a {
  color: #ac8f34;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.property-footer a:hover {
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 980px) {
  .property-hero {
    height: 60vh;
    min-height: 400px;
  }

  .property-hero-title {
    font-size: clamp(28px, 7vw, 38px);
  }

  .property-hero-subtitle {
    font-size: 16px;
  }

  .property-hero-overlay {
    padding-bottom: 40px;
  }

  .property-grid-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 100%;
  }

  .property-sidebar {
    position: static;
  }

  .section-title {
    font-size: 32px;
  }

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

  .cta-title {
    font-size: 32px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-nav svg {
    width: 24px;
    height: 24px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .property-cta {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .property-hero-title {
    font-size: clamp(24px, 8vw, 32px);
  }

  .feature-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .property-details {
    padding: 48px 0;
  }

  .photo-gallery {
    padding: 48px 0;
  }

  .cta-section {
    padding: 48px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .property-highlights,
  .info-card {
    padding: 20px;
  }

  .section-title {
    font-size: clamp(26px, 6vw, 32px);
  }
}
