/* ── Cartes annonces : photos plein cadre, marges blanches, perf ── */
.aq-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 387 / 237;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.aq-card-media__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.aq-card-slide {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
}

.aq-card-swiper-wrap .swiper,
.aq-card-swiper-wrap .swiper-wrapper,
.aq-card-swiper-wrap .swiper-slide {
  height: 100% !important;
}

.aq-card-swiper-wrap .project_img,
.aq-card-swiper-wrap .aq-card-slide-img {
  padding: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
}

/* Pas de double padding sur les images legacy */
.verticle_card .aq-card-media #verticle_card_img,
.horizontal_card .aq-card-media .card-img {
  border-radius: 8px !important;
  padding: 0 !important;
  aspect-ratio: unset !important;
}

.aq-card-photo {
  object-fit: cover !important;
}

.aq-card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.verticle_card:hover .aq-card-nav,
.horizontal_card:hover .aq-card-nav,
.aq-card-swiper-wrap:focus-within .aq-card-nav {
  opacity: 1;
}

.aq-card-nav--prev {
  left: 12px;
}

.aq-card-nav--next {
  right: 12px;
}

.aq-card-swiper .swiper-pagination {
  left: 10px !important;
  right: auto !important;
  width: auto !important;
  bottom: 8px !important;
}

.aq-card-swiper .swiper-pagination-bullet-active {
  background: #dc3545;
}

/* Filigrane plus discret sur les cartes */
.verticle_card .verticle_main_card .verticle_card_img_div::before,
.horizontal_card .image_div::before {
  opacity: 0.07 !important;
}

/* ── Galerie détail mobile ── */
.property-gallery-mobile {
  display: none;
  margin-bottom: 20px;
  padding: 0 12px;
  background: #fff;
}

.property-gallery--desktop {
  display: grid;
}

.property-gallery__slide {
  height: 280px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.property-gallery-swiper {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.property-gallery-swiper .property-gallery__image {
  border-radius: 8px;
}

.property-gallery__see-all--mobile {
  position: static;
  margin-top: 12px;
  text-align: center;
}

#nprogress .bar {
  background: #dc3545 !important;
}

@media (max-width: 991px) {
  .property-gallery-mobile {
    display: block;
  }

  .property-gallery--desktop {
    display: none !important;
  }

  .property-gallery__item--half,
  .property-gallery__item--full {
    min-height: 240px;
    max-height: 320px;
    overflow: hidden;
  }

  .property-gallery__image {
    max-height: 100%;
    object-fit: cover;
  }
}

/* Calculateur hypothécaire — page détail annonce */
.mortage_cal_details {
  display: block;
  width: 100%;
  margin-top: 16px;
}

.mortage_cal_details--mobile {
  display: block;
}

@media (min-width: 992px) {
  .mortage_cal_details--mobile {
    display: none;
  }
}

.mortage_cal_details .mortgage_form_card {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 576px) {
  .aq-card-nav {
    opacity: 1;
  }
}

/* Onglet Photos wilayas — tableau de bord (à côté Catégories) */
.aq-category-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.aq-category-subtab {
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #333;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aq-category-subtab.active {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.aq-wilaya-admin-panel {
  padding: 8px 0 24px;
  text-align: center;
}

.aq-wilaya-admin-intro {
  max-width: 760px;
  margin: 0 auto 20px;
}

.aq-wilaya-admin-intro h4 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #1a1f2e;
}

.aq-wilaya-admin-intro p {
  margin: 0 0 6px;
  color: #555;
  font-size: 0.95rem;
}

.aq-wilaya-admin-hint {
  font-size: 0.85rem !important;
  color: #888 !important;
}

.aq-wilaya-search {
  max-width: 360px;
  margin: 0 auto 16px;
}

.aq-wilaya-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  justify-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.aq-wilaya-card {
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 12px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  min-height: 320px;
  height: auto;
  contain: layout style size;
  content-visibility: auto;
}

.aq-wilaya-card--ok {
  border-color: rgba(220, 53, 69, 0.35);
}

.aq-wilaya-card__preview {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  min-height: 0;
  max-height: none;
  border-radius: 10px;
  overflow: hidden;
  background: #e8e8e8;
  flex-shrink: 0;
}

.aq-wilaya-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 0;
}

