/* Correctifs live Aqaryoo — Algérie / header / recherche */
.new-header-dark-top-bar a[href^="tel:"],
.new-header-dark-top-bar .aq-top-bar-phone,
.new-header-dark-top-bar .aq-top-bar-tel2,
a.aq-top-bar-phone,
a.aq-top-bar-tel2 {
  display: none !important;
}

#nearbyCityProperties,
section#nearbyCityProperties,
[id*="nearby_properties"],
.aq-home-section:has(h2),
.section_header:has([class*="nearby"]) {
  /* titre géré en JS si besoin */
}

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

.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);
}

.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__submit {
  border: 0;
  border-radius: 40px;
  background: #c62828;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}

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

/* Masquer Résidentiel / Commercial dans le panneau filtres */
.nsp-section.aq-hide-rescom,
.aq-hide-rescom {
  display: none !important;
}

.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,.12);
  max-height: 280px;
  overflow: auto;
  display: none;
}
.aq-smart-search__suggest li { margin: 0; }
.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;
}
.aq-smart-search__suggest button:hover { background: #fdecea; }
.aq-smart-search__suggest-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #c62828;
  min-width: 72px;
}

/* SWAL orange Aqaryoo */
.Swal-confirm-buttons,
.swal2-confirm {
  background-color: #e85d04 !important;
  border-color: #e85d04 !important;
  color: #fff !important;
}
.Swal-cancel-buttons,
.swal2-cancel {
  background-color: #fff !important;
  border: 2px solid #e85d04 !important;
  color: #e85d04 !important;
}
.swal2-icon.swal2-warning,
.swal2-icon.swal2-error,
.swal2-icon.swal2-info,
.swal2-icon.swal2-question,
.Swal-warning-orange {
  border-color: #e85d04 !important;
  color: #e85d04 !important;
}
.swal2-icon.swal2-warning .swal2-icon-content,
.swal2-icon.swal2-error .swal2-icon-content,
.swal2-icon.swal2-info .swal2-icon-content,
.swal2-icon.swal2-question .swal2-icon-content {
  color: #e85d04 !important;
}
.swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-icon.swal2-error .swal2-x-mark-line-right {
  background-color: #e85d04 !important;
}


/* Page 404 Aqaryoo — rouge charte #dc3545 */
.aq-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
}
.aq-404__card {
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.aq-404__code {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #dc3545;
}
.aq-404__title {
  margin: 8px 0;
  font-size: 28px;
  font-weight: 800;
  color: #1f1f1f;
}
.aq-404__text {
  margin: 0 auto 24px;
  max-width: 420px;
  color: #666;
  line-height: 1.5;
}
.aq-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.aq-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
}
.aq-404__btn--primary {
  background: #dc3545;
  color: #fff !important;
}
.aq-404__btn--ghost {
  background: #fff;
  color: #dc3545 !important;
  border: 2px solid #dc3545;
}
.errorPage .no_page_found_text h3,
.errorPage .no_page_found_text span {
  color: #dc3545 !important;
}

/* Cartes annonces : photos visibles */
.aq-card-media img,
.aq-card-photo {
  opacity: 1 !important;
  visibility: visible !important;
}


/* Dashboard utilisateur : 1 ligne, pas de débordement, FR lisible */
.drawer_list .drawer_list_item .MuiTypography-root,
.drawer_list .drawer_list_item_active .MuiTypography-root,
.css-12i7wg6-MuiPaper-root-MuiDrawer-paper .MuiTypography-root,
.MuiDrawer-paper .MuiListItemText-primary {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 180px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}
.MuiDrawer-paper {
  overflow-x: hidden !important;
}
.table_content table th,
.table_content .MuiTableCell-head,
.table_content .MuiTableCell-root.MuiTableCell-head {
  white-space: nowrap !important;
  font-size: 12px !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
}
.table_content table td,
.table_content .MuiTableCell-body {
  white-space: nowrap !important;
  font-size: 13px !important;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table_content .table-responsive {
  overflow-x: auto !important;
}
.get_verification_badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  overflow: hidden;
}
.get_verification_badge h1,
.get_verification_badge p {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.get_verification_badge button {
  white-space: nowrap !important;
}
.property-cell,
.property-cell .property-title,
.table_content .property-cell span {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Fix slider : ne plus ecraser background-image avec un gris !important */
.awssld__content {
  background-color: #5c3a2a !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  overflow: hidden !important;
}

/* ===== Hero Aqaryoo — animé & lisible ===== */
.slider-container.aq-hero-stage {
  position: relative;
  isolation: isolate;
}

.aq-hero-slide {
  overflow: hidden !important;
}

.awssld__content > img.aq-hero-img,
.aq-hero-img {
  z-index: 1 !important;
  position: absolute !important;
  inset: -4% !important;
  width: 108% !important;
  height: 108% !important;
  object-fit: cover !important;
  pointer-events: none;
  transform-origin: center center;
  animation: aq-hero-kenburns 18s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.02);
}

.aq-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(42, 24, 16, 0.35) 0%,
      rgba(42, 24, 16, 0.15) 40%,
      rgba(42, 24, 16, 0.45) 100%
    ),
    radial-gradient(
      ellipse 70% 55% at 50% 45%,
      rgba(20, 10, 6, 0.25) 0%,
      rgba(20, 10, 6, 0.55) 100%
    );
}

