/* Swiper Slider Styles */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap");

.rr-quote {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000;
  text-shadow: 0 0 2px #fff, 0 0 5px #fff, 0 0 10px rgba(255, 255, 255, 0.6);
}

.rr-hero-slider {
  position: relative;
  width: 100%;
  height: 90vh; /* Default desktop height */
  min-height: 500px;
  overflow: hidden;
  background-color: #000;
}

.rr-hero-slider .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slide background image with zoom animation */
.rr-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.6s ease;
}

/* Active slide zoom effect */
.rr-hero-slider .swiper-slide-active .rr-slide-bg {
  animation: slideZoom 8s ease-out forwards;
}

@keyframes slideZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* Dark gradient overlay for text readability */
.rr-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 15, 0.45) 0%,
    rgba(15, 15, 15, 0.25) 50%,
    rgba(15, 15, 15, 0.55) 100
  );
  z-index: 2;
}

/* Slide content wrapper */
.rr-slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 85%;
  max-width: 800px;
  padding: 0 20px;
}

/* Fluid responsive typography using clamp */
.rr-slide-content h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff; /* White text for premium contrast */
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.65);
}

.rr-slide-content h1 .rr-quote {
  font-size: clamp(1.2rem, 3.5vw, 2.5rem);
  color: #d4af37; /* Gold quotes to match premium identity */
  vertical-align: middle;
  margin: 0 0.15em;
  letter-spacing: -0.1em;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.rr-hero-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.rr-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: "Montserrat", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
  border-radius: 8px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rr-btn-primary {
  background: #ffffff;
  color: #000000;
  border: 2px solid #ffffff;
}

.rr-btn-primary:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.rr-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.rr-btn-secondary:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

/* Swiper navigation arrows */
.rr-hero-slider .swiper-button-prev,
.rr-hero-slider .swiper-button-next {
  color: #ffffff !important;
  transition: all 0.3s ease;
  width: 44px;
  height: 44px;
  background: rgba(15, 15, 15, 0.35);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rr-hero-slider .swiper-button-prev:after,
.rr-hero-slider .swiper-button-next:after {
  font-size: 18px;
  font-weight: bold;
}

.rr-hero-slider .swiper-button-prev:hover,
.rr-hero-slider .swiper-button-next:hover {
  background: #ffffff;
  color: #000000 !important;
  border-color: #ffffff;
}

/* Swiper pagination dots styling */
.rr-hero-slider .swiper-pagination-bullets {
  bottom: 2rem !important;
}

.rr-hero-slider .swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.4;
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
  margin: 0 6px !important;
}

.rr-hero-slider .swiper-pagination-bullet-active {
  background: #d4af37 !important; /* Gold active bullet */
  opacity: 1;
  width: 24px;
  border-radius: 5px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .rr-hero-slider {
    height: 75vh;
  }
}

@media (max-width: 768px) {
  .rr-hero-slider {
    height: 65vh;
    min-height: 450px;
  }
  
  .rr-hero-slider .swiper-button-prev,
  .rr-hero-slider .swiper-button-next {
    display: none !important; /* Hide arrows on mobile/tablet */
  }

  .rr-hero-buttons {
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .rr-btn {
    padding: 0.75rem 1.5rem;
    font-size: 12.5px;
  }
}

@media (max-width: 576px) {
  .rr-hero-slider {
    height: 60vh;
    min-height: 400px;
  }

  .rr-hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.75rem;
  }

  .rr-btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }
}

/* Vente/Achat Filter Styles */
.vente-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  align-items: center;
  justify-content: flex-start;
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.vente-filter-form select,
.vente-filter-form input {
  padding: 14px 18px;
  background-color: #fcfcfc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13.5px;
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 500;
  color: #1c1c1e;
  border-radius: 10px;
  flex: 1;
  min-width: 170px;
  transition: all 0.3s ease;
  outline: none;
}