.aq-wilaya-card__busy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.aq-wilaya-card__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
}

.aq-wilaya-card__name {
  font-size: 13px;
  text-align: center;
  line-height: 1.2;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aq-wilaya-card__drop {
  border: 1px dashed #dc3545;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  color: #dc3545;
  cursor: pointer;
  background: #fff;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  transition: background 0.15s ease;
}

.aq-wilaya-card__drop.active {
  background: #fff5f5;
}

.aq-wilaya-card__drop.is-busy {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

/* Connexion admin — style écran de connexion (capture utilisateur) */
.aq-wilaya-login {
  display: flex;
  justify-content: center;
  padding: 32px 16px 48px;
  min-height: 420px;
}

.aq-wilaya-login__card {
  width: 100%;
  max-width: 400px;
}

.aq-wilaya-login__title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}

.aq-wilaya-login__subtitle {
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

.aq-wilaya-login__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aq-wilaya-login__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  color: #111;
  background: #fff;
  box-sizing: border-box;
}

.aq-wilaya-login__input::placeholder {
  color: #9ca3af;
}

.aq-wilaya-login__input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.aq-wilaya-login__password-wrap {
  position: relative;
}

.aq-wilaya-login__password-wrap .aq-wilaya-login__input {
  padding-right: 44px;
}

.aq-wilaya-login__eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.aq-wilaya-login__submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: #f97316;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.aq-wilaya-login__submit:hover:not(:disabled) {
  background: #ea580c;
}

.aq-wilaya-login__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.aq-wilaya-login__hint {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.45;
}

#addProp_tabs .MuiTab-root:first-of-type {
  color: #dc3545;
  font-weight: 700;
}

#addProp_tabs .MuiTabs-flexContainer {
  justify-content: center;
}

/* Bandeau orange supérieur — design premium (desktop + mobile) */
.new-header-dark-top-bar,
.aq-top-bar-extra {
  display: block !important;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 80px at 12% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(
      120deg,
      #9a3412 0%,
      #c2410c 22%,
      #ea580c 45%,
      #f97316 62%,
      #e11d48 100%
    ) !important;
  color: #fff !important;
  padding: 12px 0 !important;
  box-shadow:
    0 6px 22px rgba(194, 65, 12, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  min-height: 50px;
}

/* Reflet animé discret */
.aq-top-bar-extra::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.16) 48%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 70%
  );
  background-size: 240% 100%;
  animation: aq-top-bar-sheen 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes aq-top-bar-sheen {
  0%,
  55% {
    background-position: 130% 0;
  }
  85%,
  100% {
    background-position: -60% 0;
  }
}

/* Liseré lumineux dégradé en bas du bandeau */
.aq-top-bar-extra::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 224, 178, 0.85) 18%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 224, 178, 0.85) 82%,
    transparent 100%
  );
}

.new-header-dark-top-bar .new-header-top-bar-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.new-header-contact-info,
.new-header-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aq-top-bar-lang {
  position: relative;
  z-index: 1300;
}

/* Bouton langue bandeau */
.new-header-language-selector .aq-lang-toggle,
.new-header-language-selector .dropdown-toggle {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-weight: 600;
  min-height: 34px;
  color: #fff !important;
  box-shadow: none !important;
}

.new-header-language-selector .aq-lang-toggle::after,
.new-header-language-selector .dropdown-toggle::after {
  margin-left: 0.45em;
}

/* Menu langues — rendu dans body (portal), hors bandeau orange */
.aq-lang-portal-menu {
  display: block !important;
  position: fixed !important;
  z-index: 10050 !important;
  width: auto !important;
  min-width: 156px !important;
  max-width: calc(100vw - 16px) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
  padding: 6px 0 !important;
  background: #fff !important;
  overflow: visible !important;
  margin: 0 !important;
  list-style: none;
  box-sizing: border-box;
}

.aq-lang-portal-menu .dropdown-item {
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  text-align: left;
  cursor: pointer;
}

