/* =========================================================
   BLR PROPERTY LISTING WIZARD
   Complete stylesheet
========================================================= */

.blr-wizard-container{
    width:100%;
    max-width:1100px;
    margin:40px auto;
    padding:0 20px;
    box-sizing:border-box;
}

.blr-header{
    margin-bottom:30px;
}

.blr-header h2{
    margin:0 0 6px;
    font-size:38px;
    line-height:1.2;
    font-weight:700;
    color:#101828;
}

.blr-header p{
    margin:0;
    color:#667085;
    font-size:15px;
}

.blr-progress{
    display:flex;
    justify-content:space-between;
    margin:30px 0;
    gap:10px;
}

.blr-step{
    flex:1;
    min-width:0;
    background:#ececec;
    padding:12px 10px;
    text-align:center;
    border-radius:8px;
    font-weight:600;
    font-size:14px;
    line-height:1.3;
    cursor:default;
    transition:background .2s ease,color .2s ease;
}

.blr-step.active{
    background:#0d6efd;
    color:#fff;
}

.blr-step-content{
    width:100%;
}

.blr-card{
    width:100%;
    box-sizing:border-box;
    background:#fff;
    border-radius:14px;
    padding:40px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.blr-card-header{
    margin-bottom:28px;
}

.blr-card-header h3,
.blr-card h2,
.blr-card h3{
    margin-top:0;
    color:#101828;
}

.blr-card-header p,
.blr-card > p,
.blr-description{
    color:#667085;
}

.blr-field,
.blr-form-group{
    margin-bottom:25px;
}

.blr-field label,
.blr-form-group label{
    display:block;
    margin-bottom:8px;
    color:#344054;
    font-size:14px;
    font-weight:600;
}

.blr-input,
.blr-textarea,
.blr-form-group .form-control,
.blr-card .form-control{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    border:1px solid #d0d5dd;
    border-radius:8px;
    padding:14px;
    font-size:16px;
    line-height:1.4;
    background:#fff;
    color:#101828;
}

.blr-input:focus,
.blr-textarea:focus,
.blr-card .form-control:focus{
    outline:none;
    border-color:#0d6efd;
    box-shadow:0 0 0 3px rgba(13,110,253,.10);
}

.blr-textarea{
    min-height:140px;
    resize:vertical;
}

.blr-row{
    display:flex;
    gap:25px;
}

.blr-col{
    flex:1;
    min-width:0;
}

.blr-col-6{
    flex:0 0 calc(50% - 12.5px);
    max-width:calc(50% - 12.5px);
}

.blr-footer{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:12px;
    margin-top:30px;
}

.blr-next,
.blr-btn-primary,
.blr-card .btn-primary{
    background:#0d6efd;
    color:#fff;
    border:none;
    padding:14px 30px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    box-sizing:border-box;
}

.blr-next:hover,
.blr-btn-primary:hover,
.blr-card .btn-primary:hover{
    background:#0b5ed7;
    color:#fff;
}

.blr-btn-secondary,
.blr-card .btn-secondary{
    background:#fff;
    color:#344054;
    border:1px solid #d0d5dd;
    padding:14px 24px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    box-sizing:border-box;
}

.blr-btn-secondary:hover,
.blr-card .btn-secondary:hover{
    background:#f9fafb;
    color:#101828;
}

.blr-actions,
.blr-form-actions,
.blr-step-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding-top:20px;
    border-top:1px solid #eceff3;
    margin-top:30px;
}

/* Hide Houzez top search bar ONLY on BLR Wizard page */
.page-template-page-blr-wizard section#desktop-top-header-search,
.page-template-page-blr-wizard #desktop-top-header-search,
.page-template-page-blr-wizard .advanced-search-nav{
    display:none !important;
}

/* =========================================================
   AMENITIES
========================================================= */

.blr-amenities-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:20px;
}

.blr-checkbox{
    position:relative;
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    padding:14px;
    border:1px solid #e4e7ec;
    border-radius:10px;
    cursor:pointer;
    background:#fff;
    transition:.2s ease;
}

.blr-checkbox:hover{
    background:#f8faff;
    border-color:#b7d0ff;
}

.blr-checkbox input{
    width:16px;
    height:16px;
    margin:0;
    flex:0 0 16px;
    accent-color:#0d6efd;
}

