/* =========================================================
   Responsive Overrides
========================================================= */

/* ---- Large tablets / small desktops ---- */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .main-nav .nav-link {
        font-size: 0.78rem;
        padding: 0.5rem 0.6rem;
    }
}

/* ---- Tablets ---- */
@media (max-width: 991.98px) {
    .hero-section {
        height: 70vh;
        min-height: 450px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .header-container {
        padding: 0.75rem 5vw;
        min-height: auto;
    }

    .main-nav {
        background-color: var(--bj-blue-dark);
        margin-top: 0.75rem;
        padding: 0.5rem 0;
        border-radius: 4px;
    }

    .main-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .main-nav .nav-link.active {
        border-bottom: none;
        border-left: 3px solid #ffffff;
    }

    .mission-section {
        padding: 3.5rem 0;
        text-align: center;
    }

    .mission-text {
        max-width: 100%;
        margin: 0 auto;
    }

    .mission-image-wrap {
        margin-top: 2.5rem;
    }

    .experience-section {
        min-height: 420px;
        padding: 3.5rem 0;
    }

    .restore-section,
    .elevate-section {
        min-height: 380px;
        padding: 3.5rem 0;
    }

    .explore-section {
        padding: 3rem 0;
    }

    .explore-tab {
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
    }

    .process-section {
        padding: 3.5rem 0;
    }

    .process-number {
        font-size: 4.5rem;
    }

    .investing-image-col {
        min-height: 320px;
    }

    .investing-content {
        padding: 3rem 5vw;
    }

    .cta-block {
        padding: 3rem 2rem;
    }

    .cta-title {
        font-size: 2.25rem;
    }

    .footer-columns .footer-col {
        margin-bottom: 2.5rem;
    }

    .page-title-section {
        padding: 3.5rem 0 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .dbs-block {
        min-height: auto;
        padding: 3.5rem 0;
    }

    .design-title,
    .develop-title {
        text-align: center;
    }

    .design-text,
    .build-title,
    .build-text,
    .build-list,
    .develop-text {
        text-align: center;
    }

    .dbs-render {
        max-width: 70%;
    }

    .wholesale-banner {
        min-height: 280px;
        padding: 2.5rem 0;
    }

    .wholesale-title {
        font-size: 2.25rem;
    }

    .lead-image-col {
        min-height: 300px;
    }

    .lead-form-col {
        padding: 2.5rem;
    }

    .wholesale-card {
        margin-bottom: 2rem;
    }

    .sell-banner {
        min-height: 220px;
    }

    .sell-banner-title {
        font-size: 1.6rem;
    }

    .sell-content-section {
        padding: 3rem 0;
    }

    .sell-property-image {
        margin-bottom: 2rem;
    }

    .connect-banner {
        min-height: 190px;
    }

    .connect-banner-title {
        font-size: 2.1rem;
    }

    .connect-section {
        padding: 3rem 0;
    }

    .contact-intro-text {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .explore-banner {
        min-height: 190px;
    }

    .explore-banner-title {
        font-size: 2.1rem;
    }
}

/* ---- Mobile landscape / large phones ---- */
@media (max-width: 767.98px) {
    .hero-content {
        padding-top: 6vh;
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-hero {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }

    .brand-text {
        font-size: 0.9rem;
    }
}

/* ---- Small phones ---- */
@media (max-width: 575.98px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .logo-box {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .brand-text {
        display: none;
    }

    .section-label {
        font-size: 0.95rem;
    }

    .mission-text {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .learn-section {
        padding: 2.5rem 0;
        text-align: center;
    }

    .learn-text {
        font-size: 1rem;
    }

    .experience-section {
        min-height: 380px;
        padding: 2.5rem 0;
    }

    .experience-title {
        font-size: 1.4rem;
    }

    .experience-text {
        font-size: 0.9rem;
        line-height: 1.75;
    }

    .restore-section,
    .elevate-section {
        min-height: 340px;
        padding: 2.5rem 0;
    }

    .restore-title,
    .elevate-title {
        font-size: 1.4rem;
    }

    .restore-text,
    .elevate-text,
    .restore-quote {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .restore-title,
    .restore-quote,
    .restore-text,
    .elevate-title,
    .elevate-text {
        text-align: center;
    }

    .restore-text {
        max-width: 100%;
    }

    .explore-tabs {
        gap: 0.25rem;
    }

    .explore-tab {
        padding: 0.6rem 1rem;
        font-size: 0.72rem;
    }

    .explore-item img {
        height: 220px;
    }

    .process-number {
        font-size: 3.75rem;
    }

    .process-text {
        font-size: 0.9rem;
    }

    .investing-content {
        padding: 2.5rem 6vw;
        text-align: center;
    }

    .investing-content .investing-btn {
        margin: 0 auto;
        display: table;
    }

    .cta-title {
        font-size: 1.9rem;
    }

    .site-footer {
        text-align: center;
        padding: 3rem 0 2rem;
    }

    .footer-brand {
        display: flex;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-subtitle-script {
        font-size: 1.3rem;
    }

    .dbs-title {
        font-size: 1.4rem;
    }

    .dbs-text,
    .dbs-list {
        font-size: 0.88rem;
    }

    .dbs-render {
        max-width: 85%;
    }

    .wholesale-title {
        font-size: 1.6rem;
    }

    .lead-form-col {
        padding: 2rem 1.5rem;
    }

    .lead-form-title {
        font-size: 1.5rem;
    }

    .sell-banner-title {
        font-size: 1.35rem;
    }

    .sell-benefits-list {
        font-size: 0.92rem;
        line-height: 2;
    }

    .connect-banner-title {
        font-size: 1.6rem;
    }

    .contact-item {
        margin-bottom: 1.5rem;
    }

    .explore-banner-title {
        font-size: 1.6rem;
    }
}

/* =========================================================
   PROPERTY LISTINGS PAGE
========================================================= */
@media (max-width: 991.98px) {
    .listings-title-section {
        padding: 2.5rem 0 1.5rem;
    }

    .listings-title {
        font-size: 1.6rem;
    }

    .listings-filter-bar {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .filter-bar-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .filter-group,
    .filter-search-col {
        flex: 1 1 auto;
        width: 100%;
    }

    .filter-search-btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .property-card-image-wrap img {
        height: 200px;
    }

    .property-card-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .property-specs {
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }
}

/* =========================================================
   PROPERTY DETAIL PAGE
========================================================= */
@media (max-width: 991.98px) {
    .pdp-main-slider .pdp-slide img {
        height: 400px;
    }

    .pdp-header-row {
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .pdp-header-row {
        flex-direction: column;
    }

    .pdp-header-divider {
        display: none;
    }

    .pdp-header-right {
        align-items: flex-start;
        text-align: left;
    }

    .pdp-main-slider .pdp-slide img {
        height: 320px;
    }

    .pdp-thumb-slider .pdp-thumb img {
        height: 70px;
    }

    .pdp-agent-row {
        flex-direction: column;
    }

    .pdp-map-frame {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    .pdp-title {
        font-size: 1.5rem;
    }

    .pdp-main-slider .pdp-slide img {
        height: 240px;
    }

    .pdp-details-grid {
        gap: 1.5rem;
    }
}

/* =========================================================
   JOIN OUR INVESTORS LIST PAGE
========================================================= */
@media (max-width: 767.98px) {
    .investors-section {
        padding: 2.5rem 0 3rem;
    }

    .investors-title {
        font-size: 1.5rem;
    }

    .investors-form-card {
        padding: 1.75rem 1.5rem;
    }

    .investors-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .investors-phone-wrap {
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .investors-title {
        font-size: 1.3rem;
    }
}

/* =========================================================
   SELL YOUR PROPERTY PAGE (Property Submission Form)
========================================================= */
@media (max-width: 991.98px) {
    .spb-banner {
        min-height: 320px;
        padding: 2rem 0;
    }

    .spb-banner-title {
        font-size: 2rem;
    }

    .spb-sidebar {
        height: auto;
    }
}

@media (max-width: 767.98px) {
    .spb-section {
        padding: 2.5rem 0 3rem;
    }

    .spb-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .spb-phone-wrap {
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .spb-banner-title {
        font-size: 1.5rem;
    }

    .spb-sidebar {
        padding: 1.5rem;
    }
}

/* =========================================================
   LOG IN PAGE
========================================================= */
@media (max-width: 575.98px) {
    .login-card {
        padding: 3rem 1.5rem 2rem;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-close {
        top: -14px;
        right: -14px;
        width: 32px;
        height: 32px;
    }
}