.aq-lang-portal-menu .dropdown-item .perent_link,
.aq-lang-portal-menu .dropdown-item .links {
  color: #1a1a1a !important;
  padding: 10px 16px !important;
  border: none !important;
  font-weight: 600 !important;
  display: block;
  width: 100%;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.aq-lang-portal-menu .dropdown-item:hover .perent_link,
.aq-lang-portal-menu .dropdown-item:hover .links,
.aq-lang-portal-menu .dropdown-item.active .perent_link,
.aq-lang-portal-menu .dropdown-item.active .links {
  background: rgba(232, 93, 4, 0.12) !important;
  color: #c2410c !important;
}

.aq-top-bar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.new-header-dark-top-bar .new-header-contact-item,
.new-header-dark-top-bar .new-header-follow-text,
.new-header-dark-top-bar .dropdown-toggle,
.new-header-dark-top-bar #dropdown-basic01 {
  color: #fff !important;
}

.new-header-dark-top-bar .new-header-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.new-header-dark-top-bar .new-header-contact-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.new-header-dark-top-bar .new-header-icon {
  background-color: rgba(255, 255, 255, 0.22) !important;
  border-radius: 50%;
  padding: 4px;
}

.new-header-dark-top-bar .new-header-language-selector .dropdown-toggle {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-weight: 600;
  min-height: 34px;
}

@media (max-width: 1199px) {
  .new-header-dark-top-bar,
  .aq-top-bar-extra {
    display: block !important;
    padding: 6px 0 !important;
  }
}

/* Mobile : une seule ligne — email | langue | téléphone */
@media (max-width: 767px) {
  .aq-top-bar-extra {
    padding: 6px 0 calc(6px + env(safe-area-inset-top)) !important;
  }

  .aq-top-bar-extra .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .new-header-top-bar-content {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  .new-header-contact-info,
  .new-header-top-right {
    display: contents;
  }

  .aq-top-bar-email {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0;
  }

  .aq-top-bar-lang {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0;
    width: auto;
  }

  .aq-top-bar-phone {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin: 0;
  }

  .aq-top-bar-tel2,
  .aq-top-bar-social,
  .aq-top-bar-divider {
    display: none !important;
  }

  .aq-top-bar-text {
    display: none !important;
  }

  .new-header-contact-item {
    padding: 8px 10px;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    border-radius: 12px;
  }

  .new-header-contact-item .new-header-icon {
    margin: 0;
  }

  .new-header-language-selector .dropdown-toggle,
  .new-header-language-selector #dropdown-basic01,
  .new-header-language-selector .aq-lang-toggle {
    font-size: 0.72rem !important;
    padding: 7px 10px !important;
    min-height: 40px;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .new-header-language-selector .dropdown {
    width: auto;
  }

  .aq-lang-portal-menu {
    min-width: 148px !important;
    max-width: min(220px, calc(100vw - 16px)) !important;
  }

  .aq-lang-portal-menu .dropdown-item .links {
    font-size: 0.9rem !important;
    padding: 12px 16px !important;
  }
}

/* PC / tablette paysage : version bureau (pas menu hamburger mobile) */
@media screen and (min-width: 992px) {
  .navbar.header > .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
  }

  .new-header-dark-top-bar,
  .aq-top-bar-extra {
    display: block !important;
  }

  .header-right-section {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }

  .mobile-menu-button,
  #hamburg {
    display: none !important;
  }

  .header-left-section {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    min-width: 0 !important;
  }

  .new-header-top-bar-content,
  .new-header-contact-info,
  .new-header-top-right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px 20px !important;
  }

  .new-header-contact-info {
    justify-content: flex-start !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .new-header-top-right {
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
  }

  /* Contacts en pilules « verre » premium */
  .new-header-dark-top-bar .new-header-contact-item {
    padding: 6px 14px 6px 7px !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 13.5px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  }

  .new-header-dark-top-bar .new-header-contact-item:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-1px) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 6px 14px rgba(0, 0, 0, 0.18);
    color: #fff !important;
  }

  .new-header-dark-top-bar .new-header-icon {
    width: 26px !important;
    height: 26px !important;
    padding: 5px !important;
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.16)
    ) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  }

  .new-header-dark-top-bar .new-header-follow-text {
    font-size: 12.5px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    opacity: 0.92;
  }

  .new-header-dark-top-bar .new-header-social-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  }

  .new-header-dark-top-bar .new-header-social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  }

  /* Sélecteur de langue en pilule « verre » */
  .new-header-language-selector .dropdown-toggle,
  .new-header-language-selector #dropdown-basic01,
  .new-header-language-selector .aq-lang-toggle {
    max-width: none !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    overflow: visible !important;
    text-overflow: unset !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 6px 16px !important;
    min-height: 34px !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.25s ease, transform 0.25s ease !important;
  }

  .new-header-language-selector .dropdown-toggle:hover,
  .new-header-language-selector #dropdown-basic01:hover,
  .new-header-language-selector .aq-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    transform: translateY(-1px);
  }

  /* Séparateurs verticaux adoucis */
  .new-header-dark-top-bar .vertical-divider,
  .new-header-dark-top-bar .aq-top-bar-divider {
    width: 1px;
    height: 22px;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(255, 255, 255, 0.5),
      transparent
    );
  }

  .aq-top-bar-text {
    display: inline !important;
  }

  .aq-top-bar-social,
  .aq-top-bar-tel2,
  .aq-top-bar-divider {
    display: flex !important;
  }

  /* Pas de sélecteur d'emplacement dans la barre (comme la version d'origine) */
  .location-selector-wrapper {
    display: flex !important;
    align-items: center !important;
  }

  .location-selector-button {
    display: none !important;
  }

  .aq-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  /* Boutons arrondis (pilule) — comme la version d'origine */
  .aq-nav-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 40px !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
  }

  .aq-nav-btn--primary {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
  }

  .aq-nav-btn--primary:hover,
  .aq-nav-btn--primary:focus {
    background: #dc3545 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.45) !important;
    transform: translateY(-1px);
  }

  .aq-nav-btn--outline {
    background: transparent !important;
    color: #dc3545 !important;
    border: 2px solid #dc3545 !important;
  }

  .aq-nav-btn--outline:hover,
  .aq-nav-btn--outline:focus {
    background: #dc3545 !important;
    color: #fff !important;
  }

  .ai-header-icon-btn {
    padding: 8px 12px !important;
  }

  .mobile-headline-view {
    display: none !important;
  }

  .aq-section-head,
  .aq-categories-head {
    display: flex !important;
  }
}

