/* --- Property Page Enhancements --- */

/* Highlights Grid */
.highlights-grid {
  display: grid;
  gap: 1.5rem;
}

.highlight-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--color-gold);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

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

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

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  transition: background-color 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background-color: var(--color-gold) !important;
  transform: scale(1.2);
}

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

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* Rich Amenities (Signature Spaces) */
.property-amenities-section {
  padding: var(--space-md) 0;
}

.amenity-rich-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.amenity-rich-card:hover {
  transform: translateX(10px);
}

.amenity-rich-card i {
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.amenity-rich-card:hover i {
  transform: scale(1.1) rotate(-5deg);
  opacity: 0.6 !important;
}

.amenity-rich-card h4 {
  position: relative;
  padding-bottom: 0.5rem;
}

.amenity-rich-card h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.amenity-rich-card:hover h4::after {
  width: 60px;
}

/* Earn From Section */
.earn-from-list li {
  transition: color 0.3s ease;
}

.earn-from-list li:hover {
  color: var(--color-forest) !important;
}

/* Enquiry CTA Section (Full-Width) */
.enquiry-cta-section {
  background-color: var(--color-parchment);
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  position: relative;
  overflow: hidden;
}

.enquiry-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(197, 160, 89, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.enquiry-cta-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.enquiry-cta-section .enquiry-form {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197, 160, 89, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  margin-top: var(--space-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.enquiry-cta-section .form-group {
  margin-bottom: 0;
  /* Handled by grid gap */
}

.cta-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.cta-actions .btn-outline {
  flex: 0 1 200px;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .property-grid-wrapper {
    grid-template-columns: 1fr !important;
  }

  .property-sidebar {
    margin-top: var(--space-lg);
  }

  .property-sidebar {
    display: none;
    /* Hide sidebar completely when moving to CTA section */
  }

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

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn-outline {
    flex: 1;
  }
}

/* Breadcrumbs Default Styling */
.breadcrumb a {
  color: var(--color-forest);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb .separator {
  color: #ccc;
}

.breadcrumb .current {
  color: var(--color-gold);
}

/* --- Dark Mode Overrides for Property Page (Ground Zero Brand) --- */
body.theme-night h1,
body.theme-night h2,
body.theme-night h3,
body.theme-night h4,
body.theme-night h5,
body.theme-night .section-title {
  color: var(--color-gold) !important;
}

body.theme-night .text-muted,
body.theme-night .small.text-muted {
  color: #888 !important;
}

body.theme-night .property-main-content {
  background: #0C0B0A !important; /* Matches index.css global bg */
  color: #FFFFFF !important;
}

body.theme-night .property-lifestyle,
body.theme-night .property-roi-section,
body.theme-night .property-description-box {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(252, 184, 90, 0.15) !important;
  padding: var(--space-md) !important;
  border-radius: var(--radius-md) !important;
  color: #eee !important;
}

body.theme-night .highlight-card-premium,
body.theme-night .amenity-card-premium,
body.theme-night .roi-dashboard,
body.theme-night .trust-panel,
body.theme-night .connectivity-card {
  background: #1A1A1A !important; /* Slightly lighter charcoal for elevation */
  border: 1px solid rgba(252, 184, 90, 0.08) !important;
  color: #eee !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
}

body.theme-night .roi-stat-row {
  border-left-color: var(--color-gold) !important;
}

body.theme-night .roi-value,
body.theme-night .h-icon,
body.theme-night .a-icon {
  color: var(--color-gold) !important;
}

body.theme-night .breadcrumb a {
  color: var(--color-sage) !important;
}

body.theme-night .breadcrumb .separator {
  color: rgba(255, 255, 255, 0.3) !important;
}

body.theme-night .property-description,
body.theme-night .earn-from-list li,
body.theme-night .lifestyle-item p,
body.theme-night .roi-label,
body.theme-night .section-header p,
body.theme-night .amenity-rich-card p,
body.theme-night .timeline-item p,
body.theme-night .p-faq-answer,
body.theme-night .connectivity-item,
body.theme-night .conn-row span:not(.separator) {
  color: #b0b0b0 !important;
}

body.theme-night .conn-row {
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

body.theme-night .p-faq-question {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--color-white) !important;
}

body.theme-night .p-faq-answer {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.theme-night .connectivity-item {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

body.theme-night .connectivity-item:first-child {
  border-top: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

body.theme-night .enquiry-cta-section {
  background-color: var(--color-forest) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

body.theme-night .enquiry-cta-section .enquiry-form {
  background: var(--color-parchment) !important;
  border-color: rgba(252, 184, 90, 0.15) !important;
}

body.theme-night .enquiry-form-premium {
  background: rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(252, 184, 90, 0.2) !important;
}

body.theme-night .enquiry-cta-section .section-title,
body.theme-night .enquiry-cta-section p {
  color: var(--color-white) !important;
}

body.theme-night .enquiry-form label {
  color: var(--color-gold) !important;
  font-weight: 600;
}

body.theme-night .enquiry-form input,
body.theme-night .enquiry-form select,
body.theme-night .enquiry-form textarea {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(252, 184, 90, 0.1) !important;
  color: var(--color-white) !important;
  transition: var(--transition-smooth);
}

body.theme-night .enquiry-form input::placeholder,
body.theme-night .enquiry-form textarea::placeholder {
  color: #555 !important;
}

body.theme-night .enquiry-form input:focus,
body.theme-night .enquiry-form select:focus,
body.theme-night .enquiry-form textarea:focus {
  border-color: var(--color-gold) !important;
  background: rgba(0,0,0,0.5) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(252, 184, 90, 0.1) !important;
}

body.theme-night .enquiry-form .btn-primary {
  background: var(--color-gold) !important;
  color: #000 !important;
  border: none !important;
  font-weight: 700;
}

body.theme-night .close-modal {
  color: var(--color-sage) !important;
}

/* Specific Section Adjustments for Dark Mode */
body.theme-night .enquiry-cta-section {
  background-color: var(--color-forest) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

body.theme-night .enquiry-cta-section .enquiry-form {
  background: var(--color-forest) !important;
  border-color: rgba(199, 158, 87, 0.1) !important;
}

body.theme-night .enquiry-cta-section .section-title,
body.theme-night .enquiry-cta-section p {
  color: var(--color-parchment) !important;
}

body.theme-night #property-map {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* Redesign Sections */
.usps-highlights-section {
    background: var(--color-parchment);
    padding: var(--space-xl) 0;
}

.usps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.usp-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.usp-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-gold);
}

.development-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.dev-tag {
    padding: 6px 16px;
    background: var(--color-forest);
    color: var(--color-white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-narrative-section {
    padding: var(--space-xl) 0;
}

.narrative-container {
    max-width: 900px;
    margin: 0 auto;
}

.semantic-quote {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-gold);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.2;
    border-left: 4px solid var(--color-gold);
    padding-left: 30px;
}

.amenities-showcase-section {
    padding: var(--space-xl) 0;
    background: var(--color-white);
}

.connectivity-hub-section {
    padding: var(--space-xl) 0;
    background: var(--color-parchment);
}

.connectivity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.conn-item {
    background: var(--color-white);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.conn-item .loc {
    font-weight: 700;
    color: var(--color-forest);
}

.conn-item .time {
    color: var(--color-gold);
    font-weight: 800;
    font-size: 0.9rem;
}

/* Dark Mode Overrides for New Sections */
body.theme-night .usps-highlights-section,
body.theme-night .connectivity-hub-section,
body.theme-night .amenities-showcase-section {
    background: #0C0B0A !important;
}

body.theme-night .usp-card,
body.theme-night .conn-item {
    background: #1A1A1A !important;
    border-color: rgba(252, 184, 90, 0.1) !important;
}

body.theme-night .conn-item .loc {
    color: #eee !important;
}

body.theme-night .semantic-quote {
    color: var(--color-gold) !important;
}

/* ROI Investment Dashboard Redesign */
.roi-investment-section {
    padding: 100px 0;
    background: var(--color-white);
}

.roi-dashboard-premium {
    background: #080706;
    border-radius: 40px;
    padding: 80px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border-top: 4px solid var(--color-gold);
}

.roi-dashboard-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at top right, rgba(252, 184, 90, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.roi-header {
    flex: 1;
    min-width: 300px;
}

.roi-header .tagline {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 800;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 25px;
}

.roi-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
    font-family: var(--font-secondary);
}

.roi-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.roi-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.roi-metric-item {
    border-left: 2px solid rgba(197, 160, 89, 0.3);
    padding-left: 25px;
    transition: var(--transition-smooth);
}

.roi-metric-item:hover {
    border-left-color: var(--color-gold);
}

.roi-metric-item h4 {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    margin-bottom: 12px;
    color: var(--color-gold);
}

.roi-metric-item p {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    line-height: 1.6;
}

.roi-cta-wrapper {
    margin-top: 20px;
}

.btn-premium-gold {
    background: var(--color-gold);
    color: #000;
    padding: 1.4rem 3.5rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 2px solid var(--color-gold);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-premium-gold:hover {
    background: transparent;
    color: var(--color-gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.btn-premium-gold i {
    font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .roi-dashboard-premium {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .roi-dashboard-premium {
        padding: 40px 25px;
        gap: 40px;
    }
}

/* Sold Out Project Enhancements */
.sold-out-card {
    cursor: pointer !important;
}

.sold-out-card .property-thumb,
.sold-out-card .portfolio-card {
    filter: grayscale(0.4);
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.sold-out-card:hover {
    filter: none;
    opacity: 1;
}

.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.sold-out-overlay span {
    background: var(--color-gold);
    color: #000;
    padding: 8px 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.badge-sold-out {
    background: rgba(252, 184, 90, 0.15);
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sold-out-badge-floating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-gold);
    color: #000;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Sold Out Modal Customization */
.sold-out-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.sold-out-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sold-out-popup-content {
    background: #0C0B0A !important;
    border: 2px solid var(--color-gold) !important;
    border-radius: 30px !important;
    padding: 50px 40px !important;
    max-width: 500px !important;
    width: 90% !important;
    text-align: center !important;
    transform: translateY(30px) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

.sold-out-popup-overlay.active .sold-out-popup-content {
    transform: translateY(0) !important;
}

.sold-out-popup-content i.fa-lock {
    font-size: 3rem !important;
    color: var(--color-gold) !important;
    margin-bottom: 25px !important;
    display: block !important;
}

.sold-out-popup-content h2 {
    color: #fff !important;
    font-family: var(--font-secondary) !important;
    font-size: 2rem !important;
    margin-bottom: 15px !important;
}

.sold-out-popup-content p {
    color: #999 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
}

.sold-out-close-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: none !important;
    border: none !important;
    color: #555 !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    transition: color 0.3s !important;
}

.sold-out-close-btn:hover {
    color: #fff !important;
}
