/* =========================================================
   BLR LISTING WIZARD
========================================================= */

.blr-wizard-container {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.blr-wizard-container *,
.blr-wizard-container *::before,
.blr-wizard-container *::after {
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.blr-header {
    margin-bottom: 30px;
}

.blr-header h2 {
    margin: 0 0 6px;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
}

.blr-header p {
    margin: 0;
    color: #6b7280;
}


/* =========================================================
   PROGRESS NAVIGATION
========================================================= */

.blr-progress {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin: 30px 0;
}

.blr-step {
    min-width: 0;
    padding: 13px 8px;
    background: #ececec;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
    transition: all .2s ease;
}

.blr-step.active {
    background: #0d6efd;
    color: #fff;
}


/* =========================================================
   CARD
========================================================= */

.blr-card {
    width: 100%;
    padding: 40px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.blr-card-header {
    margin-bottom: 28px;
}

.blr-card-header h2,
.blr-card-header h3 {
    margin: 0 0 6px;
    font-weight: 700;
    line-height: 1.25;
}

.blr-card-header h3 {
    font-size: 28px;
}

.blr-description,
.blr-card-header p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.blr-field,
.blr-form-group {
    margin-bottom: 25px;
}

.blr-field label,
.blr-form-group label,
.blr-col label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
}

.blr-input,
.blr-textarea,
.blr-card .form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.blr-textarea,
textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.blr-input:focus,
.blr-textarea:focus,
.blr-card .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .10);
}


/* =========================================================
   ROWS / COLUMNS
========================================================= */

.blr-row {
    display: flex;
    gap: 25px;
}

.blr-col,
.blr-col-6 {
    flex: 1 1 0;
    min-width: 0;
}


/* =========================================================
   BUTTONS
========================================================= */

.blr-footer,
.blr-actions,
.blr-step-actions,
.blr-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.blr-step-actions {
    padding-top: 24px;
    border-top: 1px solid #eceff3;
}

.blr-btn,
.blr-next,
.blr-btn-primary,
.blr-btn-secondary,
.blr-card .btn {
    min-height: 46px;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all .2s ease;
}

.blr-next,
.blr-btn-primary,
.blr-card .btn-primary {
    border: 1px solid #0d6efd;
    background: #0d6efd;
    color: #fff;
}

.blr-next:hover,
.blr-btn-primary:hover,
.blr-card .btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

.blr-btn-secondary,
.blr-card .btn-secondary {
    border: 1px solid #d7dce5;
    background: #fff;
    color: #374151;
}

.blr-btn-secondary:hover,
.blr-card .btn-secondary:hover {
    background: #f8fafc;
}


/* =========================================================
   HIDE HOUZEZ SEARCH BAR ON WIZARD
========================================================= */

.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;
}


/* =========================================================
   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;
    line-height: 1.6;
}

.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;
    line-height: 1.6;
}

.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;
}


/* =========================================================
   IMAGE UPLOAD BOX
========================================================= */

.blr-image-upload-box {
    position: relative;
    width: 100%;
    border: 2px dashed #d7dce5;
    border-radius: 12px;
    background: #fafbfc;
    cursor: pointer;
    overflow: hidden;
    transition: all .2s ease;
}

.blr-image-upload-box:hover {
    border-color: #1267e5;
    background: #f5f9ff;
}

.blr-image-upload-box.blr-upload-error {
    border-color: #dc3545;
    background: #fff8f8;
}


/* =========================================================
   MAIN IMAGE
========================================================= */

.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;
}

.blr-upload-plus {
    width: 54px;
    height: 54px;
    flex: 0 0 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;
    background: #eef1f5;
}

.blr-main-image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.blr-remove-image {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    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;
    text-align: center;
    cursor: pointer;
}

.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;
}


/* =========================================================
   GALLERY UPLOAD
========================================================= */

.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;
}


/* =========================================================
   GALLERY PREVIEW
   Equal-size images
========================================================= */

.blr-gallery-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin-top: 20px;
}

.blr-gallery-preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e1e5eb;
    border-radius: 9px;
    background: #eef1f5;
}

.blr-gallery-preview-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.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;
}


/* =========================================================
   STEP 6 — AMENITIES
========================================================= */

.blr-amenities-step {
    overflow: hidden;
}

.blr-amenities-step .blr-step-heading {
    margin-bottom: 24px;
}

.blr-amenities-step .blr-step-heading h3 {
    margin: 0 0 5px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.blr-amenities-step .blr-step-heading p {
    margin: 0;
    color: #6b7280;
}


/* =========================================================
   AMENITY SELECTION INFORMATION
========================================================= */

.blr-amenities-selection-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 15px 18px;
    border: 1px solid #e6eaf0;
    border-radius: 10px;
    background: #fafbfc;
}

.blr-amenities-selection-info > div:first-child {
    min-width: 0;
}

