/* pour la page liste des annonces */

.headerx {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 2px solid #e0e0e0;
}

.dropdownx {
  position: relative;
}

.dropdownx-select {
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background-color: white;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
}

.dropdownx-select:hover,
.dropdownx-select:focus {
  border-color: var(--second);
}

.listings-container {
  display: grid;
  gap: 30px;
}


.listing-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}


.image-container {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.splide__slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.image-counter {
  position: absolute;
  bottom: 50px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.favorite-btn,
.ups-btn,
.dels-btn {
  position: absolute;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.favorite-btn {
  top: 15px;
  right: 15px;
}

.ups-btn {
  top: 15px;
  right: 60px;
}

.dels-btn {
  top: 15px;
  right: 15px;
}

.favorite-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.favorite-btn.active {
  color: #e74c3c;
}

.favorite-btn i {
  font-size: 18px;
}

.card-content {
  padding: 25px;
}

.card-headerx {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 15px;
}

.listing-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  flex: 1;
}

.badge-new {
  background: #f39c12;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #7f8c8d;
  font-size: 14px;
}

.location i {
  color: var(--second);
}

.description {
  margin-bottom: 25px;
}

.quote {
  font-style: italic;
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 16px;
}

.description-text {
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.7;
}

.card-footerx {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.contact-btn {
  background: var(--second);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.company-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7f8c8d;
  font-size: 12px;
  font-weight: 600;
}

.company-logo i {
  font-size: 16px;
  color: var(--second);
}

/* pour le splide */
.splide__arrow {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.splide__arrow:hover {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.splide__arrow svg {
  fill: var(--second);
}

.splide__pagination {
  bottom: 50px;
}

.splide__pagination__page {
  background: rgba(255, 255, 255, 0.7);
  border: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.splide__pagination__page.is-active {
  background: white;
  transform: scale(1.3);
}

.thumbnails-container {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 12px;
  border-radius: 20px;
  z-index: 10;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 300px;
}

.thumbnails-container::-webkit-scrollbar {
  display: none;
}
.thumbnail {
  width: 40px;
  height: 30px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: white;
  opacity: 1;
  transform: scale(1.1);
}

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

/* ---------------------------- */
.splide__pagination {
  display: none;
}

/* Animation pour heart icon */
@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.favorite-btn.active i {
  animation: heartBeat 0.6s ease;
}

button:active {
  transform: scale(0.95);
}

.splide__slide img {
  transition: opacity 0.3s ease;
}

.splide__slide img:not([src]) {
  opacity: 0;
}

.splide__slide img[src] {
  opacity: 1;
}

/* Pagination */
.pagination-container {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #7f8c8d;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--principal);
  color: var(--principal);
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-number {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #7f8c8d;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-number:hover {
  background: #ecf0f1;
  color: var(--principal);
}

.pagination-number.active {
  background: var(--second);
  color: white;
}

.pagination-dots {
  color: #bdc3c7;
  font-weight: bold;
  padding: 0 5px;
}

.pagination-info {
  color: #7f8c8d;
  font-size: 14px;
  text-align: center;
}

/* Banner */
.banner {
  position: relative;
  background: linear-gradient(135deg, var(--second) 0%, #2c3e50 100%);
  margin: 50px 0;
  border-radius: 20px;
  overflow: hidden;
  min-height: 150px;
}

.banner-content {
  position: relative;
  width: 100%;
  height: 35vh;
   background-size: cover;
    background-position: center;
    border-radius: 10px;
}


/* brea */
.breadcrumb-footer {
  /* width: 100%; */
  padding: 10px 20px;
  /* background-color: #f9f9f9; */
  box-sizing: border-box;
  font-family: sans-serif;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
}

.breadcrumb-item a {
  display: flex;
  align-items: center;
  color: var(--second);
  text-decoration: none;
}

.breadcrumb-item svg {
  margin-right: 4px;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item:not(:last-child)::after {
  content: ">";
  color: #999;
  margin: 0 8px;
}

.breadcrumb-item.active {
  color: #555;
  display: flex;
  align-items: center;
}

.heart-container {
    position: relative;
    display: inline-block;
    color: var(--principal);
}

.heart-count {
     background-color: #f2ab00;
    color: var(--white);
    position: absolute;
    padding: 2px 6px;
    top: -9px;
    right: -9px;
    min-width: 10px;
    height: 10px;
    display: flex
;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 8px;
    white-space: nowrap;
}

 /* Container pour aligner le radio et le label */
                                .radio-container {
                                    display: flex;
                                    align-items: center;
                                    cursor: pointer;
                                    margin: 8px 0;
                                    gap: 10px;
                                }

                                /* Cacher l'input radio natif */
                                .radio-container input[type="radio"] {
                                    display: none;
                                }

                                /* Créer un cercle custom avant le label */
                                .radio-container label {
                                    position: relative;
                                    padding-left: 28px;
                                    /* espace pour le cercle */
                                    cursor: pointer;
                                    user-select: none;
                                    font-size: 16px;
                                    color: #333;
                                }

                                /* Cercle vide */
                                .radio-container label::before {
                                    content: "";
                                    position: absolute;
                                    left: 0;
                                    top: 50%;
                                    transform: translateY(-50%);
                                    width: 18px;
                                    height: 18px;
                                    border: 2px solid orange;
                                    border-radius: 50%;
                                    background-color: white;
                                    transition: all 0.2s ease;
                                }

                                /* Cercle rempli quand sélectionné */
                                .radio-container input[type="radio"]:checked+label::after {
                                    content: "";
                                    position: absolute;
                                    left: 4px;
                                    top: calc(50% + 1px);
                                    transform: translateY(-50%);
                                    width: 10px;
                                    height: 10px;
                                    background-color: orange;
                                    border-radius: 50%;
                                }