.blr-checkbox-ui{
    width:20px;
    height:20px;
    flex:0 0 20px;
    border:1px solid #d0d5dd;
    border-radius:50%;
    box-sizing:border-box;
}

.blr-checkbox-label{
    min-width:0;
    color:#344054;
    font-size:14px;
    line-height:1.4;
}

/* =========================================================
   PROPERTY IMAGE UPLOADER
========================================================= */

.blr-gallery-card{
    overflow:hidden;
}

.blr-gallery-heading{
    margin-bottom:30px;
}

.blr-gallery-heading h2{
    margin:0 0 6px;
    font-size:30px;
    font-weight:700;
}

.blr-gallery-heading p{
    margin:0;
    color:#6b7280;
}

.blr-upload-section{
    margin-bottom:35px;
}

.blr-upload-section-heading{
    margin-bottom:10px;
}

.blr-upload-section-heading h3{
    margin:0 0 5px;
    font-size:22px;
    font-weight:700;
}

.blr-upload-section-heading p{
    margin:0;
    color:#6b7280;
}

.blr-required-label{
    display:inline-block;
    margin:10px 0;
    padding:5px 10px;
    border-radius:5px;
    background:#fff2f2;
    color:#d63031;
    font-size:12px;
    font-weight:600;
}

.blr-image-upload-box{
    position:relative;
    border:2px dashed #d7dce5;
    border-radius:12px;
    background:#fafbfc;
    cursor:pointer;
    transition:all .2s ease;
    overflow:hidden;
}

.blr-image-upload-box:hover{
    border-color:#1267e5;
    background:#f5f9ff;
}

.blr-image-upload-box.blr-upload-error{
    border-color:#dc3545;
    background:#fff8f8;
}

.blr-main-image-upload{
    min-height:300px;
}

.blr-upload-placeholder{
    min-height:300px;
    padding:35px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    box-sizing:border-box;
}

.blr-upload-plus{
    width:54px;
    height:54px;
    margin-bottom:12px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#1267e5;
    color:#fff;
    font-size:30px;
    line-height:1;
    font-weight:400;
}

.blr-upload-placeholder strong,
.blr-gallery-upload strong{
    display:block;
    font-size:16px;
    font-weight:700;
}

.blr-upload-placeholder span,
.blr-gallery-upload span{
    margin-top:4px;
    color:#606b7b;
}

.blr-upload-placeholder small,
.blr-gallery-upload small{
    margin-top:5px;
    color:#8a94a4;
}

.blr-main-image-preview{
    position:relative;
    width:100%;
    height:420px;
    overflow:hidden;
    border-radius:10px;
}

.blr-main-image-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.blr-remove-image{
    position:absolute;
    top:15px;
    right:15px;
    width:38px;
    height:38px;
    padding:0;
    border:0;
    border-radius:50%;
    background:rgba(0,0,0,.75);
    color:#fff;
    font-size:25px;
    line-height:38px;
    cursor:pointer;
    z-index:3;
}

.blr-main-image-badge{
    position:absolute;
    left:15px;
    bottom:15px;
    padding:7px 12px;
    border-radius:6px;
    background:#1267e5;
    color:#fff;
    font-size:12px;
    font-weight:600;
}

.blr-gallery-count{
    margin:10px 0;
    color:#4b5563;
    font-size:14px;
    font-weight:600;
}

.blr-gallery-upload{
    min-height:150px;
    padding:25px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.blr-gallery-preview{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:15px;
    margin-top:20px;
}

.blr-gallery-preview-item{
    position:relative;
    width:100%;
    aspect-ratio:4/3;
    overflow:hidden;
    border:1px solid #e1e5eb;
    border-radius:9px;
    background:#f5f5f5;
}

.blr-gallery-preview-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.blr-gallery-preview-number{
    position:absolute;
    right:7px;
    bottom:7px;
    min-width:25px;
    height:25px;
    padding:0 7px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:20px;
    background:rgba(0,0,0,.75);
    color:#fff;
    font-size:11px;
    font-weight:600;
}

.blr-gallery-help{
    margin:10px 0 0;
    color:#7b8493;
    font-size:13px;
}

/* =========================================================
   CONTACT / FORM LAYOUT
========================================================= */

.blr-card-body{
    width:100%;
}

.blr-card-body .form-group{
    margin-bottom:20px;
}

.blr-card-body .form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#344054;
}

.blr-card-body .form-control{
    width:100%;
}

