html[lang="ar"],
html[dir="rtl"],
body.rtl {
    direction: rtl;
    text-align: right;
}

.service-centers-page,
.service-centers-page * {
    direction: rtl;
}

.service-centers-page .form-select,
.service-centers-page .form-control,
.service-centers-page .card,
.service-centers-page .info-window {
    direction: rtl;
    text-align: right;
}.service-centers-wrapper {
    direction: rtl;
}

.service-centers-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-centers-count-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eef3ff;
    color: #477CDB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.service-centers-title-box h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.service-centers-title-box span {
    color: #477CDB;
    font-size: 15px;
}

.service-centers-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.service-filter-btn {
    border: 0;
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-centers-map-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f7f7f7;
}

#serviceCentersMap {
    width: 100%;
    height: 500px;
}

.floating-map-btn {
    position: absolute;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 14px;
    z-index: 5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.floating-map-btn.left {
    left: 20px;
    background: #2f5bea;
    color: #fff;
}

.floating-map-btn.right {
    right: 20px;
    background: #fff;
    color: #2f5bea;
}

.service-centers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-center-item {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.service-center-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.service-center-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef3ff;
    color: #477CDB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-center-meta {
    flex: 1;
}

.service-center-meta h5 {
    margin: 0 0 6px;
    color: #477CDB;
    font-weight: 700;
}

.service-center-meta p {
    margin: 0 0 6px;
}

.service-centers-wrapper {
    width: 100%;
}

.route-filter-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.route-filter-header {
    margin-bottom: 16px;
}

.route-filter-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #1f2b3d;
}

.route-filter-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.route-input-item .form-control {
    height: 48px;
    border-radius: 12px;
    font-size: 15px;
}

.route-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.route-actions .btn {
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 16px;
    white-space: nowrap;
    flex: 1 1 100%;
}

.route-hint {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.service-centers-map-card {
    border-radius: 18px;
    overflow: hidden;
    background: #f8f8f8;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

#serviceCentersMap {
    width: 100%;
    height: 380px;
}

/* Tablet and up */
@media (min-width: 768px) {
    .route-filter-card {
        padding: 20px;
    }

    .route-filter-title {
        font-size: 28px;
    }

    .route-inputs {
        grid-template-columns: 1fr 1fr;
    }

    .route-actions .btn {
        flex: 1 1 calc(50% - 10px);
    }

    #serviceCentersMap {
        height: 500px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .route-actions .btn {
        flex: 0 0 auto;
    }

    #serviceCentersMap {
        height: 600px;
    }
}

.service-centers-wrapper {
    width: 100%;
}

.route-filter-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.route-filter-header {
    margin-bottom: 16px;
}

.route-filter-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #1f2b3d;
}

.route-filter-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.route-input-item .form-control,
.service-centers-filters .form-select {
    height: 48px;
    border-radius: 12px;
    font-size: 15px;
}

.route-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.route-actions .btn {
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 16px;
    white-space: nowrap;
    flex: 1 1 100%;
}

.route-hint {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.service-centers-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    justify-content: center;
}

.service-centers-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-centers-legend i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.service-centers-map-card {
    border-radius: 18px;
    overflow: hidden;
    background: #f8f8f8;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

#serviceCentersMap {
    width: 100%;
    height: 380px;
}

@media (min-width: 768px) {
    .route-filter-card {
        padding: 20px;
    }

    .route-filter-title {
        font-size: 28px;
    }

    .route-inputs {
        grid-template-columns: 1fr 1fr;
    }

    .route-actions .btn {
        flex: 1 1 calc(50% - 10px);
    }

    #serviceCentersMap {
        height: 500px;
    }
}

@media (min-width: 1200px) {
    .route-actions .btn {
        flex: 0 0 auto;
    }

    #serviceCentersMap {
        height: 600px;
    }
}

.charger-types-wrapper {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    background: #fafafa;
}

.charger-types-header {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2b3d;
}

.charger-types-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.charger-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dfe3e8;
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.charger-type-chip img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.charger-type-chip span {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.charger-type-chip.active {
    border-color: #1565C0;
    background: rgba(21, 101, 192, 0.08);
}

.charger-type-chip.all {
    font-weight: 700;
}

.d-none {
    display: none !important;
}