/* ── En-têtes sections accueil (unifié) ── */
.aq-section-head,
.aq-categories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.aq-section-head__title,
.aq-categories-head__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.aq-section-head__btn,
.aq-categories-head__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: #1f2937;
  color: #fff !important;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.aq-section-head__btn:hover,
.aq-categories-head__btn:hover {
  background: #dc3545;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ── Blocs sections accueil (séparation visuelle) ── */
.aq-home-sections {
  display: flex;
  flex-direction: column;
}

.aq-section-block {
  position: relative;
  width: 100%;
}

.aq-section-block:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(92%, 1120px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15, 23, 42, 0.1) 20%,
    rgba(15, 23, 42, 0.1) 80%,
    transparent 100%
  );
  pointer-events: none;
}

.aq-section-block--muted {
  background: #f3f4f6;
}

.aq-section-block--white {
  background: #ffffff;
}

/* ── Sections accueil (cartes propriétés) ── */
.aq-categories-section,
.aq-home-section {
  background: transparent !important;
  padding: 48px 0 56px !important;
}

.aq-categories-section .container,
.aq-home-section .container {
  max-width: 1200px;
}

.aq-home-section .aq-section-swiper,
.aq-home-section .feature-section-cards,
.aq-home-section .nearbycity-swiper-slider,
.aq-home-section .loading_data_section,
.aq-home-section .aq-categories-slider {
  padding-bottom: 8px;
}

.aq-home-section .verticle_card {
  height: 100%;
  cursor: pointer;
}

.aq-home-section .verticle_main_card,
.aq-home-section .card.verticle_main_card {
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  background: #fff !important;
}

.aq-home-section .verticle_card:hover .verticle_main_card {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(220, 53, 69, 0.12) !important;
}

.aq-home-section .verticle_card_img_div,
.aq-home-section .aq-property-img-wrap {
  border-radius: 16px 16px 0 0 !important;
}

