.custom-category-parent {
  font-size: 1.125rem; /* équivalent text-lg */
  font-weight: 700; /* équivalent font-bold */
  color: #f97316; /* équivalent text-orange-500 */
}

.custom-searchbar-box {
  background: #fafbfb;
  border-radius: 12px;
  box-shadow: 0 2px 8px #d2d4d9;
  padding: 2rem 1rem 1.5rem 1rem;
  margin: 1.5rem auto;
  max-width: 75rem;
}

.custom-searchbar-box2 {
  background: #ff6b35;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem 1rem 1.5rem 1rem;
  margin: 1.5rem auto;
  max-width: 75rem;
}

.custom-searchbar-title {
  color: #f97316;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
  font-size: 1.0rem;
}

.custom-searchbar-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 1.5rem;
}

.custom-searchbar-input {
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 1rem;
  padding: 0 1rem;
  height: 48px;
  outline: none;
  transition: border 0.2s;
  border-right: none;
  min-width: 0;
  flex: 1 1 0;
}
.custom-searchbar-input:focus {
  border-color: #f97316;
  z-index: 1;
}
.custom-searchbar-left {
  border-radius: 8px 0 0 8px;
}
.custom-searchbar-input:last-of-type {
  border-right: 1px solid #e5e7eb;
}
.custom-searchbar-btn {
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  width: 56px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.custom-searchbar-btn:hover {
  background: #ea580c;
}
@media (max-width: 448px) {
  .custom-searchbar-box {
    padding: 1rem;
  }
}
@media (max-width: 448px) {
  .custom-searchbar-form {
    flex-direction: column;
    gap: 0.5rem;
  }
  .custom-searchbar-input,
  .custom-searchbar-btn {
    border-radius: 8px;
    border-right: 1px solid #e5e7eb;
    margin-bottom: 0;
    padding: 0.5rem;
    width: 100%;
    min-width: 0;
  }
  .custom-searchbar-btn {
    border-radius: 8px;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* CSS custom pour le switch display mode */

.custom-searchbar-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1.2rem;
    gap: 1rem;
    align-content: stretch;
    flex-wrap: wrap;
    
  
  
  
  
  
}
@media (max-width: 448px) {
  .custom-searchbar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Switch display mode (reprend ton CSS custom déjà fourni) */
.custom-display-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
}
.custom-switch-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.custom-switch-label-list,
.custom-switch-label-pro {
  font-size: 18px;
  font-weight: bold;
  transition: color 0.2s;
}
.custom-active-list {
  color: #eb6004;
}
.custom-inactive-list {
  color: #4d5460;
}
.custom-active-pro {
  color: #eb6004;
}
.custom-inactive-pro {
  color: #4d5460;
}
.custom-switch {
  position: relative;
  align-items: center;
  width: 3.5rem;
  margin: 0 0.5rem;
}
.custom-switch-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
}
.custom-switch-bg {
  width: 3.5rem;
  height: 1.58rem;
  border-radius: 9999px;
  background: #4b55634a;
  transition: background 0.2s, opacity 0.2s;
}
.custom-switch-input:checked ~ .custom-switch-bg {
  background: #4b55634a;
}
.custom-switch-disabled {
  opacity: 0.5;
}
.custom-switch-dot {
  position: absolute;
  left: 0.25rem;
  top: 0.20rem;
  width: 1.4rem;
  height: 1.3rem;
  background: #f97316;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}
.custom-switch-input:checked ~ .custom-switch-dot {
  transform: translateX(1.3rem);
}


/* Container principal */
.custom-listings-container {
  margin-top: 2.5rem;
}

/* Layout grid et list */
.custom-listings-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

.custom-listings-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .custom-listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 448px) {
  .custom-listings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Styles pour les pubs sponsorisées */
.custom-pub-link {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 130px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  overflow: hidden;
}

.custom-img-container {
  overflow: hidden;
}

.custom-grid-image,
.custom-pub-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.1s;
}

.custom-pub-link:hover .custom-grid-image,
.custom-pub-link:hover .custom-pub-image {
  transform: scale(1.05);
}

.custom-pub-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.custom-sponsored-badge {
  display: inline-block;
  padding: 0.1rem 0.75rem;
  background-color: #ef4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 0.1rem;
}

.custom-pub-title {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0.25rem;
  padding: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

/* Styles pour les annonces normales */
.custom-listing {
  border: 1px solid #e5e7eb;
  position: relative;
  background-color: white;
  border-radius: 0.25rem;
  display: flex;
}

.custom-listing-grid {
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.custom-listing-list {
  flex-direction: column;
  height: 34.5rem;
}

@media (min-width: 448px) {
  .custom-listing-list {
    flex-direction: row;
    height: 14rem;
  }
  .custom-pub-link {
  }
  .pubHeight {
    height: 14rem;
  }
}

/* Images d'annonces */
.custom-listing-img-wrapper {
  overflow: hidden;
  position: relative;
}

.custom-listing-img-grid {
  height: auto;
}

.custom-img-grid {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-img-list {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 448px) {
  .custom-img-list {
    border-right: 1px solid #f3f4f6;
    width: 14rem;
  }
}

/* Badge "À la une" */
.custom-featured-badge {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 0.25rem;
  background-color: #f5f3ff;
  border: 1px solid #e9d5ff;
}

.custom-featured-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: #8b5cf6;
}

.custom-featured-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6d28d9;
}

/* Contenu des annonces */
.custom-listing-content-grid {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.custom-listing-content-list {
  position: relative;
  z-index: 10;
  flex: 1;
  padding: 1rem;
}

.custom-listing-title {
  color: #111827;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

@media (min-width: 448px) {
  .custom-listing-title {
    font-size: 1.25rem;
  }
}

.custom-listing-state {
  font-size: 0.875rem;
  text-transform: capitalize;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

@media (min-width: 448px) {
  .custom-listing-state {
    font-size: 1rem;
  }
}

.custom-listing-price {
  color: #10b981;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

/* Custom fields */
.custom-fields-container {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
}

.custom-field {
  display: flex;
  flex-direction: column;
  text-transform: capitalize;
}

.custom-field-border {
  border-right: 1px solid #e5e7eb;
  padding-right: 0.5rem;
}

.custom-field-padding {
  padding-left: 0.5rem;
}

.custom-field-label {
  color: #6b7280;
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
}
.custom-field-value {
  color: #111827;
  font-weight: 700;
  font-size: 1rem;
}

/* Footer de l'annonce */
.custom-listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  padding: 0.5rem 1rem;
}

.custom-location {
  font-size: 0.875rem;
  text-transform: uppercase;
  color: #4b5563;
}

.custom-view-btn {
  background-color: #f97316;
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.custom-view-btn:hover {
  background-color: #ea580c;
}

/* État vide */
.custom-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  padding: 2.5rem 0;
}

.custom-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.custom-empty-text {
  font-size: 1.25rem;
}

.custom-listing-card {
  display: flex;
  align-items: stretch;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 1.2rem;
  text-decoration: none;
  color: inherit;
  min-height: 120px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.18s;
}

.custom-listing-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.custom-listing-img-container {
  flex: 0 0 160px;
  width: 160px;
  height: 120px;
  min-width: 160px;
  min-height: 120px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid #f3f4f6;
}

.custom-listing-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.custom-listing-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1rem 1rem 1.5rem;
  position: relative;
  justify-content: flex-start;
}

.custom-listing-title {
  font-size: 1.0rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.3rem;
  text-decoration: none;
}

.custom-listing-etat {
  font-size: 0.99rem;
  color: #222;
  margin-bottom: 0.3rem;
}

.custom-listing-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.6rem;
}

.custom-listing-fields {
  display: flex;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.custom-listing-field {
  display: flex;
  flex-direction: column;
}

.custom-listing-field-label {
  font-size: 0.92rem;
  color: #6b7280;
  margin-bottom: 0.1rem;
}

.custom-listing-field-value {
  font-size: 1rem;
  color: #111827;
  font-weight: 700;
}

.custom-listing-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.custom-listing-location {
  font-size: 0.95rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-listing-btn {
  background: #f97316;
  color: #fff;
  padding: 0.38rem 1.2rem;
  border-radius: 5px;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s;
  margin-left: 1rem;
}

.custom-listing-btn:hover {
  background: #ea580c;
}

@media (max-width: 448px) {
  .custom-listing-card {
    flex-direction: column;
    min-height: auto;
  }
  .custom-listing-img-container {
    width: 100%;
    height: 180px;
    min-width: 0;
    max-width: none;
  }
  .custom-listing-content {
    padding: 1rem;
  }
  .custom-listing-fields {
    gap: 0.1rem;
  }
  .custom-listing-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .custom-listing-btn {
    margin-left: 0;
  }
}


.custom-pagination-container {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.custom-pagination-btn {
  padding: 0.5rem 1rem;
  background-color: #f97316;
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.custom-pagination-btn:hover {
  background-color: #ea580c;
}

.custom-pagination-current {
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  color: #374151;
  border-radius: 0.5rem;
}

.custom-listing-pub-row {
  grid-column: 1 / -1 !important;
  width: 100%;
  display: block;
}
.custom-listing {
    position: relative;
    overflow: hidden;
}

.corner-ribbon {
    width: 150px;
    background: #7c3aed;
    position: absolute;
    top: 25px;
    right: -42px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    height: 30px;
    line-height: 30px;
    border-radius: 4px;
    z-index: 20;
    box-shadow: 0 1px 4px rgba(80,0,100,.12);
    letter-spacing: 0.3px;
    pointer-events: none;
    transform: rotate(45deg);
}

.corner-ribbon.top-right {
    right: -42px;
    top: 25px;
    transform: rotate(45deg);
}

.custom-pagination-container {
    display: flex;
    align-items: right;
    gap: 0px;
}

.custom-pagination-page, .custom-pagination-btn {
    padding: 6px 12px;
    border-radius: 0px;
    text-decoration: none;
    color: #2070d1;
    background: #fff;
    border: 1px solid #eee;
    transition: 0.2s;
    font-size: 1.1rem;
}

.custom-pagination-page:hover, .custom-pagination-btn:hover {
    background: #eeeeee;
    color:#2070d1;
}

.custom-pagination-active {
    background: #337ab7;
    color: #fff;
    border: none;
    
}

.custom-pagination-active:hover {
    background: #337ab7;
    color: #fff;
    cursor: default;
}

.custom-pagination-page:first-child,
.custom-pagination-btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.custom-pagination-page:last-child,
.custom-pagination-btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Styles pour l'empty state avec bouton de réinitialisation */
.custom-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 300px;
}

.custom-empty-icon {
    font-size: 64px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.custom-empty-text {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Bouton de réinitialisation des filtres */
.custom-reset-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #ff8000;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-reset-filters-btn:hover {
    background-color: #e67300;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.custom-reset-filters-btn i {
    font-size: 13px;
}

/* Message de location de catégorie */
.custom-rent-message {
    background: linear-gradient(135deg, #ff8000 0%, #ff6600 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.3);
}

.custom-rent-message i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.custom-rent-message p {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 20px 0;
    color: white;
}

.custom-rent-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: white;
    color: #ff8000;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.custom-rent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: #f7fafc;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-empty-state {
        padding: 40px 15px;
    }
    
    .custom-empty-icon {
        font-size: 48px;
    }
    
    .custom-empty-text {
        font-size: 16px;
    }
    
    .custom-reset-filters-btn {
        font-size: 13px;
        padding: 7px 14px;
    }
    
    .custom-rent-message {
        padding: 20px;
        margin: 20px 0;
    }
    
    .custom-rent-message i {
        font-size: 36px;
    }
    
    .custom-rent-message p {
        font-size: 16px;
    }
    
    .custom-rent-btn {
        font-size: 13px;
        padding: 7px 16px;
    }
}

.custom-breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #fff;
}

.custom-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 0;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
}

.custom-breadcrumb-item {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.custom-breadcrumb-item:hover {
    color: #ff6b35;
}

.custom-breadcrumb-item.custom-breadcrumb-active {
    color: #ff6b35;
    font-weight: 400;
}


.custom-breadcrumb-separator {
    margin: 0 8px;
    color: #adb5bd;
    display: inline-flex;
    align-items: center;
}

.custom-breadcrumb-separator i {
    font-size: 10px;
}

@media (max-width: 768px) {
    .custom-breadcrumb {
        font-size: 13px;
        padding: 12px 0;
    }

    .custom-breadcrumb-separator {
        margin: 0 5px;
    }

    .custom-breadcrumb-item {
        gap: 4px;
    }
}

/* ============================================ */
/* MOTEUR 1 : MODE NORMAL (catégories + recherche) */
/* ============================================ */

.search-engine-normal {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 0;
}

/* Select catégories - Moteur 1 */
.engine1-select {
    flex-shrink: 0;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    max-width: 220px;
}

.engine1-select:hover {
    border-color: #ff6b35;
}

.engine1-select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Wrapper recherche - Moteur 1 */
.engine1-search-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Input recherche - Moteur 1 */
.engine1-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.engine1-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bouton recherche - Moteur 1 */
.engine1-btn {
    flex-shrink: 0;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.engine1-btn:hover {
    background: #e55a2b;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.engine1-btn i {
    pointer-events: none;
}

/* Responsive Moteur 1 */
@media (max-width: 768px) {
    .search-engine-normal {
        flex-direction: column;
        gap: 10px;
    }

    .engine1-select {
        width: 100%;
        max-width: none;
        min-width: unset;
        padding: 12px 14px;
        font-size: 14px;
    }

    .engine1-search-wrapper {
        width: 100%;
    }

    .engine1-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .engine1-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .engine1-select {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .engine1-input {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px;
    }

    .engine1-btn {
        padding: 10px 16px;
        border-radius: 6px;
    }
}

/* ============================================ */
/* BOUTON MOBILE CATEGORIES + MODAL            */
/* ============================================ */

/* Cacher le bouton mobile sur desktop, montrer le select */
.engine1-select-mobile {
    display: none;
}

.engine1-select-desktop {
    display: block;
}

/* Sur mobile : cacher le select, montrer le bouton */
@media (max-width: 768px) {
    .engine1-select-desktop {
        display: none !important;
    }

    .engine1-select-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 14px;
        background-color: white;
        color: #333;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        text-align: left;
    }

    .engine1-select-mobile:hover,
    .engine1-select-mobile:focus {
        border-color: #ff6b35;
        outline: none;
    }

    .engine1-select-mobile i {
        color: #999;
        font-size: 12px;
        transition: transform 0.2s;
    }

    .engine1-select-mobile span {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .engine1-select-mobile {
        padding: 10px 12px;
        font-size: 18px;
        border-radius: 6px;
    }
}

/* Modal catégories */
.category-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-modal.active {
    display: flex;
    align-items: flex-end;
    opacity: 1;
}

.category-modal-content {
    background: white;
    width: 100%;
    height: 85vh;
    min-height: 85vh;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.category-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.category-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.category-modal-close {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.category-modal-close:hover {
    background: #e5e7eb;
    color: #1e293b;
}

.category-modal-search {
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    flex-shrink: 0;
}

.category-modal-search i {
    color: #9ca3af;
    font-size: 14px;
}

.category-modal-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
    color: #1e293b;
}

.category-modal-search input::placeholder {
    color: #9ca3af;
}

.category-modal-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.category-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    transition: background 0.15s;
}

.category-modal-parent {
    cursor: default;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 14px;
}

.category-modal-parent:first-child {
    margin-top: 0;
    border-top: none;
}

.category-modal-parent .category-modal-item-text {
    font-weight: 600;
    color: #f97316;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-modal-child {
    cursor: pointer;
}

.category-modal-child .category-modal-item-text {
    color: #374151;
    font-size: 14px;
}

.category-modal-child:hover {
    background: #fff7ed;
}

.category-modal-child:active {
    background: #ffedd5;
}

/* Pas de dropdown - tout est toujours visible */
.category-modal-children {
    display: block;
}

/* Cacher les icônes de toggle (plus besoin) */
.category-modal-toggle {
    display: none;
}

/* ============================================ */
/* MOTEUR 2 : MODE SERVICE RÉGIONAL (select seul) */
/* ============================================ */

.search-engine-regional {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 0;
}

/* Select départements - Moteur 2 */
.engine2-select {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: none;
}

.engine2-select:hover {
    border-color: #ff6b35;
}

.engine2-select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Moteur 2 */
@media (max-width: 768px) {
    .search-engine-regional {
        flex-direction: column;
        gap: 10px;
    }

    .engine2-select {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .engine2-select {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }
}

/* ============================================ */
/* STYLES COMMUNS (rétrocompatibilité) */
/* ============================================ */

/* Override du form pour la version simplifiée */
.custom-searchbar-form:has(.custom-searchbar-select-inline) {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 0;
}

.custom-searchbar-select-inline {
    flex-shrink: 0;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    max-width: 220px;
}

.custom-select-service-regional {
    flex: 1;
    max-width: none;
}

.custom-searchbar-select-inline:hover {
    border-color: #ff6b35;
}

.custom-searchbar-select-inline:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-search-wrapper-single {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-searchbar-input-single {
    flex: 1;
    border: 1px solid #e0e0e0;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-searchbar-input-single:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-searchbar-btn-single {
    flex-shrink: 0;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-searchbar-btn-single:hover {
    background: #e55a2b;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.custom-searchbar-btn-single i {
    pointer-events: none;
}

/* Style pour le breadcrumb de recherche */
.custom-search-breadcrumb {
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-search-breadcrumb-text {
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-search-breadcrumb-text i {
    color: #ff6b35;
    font-size: 18px;
}

.custom-search-keyword {
    font-weight: 700;
    color: #333;
    font-size: 18px;
}

/* Responsive pour la barre de recherche simplifiée */
@media (max-width: 768px) {
    .custom-searchbar-form {
        flex-direction: column;
        gap: 10px;
    }

    .custom-searchbar-select-inline {
        width: 100%;
        max-width: none;
        min-width: unset;
        padding: 12px 14px;
        font-size: 14px;
    }

    .custom-search-wrapper-single {
        width: 100%;
    }

    .custom-searchbar-input-single {
        padding: 12px 14px;
        font-size: 14px;
    }

    .custom-searchbar-btn-single {
        padding: 12px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .custom-searchbar-select-inline {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .custom-searchbar-input-single {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .custom-searchbar-btn-single {
        padding: 10px 16px;
        border-radius: 6px;
    }
}

/* ============================================ */
/* STYLES BOÎTE RÉGIONALE (ORANGE) */
/* ============================================ */

.custom-searchbar-box-regional {
    background: linear-gradient(135deg, #ff7a45 0%, #ff6b35 100%);
    border-radius: 12px;
    padding: 20px 24px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.custom-searchbar-header-regional {
    margin-bottom: 15px;
}

.custom-searchbar-title-regional {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.engine2-select-regional {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.engine2-select-regional:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.engine2-select-regional option[value=""] {
    color: #999;
}

.engine2-select-regional:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .custom-searchbar-box-regional {
        padding: 16px 18px;
        margin: 15px auto;
        border-radius: 10px;
    }

    .custom-searchbar-title-regional {
        font-size: 16px;
    }

    .engine2-select-regional {
        padding: 12px 14px;
        font-size: 14px;
        padding-right: 36px;
        background-position: right 12px center;
    }
}

@media (max-width: 480px) {
    .custom-searchbar-box-regional {
        padding: 14px 12px;
        margin: 12px auto;
        border-radius: 8px;
    }

    .custom-searchbar-title-regional {
        font-size: 15px;
    }

    .engine2-select-regional {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }
}

/* ============================================ */
/* STYLES SUGGESTIONS CATÉGORIES */
/* ============================================ */

.custom-category-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -1px;
}

.custom-suggestions-header {
    padding: 12px 16px;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.custom-suggestion-item {
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.15s;
    border-bottom: 1px solid #f5f5f5;
}

.custom-suggestion-item:last-child {
    border-bottom: none;
}

.custom-suggestion-item:hover {
    background-color: #fff5f0;
}

.custom-suggestion-item.selected {
    background-color: #ffe8dc;
}

.custom-suggestion-item i {
    color: #ff6b35;
    font-size: 16px;
    flex-shrink: 0;
}

.custom-suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-suggestion-keyword {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.custom-suggestion-category {
    color: #ff6b35;
    font-size: 13px;
    font-weight: 500;
}

.custom-category-highlight {
    font-weight: 700;
    color: #333;
}

/* Message aucun résultat */
.custom-no-result-message {
    padding: 20px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #666;
}

.custom-no-result-message i {
    color: #ff6b35;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-no-result-message div {
    flex: 1;
}

.custom-no-result-message p {
    margin: 0;
    line-height: 1.5;
}

.custom-no-result-message p:first-child {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.custom-no-result-message p:last-child {
    font-size: 13px;
    color: #999;
}

/* Scrollbar personnalisée suggestions */
.custom-category-suggestions::-webkit-scrollbar {
    width: 8px;
}

.custom-category-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-category-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.custom-category-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation d'apparition suggestions */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-category-suggestions[style*="display: block"] {
    animation: slideDown 0.2s ease-out;
}

/* ============================================ */
/* STYLES BANNIÈRES SERVICE RÉGIONAL */
/* ============================================ */

/* Ruban Service Pro */
.service-regional-ribbon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* Description preview pour les bannières */
.custom-listing-description-preview {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 8px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Bannières de services régionaux - toujours en mode liste */
.custom-banniere-listing {
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    cursor: default;
    transition: box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
    
    grid-column: 1 / -1;
}

.custom-banniere-listing:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.custom-banniere-img-wrapper {
    width: 26rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid #f3f4f6;
}

.custom-banniere-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-banniere-content {
    flex: 1;
    padding: 1.1rem 4rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    min-width: 0;
    position: relative;
}

.custom-banniere-title {
    font-size: 1.0rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.3rem;
}

.custom-banniere-description {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.4;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    
   -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.custom-banniere-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: auto;
    padding-top: 0.3rem;
}

.custom-banniere-location i {
    color: #ff6b35;
}

/* Responsive bannières */
@media (max-width: 448px) {
    .custom-banniere-listing {
        flex-direction: column;
        height: auto;
        min-height: 280px;
    }

    .custom-banniere-img-wrapper {
        width: 100%;
        height: 280px;
        border-right: none;
        border-bottom: 1px solid #f3f4f6;
    }

    .custom-banniere-content {
        width: 100%;
        padding: 0.8rem;
    }

    .custom-banniere-title {
        font-size: 0.95rem;
    }

    .custom-banniere-description {
        
        line-height: 1.3;
        -webkit-line-clamp: 5;
    }

    .custom-banniere-location {
        font-size: 0.85rem;
    }
}

/* ============================================ */
/* STYLES RESPONSIVE HEADER RECHERCHE */
/* ============================================ */

@media (max-width: 768px) {
    .custom-searchbar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .custom-searchbar-title {
        font-size: 16px;
    }

    .custom-switch-label-list,
    .custom-switch-label-pro {
        font-size: 13px;
    }

    .custom-switch {
        width: 3rem;
    }

    .custom-switch-bg {
        width: 3rem;
        height: 1.4rem;
    }

    .custom-switch-dot {
        width: 1.2rem;
        height: 1.1rem;
        top: 0.15rem;
    }

    .custom-switch-input:checked ~ .custom-switch-dot {
        transform: translateX(1.1rem);
    }
}

@media (max-width: 480px) {
    .custom-searchbar-box {
        padding: 16px 12px;
        margin: 12px auto;
        border-radius: 8px;
    }

    .custom-switch-label-list,
    .custom-switch-label-pro {
        font-size: 12px;
        font-weight: bold;
        
    }
}

/* ============================================ */
/* BOUTON LOCATION RÉGIONALE */
/* ============================================ */

.custom-rent-regional-btn {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.custom-rent-regional-btn:hover {
    background: #e55a2b;
    color: #fff;
}