/* ==========================================================================
   Direct Homes – Featured Properties carousel (Slick)
   JS:     js/directhomes-featured.js
   Colors/fonts come from css/directhomes-theme.css (--dh-* variables).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Section
   -------------------------------------------------------------------------- */
section.dh-featured {
  padding: 4.6rem 0 3.6rem;
  background-color: var(--dh-bg);
  background-image: radial-gradient(rgba(var(--dh-primary-rgb), 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
}

.dh-featured .container-fluid {
  max-width: 1560px;
}

.dh-featured__slider {
  position: relative;
  margin: 0 -15px;  /* card gutters line up with the heading */
}

/* Before Slick starts: show a simple row, no layout jump */
.dh-featured__slider:not(.slick-initialized) {
  display: flex;
  gap: 0;
  overflow: hidden;
}

.dh-featured__slider:not(.slick-initialized) .dh-featured__slide {
  flex: 0 0 25%;
}

.dh-featured__slide {
  padding: 12px 15px 20px;
}

/* Equal-height cards in both card sliders (Featured + Popular) */
.dh-card-slider .slick-track {
  display: flex !important;
}

.dh-card-slider .slick-slide {
  height: auto !important;
  float: none;
}

.dh-card-slider .slick-slide > div,
.dh-card-slider .dh-featured__slide {
  height: 100%;
}

.dh-card-slider .dh-featured__slide {
  padding: 12px 15px 20px;
}

/* Card styles: css/directhomes-cards.css */

/* --------------------------------------------------------------------------
   3. Slick dots
   -------------------------------------------------------------------------- */
/* Arrows are in the section header – see css/directhomes-sections.css */

.dh-featured .slick-dots {
  display: flex !important;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.dh-featured .slick-dots li,
.dh-featured .slick-dots li.slick-active {
  width: auto;
  height: auto;
  margin: 0;
  box-shadow: none;
  line-height: 1;
}

.dh-featured .slick-dots li::after {
  display: none;
}

.dh-featured .slick-dots button {
  display: block;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid var(--dh-primary);
  border-radius: 50%;
  background: transparent;
  font-size: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dh-featured .slick-dots .slick-active button {
  background: var(--dh-primary);
  transform: scale(1.1);
}

