.col-md-8.col-sm-8:has(.edit-listing-form-container) {
    width: 100%;
}

.edit-listing-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-group-wrapper {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.white-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.section-title-reseaux-sociaux {
    margin-bottom: 10px;
    padding: 10px 0;
    width: 100%;
}

.upload-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.upload-box {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}

.preview-area {
    margin-bottom: 10px;
    min-height: 100px;
}

.preview-area img {
    max-width: 100%;
    height: auto;
}

.business-hours .day-hours {
    margin-bottom: 15px;
}

/* reseaux sociaux */

.social-media-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 30px 0;
}

.social-media-section h4 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.social-media-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.social-icon.facebook { background: #3b5998; }
.social-icon.twitter { background: #1da1f2; }
.social-icon.linkedin { background: #0077b5; }
.social-icon.instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-icon.youtube { background: #ff0000; }
.social-icon.video { background: #4CAF50; }

.social-media-item .form-control {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.social-media-item .form-control:focus {
    border-color: #2d7fe0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(45,127,224,0.1);
}

/* upload médias */
.media-upload-section {
    display: grid;
    gap: 30px;

    .section-title {
        margin: 0;
        padding: 0;
    }
}

.upload-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.upload-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.upload-container {
    position: relative;
}

.upload-zone {
    position: relative;
    border: 2px dashed #ddd;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-zone i {
    font-size: 24px;
    color: #666;
    margin-bottom: 5px;
}

.upload-zone p {
    margin: 0 0 5px 0;
    color: #333;
}

.upload-zone .file-info {
    font-size: 0.9em;
    color: #666;
}

.upload-zone:hover {
    border-color: #2d7fe0;
    background: #f0f7ff;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2d7fe0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-size: 14px;
}

.upload-btn:hover {
    background: #2468b8;
}

.upload-btn i {
    font-size: 16px;
    margin-top: 5px;
}

.image-preview .image-item,
.gallery-preview .image-item {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.image-item img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}

.remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.3s;
}

.remove-image:hover {
    background: #cc0000;
}

.remove-image i {
    font-size: 12px;
}

.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.location-select2-container {
    z-index: 9999;
}

/* Styles pour Select2 */
.select2-container {
    width: 100% !important;
    z-index: 1056 !important;
}

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

.select2-search--dropdown {
    padding: 8px;
    background: #fff;
}

.select2-search--dropdown .select2-search__field {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.select2-results__options {
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.select2-results__option {
    padding: 8px 12px;
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.select2-results__option--highlighted[aria-selected] {
    background-color: #f0f0f0;
    color: #333;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 38px;
    padding: 2px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 3px;
    padding: 3px 20px 3px 8px;
    position: relative;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.location-wrapper {
    position: relative;
}

#location-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.location-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.location-item:hover {
    background-color: #f8f9fa;
}

.location-item.parent {
    font-weight: bold;
    background-color: #f8f9fa;
}

.location-item.child-1 {
    padding-left: 24px;
}

.location-item.child-2 {
    padding-left: 36px;
}

.selected-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    min-height: 30px;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
}

.remove-location {
    background: none;
    border: none;
    color: #666;
    margin-left: 8px;
    padding: 0 4px;
    cursor: pointer;
    font-size: 16px;
}

.remove-location:hover {
    color: #dc3545;
}

.hidden-select {
    display: none;
}

/* Styles pour la scrollbar */
.location-dropdown::-webkit-scrollbar {
    width: 6px;
}

.location-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.location-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.location-dropdown::-webkit-scrollbar-thumb:hover {
    background: #666;
}