/* =========================================================
   ICON SAFETY
   Prevent Houzez/global SVG rules from producing giant icons.
========================================================= */

.blr-wizard-container svg{
    display:block !important;
    width:24px !important;
    height:24px !important;
    min-width:24px !important;
    max-width:24px !important;
    min-height:24px !important;
    max-height:24px !important;
    flex:0 0 24px !important;
}

.blr-wizard-container .blr-amenity-icon svg,
.blr-wizard-container .blr-amenity-checkbox svg,
.blr-wizard-container .blr-amenities-note-icon svg{
    width:24px !important;
    height:24px !important;
    min-width:24px !important;
    max-width:24px !important;
    min-height:24px !important;
    max-height:24px !important;
}

.blr-wizard-container .blr-contact-icon,
.blr-wizard-container .blr-contact-row-icon,
.blr-wizard-container .blr-contact-info-icon,
.blr-wizard-container .blr-enquiry-icon,
.blr-wizard-container .blr-info-icon{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    min-height:42px !important;
    max-height:42px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
}

.blr-wizard-container .blr-contact-icon svg,
.blr-wizard-container .blr-contact-row-icon svg,
.blr-wizard-container .blr-contact-info-icon svg,
.blr-wizard-container .blr-enquiry-icon svg,
.blr-wizard-container .blr-info-icon svg{
    width:22px !important;
    height:22px !important;
    min-width:22px !important;
    max-width:22px !important;
    min-height:22px !important;
    max-height:22px !important;
}

/* =========================================================
   PUBLISH SUCCESS SCREEN
========================================================= */

.blr-publish-success-card{
    overflow:hidden;
}

.blr-publish-success{
    padding:42px 28px 38px;
    text-align:center;
}

.blr-publish-success-icon{
    width:76px !important;
    height:76px !important;
    min-width:76px !important;
    max-width:76px !important;
    min-height:76px !important;
    max-height:76px !important;
    margin:0 auto 20px;
    border-radius:50%;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#19a66a;
    color:#fff;
    box-shadow:0 8px 22px rgba(25,166,106,.18);
    overflow:hidden;
}

.blr-publish-success-icon span{
    display:block !important;
    width:auto !important;
    height:auto !important;
    min-width:0 !important;
    max-width:none !important;
    color:#fff;
    font-size:42px !important;
    line-height:1 !important;
    font-weight:700 !important;
}

.blr-publish-success h2{
    margin:0 0 10px;
    color:#101828;
    font-size:24px;
    line-height:1.3;
    font-weight:700;
}

.blr-publish-success-message{
    margin:0 0 8px;
    color:#667085;
    font-size:14px;
    line-height:1.6;
}

.blr-publish-success-id{
    margin:0 0 26px;
    color:#475467;
    font-size:13px;
}

.blr-publish-success-id strong{
    color:#101828;
}

.blr-publish-success-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.blr-publish-success-actions .btn{
    min-height:42px;
    padding:10px 18px;
    border-radius:7px;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:991px){
    .blr-amenities-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .blr-gallery-preview{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media (max-width:767px){

    .blr-wizard-container{
        margin:25px auto;
        padding:0 12px;
    }

    .blr-header h2{
        font-size:28px;
    }

    .blr-progress{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    .blr-step{
        padding:11px 8px;
        font-size:13px;
    }

    .blr-card{
        padding:22px;
        border-radius:12px;
    }

    .blr-row{
        flex-direction:column;
        gap:0;
    }

    .blr-col-6{
        flex:1 1 100%;
        max-width:none;
    }

    .blr-footer,
    .blr-actions,
    .blr-form-actions,
    .blr-step-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .blr-footer button,
    .blr-actions button,
    .blr-form-actions button,
    .blr-step-actions button,
    .blr-step-actions .btn{
        width:100%;
    }

    .blr-amenities-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .blr-gallery-heading h2{
        font-size:24px;
    }

    .blr-main-image-upload,
    .blr-upload-placeholder{
        min-height:220px;
    }

    .blr-main-image-preview{
        height:250px;
    }

    .blr-gallery-preview{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .blr-gallery-preview-item{
        aspect-ratio:4/3;
        height:auto;
    }

    .blr-publish-success{
        padding:32px 18px;
    }

    .blr-publish-success h2{
        font-size:21px;
    }

    .blr-publish-success-actions{
        flex-direction:column;
    }

    .blr-publish-success-actions .btn{
        width:100%;
        max-width:280px;
    }
}