:root {
    --navy: #0f2c3d;
    --sea-glass: #5fa89f;
    --sea-glass-light: #eef7f6;
    --sand-bg: #fcfbfa;
    --text-dark: #2c3e50;
    --text-muted: #627d98;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--sand-bg);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* Luxury Hero Banner using your actual property image */
.hero-section {
    position: relative;
    background: url('https://img.trackhs.com/x1080/https://track-pm.s3.amazonaws.com/boardwalk-realty/image/259421d9-60c7-4958-81ac-c21af7a8999e') no-repeat center center/cover;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 44, 61, 0.4) 0%, rgba(15, 44, 61, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 35px;
    color: var(--sea-glass-light);
}

/* Call To Action Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--sea-glass);
    color: var(--white);
    padding: 16px 36px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(95, 168, 159, 0.3);
}

.cta-button:hover {
    background-color: #4a9289;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 168, 159, 0.4);
}

.cta-button.inverted {
    background-color: var(--white);
    color: var(--navy);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button.inverted:hover {
    background-color: var(--sea-glass-light);
    color: var(--navy);
}

/* High-Impact Stat Badges */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: -80px;
    position: relative;
    z-index: 3;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 44, 61, 0.06);
    border-bottom: 4px solid var(--sea-glass);
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Intro Copy Typography Layout */
.intro-section {
    text-align: center;
    max-width: 800px;
    margin: 60px auto;
}

.intro-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* Elegant Cards Grid Setup */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

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

.card {
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border: 1px solid rgba(15, 44, 61, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.card h4 {
    font-size: 1.3rem;
}

.bed-tag {
    background-color: var(--sea-glass-light);
    color: var(--sea-glass);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Beautiful Footer Callout Banner */
.footer-cta {
    background: linear-gradient(rgba(15, 44, 61, 0.9), rgba(15, 44, 61, 0.95)), url('https://img.trackhs.com/x1080/https://track-pm.s3.amazonaws.com/boardwalk-realty/image/259421d9-60c7-4958-81ac-c21af7a8999e') no-repeat center center/cover;
    padding: 100px 20px;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
}

.footer-cta-content {
    max-width: 600px;
    margin: auto;
}

.footer-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.footer-cta p {
    color: var(--sea-glass-light);
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

footer {
    background-color: var(--navy);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Scaling Overrides */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .tagline {
        font-size: 1.2rem;
    }
    .quick-stats {
        margin-top: -40px;
    }
}
/* Hero Button Layouts */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Gallery Engine Layout Styles */
.gallery-nav {
    background: var(--white);
    border-bottom: 1px solid rgba(15, 44, 61, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px !important;
}

.back-link {
    color: var(--sea-glass);
    text-decoration: none;
    font-weight: 600;
}

.book-mini-btn {
    background: var(--navy);
    color: var(--white);
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.gallery-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    aspect-ratio: 4 / 3;
}

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

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

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .nav-box h2 {
        font-size: 1.2rem;
    }
}
/* Interactive Full-Screen Lightbox Layout */
.gallery-item {
    cursor: pointer; /* Change mouse cursor to indicate clickability */
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 44, 61, 0.95); /* Deep luxury navy shroud overlay */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Lightbox UI Navigation Controls */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--sea-glass);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 24px;
    padding: 16px 22px;
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
    transition: all 0.2s ease;
    z-index: 2100;
}

.lightbox-arrow:hover {
    background: var(--sea-glass);
    border-color: var(--sea-glass);
}

.prev-arrow { left: 30px; }
.next-arrow { right: 30px; }

/* Responsive adjustments for mobile screen widths */
@media (max-width: 768px) {
    .lightbox-arrow {
        padding: 12px 16px;
        font-size: 18px;
        background: rgba(15, 44, 61, 0.6);
        backdrop-filter: blur(4px);
    }
    .prev-arrow { left: 10px; }
    .next-arrow { right: 10px; }
    .lightbox-close { top: 15px; right: 20px; }
}
/* Card Inline Navigation Links */
.card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--sea-glass);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: var(--navy);
}

.no-photos-fallback {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