.vente-filter-form select:focus,
.vente-filter-form input:focus {
  background-color: #ffffff;
  border-color: #a8862a;
  box-shadow: 0 0 10px rgba(168, 134, 42, 0.15);
}

.vente-filter-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8862a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 40px;
}

.vente-filter-form .chercher-btn {
  background: #000000;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid #000000;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 140px;
}

.vente-filter-form .chercher-btn:hover {
  background: #a8862a;
  border-color: #a8862a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 134, 42, 0.2);
}

.vente-filter-form .reset-btn {
  color: #8e8e93;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.vente-filter-form .reset-btn:hover {
  color: #1c1c1e;
}

.vente-filter-form .spinner {
  display: none;
  margin-left: 10px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-top-color: #a8862a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.vente-count {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 24px;
  color: #1c1c1e;
  letter-spacing: -0.5px;
}

.vente-results {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.vente-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 250px;
}

.vente-item:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 134, 42, 0.25);
  box-shadow: 0 20px 40px rgba(168, 134, 42, 0.08);
}

.vente-image {
  position: relative;
  flex: 0 0 35%;
  max-width: 35%;
  overflow: hidden;
  background-color: #f4f4f4;
}

.vente-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.vente-item:hover .vente-image img {
  transform: scale(1.06);
}

.vente-price-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: linear-gradient(135deg, #d4af37, #a8862a);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(168, 134, 42, 0.25);
  z-index: 2;
  letter-spacing: 0.5px;
}

.vente-content {
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex: 0 0 65%;
  max-width: 65%;
}

.vente-content h3 {
  margin: 0 0 12px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1c1c1e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.vente-item:hover .vente-content h3 {
  color: #a8862a;
}

.vente-metadata {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  color: #636366;
  font-weight: 500;
}

.meta-icon {
  font-size: 14px;
}

.meta-specs {
  display: flex;
  gap: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 12px;
  margin-top: 4px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #2c2c2e;
}

.spec-icon {
  font-size: 13px;
}

.vente-content .excerpt {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #8e8e93;
  line-height: 1.5;
  margin-bottom: 24px;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vente-card-footer {
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.vente-view-btn {
  font-family: "Montserrat", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #a8862a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.vente-view-btn:hover {
  color: #1c1c1e;
  transform: translateX(4px);
}

/* Vente/Achat Toggle Styles */
.vente-achat-toggle {
  margin-bottom: 30px;
  display: flex;
  gap: 12px;
}

.toggle-btn {
  background-color: #f2f2f7;
  color: #2c2c2e;
  padding: 12px 28px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toggle-btn:hover {
  background-color: #e5e5ea;
  transform: translateY(-1px);
}

.toggle-btn.active {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#vente-achat-content {
  margin-top: 30px;
  position: relative;
}

.spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(168, 134, 42, 0.1);
  border-radius: 50%;
  border-top-color: #a8862a;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  display: none;
  backdrop-filter: blur(4px);
  border-radius: 16px;
}

.post-type-buttons {
  margin-bottom: 20px;
}

.post-type-buttons .btn {
  display: inline-block;
  padding: 10px 20px;
  margin-right: 10px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.post-type-buttons .btn.active,
.post-type-buttons .btn:hover {
  background: #000;
  color: #fff;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .vente-results {
    gap: 20px;
  }

  .vente-item {
    flex-direction: column;
    min-height: auto;
  }

  .vente-image {
    flex: 0 0 auto;
    max-width: 100%;
    aspect-ratio: 16 / 10;
  }

  .vente-content {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 24px;
  }
}

/* Vente Filter Container */
.vente-filter-container {
  position: relative;
  min-height: 200px;
  padding-top: 0; /* Clear fixed/sticky headers on desktop */
}

@media screen and (max-width: 768px) {
  .vente-filter-container {
    padding-top: 0; /* Clear fixed/sticky headers on mobile */
  }
}

.vente-filter-results {
  position: relative;
  min-height: 100px;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  border-radius: 8px;
}

.loading-overlay .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
