/* =========================================
   DBO LOCATOR
========================================= */

.dbo-locator {
    max-width: 1400px;
    margin: auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111;
}

/* =========================================
   TOP SECTION
========================================= */

.dbo-locator__top {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.dbo-locator__search-group {
    display: flex;
    gap: 12px;
}

.dbo-locator__search-wrapper {
    flex: 1;
    position: relative;
}

.dbo-locator__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e6e6e6;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dbo-locator__input:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.dbo-locator__search-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

/* =========================================
   AUTOCOMPLETE
========================================= */

.dbo-locator__autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
}

.dbo-locator__autocomplete-section {
    padding: 4px 0;
}

.dbo-locator__autocomplete-section + .dbo-locator__autocomplete-section {
    border-top: 1px solid #e6e6e6;
}

.dbo-locator__autocomplete-label {
    padding: 8px 16px 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
}

.dbo-locator__autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    transition: background 0.15s ease;
}

.dbo-locator__autocomplete-item:hover {
    background: #f5f5f5;
}

.dbo-locator__autocomplete-item--city {
    font-weight: 500;
}

.dbo-locator__autocomplete-item--clinic {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.dbo-locator__autocomplete-sublabel {
    font-size: 12px;
    color: #888;
}

.dbo-locator__autocomplete-item--google {
    color: #666;
}

.dbo-locator__autocomplete-count {
    background: #111;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    font-weight: 600;
}

/* =========================================
   FILTERS
========================================= */

.dbo-locator__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dbo-locator__filters-toggle {
    display: none;
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.dbo-locator__filters-modal-header {
    display: none;
}

.dbo-locator__filters-modal-box {
    display: contents;
}

.dbo-locator__filters-apply {
    display: none;
}

.dbo-locator__filter-group {
    display: block;
}
.dbo-locator__filter-label {
    display: none;
}

.dbo-locator__select,
.dbo-locator__geo-btn {
    padding: 12px 14px;
    border: 1px solid #e6e6e6;
    background: #fff;
    font-size: 13px;
}

.dbo-locator__geo-btn {
    cursor: pointer;
    min-height: 44px;
}

/* =========================================
   FEEDBACK
========================================= */

.dbo-locator__feedback {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

/* =========================================
   VIEW TOGGLE
========================================= */

.dbo-locator__view-toggle {
    display: none;
    margin-bottom: 16px;
}

.dbo-locator__view-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #e6e6e6;
    background: #fff;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dbo-locator__view-btn--active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* =========================================
   LAYOUT
========================================= */

.dbo-locator__content {
    display: flex;
    gap: 50px;
    align-items: stretch;
}

.dbo-locator__map-detail {
    display: none;
}

.dbo-locator__list-wrapper {
    flex: 0 0 50%;
    max-height: 700px;
    overflow-y: auto;
    padding-right: 10px;
}

.dbo-locator__map-wrapper {
    flex: 0 0 50%;
    height: 520px;
}

.dbo-locator__map {
    width: 100%;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* =========================================
   CARD
========================================= */

.dbo-card {
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #e6e6e6;
    color: #111;
}

.dbo-card--hover {
    background: #d9d9d9;
    box-shadow: 0 0 0 2px #999;
}

.dbo-card__header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}
.dbo-card__title{
    max-width:70%;
}
.dbo-card__title h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px;
}

.dbo-card__doctor {
    font-size: 15px;
    margin: 0 0 5px;
}

.dbo-card__address {
    font-size: 14px;
    margin: 0;
}

.dbo-card__distance {
    font-size: 13px;
    color: #666;
    margin: 4px 0 0;
    font-weight: 500;
}

/* ===== Right Side ===== */

.dbo-card__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
}

/* ===== Prime Logo ===== */

.dbo-prime-logo {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-bottom: 6px;
}

.dbo-prime-logo__svg {
    width: 120px;
    height: auto;
}

/* ===== Chevron ===== */

.dbo-card__chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #444;
    border-bottom: 2px solid #444;
    transform: rotate(45deg);
    transition: all 0.25s ease;
}

