/* ═══════════════════════════════════════════
   Property Page Styles
   ═══════════════════════════════════════════ */

body.property-active {
    font-family: 'OpenSans', sans-serif;
}
body.property-active .navbar {
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.property-page {
    overflow-x: hidden;
}

/* ─── Hero Section ─── */
.property-hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}
.property-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}
.property-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}
.property-hero-title {
    font-family: 'GreatVibes', cursive;
    font-size: 5rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.property-hero-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    max-width: 600px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}
.property-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: heroFloat 2s ease-in-out infinite;
}
.property-hero-scroll i {
    font-size: 2rem;
    color: rgba(255,255,255,0.8);
}
@keyframes heroFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── Section Layout ─── */
.property-section {
    padding: 80px 0;
}
.property-section:nth-child(even) {
    background: #f8f9f7;
}
.property-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.property-section-title {
    font-family: 'GreatVibes', cursive;
    font-size: 3rem;
    color: #387153;
    margin-bottom: 4px;
}
.property-section-line {
    width: 60px;
    height: 3px;
    background: #387153;
    margin: 12px auto 20px;
    border-radius: 2px;
}
.property-section-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    max-width: 720px;
    margin: 0 auto;
}

/* ─── Image Grid (Masonry-style) ─── */
.property-grid {
    display: grid;
    gap: 12px;
}
.property-grid-5 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
}
.property-grid-5 .property-grid-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.property-grid-6 {
    grid-template-columns: repeat(3, 1fr);
}
.property-grid-4 {
    grid-template-columns: repeat(2, 1fr);
}
.property-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.property-grid-wide {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
}
.property-grid-wide .property-grid-item:first-child {
    grid-row: 1 / 3;
}

.property-grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.property-grid-5 .property-grid-item:first-child {
    aspect-ratio: auto;
}
.property-grid-wide .property-grid-item:first-child {
    aspect-ratio: auto;
}
.property-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.property-grid-item:hover img {
    transform: scale(1.05);
}
.property-grid-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.property-grid-item:hover .property-grid-caption {
    opacity: 1;
}

/* ─── Full-width Feature Image ─── */
.property-feature {
    position: relative;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
}
.property-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.property-feature-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0,0,0,0.35);
    padding: 0 24px;
}
.property-feature-title {
    font-family: 'GreatVibes', cursive;
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.property-feature-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95);
    max-width: 560px;
    margin-top: 8px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* ─── CTA Section ─── */
.property-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #387153 0%, #2a5a40 100%);
    color: #fff;
}
.property-cta-title {
    font-family: 'GreatVibes', cursive;
    font-size: 3rem;
    margin-bottom: 8px;
}
.property-cta-text {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
}
.property-cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: #387153;
    border-radius: 50px;
    font-family: 'OpenSans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.property-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    color: #387153;
    text-decoration: none;
}

/* ─── Lightbox Modal ─── */
.property-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.property-lightbox.active {
    display: flex;
}
.property-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    background: none;
    border: none;
    padding: 8px;
    line-height: 1;
}
.property-lightbox-close:hover {
    color: #ccc;
}
.property-lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}
.property-lightbox-caption {
    color: rgba(255,255,255,0.85);
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    margin-top: 16px;
    text-align: center;
    max-width: 600px;
}
.property-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 16px;
    z-index: 10001;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.property-lightbox-nav:hover {
    opacity: 1;
}
.property-lightbox-prev {
    left: 16px;
}
.property-lightbox-next {
    right: 16px;
}

/* ─── Animations ─── */
.property-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.property-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .property-hero {
        height: 60vh;
        min-height: 400px;
    }
    .property-hero-title {
        font-size: 3rem;
    }
    .property-hero-subtitle {
        font-size: 1rem;
    }
    .property-section {
        padding: 48px 0;
    }
    .property-section-title {
        font-size: 2.2rem;
    }
    .property-section-text {
        font-size: 0.95rem;
        padding: 0 8px;
    }
    .property-grid-5,
    .property-grid-6,
    .property-grid-wide {
        grid-template-columns: 1fr 1fr;
    }
    .property-grid-5 .property-grid-item:first-child {
        grid-column: 1 / 3;
        grid-row: auto;
        aspect-ratio: 16/9;
    }
    .property-grid-wide .property-grid-item:first-child {
        grid-column: 1 / 3;
        grid-row: auto;
        aspect-ratio: 16/9;
    }
    .property-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .property-grid-3 {
        grid-template-columns: 1fr;
    }
    .property-grid-item {
        aspect-ratio: 16/10;
    }
    .property-feature {
        height: 40vh;
        min-height: 250px;
    }
    .property-feature-title {
        font-size: 2.4rem;
    }
    .property-feature-text {
        font-size: 0.95rem;
    }
    .property-cta-title {
        font-size: 2.2rem;
    }
    .property-lightbox-nav {
        font-size: 1.8rem;
        padding: 12px;
    }
    .property-lightbox-prev { left: 4px; }
    .property-lightbox-next { right: 4px; }
    .property-grid-caption {
        opacity: 1;
        font-size: 0.75rem;
        padding: 24px 10px 8px;
    }
}

@media (max-width: 480px) {
    .property-hero-title {
        font-size: 2.4rem;
    }
    .property-grid-5,
    .property-grid-6,
    .property-grid-wide,
    .property-grid-4 {
        grid-template-columns: 1fr;
    }
    .property-grid-5 .property-grid-item:first-child,
    .property-grid-wide .property-grid-item:first-child {
        grid-column: auto;
    }
    .property-grid-item {
        aspect-ratio: 16/10;
    }
}
