/* SuperHote Publish - Rentals v2.0 — Airbnb-style cards */

/* ===== Container ===== */
.shp-rentals-container {
  --shp-columns: 3;
  --shp-gap: 24px;
  --shp-card-max-width: 380px;
  --shp-radius: 12px;
  --shp-bg: #ffffff;
  --shp-text: #222222;
  --shp-text-light: #717171;
  --shp-accent: #F5A623;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
  box-sizing: border-box;
}

/* ===== Grid ===== */
.shp-rentals-container.shp-layout-grid {
  display: grid;
  grid-template-columns: repeat(var(--shp-columns, 3), 1fr);
  gap: var(--shp-gap);
}

.shp-rentals-container.shp-layout-grid.shp-layout-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--shp-gap);
}

.shp-rentals-container.shp-layout-grid.shp-layout-centered .shp-card {
  width: calc((100% - var(--shp-gap) * (var(--shp-columns, 3) - 1)) / var(--shp-columns, 3));
  max-width: var(--shp-card-max-width);
  flex-shrink: 0;
}

/* ===== Card (link wrapper) ===== */
.shp-rentals-container .shp-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--shp-bg);
  border-radius: var(--shp-radius);
  overflow: hidden;
  transition: transform 0.2s ease;
  text-decoration: none !important;
  color: inherit;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.shp-rentals-container .shp-card:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.shp-rentals-container .shp-card:focus {
  outline: 2px solid var(--shp-accent);
  outline-offset: 2px;
}

/* ===== Image & Slider ===== */
.shp-rentals-container .shp-card-image {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
  border-radius: var(--shp-radius);
}

.shp-rentals-container .shp-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.shp-rentals-container .shp-slider-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.shp-rentals-container .shp-slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shp-rentals-container .shp-slider-slide.shp-slide-active {
  opacity: 1;
  z-index: 1;
}

/* Slider navigation arrows */
.shp-rentals-container .shp-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  color: #222 !important;
  font-size: 18px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  padding: 0 !important;
  opacity: 0;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.shp-rentals-container .shp-card:hover .shp-slider-nav {
  opacity: 1;
}

.shp-rentals-container .shp-slider-nav:hover {
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.shp-rentals-container .shp-slider-prev {
  left: 10px;
}

.shp-rentals-container .shp-slider-next {
  right: 10px;
}

/* Slider dots */
.shp-rentals-container .shp-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 5px;
  align-items: center;
}

.shp-rentals-container .shp-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.shp-rentals-container .shp-slider-dot.shp-dot-active {
  background: #fff;
  transform: scale(1.3);
}

.shp-rentals-container .shp-slider-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ===== Card Body ===== */
.shp-rentals-container .shp-card-body {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 20px;
  flex: 1;
}

/* Meta: "Logement entier · Ville" */
.shp-rentals-container .shp-card-meta {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--shp-text-light);
  font-weight: 400;
  line-height: 1.4;
}

/* Title */
.shp-rentals-container .shp-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--shp-text);
  line-height: 1.35;
  text-decoration: none;
  border: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Address */
.shp-rentals-container .shp-card-address {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--shp-text-light);
  font-weight: 400;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Details: chambres · voyageurs */
.shp-rentals-container .shp-card-details {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--shp-text-light);
  font-weight: 400;
  line-height: 1.4;
}

/* Price */
.shp-rentals-container .shp-card-price {
  margin: 0;
  font-size: 0.95rem;
  color: var(--shp-text);
  font-weight: 400;
  margin-top: auto;
}

.shp-rentals-container .shp-card-price strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--shp-text);
}

/* CTA button */
.shp-rentals-container .shp-card-btn {
  display: block;
  margin-top: 16px;
  padding: 14px 24px;
  background: var(--shp-accent);
  color: #ffffff !important;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 10px;
  transition: filter 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.shp-rentals-container .shp-card:hover .shp-card-btn {
  filter: brightness(1.08);
  transform: scale(1.02);
}

/* ===== States ===== */
.shp-rentals-container .shp-error,
.shp-rentals-container .shp-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--shp-text-light);
  font-size: 0.9375rem;
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .shp-rentals-container.shp-layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .shp-rentals-container {
    padding: 20px 12px;
  }

  .shp-rentals-container.shp-layout-grid {
    grid-template-columns: 1fr;
  }

  .shp-rentals-container .shp-card-body {
    padding: 14px 14px 18px;
  }

  .shp-rentals-container .shp-slider-nav {
    opacity: 1;
  }
}