.blr-amenities-selection-info > div:first-child strong {
    display: block;
    margin-bottom: 3px;
    color: #111827;
    font-size: 15px;
}

.blr-amenities-selection-info > div:first-child span {
    display: block;
    color: #6b7280;
    font-size: 13px;
}

.blr-selected-amenities-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex: 0 0 auto;
    white-space: nowrap;
    color: #0d6efd;
}

.blr-selected-amenities-count strong {
    font-size: 20px;
    line-height: 1;
}

.blr-selected-amenities-count span {
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   AMENITIES GRID
========================================================= */

.blr-amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
    margin: 0;
}


/* =========================================================
   AMENITY CARD
========================================================= */

.blr-amenity-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 155px;
    margin: 0;
    padding: 22px 12px 18px;
    border: 1px solid #e1e6ed;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.blr-amenity-card:hover {
    border-color: #b9cdf0;
    background: #f8fbff;
    box-shadow: 0 5px 16px rgba(22, 103, 229, .07);
    transform: translateY(-1px);
}

.blr-amenity-card.blr-amenity-selected {
    border-color: #1267e5;
    background: #f4f8ff;
    box-shadow: 0 0 0 1px rgba(18, 103, 229, .08);
}


/* Hide the browser checkbox but keep it functional */

.blr-amenity-card > input.blr_amenity {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}


/* =========================================================
   CUSTOM CHECKBOX
========================================================= */

.blr-amenity-checkbox {
    position: absolute;
    top: 11px;
    right: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #cbd3df;
    border-radius: 50%;
    background: #fff;
    transition: all .2s ease;
}

.blr-amenity-check {
    display: block;
    opacity: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transform: scale(.7);
    transition: all .2s ease;
}

.blr-amenity-card.blr-amenity-selected .blr-amenity-checkbox {
    border-color: #1267e5;
    background: #1267e5;
}

.blr-amenity-card.blr-amenity-selected .blr-amenity-check {
    opacity: 1;
    transform: scale(1);
}


/* =========================================================
   AMENITY ICON
   IMPORTANT: prevents giant SVG icons
========================================================= */

.blr-amenity-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    margin: 4px auto 13px;
    color: #1457b8;
    line-height: 1;
    overflow: hidden;
}

.blr-amenity-icon svg {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 34px !important;
    overflow: visible;
    stroke: currentColor;
}


/* =========================================================
   AMENITY LABEL
========================================================= */

.blr-amenity-content {
    display: block;
    width: 100%;
    min-width: 0;
}

.blr-checkbox-label {
    display: block;
    width: 100%;
    margin: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: break-word;
}


/* =========================================================
   AMENITIES NOTE
========================================================= */

.blr-amenities-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 24px;
    padding: 15px 18px;
    border: 1px solid #dce7f8;
    border-radius: 10px;
    background: #f6f9fe;
}

.blr-amenities-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: #1267e5;
}

.blr-amenities-note-icon svg {
    display: block;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
}

.blr-amenities-note strong {
    display: block;
    margin-bottom: 3px;
    color: #1f2937;
    font-size: 14px;
}

.blr-amenities-note p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .blr-wizard-container {
        margin: 25px auto;
    }

    .blr-progress {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .blr-card {
        padding: 30px;
    }

    .blr-gallery-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .blr-amenities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 767px) {

    .blr-wizard-container {
        margin: 20px auto;
        padding: 0 10px;
    }

    .blr-header h2 {
        font-size: 30px;
    }

    .blr-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .blr-card {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .blr-row {
        flex-direction: column;
        gap: 0;
    }

    .blr-gallery-heading h2 {
        font-size: 24px;
    }

    .blr-main-image-upload,
    .blr-upload-placeholder {
        min-height: 220px;
    }

    .blr-main-image-preview {
        height: 260px;
    }

    .blr-gallery-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .blr-amenities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .blr-amenity-card {
        min-height: 140px;
        padding: 20px 8px 15px;
    }

    .blr-amenity-icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }

    .blr-amenity-icon svg {
        width: 31px !important;
        height: 31px !important;
        min-width: 31px !important;
        min-height: 31px !important;
        max-width: 31px !important;
        max-height: 31px !important;
    }

    .blr-amenities-selection-info {
        align-items: flex-start;
    }

    .blr-footer,
    .blr-actions,
    .blr-step-actions,
    .blr-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .blr-footer button,
    .blr-actions button,
    .blr-step-actions button,
    .blr-form-actions button,
    .blr-step-actions .btn {
        width: 100%;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .blr-progress {
        grid-template-columns: 1fr 1fr;
    }

    .blr-card {
        padding: 20px 14px;
    }

    .blr-gallery-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .blr-amenities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .blr-amenity-card {
        min-height: 132px;
        padding: 18px 6px 13px;
    }

    .blr-checkbox-label {
        font-size: 12px;
    }

    .blr-amenities-selection-info {
        flex-direction: column;
        gap: 10px;
    }
}