.aq-hero-brand {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 24px 16px;
}

.aq-hero-brand__glow {
  position: absolute;
  width: min(520px, 70vw);
  height: min(220px, 28vw);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(232, 93, 4, 0.28) 0%,
    rgba(232, 93, 4, 0) 70%
  );
  filter: blur(8px);
  animation: aq-hero-glow 5s ease-in-out infinite alternate;
  pointer-events: none;
}

.aq-hero-brand__eyebrow {
  position: relative;
  margin: 0 0 10px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 236, 210, 0.92);
  animation: aq-hero-rise 0.9s ease-out both;
}

.aq-hero-brand__title {
  position: relative;
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(90, 40, 10, 0.25),
    0 14px 40px rgba(0, 0, 0, 0.35);
  animation: aq-hero-rise 1s 0.12s ease-out both;
}

.aq-hero-brand__tagline {
  position: relative;
  margin: 18px 0 0;
  padding: 10px 22px;
  max-width: min(92vw, 420px);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.35;
  color: #4a2c1a;
  background: rgba(255, 248, 238, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(40, 18, 8, 0.22);
  animation: aq-hero-rise 1.05s 0.28s ease-out both;
}

.slider-container.aq-hero-stage .awssld {
  height: clamp(320px, 48vw, 480px) !important;
}

.slider-container.aq-hero-stage .awssld__controls .awssld__prev,
.slider-container.aq-hero-stage .awssld__controls .awssld__next {
  backdrop-filter: blur(6px);
  background-color: rgba(40, 20, 10, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  transition: transform 0.25s ease, background-color 0.25s ease !important;
}

.slider-container.aq-hero-stage .awssld__controls .awssld__prev:hover,
.slider-container.aq-hero-stage .awssld__controls .awssld__next:hover {
  transform: scale(1.06);
  background-color: rgba(232, 93, 4, 0.55) !important;
}

@keyframes aq-hero-kenburns {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes aq-hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes aq-hero-glow {
  from {
    opacity: 0.55;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aq-hero-img,
  .aq-hero-brand__glow,
  .aq-hero-brand__eyebrow,
  .aq-hero-brand__title,
  .aq-hero-brand__tagline {
    animation: none !important;
  }
}

.aq-card-media img,
.card-img,
.aq-card-photo {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Email agent : lisible en RTL (dir=ltr), une ligne complète */
#owner-deatils-card #card-owner-header,
#owner-deatils-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#owner-deatils-card .owner-deatils,
#owner-deatils-card .owner-deatils--inline {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
  overflow: visible;
}

#owner-deatils-card .verified-owner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

#owner-deatils-card .owner-name {
  white-space: nowrap;
}

#owner-deatils-card .owner-email-link,
#owner-deatils-card .owner-add {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  direction: ltr !important;
  unicode-bidi: isolate;
  white-space: nowrap !important;
  overflow: visible !important;
  word-break: normal !important;
  text-decoration: none;
  color: #5b6570;
}

#owner-deatils-card .owner-add__icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  order: 2;
}

#owner-deatils-card .owner-add__text {
  display: inline-block !important;
  direction: ltr !important;
  unicode-bidi: isolate;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: normal !important;
  font-size: 13px;
  order: 1;
}