.aq-home-section .like_tag {
  background: #fff !important;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.aq-home-section .feature_body_title,
.aq-home-section .verticle_card .feature_body_title {
  color: #dc3545 !important;
  font-weight: 600;
}

.aq-home-section .swiper-pagination-bullet-active {
  background: #dc3545 !important;
}

.aq-home-section .city_card_link {
  display: block;
  height: 100%;
  text-decoration: none !important;
}

.aq-home-section .city_card {
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.aq-home-section .city_card_link:hover .city_card {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(220, 53, 69, 0.12) !important;
}

.aq-home-section .city_card .city_details .arrow {
  color: #dc3545 !important;
}

/* Visite 360° (Pannellum) — pas de bloc blanc vide si image absente */
#prop-360-view #virtual-view.aq-panorama-view--loading {
  height: auto !important;
  min-height: 120px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 12px;
}

#prop-360-view #virtual-view.aq-panorama-view--ready {
  height: 360px !important;
  min-height: 320px !important;
  position: relative;
  background: #1a1f2e;
  border-radius: 12px;
  overflow: hidden;
}

#prop-360-view #panorama {
  width: 100%;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
}

#prop-360-view #virtual-view.aq-panorama-view--loading #panorama {
  display: none !important;
  min-height: 0;
}

.aq-panorama-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  color: #6b7280;
  font-size: 0.95rem;
}

.aq-panorama-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(220, 53, 69, 0.2);
  border-top-color: #dc3545;
  border-radius: 50%;
  animation: aq-panorama-spin 0.8s linear infinite;
}

@keyframes aq-panorama-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 991px) {
  .aq-section-head,
  .aq-categories-head {
    display: none !important;
  }

  .mobile-headline-view {
    display: block !important;
  }

  .aq-categories-section,
  .aq-home-section {
    padding: 28px 0 36px !important;
  }

  .aq-section-block:not(:last-child)::after {
    width: 88%;
  }
}

@media (min-width: 992px) {
  .mobile-headline-view {
    display: none !important;
  }
}

.aq-categories-slider {
  margin: 0 -4px;
}

.aq-categories-swiper {
  padding-bottom: 36px !important;
}

/* Logo dashboard : jamais de cadre beige / image cassée */
.dashboard_logo,
.MuiDrawer-root .dashboard_logo {
  width: 120px !important;
  max-width: 140px !important;
  height: 40px !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.aq-cat-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
  height: 100%;
}

.aq-cat-card {
  display: flex;
  flex-direction: column;
  height: 300px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.aq-cat-card-link:hover .aq-cat-card {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  border-color: rgba(0, 0, 0, 0.1);
}

.aq-cat-card__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: linear-gradient(145deg, #fde8e8 0%, #f5f5f5 45%, #ececec 100%);
}

.aq-cat-card--has-photo .aq-cat-card__media {
  background: #f3f4f6;
}

.aq-cat-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block !important;
}

.aq-cat-card__badge {
  display: none !important;
}

.aq-cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(0, 0, 0, 0.22) 100%
  );
  pointer-events: none;
}

.aq-cat-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  flex: 0 0 auto;
  min-height: 72px;
  border-top: 1px solid #f1f5f9;
  z-index: 2;
}

.aq-cat-card__title {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 700;
  color: #111827 !important;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.aq-cat-card-link:hover .aq-cat-card__title {
  color: #dc3545 !important;
}

.aq-cat-card__count {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.aq-cat-card__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.aq-cat-card-link:hover .aq-cat-card__arrow {
  background: #dc3545;
  color: #fff;
}

.aq-cat-card--skeleton .aq-cat-card__footer {
  border-top: 1px solid #eee;
}

@media (max-width: 991px) {
  .aq-categories-section {
    padding: 28px 0 36px !important;
  }

  .aq-cat-card {
    height: 280px;
    min-height: 280px;
  }

  .aq-cat-card__footer {
    min-height: 68px;
    padding: 12px 14px;
  }
}

/* Accueil sans slider API — garde la barre de recherche visible */
#mainheroImage.aq-hero-no-slider {
  min-height: 280px;
  padding: 48px 0 32px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
}

#mainheroImage.aq-hero-no-slider .search-tab-wrapper,
#mainheroImage.aq-hero-no-slider #search-tab {
  position: relative;
  z-index: 2;
}

/* Bannière « Toutes les propriétés » — liste des wilayas à gauche */
#breadcrumb .aq-breadcrumb-hero {
  position: relative;
  z-index: 1;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 15px 28px;
  box-sizing: border-box;
}

