/* Reset and Base Styles */
       :root {
    --primary-color: #C41E3A !important;
}

.custom-danger {
    color: var(--primary-color);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.popup-overlay.active .popup-form {
            transform: scale(1);
        }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}



/* ==================== */
/* CERTIFIED AGENT SECTION */
/* ==================== */
.agent-section {
    margin-top: 0;
}

.agent-section-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.agent-pic-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
}

.agent-pic-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-details {
    flex: 1;
    min-width: 0;
}

.agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color, #C41E3A);
    margin-bottom: 4px;
}

.agent-badge i {
    font-size: 1rem;
}

.agent-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #1f2937);
}



@media (max-width: 480px) {
    .agent-section-inner {
        gap: 0.75rem;
    }
    .agent-pic-wrap {
        width: 56px;
        height: 56px;
    }
  
}


.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30%;
    height: 1px;
    background: #dc3545;
}


.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}




/* ==================== */
/* FAQ POPUP */
/* ==================== */
.faq-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.faq-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.faq-popup {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.faq-popup-overlay.active .faq-popup {
    transform: translateY(0);
}

.faq-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.faq-popup-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-faq-popup {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
}

.faq-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active {
    border-color: #2196F3;
    box-shadow: 0 2px 8px rgba(33,150,243,0.15);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
}
 
.faq-question:hover {
    background: #f9f9f9;
}

.faq-question span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex: 1;
    padding-right: 12px;
}

.faq-question i {
    color: #999;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: #2196F3;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 16px 16px;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

/* Desktop styles for popups */
@media (min-width: 768px) {
    .review-popup-overlay,
    .faq-popup-overlay {
        align-items: center;
    }

    .review-popup,
    .faq-popup {
        border-radius: 20px;
        max-height: 80vh;
    }

    .review-pcard {
        width: 320px;
    }
}

.price-tag {
    font-weight: 600;
}

.main-price {
    font-size: 26px;
    color: #e53935; /* red */
}

.per-sqft {
    font-size: 14px;
    color: #666; /* gray */
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 6px;
}


    
    .prgap-3 {
    gap: 6px !important;
}
    
    .pr-4 {
    padding: 12px !important ;
}
    .my-4 {
        margin-top: 1.5rem !important;
        margin-bottom: 5.5rem !important;
    }
       

        /* Consistent Section Spacing */
        section {
            margin-bottom: 2rem;
        }

        /* Consistent pcard Styling */
        .pcard {
            border: none;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            background: white;
            margin-bottom: 12px !important;
        }

        /* Consistent Section Title */
        .section-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 1.25rem;
            padding-bottom: 10px;
            position: relative;
        }
        .section-title::after {
            content: '';
            display: block;
            position: absolute;
            left: 0;
            bottom: 0;
            width: 30%;
            height: 1px;
            background: var(--primary-color);
        }

        .section-subtitle {
            font-size: 0.875rem;
            color: var(--text-gray);
            margin-top: -0.75rem;
            margin-bottom: 5px !important;
        }

        /* Overview nav: sticky only below search bar. Same behavior mobile + desktop. */
        .section-nav {
            background: white;
            border-bottom: 1px solid var(--border-color);
            transition: all 0.3s ease;
            position: sticky;
            top: 64px;
            z-index: 999;
            max-width: 100%;
            width: 100%;
            margin: 0;
        }

        .section-nav.scrolled {
            top: 40px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            max-width: 100%;
            width: 100%;
            margin: 0;
            padding: 0 0 0 0;
        }

        .section-nav.sticky {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .nav-links {
            display: flex;
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
        }

        .section-nav.scrolled .nav-link-item {
            padding: 0.6rem 1rem;
            font-size: 0.875rem;
        }

        .nav-link-item {
            padding: 1rem 1.5rem;
            color: var(--text-gray);
            text-decoration: none;
            border-bottom: 2px solid transparent;
            transition: all 0.3s;
            cursor: pointer;
            font-size: 0.9375rem;
            font-weight: 600;
        }

        .nav-link-item:hover {
            color: var(--text-dark);
            border-bottom-color: var(--border-color);
        }

        .nav-link-item.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }

       

        /* Amenity Items */
        .amenity-item {
            /*display: flex;*/
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            height: 75px;
            border-radius: 12px;
            transition: all 0.3s;
            /*padding: 1rem;*/
        }

        .amenity-icon {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        .amenity-item .small {
            font-size: 0.875rem;
        }

      
/* Price Tag */
        .price-tag {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary-color);
        }
     .gapr-4 {
    gap: 5px !important;
}




               .tpsp{ margin-top:5px;}
               
               .rule-box{
    text-align:center;
}

/* LIGHT SOFT CIRCLE */
.icon-circle{
    width:60px;
    height:55px;
    margin:auto;
    border-radius:50%;
    background:#f5f7fb; /* very light */
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    box-shadow:0 2px 8px rgba(0,0,0,0.06);
}

/* ICON LIGHT COLOR */
.icon-circle i{
    font-size:22px;
    color:#aab3c5; /* soft grey so value stands out */
}

/* VALUE CENTER */
.icon-value{
    position:absolute;
    font-size:17px;
    font-weight:700;
    color:#111; /* strong readable value */
}

/* LABEL */
.rule-label{
    margin-top:8px;
    font-size:13px;
    font-weight:500;
    color:#6c757d;
}

.detail-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 5px;
    border-bottom:1px dashed #e9ecef;  /* light dashed */
}

/* icon + label group */
.detail-row i{
    width:25px;
    color:#aab3c5;
    margin-right:8px;
}

/* label */
.detail-row span{
    flex:1;
    color:#555;
    font-size:14px;
}

/* value */
.detail-row strong{
    color:#111;
    font-weight:600;
    white-space:nowrap;
}

.detail-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 5px;
    border-bottom:1px dashed #e9ecef;
}

.detail-row i{
    width:25px;
    color:#aab3c5;
    margin-right:8px;
}

.detail-row span{
    flex:1;
    font-size:14px;
    color:#555;
}

.detail-row strong{
    color:#111;
    font-weight:600;
    white-space:nowrap;
}

/* CLEAN UNIT DROPDOWN */
.clean-select{
    border:none !important;
    background:transparent;
    outline:none !important;
    font-size:13px;
    font-weight:600;
    color:#111;   /* DARK TEXT */
    width:75px;
    cursor:pointer;
}

.clean-select:focus{
    box-shadow:none !important;
}


/* anchor reset */
li a {
    text-decoration: none;
    border: none;
    outline: none;
    color: inherit;
}

/* hover */
li a:hover {
    text-decoration: none;
    border: none;
    outline: none;
    color: #b91c1c; /* optional hover color */
}

/* focus (important for mobile + accessibility) */
li a:focus,
li a:active,
li a:visited {
    outline: none;
    border: none;
    box-shadow: none;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 auto;
        width: 48% !important;
        margin-left: 5px !important;
    }
}
