
/* ===== Base & Typography ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== Navbar ===== */
.btp-navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

    .btp-navbar .brand-name {
        font-size: 22px;
        font-weight: 800;
        color: #1e3a5f;
        text-decoration: none;
    }

/* ===== Property Title ===== */
.property-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

/* ===== Image Gallery (primary_page style) ===== */
.gallery-section {
    padding-top: 32px;
}

.gallery-grid {
    position: relative;
}

    .gallery-grid > .row {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 8px;
    }

    .gallery-grid img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 12px;
    }

    /* Left main image column */
    .gallery-grid .main-img-col {
        height: 420px;
    }

        .gallery-grid .main-img-col img {
            height: 100%;
        }

    /* Right side: 2x2 grid with equal-height rows */
    .gallery-grid .small-imgs-col {
        height: 420px;
        overflow: hidden;
    }

        .gallery-grid .small-imgs-col > .row {
            height: 100%;
            --bs-gutter-y: 8px;
        }

        .gallery-grid .small-imgs-col .small-img-wrapper {
            height: calc(50% - 4px);
        }

            .gallery-grid .small-imgs-col .small-img-wrapper img {
                height: 100%;
                object-fit: cover;
            }

/* View All button: pinned to bottom-right corner of the gallery grid */
.view-all-img {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 2;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    width: auto;
}

    .view-all-img a {
        text-decoration: none;
        display: flex;
        gap: 8px;
        align-items: center;
        color: #525252;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
    }

    .view-all-img:hover {
        background: #f3f4f6;
    }

/* ===== Mobile: sm and below (< 768px) ===== */
@media (max-width: 767.98px) {
    /* Gallery */
    .gallery-section {
        padding-top: 16px;
    }

    .gallery-grid .main-img-col {
        height: 220px;
    }

    .gallery-grid .small-imgs-col {
        height: auto;
    }

        .gallery-grid .small-imgs-col .small-img-wrapper {
            height: auto;
        }

            .gallery-grid .small-imgs-col .small-img-wrapper img {
                height: 80px;
                object-fit: cover;
            }

    /* Navbar stacking on mobile */
    .btp-navbar .container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px;
    }

        .btp-navbar .container p {
            font-size: 20px !important;
        }

    /* Upgrade banner */
    .upgrade-banner {
        padding: 24px 0 !important;
    }

        .upgrade-banner h2 {
            font-size: 24px !important;
        }

        .upgrade-banner .fa-arrow-circle-up {
            font-size: 48px !important;
        }

    /* No-image placeholder reduced height */
    .no-image-placeholder {
        min-height: 200px !important;
    }

    /* Section cards tighter padding */
    .section-card .section-body {
        padding: 16px;
    }

    /* Agent card tighter padding */
    .agent-card {
        padding: 16px;
    }

    /* Docs card tighter padding */
    .docs-card {
        padding: 16px;
    }

    /* Map & video iframes reduced height */
    .map-container iframe {
        min-height: 220px;
    }

    /* Countdown container full width */
    #countdown-container {
        width: 100%;
    }

    /* Footer no-wrap fix */
    .btp-footer p {
        white-space: normal !important;
    }

    /* Lightbox nav buttons smaller */
    .lightbox-nav {
        font-size: 22px;
        padding: 6px 12px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    /* View count badge */
    #view-count-badge {
        bottom: 8px !important;
        left: 8px !important;
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
}

/* ===== Section Card ===== */
.section-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-top: 16px;
    overflow: hidden;
}

    .section-card .section-body {
        padding: 24px;
        font-size: 14px;
        color: #525252;
        line-height: 1.6;
    }

/* ===== Description List (SampleLayout style) ===== */
.description-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

    .description-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
        font-size: 14px;
        color: #525252;
    }

        .description-list li i {
            width: 20px;
            color: #6b7280;
            text-align: center;
        }

        .description-list li span {
            font-weight: 600;
            color: #111827;
        }

/* ===== Divider ===== */
.section-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

/* ===== Alert Banner (SampleLayout style) ===== */
.alert-banner {
    background: #eff6ff;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

    .alert-banner i {
        color: #2563eb;
        margin-top: 3px;
        flex-shrink: 0;
    }

    .alert-banner p {
        margin: 0;
        font-size: 14px;
        font-weight: 700;
        color: #111827;
    }

.alert-banner-gray {
    background: #f3f4f6;
}

    .alert-banner-gray p {
        font-weight: 400;
        color: #525252;
    }

/* ===== Contact Form ===== */
.contact-form .form-control {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
}

    .contact-form .form-control:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-primary-custom {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    font-size: 15px;
}

    .btn-primary-custom:hover {
        background: #1d4ed8;
        color: #fff;
    }

/* ===== FAQ Accordion ===== */
.faq-accordion .accordion-button {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background: transparent;
    padding: 12px 0;
    box-shadow: none;
}

    .faq-accordion .accordion-button:not(.collapsed) {
        background: transparent;
        color: #2563eb;
    }

    .faq-accordion .accordion-button::after {
        width: 16px;
        height: 16px;
        background-size: 16px;
    }

.faq-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #f3f4f6;
}

