/* ============================================================
   Public Home Page
   ============================================================ */

/* Scroll-to-top button */
#scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #7ecfb3;
    color: #1a2333;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s, background 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    z-index: 999;
}
#scroll-top svg {
    width: 1.2rem;
    height: 1.2rem;
}
#scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}
#scroll-top:hover {
    background: #5dbfa0;
    transform: translateY(-3px);
}

:root {
    --status-h: 2.125rem;
    --header-h: 3.75rem;
    --bars-h: calc(var(--status-h) + var(--header-h));
}
.home-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1a2333;
    color: #1a1a2e;
}

/* Apply Page */
.apply-shell {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: #f0f4f9;
}
.apply-card {
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.apply-heading {
    font-size: 1.5rem;
    color: #1a2333;
    margin-bottom: .4rem;
}
.apply-sub {
    font-size: .9rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}
.apply-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .8rem 1rem;
    margin-top: .75rem;
    background: linear-gradient(135deg, #5a8cc8, #3a6aaa);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .9375rem;
    cursor: pointer;
    transition: opacity .15s;
}
.apply-submit-btn svg { width: 16px; height: 16px; }
.apply-submit-btn:hover { opacity: .9; }
.apply-note {
    margin-top: 1.25rem;
    font-size: .75rem;
    color: #9ca3af;
    text-align: center;
}
.apply-confirmed { text-align: center; }
.apply-confirmed-icon {
    width: 56px;
    height: 56px;
    background: #eef6ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.apply-confirmed-icon svg { width: 28px; height: 28px; stroke: #2d7a3a; }
.apply-back-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: .875rem;
    color: #5a8cc8;
    text-decoration: none;
}
.apply-back-link:hover { text-decoration: underline; }

/* Status Bar */
.home-status-bar {
    background: #1a2333;
    color: rgba(255,255,255,.8);
    text-align: center;
    font-size: .875rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}
.home-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
}

/* Header */
.home-header {
    position: relative;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: none;
    transition: background .3s, backdrop-filter .3s;
}
.home-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.home-logo {
    font-size: 1.25rem;
    color: #1a2333;
    letter-spacing: .12em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.home-logo-sub {
    font-size: .65rem;
    letter-spacing: .18em;
    color: #5a8cc8;
    margin-top: .3rem;
    text-transform: uppercase;
}

/* Login button */
.home-header-actions { display: flex; align-items: center; gap: .75rem; }
.home-login-btn {
    font-size: .75rem;
    color: #435164;
    text-decoration: none;
    letter-spacing: .03em;
    padding: .4rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color .15s, color .15s;
}
.home-login-btn:hover { border-color: #5a8cc8; color: #5a8cc8; }

/* Hero */
.home-hero {
    position: relative;
    height: 100vh;
    min-height: 480px;
    background: #1a2333;
    overflow: hidden;
}
.home-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-hero-photo {
    background-size: cover;
    background-position: center;
}
.home-hero-placeholder {
    background: linear-gradient(160deg, #1a2333 0%, #2c3e55 100%);
}
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 4rem;
    text-align: center;
}
.home-hero-address {
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    color: #fff;
    letter-spacing: .01em;
    line-height: 1.1;
}
.home-hero-city {
    margin-top: .5rem;
    font-size: clamp(.875rem, 2vw, 1.125rem);
    color: rgba(255,255,255,.75);
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Apply button */
.home-apply-btn {
    display: inline-block;
    padding: .5rem 1.25rem;
    background: #5a8cc8;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: .875rem;
    transition: background .15s;
}
.home-apply-btn:hover { background: #3a6aaa; color: #fff; }
.home-apply-btn-lg {
    padding: .75rem 2rem;
    font-size: 1rem;
}

/* Property Details Strip */
.home-details {
    background: #fff;
    padding: 2.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
}
.home-details-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
}
.home-details-item {
    flex: 1 1 120px;
    text-align: center;
    padding: 1rem 1.5rem;
    border-right: 1px solid #f0f0f0;
}
.home-details-item--wide {
    flex: 2 1 220px;
}
.home-details-item:last-child { border-right: none; }
.home-details-value {
    font-size: 1.5rem;
    color: #1a2333;
    line-height: 1;
    margin-bottom: .4rem;
}
.home-details-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
}
.home-details-utilities {
    max-width: 1100px;
    margin: 1.25rem auto 0;
    padding: 1rem 1.5rem;
    background: #f8f9fb;
    border-radius: 8px;
    font-size: .9rem;
    color: #435164;
}
.home-details-utilities-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    display: block;
    margin-bottom: .25rem;
}
.home-details-desc {
    max-width: 1100px;
    margin: 1.25rem auto 0;
    text-align: left;
    font-size: 1.0625rem;
    color: #435164;
    line-height: 1.8;
}

/* Gallery — V2 CSS Masonry */
.home-gallery {
    background: #1b1f27;
    padding: 3rem 2rem;
}
.home-gallery-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.home-gallery-heading {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: rgba(255,255,255,.85);
    letter-spacing: .01em;
}
.home-masonry {
    column-count: 3;
    column-gap: 12px;
}
.home-masonry-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.home-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease;
}
.home-masonry-item:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .home-masonry { column-count: 2; } }
@media (max-width: 420px) { .home-masonry { column-count: 1; } }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 640px) {
    .home-header-inner {
        padding: .75rem 1rem;
        flex-wrap: wrap;
        gap: .5rem;
    }
    .home-logo {
        font-size: 1rem;
    }
    .home-header-actions {
        gap: .5rem;
    }
    .home-apply-btn,
    .home-login-btn {
        font-size: .7rem;
        padding: .4rem .75rem;
    }
    .home-hero {
        height: 70vh;
        min-height: 320px;
    }
    .home-details {
        padding: 1.5rem 1rem;
    }
    .home-details-item {
        flex: 1 1 80px;
        padding: .75rem .5rem;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .home-details-item:last-child { border-bottom: none; }
    .home-details-value { font-size: 1.25rem; }
    .home-gallery { padding: 2rem 1rem; }
    .home-video-section { padding: 2rem 1rem; }
    .home-cta { padding: 2rem 1rem; }
    #scroll-top { bottom: 1.25rem; right: 1.25rem; }
}

/* Video Tour */
.home-video-section {
    background: #fff;
    padding: 3rem 2rem;
}
.home-video-inner {
    max-width: 760px;
    margin: 0 auto;
}
.home-video-heading {
    text-align: center;
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}
.home-video-wrap {
    border-radius: 10px;
    overflow: hidden;
}
.home-video-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    background: #1a2333;
}
.home-video-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 420px;
    filter: brightness(.6);
    transition: filter .3s;
}
.home-video-thumb:hover img { filter: brightness(.45); }
.home-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-video-play svg {
    width: 64px;
    height: 64px;
    background: rgba(90,140,200,.85);
    border-radius: 50%;
    padding: 16px 14px 16px 18px;
    transition: background .2s, transform .2s;
}
.home-video-thumb:hover .home-video-play svg {
    background: #5a8cc8;
    transform: scale(1.08);
}
.home-video-label {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,.85);
    font-size: .875rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* CTA */
.home-cta {
    background: #f0f4f9;
    padding: 3rem 1.5rem;
}
.home-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.home-cta-note {
    font-size: .9rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 420px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: .25rem;
}
.home-cta-text {
    font-size: 1.0625rem;
    color: #435164;
    line-height: 1.65;
}

/* Footer */
.home-footer {
    text-align: center;
    padding: 1.25rem;
    font-size: .9rem;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
}
