/* =========================================
   Business Services Listing Plugin Styles
   Exact replica of reference design
   ========================================= */

.bsl-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* Header */
.bsl-header {
    margin-bottom: 28px;
}
.bsl-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.2;
}
.bsl-main-subtitle {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    max-width: 760px;
}

/* Controls Row */
.bsl-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}
.bsl-search-wrap {
    display: flex;
    justify-content: flex-end;
}
.bsl-search {
    width: 240px;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.bsl-search:focus {
    border-color: #c0392b;
}

/* Filter Tabs */
.bsl-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bsl-tab {
    padding: 7px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 13.5px;
    cursor: pointer;
    transition: all .18s;
    color: #333;
    line-height: 1.4;
    white-space: nowrap;
}
.bsl-tab:hover {
    border-color: #c0392b;
    color: #c0392b;
}
.bsl-tab.active {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
    font-weight: 600;
}

/* Content Layout */
.bsl-content-area {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.bsl-services-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Service Card */
.bsl-service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 22px 26px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.bsl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}
.bsl-card-title-wrap {
    flex: 1;
}
.bsl-service-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px;
    line-height: 1.3;
}
.bsl-service-subtitle {
    font-size: 13px;
    color: #777;
}
.bsl-fee-wrap {
    text-align: right;
    flex-shrink: 0;
}
.bsl-min-fee-label {
    font-size: 14px;
    color: #333;
}
.bsl-min-fee-label strong {
    font-weight: 700;
}
.bsl-fee-note {
    font-size: 11.5px;
    color: #888;
    margin-top: 2px;
    max-width: 220px;
    line-height: 1.4;
}

/* Completion Row */
.bsl-completion-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}
.bsl-completion-label {
    font-weight: 600;
    color: #444;
    white-space: nowrap;
}
.bsl-completion-value {
    color: #555;
}

/* Requirements */
.bsl-requirements {
    margin-bottom: 18px;
}
.bsl-req-heading {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}
.bsl-req-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bsl-req-list li {
    font-size: 13.5px;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}
.bsl-check {
    color: #2980b9;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Card Footer */
.bsl-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}
.bsl-btn-call {
    padding: 8px 22px;
    border: 1.5px solid #c0392b;
    background: #fff;
    color: #c0392b;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all .18s;
}
.bsl-btn-call:hover {
    background: #c0392b;
    color: #fff;
}
.bsl-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border: 1.5px solid #25d366;
    border-radius: 4px;
    background: #25d366;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s;
    cursor: pointer;
}
.bsl-btn-whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff;
}

/* No results */
.bsl-no-results {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 40px;
    text-align: center;
    color: #888;
}

/* =========================================
   SIDEBAR
   ========================================= */
.bsl-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bsl-sidebar-box {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    padding-bottom: 16px;
}
.bsl-sidebar-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    border-radius: 0 4px 4px 0;
    margin: 14px 0 8px;
}
.bsl-badge-red {
    background: #c0392b;
    color: #fff;
}
.bsl-badge-navy {
    background: #1a2b4a;
    color: #fff;
}

/* Top Picks */
.bsl-top-picks-list,
.bsl-discounts-list {
    padding: 0 14px;
}
.bsl-top-pick-item,
.bsl-discount-item {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.bsl-top-pick-item:last-child,
.bsl-discount-item:last-child {
    border-bottom: none;
}
.bsl-top-pick-icon,
.bsl-discount-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f5d7d5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    overflow: hidden;
}
.bsl-top-pick-icon img,
.bsl-discount-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bsl-default-icon {
    color: #c0392b;
}
.bsl-top-pick-name,
.bsl-discount-name {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
    line-height: 1.3;
}
.bsl-top-pick-links,
.bsl-discount-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.bsl-top-pick-link,
.bsl-discount-link {
    font-size: 12.5px;
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.bsl-top-pick-link:hover,
.bsl-discount-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Content Blocks (rich text from editor) */
.bsl-content-block {
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}
.bsl-content-block:first-child {
    border-top: none;
    padding-top: 0;
}
.bsl-content-block h2 { font-size: 17px; font-weight: 700; color: #1a1a1a; margin: 14px 0 6px; }
.bsl-content-block h3 { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 12px 0 5px; }
.bsl-content-block h4 { font-size: 14px; font-weight: 700; color: #333; margin: 10px 0 4px; }
.bsl-content-block p  { margin: 0 0 10px; }
.bsl-content-block p:last-child { margin-bottom: 0; }
.bsl-content-block ul, .bsl-content-block ol { margin: 0 0 10px 20px; padding: 0; }
.bsl-content-block li { margin-bottom: 4px; }
.bsl-content-block strong { font-weight: 700; color: #222; }
.bsl-content-block em { font-style: italic; }
.bsl-content-block a { color: #2980b9; text-decoration: none; }
.bsl-content-block a:hover { text-decoration: underline; }
.bsl-content-block blockquote { border-left: 3px solid #c0392b; margin: 10px 0; padding: 6px 14px; background: #fdf6f5; color: #555; font-style: italic; }
.bsl-content-block hr { border: none; border-top: 1px solid #eee; margin: 14px 0; }
.bsl-content-block img { max-width: 100%; height: auto; border-radius: 4px; margin: 6px 0; }

/* Loading spinner */
.bsl-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}
.bsl-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #eee;
    border-top-color: #c0392b;
    border-radius: 50%;
    animation: bsl-spin .7s linear infinite;
}
@keyframes bsl-spin { to { transform: rotate(360deg); } }

/* Modal */
.bsl-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.bsl-modal-overlay.open {
    display: flex;
}
.bsl-modal {
    background: #fff;
    border-radius: 8px;
    padding: 30px 28px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    position: relative;
}
.bsl-modal h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #1a1a1a;
}
.bsl-modal p {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px;
}
.bsl-modal input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.bsl-modal input:focus {
    outline: none;
    border-color: #c0392b;
}
.bsl-modal-submit {
    width: 100%;
    padding: 10px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
}
.bsl-modal-submit:hover {
    background: #a93226;
}
.bsl-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}
.bsl-modal-success {
    text-align: center;
    padding: 10px 0;
}
.bsl-modal-success svg {
    color: #27ae60;
    margin-bottom: 10px;
}
.bsl-modal-success h3 {
    color: #27ae60;
    justify-content: center;
}

/* Responsive */
@media (max-width: 860px) {
    .bsl-content-area {
        flex-direction: column;
    }
    .bsl-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .bsl-sidebar-box {
        flex: 1;
        min-width: 200px;
    }
    .bsl-card-header {
        flex-direction: column;
        gap: 8px;
    }
    .bsl-fee-wrap {
        text-align: left;
    }
    .bsl-fee-note {
        max-width: 100%;
    }
}
@media (max-width: 560px) {
    .bsl-main-title { font-size: 24px; }
    .bsl-search { width: 100%; }
    .bsl-search-wrap { justify-content: stretch; }
    .bsl-service-card { padding: 16px; }
    .bsl-completion-row { flex-direction: column; gap: 4px; }
}