.dbo-card.active .dbo-card__chevron {
    transform: rotate(-135deg);
    border-color: #fff;
}

/* ===== Card Body (collapsed) ===== */

.dbo-card__body {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* ===== Card Active State ===== */

.dbo-card.active {
    background: #000;
    color: #fff;
}

.dbo-card.active .dbo-card__distance {
    color: #bbb;
}

.dbo-card.active .dbo-card__body {
    max-height: 500px;
    padding: 20px;
}

.dbo-card.active .dbo-card__header {
    border-bottom: 1px solid #333;
}

.dbo-card.active a {
    color: #fff;
}

/* ===== Card Info ===== */

.dbo-card__info p {
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dbo-card__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== Actions ===== */

.dbo-card__actions {
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.dbo-card__actions a {
    font-size: 14px;
    text-decoration: underline;
}

.dbo-card__cta-primary {
    display: inline-block;
    background: #f4b223;
    color: #000 !important;
    text-decoration: none !important;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.dbo-card__cta-primary:hover {
    background: #e5a210;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {
    .dbo-locator {
        padding: 16px;
    }

    .dbo-locator__map-wrapper {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .dbo-locator__filters-toggle {
        display: block;
    }

    .dbo-locator__filters-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        align-items: center;
        justify-content: center;
    }

    .dbo-locator__filters-modal--open {
        display: flex;
    }

    .dbo-locator__filters-modal-box {
        background: #000;
        width: calc(100% - 48px);
        max-width: 340px;
        display: flex;
        flex-direction: column;
    }

    .dbo-locator__filters-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        border-bottom: 1px solid #333;
    }

    .dbo-locator__filters-modal-title {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
    }

    .dbo-locator__filters-modal-close {
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        line-height: 1;
    }

    .dbo-locator__filters {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 24px;
    }

    .dbo-locator__filter-group {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #333;
        padding: 16px 0;
    }

    .dbo-locator__filter-label {
        display: block;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .dbo-locator__select {
        width: 100%;
        min-height: 44px;
        background: transparent;
        color: #fff;
        border: 1px solid #444;
        padding: 12px 14px;
        font-size: 14px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
    }

    .dbo-locator__select option {
        background: #000;
        color: #fff;
    }

    .dbo-locator__geo-btn {
        width: 100%;
        min-height: 44px;
        background: transparent;
        color: #fff;
        border: 1px solid #444;
        margin: 16px 0 8px;
    }

    .dbo-locator__filters-apply {
        display: block;
        padding: 16px;
        margin: 16px 24px 20px;
        background: #fff;
        color: #000;
        border: none;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 1px;
        cursor: pointer;
        text-transform: uppercase;
    }

    .dbo-card__header {
        padding: 20px;
    }

    .dbo-card__header h3 {
        font-size: 15px;
    }

    .dbo-card__body {
        padding: 0 20px;
    }

    .dbo-card.active .dbo-card__body {
        padding: 0 20px 20px 20px;
    }

    .dbo-card__cta-primary {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .dbo-card__actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .dbo-locator__view-toggle {
        display: flex;
    }

    .dbo-locator__content {
        flex-direction: column;
    }

    .dbo-locator__content--view-list .dbo-locator__map-wrapper {
        display: none;
    }

    .dbo-locator__content--view-map .dbo-locator__list-wrapper {
        display: none;
    }

    .dbo-locator__list-wrapper {
        width: 100%;
        max-height: none;
    }

    .dbo-locator__map-wrapper {
        height: 420px;
    }

    .dbo-locator__content--view-map {
        height: 700px;
    }

    .dbo-locator__content--view-map .dbo-locator__map-wrapper {
        height: 500px;
    }

    .dbo-locator__map-detail {
        display: none;
        margin-top: 0;
    }

    .dbo-locator__map-detail--visible {
        display: block;
    }

    .dbo-locator__map-detail .dbo-card {
        margin-bottom: 0;
    }
}