#breadcrumb .aq-breadcrumb-wilayas {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(58%, 560px);
  padding: 18px 14px;
  display: flex;
  align-items: center;
  pointer-events: auto;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 75%,
    transparent 100%
  );
}

#breadcrumb .aq-breadcrumb-wilayas__grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px 7px;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

#breadcrumb .aq-breadcrumb-wilayas__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 5px 9px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

#breadcrumb .aq-breadcrumb-wilayas__chip:hover {
  background: rgba(220, 53, 69, 0.92);
  border-color: rgba(220, 53, 69, 1);
  color: #fff;
  transform: translateY(-1px);
}

#breadcrumb .aq-breadcrumb-wilayas__code {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.85;
  min-width: 1.2em;
}

#breadcrumb .aq-breadcrumb-hero__title {
  position: relative;
  top: auto !important;
  text-align: left;
  margin: 0;
  padding-left: min(60%, 580px);
  padding-right: 12px;
  font-size: 26px;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

@media (max-width: 991px) {
  #breadcrumb .aq-breadcrumb-wilayas {
    width: 100%;
    max-height: 62%;
    align-items: flex-start;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.35) 100%
    );
  }

  #breadcrumb .aq-breadcrumb-hero__title {
    padding-left: 12px;
    padding-top: 8px;
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  #breadcrumb .aq-breadcrumb-wilayas__chip {
    font-size: 10px;
    padding: 4px 7px;
  }

  #breadcrumb .aq-breadcrumb-hero__title {
    font-size: 18px;
  }
}

/* ── Mobile : cohérence globale ── */
@media (max-width: 991px) {
  #mobile-headlines.aq-mobile-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 4px;
  }

  .aq-mobile-headline__title {
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .aq-mobile-headline__link {
    flex-shrink: 0;
    text-decoration: none !important;
  }

  .aq-mobile-headline__arrow.mobileViewArrow {
    width: 40px;
    height: 40px;
    outline: none !important;
    border: 0;
    border-radius: 12px;
    background: #1f2937;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.25);
  }

  .aq-mobile-headline__arrow.mobileViewArrow:hover {
    background: #dc3545;
  }

  .aq-section-swiper {
    margin-left: -4px;
    margin-right: -4px;
  }

  #mainheroImage.aq-hero-no-slider {
    min-height: 240px;
    padding: 28px 0 24px;
  }

  #searchcard {
    height: auto !important;
    min-height: auto !important;
    padding: 12px !important;
  }

  #search-tab,
  .search-tab-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 575px) {
  .aq-cat-card {
    height: 240px;
    min-height: 240px;
  }

  #breadcrumb .aq-breadcrumb-hero {
    min-height: 340px;
    padding-bottom: 20px;
  }

  #breadcrumb .aq-breadcrumb-wilayas {
    max-height: 55%;
  }
}

.ai-assistant-backdrop {
  z-index: 100001 !important;
}

/* Page FAQ complète */
.aq-faqs-page {
  padding: 40px 0 56px;
}

.aq-faqs-page__intro {
  margin-bottom: 28px;
}

.aq-faqs-page__intro .title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.aq-faqs-page__intro .desc {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

.aq-faqs-page__accordion .accordion-item {
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb !important;
}

@media (max-width: 575px) {
  .aq-wilaya-grid {
    grid-template-columns: 1fr;
  }

  .aq-wilaya-card {
    max-width: 100%;
  }

  .aq-wilaya-card__preview {
    min-height: 220px;
  }
}

/* Bannière wilaya (Alger, Blida…) sur liste propriétés */
#breadcrumb .aq-breadcrumb-wilaya {
  position: relative;
  z-index: 1;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 18px 36px;
  box-sizing: border-box;
  text-align: center;
}

#breadcrumb .aq-breadcrumb-wilaya__content {
  max-width: min(640px, 94%);
  margin: 0 auto;
  text-align: center;
}

#breadcrumb .aq-breadcrumb-wilaya__title {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

#breadcrumb .aq-breadcrumb-wilaya__subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

[dir="rtl"] #breadcrumb .aq-breadcrumb-wilaya,
[dir="rtl"] #breadcrumb .aq-breadcrumb-wilaya__content {
  align-items: center;
  text-align: center;
}