.faq-accordion .accordion-body {
    padding: 0 0 12px 0;
    font-size: 14px;
    color: #525252;
}

/* ===== Agent Card ===== */
.agent-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    height: auto;
}

    .agent-card .agent-name {
        font-size: 18px;
        font-weight: 700;
        color: #111827;
    }

    .agent-card .agent-company {
        font-size: 14px;
        color: #525252;
    }

    .agent-card .agent-license {
        font-size: 12px;
        color: #6b7280;
    }

    .agent-card .contact-title {
        font-size: 12px;
        font-weight: 700;
        color: #111827;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 16px 0 8px;
    }

    .agent-card .contact-line {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #525252;
        padding: 6px 0;
    }

        .agent-card .contact-line a {
            color: #525252;
            text-decoration: none;
            word-break: break-all;
        }

            .agent-card .contact-line a:hover {
                color: #2563eb;
            }

        .agent-card .contact-line i {
            width: 18px;
            color: #6b7280;
            text-align: center;
            flex-shrink: 0;
        }

/* ===== Documents Card ===== */
.docs-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
}

    .docs-card h3 {
        font-size: 20px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 16px;
    }

    .docs-card .doc-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid #f3f4f6;
        text-decoration: none;
        color: #525252;
    }

        .docs-card .doc-item:last-child {
            border-bottom: none;
        }

        .docs-card .doc-item:hover {
            color: #2563eb;
        }

        .docs-card .doc-item i {
            font-size: 20px;
            color: #dc2626;
            flex-shrink: 0;
        }

        .docs-card .doc-item span {
            font-weight: 500;
            font-size: 14px;
            word-break: break-word;
        }

/* ===== Map ===== */
.map-container iframe {
    width: 100%;
    min-height: 350px;
    border-radius: 10px;
    border: 0;
}

/* ===== Video Container ===== */
.video-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

    .video-container video {
        width: 100%;
        display: block;
        border-radius: 10px;
    }

    .video-container .custom-play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 48px;
        color: #fff;
        background: rgba(0, 0, 0, 0.5);
        width: 72px;
        height: 72px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
    }

        .video-container .custom-play-button:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        .video-container .custom-play-button.hide-button {
            display: none;
        }

/* ===== Footer ===== */
.btp-footer {
    background: #111827;
    color: #9ca3af;
    padding: 40px 0 24px;
    margin-top: 48px;
    font-size: 14px;
}

    .btp-footer a {
        color: #9ca3af;
        text-decoration: none;
        word-break: break-all;
    }

        .btp-footer a:hover {
            color: #fff;
        }

    .btp-footer h5 {
        color: #fff;
    }

/* ===== Photo Gallery Modal ===== */
.gallery-thumb {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

    .gallery-thumb:hover {
        transform: scale(1.03);
    }

    .gallery-thumb img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

/* ===== Photo Detail Modal (lightbox) ===== */
.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 28px;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
}

    .lightbox-nav:hover {
        background: rgba(0,0,0,0.8);
    }

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-counter {
    text-align: center;
    color: #525252;
    font-size: 14px;
    margin-top: 12px;
}

/* ===== No Image Placeholder ===== */
.no-image-placeholder {
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border-radius: 12px;
}

    .no-image-placeholder i {
        font-size: 64px;
        color: #9ca3af;
    }

/* ===== Form Modals (shared) ===== */
#makeOfferModal .modal-content,
#contactAgentModal .modal-content,
#requestTourModal .modal-content,
#forcedRegModal .modal-content {
    border-radius: 12px;
    border: none;
    overflow: hidden;
}

#makeOfferModal .modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 24px;
}

#makeOfferModal .modal-body {
    padding: 24px;
}

#makeOfferModal .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
}

.offer-path-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

    .offer-path-btn:hover {
        border-color: #2563eb;
        background: #eff6ff;
    }

    .offer-path-btn i {
        font-size: 24px;
        color: #2563eb;
    }

.offer-form-label {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.offer-form-input {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    width: 100%;
    box-sizing: border-box;
}

    .offer-form-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        outline: none;
    }

.offer-confirmation {
    text-align: center;
    padding: 32px 16px;
}

    .offer-confirmation i {
        font-size: 56px;
        color: #16a34a;
        margin-bottom: 16px;
    }

    .offer-confirmation h4 {
        font-size: 20px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 8px;
    }

    .offer-confirmation p {
        font-size: 14px;
        color: #525252;
    }

.offer-alert {
    font-size: 13px;
    color: #525252;
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

    .offer-alert i {
        color: #2563eb;
        margin-right: 6px;
    }

.offer-error {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 4px;
    display: none;
}
