/* ==============================
   Property Page Styling (With Fade-in)
   ============================== */

/* ===== GLOBAL ===== */
html, body {
    overflow-x: hidden; /* No horizontal scroll anywhere */
}

/* ===== HERO SECTION ===== */
.page-hero {
  background-color: #0C1815;
  padding: 160px 30px 60px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h2 {
  color: #ffffff !important;
  margin: 0;
  font-size: 3rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.2s;
}

.page-hero h2.loaded {
  opacity: 1;
  transform: translateY(0);
}
/* ===== REVEAL SECTIONS (fade-in-up effect) ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Logo: explicit rules, centered, responsive */
.property-logo-section { text-align: center; margin: 30px 0; padding-top: 40px !important; }

/* Primary rule for the img element */
.property-logo {
  display: block;
  margin: 0 auto;
  width: 110px !important;
  height: 110px !important;
  object-fit: contain;
  max-width: none !important;
}


/* Slightly smaller on narrow viewports */
@media (max-width: 600px) {
  .property-logo { width: 80px; height: 80px; }
}


/* ===== VIDEO SECTION ===== */
.property-videos {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.property-videos .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.property-videos iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.property-videos:hover iframe {
    pointer-events: auto;
    filter: brightness(1);
}

.video-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.video-btn {
    padding: 6px 14px;
    font-size: 0.9rem;
    background-color: #0C1815;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.video-btn:hover {
    background-color: #1E322D;
}

@media (max-width: 768px) {
    .property-videos {
        padding: 0 10px;
    }
}

/* ===== SLIDER ===== */
.property-slider {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 15px;
    overflow: hidden;
    box-sizing: border-box;
}

.slider-window {
    overflow: hidden;
    border-radius: 12px;
}

.slider-track {
    display: flex;
}

.slider-item {
    flex: 0 0 calc(100% / 3);
    padding: 6px;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
}

.slider-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* ===== SLIDER ARROWS ===== */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-arrow.left { left: 10px; }
.slider-arrow.right { right: 10px; }

/* ===== Responsive Slider ===== */
@media (max-width: 992px) {
    .slider-item { flex: 0 0 calc(100% / 2); }
}

@media (max-width: 600px) {
    .slider-item { flex: 0 0 100%; }
    .slider-item img { height: 220px; }
}

/* ===== PROPERTY INFO ===== */
.property-info-box {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.property-info-box .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: start;
    gap: 20px;
}

.info-left .info-short {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0C1815;
    margin-bottom: 6px;
}

.info-left .info-tagline {
    font-size: 1rem;
    color: #555;
    font-style: italic;
}

.info-center {
    font-size: 0.95rem;
    color: #333;
}

.info-center strong {
    color: #0C1815;
    font-weight: 600;
}

.info-status, .info-rera {
    margin-bottom: 8px;
}

.info-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Brochure Button */
.brochure-btn {
    display: inline-block;
    background-color: #0C1815;
    color: #fff;
    padding: 6px 14px;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

.brochure-btn:hover {
    background-color: #1E322D;
}

/* Responsive Info Grid */
@media (max-width: 992px) {
    .property-info-box .info-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 20px;
    }
    .info-right {
        justify-content: center;
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .property-info-box .info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .info-right { justify-content: center; margin-top: 10px; }
    .info-left .info-short { font-size: 1.1rem; }
    .brochure-btn { min-width: 180px; }
}

/* ===== ABOUT SECTION ===== */
.property-about {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px 15px;
    text-align: left;
    box-sizing: border-box;
}

.property-about h2 {
    font-size: 2rem;
    color: #0C1815;
    margin-bottom: 15px;
    text-align: center;
}

.property-about-text {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
    text-align: justify;
}

/* ===== AMENITIES ===== */
.property-amenities {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 15px;
    text-align: center;
    box-sizing: border-box;
}

.property-amenities h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.property-amenities img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 0 auto 25px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
    .property-amenities img {
        margin-bottom: 18px;
        border-radius: 10px;
        width: 100%;
    }
}

/* ===== SITE PLAN ===== */
.property-site-plan {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
}

.property-site-plan h2 {
    font-size: 2rem;
    color: #0C1815;
    margin-bottom: 25px;
}

.property-site-plan-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Uniform image boxes */
.site-plan-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-plan-image {
    width: 100%;
    height: 260px;         /* or remove this line to let height be natural */
    border-radius: 10px;
    background: none;
    box-shadow: none;
    object-fit: contain;   /* shows full image, preserves aspect, may leave empty space */
    object-position: center;
    display: block;
    cursor: pointer;
}

/* Caption below each image */
.site-plan-caption {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #333;
    text-align: center;
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .site-plan-image { height: 220px; }
}

@media (max-width: 600px) {
    .property-site-plan-images { grid-template-columns: 1fr; }
    .site-plan-image { height: 200px; }
}


/* ===== MAP ===== */
.property-map {
    width: 100%;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 15px;
    text-align: center;
    box-sizing: border-box;
}

.property-map h2 {
    font-size: 2rem;
    color: #0C1815;
    margin-bottom: 20px;
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    border: 0;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
}
.lightbox-close:hover { color: #ccc; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.lightbox-prev, .lightbox-next {
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}
.lightbox-prev:hover, .lightbox-next:hover {
    color: #aaa;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-hero h2 { font-size: 2.2rem; }
    .slider-item img { height: 200px; }
}

/* ===== LOGO: natural size but shrink when viewport is smaller ===== */
.property-logo-section {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin: 30px 0;
    padding-top: 40px !important;
    overflow: visible;
}

.property-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(100vh - 40px);
    margin: 0 auto;
    object-fit: contain;
    box-sizing: border-box;
}

.hidden-section {
    display: none;
}

.see-more-button-section {
    text-align: center;
    margin-bottom: 20px; /* optional spacing */
}

.see-more-btn {
    border: none !important;  /* removes any border */
    background: inherit;       /* optional: use parent bg */
    color: inherit;            /* optional: keep text color */
    padding: 8px 16px;         /* adjust if needed */
    cursor: pointer;
}

/* ===== EMAIL COLLECTION MODAL ===== */
.email-modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* semi-transparent background */
    justify-content: center;
    align-items: center;
}

.email-modal-content {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
    animation: modalFadeIn 0.3s ease-in-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.email-modal-content h2 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.email-modal-content input {
    width: 90%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

/* Placeholder styling */
.email-modal-content input::placeholder {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    opacity: 0.6;
}

.email-modal-content button {
    padding: 10px 18px;
    font-size: 1rem;
    background-color: #222; /* dark button, change if needed */
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.email-modal-content button:hover {
    background-color: #444;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

#modal-message {
    margin-top: 12px;
    font-size: 0.95rem;
    color: green;
}


.inline-status-badge {
    display: inline-block;
    margin-left: 12px;
    padding: 2px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background-color: #1E8A3A; /* green for available */
    border-radius: 6px;
}

.inline-status-badge.sold_out {
    background-color: #B71C1C; /* red for sold out */
}

.inline-status-badge:empty {
    display: none;
}

.property-logo-section .property-logo {
  display: block;
  margin: 0 auto;
  width: 30% !important;   
  height: auto !important; /* let browser keep natural ratio */
  object-fit: contain !important;
}


@media (max-width: 700px) {
  .property-logo-section .property-logo {
    width: 100% !important;  /* Mobile: full width */
    padding: 0 15px;
  }
}