.aq-section-header-with-translate {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Petit bouton traduction auto */
.aq-prop-desc-wrap,
.aq-para-with-translate {
  position: relative;
  display: block;
  padding-inline-end: 28px;
}

.aq-para-translate-btn {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: 1px solid #d8dde3;
  border-radius: 6px;
  background: #fff;
  color: #5b6570;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.aq-para-translate-btn:hover {
  border-color: var(--primary-color, #e85d04);
  color: var(--primary-color, #e85d04);
}

.aq-para-translate-btn:disabled,
.aq-para-translate-btn.is-busy {
  opacity: 0.55;
  cursor: wait;
}

.aq-para-translate-btn--inline {
  position: static;
  margin-inline-start: 6px;
  vertical-align: middle;
}

/* Simulateur prêt : placeholder non coupé */
.mortgage_form_card .downpayment .input_div,
.mortage_cal_details .downpayment .input_div {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.mortgage_form_card .downpayment .input_div input,
.mortage_cal_details .downpayment .input_div input {
  flex: 1 1 auto;
  min-width: 0 !important;
  width: 100% !important;
  font-size: 13px !important;
  text-overflow: ellipsis;
}

/* Titre bien plus compact → place pour lieu + date */
#breadcrumb .prop-name {
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

#breadcrumb .prop-Location {
  display: flex !important;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px !important;
  line-height: 1.35 !important;
  margin-top: 4px;
  opacity: 0.95;
}

#breadcrumb .prop-Location svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

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

#breadcrumb .prop-sell-time span {
  font-size: 12px !important;
}

.aq-prop-desc {
  line-height: 1.55;
}

/* ========== Charte Aqaryoo : chargement / états vides (web + mobile) ========== */
:root {
  --aq-brand-red: #dc3545;
  --aq-brand-red-soft: rgba(220, 53, 69, 0.18);
  --primary-color: #dc3545 !important;
  --primary-category-background: #dc354514 !important;
}

/* Spinner plein écran + OTP (écrase le teal #087c7c) */
.loader-container .loader,
.loader-box .loader,
.loader {
  border: 4px solid var(--aq-brand-red-soft) !important;
  border-top: 4px solid var(--aq-brand-red) !important;
  border-right-color: transparent !important;
  border-left-color: transparent !important;
  border-bottom-color: transparent !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  animation: aq-spin 0.85s linear infinite !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
}

.loader::after {
  content: none !important;
  display: none !important;
}

.loader-otp {
  border: 3px solid #f3f3f3 !important;
  border-top-color: var(--aq-brand-red) !important;
  border-radius: 50% !important;
  animation: aq-spin 0.85s linear infinite !important;
}

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

/* Barre de progression navigation */
#nprogress .bar {
  background: var(--aq-brand-red) !important;
}

/* Bootstrap / Ant spinners éventuels */
.spinner-border {
  color: var(--aq-brand-red) !important;
  border-right-color: transparent !important;
}

/* Titre « Aucune donnée trouvée » */
.no_data_found_text h3,
.no_data_found_text {
  color: var(--aq-brand-red) !important;
}

.no_data_found_text span {
  color: #282f39 !important;
}

/* Empty state — boutons AQ-54 / AQ-56 */
.aq-nodata__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 18px auto 8px;
  max-width: 420px;
  padding: 0 12px;
}

.aq-nodata__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.aq-nodata__btn--primary {
  background: #dc3545 !important;
  color: #fff !important;
  border-color: #dc3545 !important;
}

.aq-nodata__btn--primary:hover {
  background: #c82333 !important;
  color: #fff !important;
}

.aq-nodata__btn--ghost {
  background: #fff !important;
  color: #282f39 !important;
  border-color: #d1d5db !important;
}

.aq-nodata__btn--ghost:hover {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}

.aq-nodata__btn--link {
  background: transparent !important;
  border: none !important;
  color: #6b7280 !important;
  text-decoration: underline !important;
  min-height: auto;
  padding: 6px 8px;
  font-weight: 500;
}

.aq-nodata__btn--link:hover {
  color: #dc3545 !important;
}

/* Indicateur chargement filtres */
.loading_data,
#feature_cards .loading_data {
  min-height: 120px;
}

/* Footer : logo + traits jusqu’au bord, sans débordement */
#footer.aq-footer .aq-footer-logo,
.aq-footer .aq-footer-logo {
  max-width: 110px !important;
  max-height: 72px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

#footer.aq-footer .aq-footer-tagline,
.aq-footer .aq-footer-tagline {
  width: 100% !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  box-sizing: border-box !important;
}

#footer.aq-footer .aq-footer-col-title,
.aq-footer .aq-footer-col-title {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#footer.aq-footer .aq-footer-col-title::after,
.aq-footer .aq-footer-col-title::after {
  flex: 1 1 auto !important;
  min-width: 24px !important;
  height: 3px !important;
  background: linear-gradient(90deg, #dc3545 0%, rgba(220, 53, 69, 0.55) 70%, rgba(220, 53, 69, 0.2) 100%) !important;
}

#footer.aq-footer .aq-footer-accordion__line,
.aq-footer .aq-footer-accordion__line {
  flex: 1 1 auto !important;
  min-width: 16px !important;
  height: 3px !important;
  margin: 0 4px !important;
  border-radius: 2px !important;
  background: linear-gradient(90deg, #dc3545 0%, rgba(220, 53, 69, 0.55) 70%, rgba(220, 53, 69, 0.2) 100%) !important;
}

@media (max-width: 767px) {
  #footer.aq-footer .aq-footer-col--brand,
  .aq-footer .aq-footer-col--brand {
    text-align: left !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }

  #footer.aq-footer .aq-footer-accordion__summary,
  .aq-footer .aq-footer-accordion__summary {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  #breadcrumb .prop-name {
    font-size: 15px !important;
    -webkit-line-clamp: 3;
  }

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

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

  .loader-container .loader,
  .loader {
    width: 36px !important;
    height: 36px !important;
  }
}
