/* ============================================
   Top Rated Spas Section
   Desktop / tablet / mobile responsive
============================================ */

/* ── Section wrapper ── */
.top-rated-section {
  padding: var(--space-xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Spa cards grid (fallback when ≤2 items) ── */
.spa-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  scroll-behavior: smooth;
}

/* ── Card ── */
.spa-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.spa-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
  border-color: var(--color-green);
}

/* ── Image ── */
.spa-card__image-wrap {
  overflow: hidden;
  height: 120px;
}

.spa-card__image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.spa-card:hover .spa-card__image {
  transform: scale(1.04);
}

/* ── Body ── */
.spa-card__body {
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.spa-card__info {
  flex: 1;
  min-width: 0;
}

/* ── Name ── */
.spa-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  word-break: break-word;
}

/* ── Category ── */
.spa-card__category {
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spa-card__category span {
  font-size: 12px;
  font-weight: 400;
  color: #888;
}

/* ── Meta row ── */
.spa-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 5px;
}

/* ── Stars ── */
.spa-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.spa-card__stars .star {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.spa-card__stars .star--full  { color: #388e3c; }
.spa-card__stars .star--half  { color: #388e3c; opacity: 0.65; }
.spa-card__stars .star--empty { color: #ede8e88f; }

.spa-card__rating {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-white);
}

.spa-card__reviews {
  font-size: 11.5px;
  color: var(--color-text-muted);
}

/* ── Button ── */
.spa-card__btn {
  background: var(--color-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
}

.spa-card__btn:hover {
  background: var(--color-green-dark);
  box-shadow: var(--shadow-green);
}

/* ============================================
   Slider
============================================ */

/* Outer wrapper — adds horizontal space for the arrows outside the track */
.spa-slider {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 0 48px;          /* reserves space left + right for arrows */
}

/* Track sits between the two arrows */
.spa-slider__track-wrap {
  overflow: hidden;
  width: 100%;
}

.spa-slider__track {
  display: flex;
  transition: transform 0.35s ease;
}

/* Desktop: exactly 2 slides fill the track */
.spa-slider__slide {
  flex: 0 0 50%;
  box-sizing: border-box;
  padding: 0 6px;
}

/* ── Arrows — outside the track, perfectly centered vertically ── */
.spa-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  /* Visible, solid background so they're never hidden */
  background: #1a1a1a;
  border: 2px solid #4caf50;
  border-radius: 50%;

  width: 36px;
  height: 36px;
  min-width: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

/* Positioned inside the padding gutters — never overlapping cards */
.spa-slider__arrow--prev { left: 4px; }
.spa-slider__arrow--next { right: 4px; }

.spa-slider__arrow:hover {
  background: #4caf50;
  border-color: #4caf50;
}

.spa-slider__arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

/* ── Dots ── */
.spa-slider__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.spa-slider__dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s;
}

.spa-slider__dots .dot--active {
  background: #4caf50;
}

/* ============================================
   Mobile — 1 card per view
============================================ */
@media (max-width: 600px) {

  .spa-cards {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 4px;
  }

  .spa-cards::-webkit-scrollbar { display: none; }

  .spa-cards .spa-card {
    flex: 0 0 80%;
    min-width: 80%;
  }

  /* Tighter padding on mobile — arrows are smaller */
  .spa-slider {
    padding: 0 38px;
  }

  .spa-slider__slide {
    flex: 0 0 100%;
  }

  .spa-slider__arrow--prev { left: 2px; }
  .spa-slider__arrow--next { right: 2px; }
}