/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

.row.installer-row {
    position: relative;
    padding: 40px;
    background: #fff;
}

.installer-badge {
    display: flex;
    width: max-content;
    min-height: 44px;
    padding: 12px 24px;
    align-items: center;
    gap: 10px;
    color: var(--Neutral-White, #fff);
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--Brand-Bright-red, #EF2323);
}

.installer-badge.specialised-installer {
    background: var(--Brand-Blue, #00263E);
}

.installer-badge.default-installer {
    background: #D9D9D9;
    color: #4A4F53;
}

.installer-row.installer-specialised {
    border: 1.5px solid var(--Brand-Blue, #00263E) !important;
}

.installer-row.installer-master {
    border: 1.5px solid var(--Brand-Bright-red, #EF2323) !important;
}

.installer-row.installer-default {
    border: 2px solid #F3F6F9 !important;
}

.installer-row:hover {
    background: #fff;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

.row.installer-row .system-label {
    color: var(--Neutral-NT20, #4A4F53);
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: underline;
}

/* =============================================
   INSTALLER SEARCH BAND
   ============================================= */

.installer-search-band {
    background: #F5F8FA;
    padding: 16px 0;
    margin-bottom: 40px;
}

.installer-search-inner {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.installer-search-inner * {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0;
    padding: 0;
}

.installer-search-band form {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    flex-wrap: nowrap;
}

.installer-search-band form label {
    flex: 1 1 auto;
    min-width: 0;
}

.installer-search-band input[type="search"],
.installer-search-band input[type="text"] {
    width: 100%;
    height: 45px;
    padding: 0 20px;
    border: 1px solid #E2E7EC !important;
    background: #fff !important;
    color: #1B1E20 !important;
    font-family: Assistant, sans-serif;
    font-size: 16px;
}

.installer-search-band input::placeholder {
    color: #8E9499;
}

.installer-search-band button,
.installer-search-band input[type="submit"] {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 120px;
    height: 45px;
    padding: 0 22px !important;
    background: #EF2323 !important;
    color: #fff !important;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    justify-content: center;
}

.installer-search-band button:hover,
.installer-search-band input[type="submit"]:hover {
    background: #D91F1F !important;
}

/* =============================================
   INSTALLER FILTER SIDEBAR
   ============================================= */

.filter-container {
    background: linear-gradient(180deg, #F5F8FA 0%, rgba(245, 248, 250, 0) 100%);
}

.filter-by {
    margin-bottom: 8px;
    color: #B0B9C0;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.filter-heading {
    margin-bottom: 18px;
    color: #1B1E20;
    font-family: Poppins, sans-serif;
    font-size: 24px;
    font-weight: 600;
}

.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-list li {
    padding-bottom: 15px;
    border-bottom: 1px solid #E2E7EC;
}

.filter-list li + li {
    margin-top: 15px;
}

.filter-list li:last-child {
    border-bottom: 0;
}

.filter-list li a {
    display: block;
    color: #8E9499;
    text-decoration: none;
    font-family: Assistant, sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.filter-list li a:hover {
    color: #4A4F53;
    text-decoration: underline;
}

.filter-list li.active a,
.filter-list li.current-menu-item a,
.filter-list li.current_page_item a {
    color: #4A4F53 !important;
    text-decoration: underline !important;
}

.installer-sidebar .filter-list {
    margin: 0 !important;
}

.filter-radio-group {
    margin: 0;
    padding: 0;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E2E7EC;
    cursor: pointer;
}

.filter-radio + .filter-radio {
    margin-top: 15px;
}

.filter-radio:last-child {
    border-bottom: 0;
}

.filter-radio input[type="radio"] {
    flex-shrink: 0;
    margin: 0;
    accent-color: #4A4F53;
}

.filter-radio span {
    color: #8E9499;
    font-family: Assistant, sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.filter-radio:hover span,
.filter-radio.active span {
    color: #4A4F53;
    text-decoration: underline;
}

.installer-sidebar .filter-radio-group {
    margin: 0 !important;
}

/* =============================================
   TOOLTIP
   ============================================= */

.installer-tooltip {
    position: absolute;
    z-index: 99999;
    max-width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transition: all 0.18s ease;
    pointer-events: auto;
}

.installer-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.installer-tooltip__title {
    color: #EF2323;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.installer-tooltip__content {
    color: #4A4F53;
    font-size: 14px;
    line-height: 1.4;
}

/* =============================================
   MOBILE
   ============================================= */

@media screen and (max-width: 768px) {
    .row.installer-row {
        padding: 20px;
        padding-top: 40px;
    }

    .installer-badge {
        padding: 8px 16px;
        font-size: 11px;
    }

    .installer-search-band {
        padding: 16px 0;
        margin-bottom: 24px;
    }

    .installer-search-band form {
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
    }

    .installer-search-band form label {
        flex: 1 1 auto;
        min-width: 0;
    }

    .installer-search-band input[type="search"],
    .installer-search-band input[type="text"] {
        width: 100%;
        height: 54px;
        font-size: 14px;
        padding: 0 14px;
    }

    .installer-search-band button,
    .installer-search-band input[type="submit"] {
        width: auto !important;
        min-width: 96px;
        height: 54px;
        padding: 0 14px !important;
        font-size: 12px;
    }

    .filter-heading {
        font-size: 24px;
    }

    .filter-list li a {
        font-size: 16px;
    }

    .filter-radio span {
        font-size: 16px;
    }

    .filter-list li.active a,
    .filter-list li.current-menu-item a,
    .filter-list li.current_page_item a {
        color: #4A4F53 !important;
        text-decoration: underline !important;
    }
}

@media (max-width: 767px) {
    .installer-row {
        position: relative;
        display: flex;
        flex-direction: column;
        padding-top: 44px;
    }

    .installer-badge {
        position: absolute;
        top: 0;
        left: 0;
        max-width: calc(100% - 12px);
        font-size: 10px;
        line-height: 1;
        padding: 10px 12px;
    }

    .installer-image,
    .installer-info {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .installer-image {
        margin-bottom: 14px;
        text-align: left;
    }

    .installer-image img {
        max-width: 140px;
        height: auto;
    }

    .installer-info {
        display: block;
        flex: unset;
    }

    .installer-name,
    .installer-address,
    .installer-phone,
    .installer-email,
    .installer-website,
    .installer-system {
        display: block;
        width: 100%;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .installer-name a,
    .installer-website a,
    .installer-email a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .installer-row .col-md-4,
    .installer-row .col-md-8 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 479px) {
    .installer-row {
        padding-top: 40px;
    }

    .installer-badge {
        font-size: 9px;
        padding: 9px 10px;
    }

    .installer-image img {
        max-width: 120px;
    }

    .installer-name {
        font-size: 16px;
        line-height: 1.25;
    }

    .installer-address,
    .installer-phone,
    .installer-email,
    .installer-website,
    .installer-system {
        font-size: 14px;
        line-height: 1.4;
    }

    .installer-search-band form {
        gap: 6px;
    }

    .installer-search-band input[type="search"],
    .installer-search-band input[type="text"] {
        height: 50px;
        font-size: 13px;
        padding: 0 12px;
    }

    .installer-search-band button,
    .installer-search-band input[type="submit"] {
        min-width: 88px;
        height: 50px;
        padding: 0 12px !important;
        font-size: 11px;
    }
}