.services-by-city-widget * {
    box-sizing: border-box;
}

.services-city-title {
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Select2 Styles */
.select2-container--default .select2-selection--single {
    height: 48px;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #ff7d5f;
    box-shadow: none;
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
    color: #555;
    padding-left: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    width: 30px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-width: 6px 5px 0 5px;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #888 transparent;
    border-width: 0 5px 6px 5px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.select2-container--open .select2-dropdown--below {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.select2-search--dropdown {
    padding: 10px;
    background-color: #f5f5f5;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #ff7d5f;
    outline: none;
}

.select2-results__option {
    padding: 10px 15px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #ff7d5f;
    color: white;
}

.select2-container--default .select2-results__group {
    padding: 12px 15px;
    font-weight: 600;
    font-size: 15px;
    background-color: #f0f0f0;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select2-results__option[aria-selected=true] {
    background-color: #e9f7fe;
    color: #ff7d5f;
}

/* Zone de résultats */
.services-results {
    margin-top: 25px;
    min-height: 100px;
}

.services-results > p {
    color: #666;
    font-size: 15px;
    text-align: center;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #eee;
}

.services-results-header h4,
.practitioners-header h4 {
    margin-bottom: 18px;
    font-size: 1.2em;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    font-weight: 600;
}

/* Message de chargement */
.services-results p:contains("Chargement en cours...") {
    text-align: center;
    color: #666;
    font-style: italic;
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    padding: 15px;
    border-radius: 6px;
}

/* Pas de résultats */
.no-services-found,
.no-practitioners-found {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 6px;
    color: #6B7280;
    font-style: italic;
    margin: 20px 0;
}

/* Grille des services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.service-card {
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.05);
    border-radius: 25px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card .service-image {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.service-card .service-image img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card .service-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card .service-title {
    color: #4B5563;
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.service-card .service-excerpt{
    flex-grow: 1;
}

.service-card .service-excerpt,
.practitioner-excerpt{
    color: #6B7280;
    font-size: 16px;
    margin: 10px 0;
    overflow: hidden;
    display: -webkit-box;
}


.practitioners-count {
    font-size: 14px;
    color: #27ae60;
    font-weight: 600;
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.practitioners-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2327ae60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
    vertical-align: middle;
}

.practitioners-number {
    vertical-align: middle;
}

/* Bouton prendre rendez-vous */
.appointment-button {
    display: block;
    margin-top: auto;
    padding: 12px;
    text-align: center;
    border-radius: 25px;
    border: 1px solid #FF7D5F;
    background: #FF7D5F;
    width: 100%;
    color: #fff;
    transition: all .3s;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.appointment-button:hover {
    background: transparent;
    color: #FF7D5F;
    transition: all .3s;
}

/* Styles pour la liste des praticiens */
.practitioners-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.back-to-services-button {
    margin-right: 15px;
    padding: 10px 16px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: #4B5563;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.back-to-services-button:before {
    content: '';
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'%3E%3C/line%3E%3Cpolyline points='12 19 5 12 12 5'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    transition: transform 0.3s ease;
}

.back-to-services-button:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
    color: #FF7D5F;
}

.back-to-services-button:hover:before {
    transform: translateX(-3px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF7D5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'%3E%3C/line%3E%3Cpolyline points='12 19 5 12 12 5'%3E%3C/polyline%3E%3C/svg%3E");
}

.practitioners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.practitioner-card {
    display: flex;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practitioner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.practitioner-image {
    width: 120px;
    min-width: 120px;
    overflow: hidden;
}

.practitioner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.practitioner-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.practitioner-name {
    color: #4B5563;
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.practitioner-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.book-appointment-button {
    display: inline-block;
    padding: 8px 15px;
    text-align: center;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.book-appointment-button {
    background-color: #FF7D5F;
    color: #fff!important;
    border: 1px solid #FF7D5F;
}
.book-appointment-button:hover {
    background-color: transparent;
    color: #FF7D5F!important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .practitioners-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .services-city-title {
        font-size: 1.3em;
    }

    .select2-container--default .select2-selection--single {
        height: 44px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 28px;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 44px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .practitioners-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-to-services-button {
        margin-bottom: 10px;
    }

    .practitioner-image {
        width: 100%;
        height: 200px;
    }
}

.elementor-editor-active .services-by-city-widget {
    border: 1px dashed #ddd;
}