@media (max-width: 991px) {
  #breadcrumb .aq-breadcrumb-wilaya {
    min-height: 320px;
    padding-bottom: 28px;
  }

  #breadcrumb .aq-breadcrumb-wilaya__title {
    font-size: clamp(26px, 7vw, 34px);
  }
}

/* Barre résultats (compteur + badges catégories + vue liste/grille) */
.all-prop-rightside .aq-results-card {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
  margin-bottom: 18px;
}

.all-prop-rightside .aq-results-card #all-prop-headline-card {
  padding: 14px 16px !important;
}

.aq-results-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.aq-results-stats__left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.aq-results-stats__count {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  text-transform: none !important;
}

.aq-results-stats__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aq-results-stats__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f3f6;
  border: 1px solid #e5e9ef;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #374151;
  text-transform: none !important;
}

.aq-results-stats__badge-label {
  color: #4b5563;
}

.aq-results-stats__badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #cf334d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.aq-results-stats__actions {
  flex-shrink: 0;
}

.aq-results-stats__toggle,
.aq-results-stats__toggle#layout-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d7dce3 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #374151 !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.aq-results-stats__toggle:hover {
  background: #f8fafc !important;
  border-color: #cf334d !important;
  color: #cf334d !important;
}

[dir="rtl"] .aq-results-stats {
  flex-direction: row-reverse;
}

[dir="rtl"] .aq-results-stats__left {
  flex-direction: row-reverse;
}

@media (max-width: 575px) {
  .aq-results-stats {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .aq-results-stats__left {
    width: 100%;
  }

  .aq-results-stats__actions {
    margin-inline-start: auto;
  }
}

/* ── Date d'ajout sur les cartes d'annonces ── */
.aq-card-posted {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #8a93a0;
}

.aq-card-posted svg {
  color: #dc3545;
  flex-shrink: 0;
}

/* ── Tableau de bord : bouton Ajouter une propriété (remplace les 3 points) ── */
#dashboard_add {
  background: #dc3545 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 9px 20px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
  white-space: nowrap;
}

#dashboard_add:hover {
  box-shadow: 0 4px 14px rgba(220, 53, 69, 0.45) !important;
  transform: translateY(-1px);
  color: #fff !important;
}

/* ── Bureau PC : priorité maximale (évite version téléphone sur écran large) ── */
@media screen and (min-width: 992px) {
  /* Pleine largeur : logo extrême gauche, boutons extrême droite,
     sections et footer étalés bord à bord */
  .aq-top-bar-extra .container,
  .new-header-dark-top-bar .container,
  .navbar.header > .container,
  .aq-home-section .container,
  .aq-categories-section .container,
  #main_citySection .container,
  #footer .container,
  .aq-footer .container,
  #all-prop-containt .all-properties.container,
  .search_content.container,
  #all-prop-deatil-containt .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Détails propriété : galerie étalée à gauche,
     contact admin + calculateur en colonne collée à droite */
  #prop-all-deatils-cards {
    align-items: flex-start;
  }

  #prop-all-deatils-cards > .col-lg-3 {
    position: sticky;
    top: 90px;
  }

  #prop-all-deatils-cards .property_owner_details {
    margin-bottom: 20px;
  }

  #prop-all-deatils-cards .mortage_cal_details {
    margin-top: 0;
  }

  /* Grande image d'accueil : pleine largeur, sans bandes beiges */
  .slider-container.aq-hero-stage .awssld {
    width: 100% !important;
    height: clamp(280px, 38vw, 600px) !important;
    min-height: 280px !important;
    max-height: 600px !important;
    aspect-ratio: auto !important;
  }

  .slider-container.aq-hero-stage .awssld__content > img,
  .slider-container.aq-hero-stage .awssld__content > img.aq-hero-img {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    animation: none !important;
    transform: none !important;
  }

  .navbar.header > .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .new-header-dark-top-bar,
  .aq-top-bar-extra {
    display: block !important;
  }

  .header-right-section {
    display: flex !important;
  }

  .mobile-menu-button,
  #hamburg {
    display: none !important;
  }

  .header-left-section {
    width: auto !important;
    max-width: none !important;
  }

  .aq-top-bar-text {
    display: inline !important;
  }

  .aq-top-bar-social,
  .aq-top-bar-tel2 {
    display: flex !important;
  }

  .mobile-headline-view {
    display: none !important;
  }

  /* Tous les en-têtes de section version bureau restent visibles sur PC
     (certains anciens CSS les cachaient jusqu'à 1199px) */
  .aq-section-head,
  .aq-categories-head,
  .feature_header,
  .prop_header,
  .prop_city_header,
  .most_fav_header,
  .article_headline,
  .project_header,
  .personalize_feed_header,
  #browse-by-agents {
    display: flex !important;
  }

  /* Pages articles : colonne contenu + barre latérale côte à côte (pas empilées) */
  #all-articles-content #main-content .col-lg-9,
  #all-articles-deatil-content #main-content .col-lg-9 {
    width: 75% !important;
  }

  #all-articles-content #main-content .col-lg-3,
  #all-articles-deatil-content #main-content .col-lg-3 {
    width: 25% !important;
  }
}

/* --- Grille wilayas (sous bannière, FR/AR/EN) --- */
.aq-wilaya-picker {
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf1;
  padding: 20px 0 24px;
}

.aq-wilaya-picker__head {
  margin-bottom: 12px;
}

.aq-wilaya-picker__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
}

.aq-wilaya-picker__subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #5c6578;
}

.aq-wilaya-picker__search {
  max-width: 420px;
  margin-bottom: 14px;
  border-radius: 10px;
  min-height: 44px;
}

.aq-wilaya-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}

.aq-wilaya-picker__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #1a1a2e;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.aq-wilaya-picker__chip:hover {
  border-color: #dc3545;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.aq-wilaya-picker__chip--active {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.aq-wilaya-picker__code {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.75;
  min-width: 1.4em;
}

.aq-wilaya-picker__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[dir="rtl"] .aq-wilaya-picker__chip {
  flex-direction: row-reverse;
  text-align: right;
}

@media (max-width: 576px) {
  .aq-wilaya-picker__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .aq-wilaya-picker__chip {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

/* Fiche annonce — titre + date lisibles sur mobile */
@media (max-width: 767px) {
  #breadcrumb #breadcrumb-content {
    top: 88px !important;
    padding-bottom: 8px;
  }

  #breadcrumb .prop-name {
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }

  #breadcrumb .prop-types {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }

  #breadcrumb .prop-Location {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  #breadcrumb .prop-sell-time {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 11px !important;
    margin-top: 6px;
  }

  #breadcrumb .prop-sell-time span {
    font-size: 11px !important;
    white-space: nowrap;
  }

  #breadcrumb .right-side-content > span {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  #breadcrumb .left-side-content {
    gap: 6px;
  }
}

@media (max-width: 424px) {
  #breadcrumb .prop-name {
    font-size: 14px !important;
    -webkit-line-clamp: 4;
  }

  #breadcrumb .right-side-content > span {
    font-size: 16px !important;
  }
}

/* Recherche intelligente + top bar sans téléphone */
.aq-top-bar-phone,
.aq-top-bar-tel2,
a.aq-top-bar-phone,
a.aq-top-bar-tel2 {
  display: none !important;
}

.aq-smart-search {
  position: relative;
  width: min(720px, 100%);
  margin: 12px auto 8px;
  padding: 0 16px;
  z-index: 20;
}

.aq-smart-search__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 60px;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aq-smart-search__bar:focus-within {
  border-color: #e85d04;
  box-shadow: 0 6px 24px rgba(232, 93, 4, 0.18);
}

.aq-smart-search__icon {
  color: #e85d04;
  flex-shrink: 0;
}

.aq-smart-search__input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  min-width: 0;
}

.aq-smart-search__input::placeholder {
  color: #8a8a8a;
  font-weight: 500;
}

.aq-smart-search__filters {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff4ec;
  color: #e85d04;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.aq-smart-search__submit {
  border: 0;
  border-radius: 40px;
  background: #e85d04;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.aq-smart-search__suggest {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  max-height: 280px;
  overflow: auto;
}

.aq-smart-search__suggest button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: #222;
}

.aq-smart-search__suggest button:hover {
  background: #fff4ec;
}

.aq-smart-search__suggest-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #e85d04;
  min-width: 72px;
}

@media (max-width: 640px) {
  .aq-smart-search__submit {
    padding: 10px 12px;
    font-size: 13px;
  }
  .aq-smart-search {
    margin-top: 4px;
  }
}
