/* =====================================================
   Featured Properties Section
   ===================================================== */

#featured-properties .section-subtitle {
  color: #777;
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 1rem;
}

/* ── Tab bar ── */
.fp-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  margin-top: 28px;
  padding-bottom: 2px;
}
.fp-tabs::-webkit-scrollbar { display: none; }

.fp-tab {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 99px;
  border: 1px solid rgba(21,89,69,.2);
  background: transparent;
  color: #155945;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: .02em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease;
  position: relative;
}

.fp-tab::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 99px;
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
  box-shadow: 0 4px 18px rgba(21,89,69,.25);
}

.fp-tab:hover {
  background: rgba(21,89,69,.07);
  border-color: rgba(21,89,69,.4);
}

.fp-tab.is-active {
  background: #155945;
  border-color: #155945;
  color: #fff;
  font-weight: var(--fw-bold);
}

.fp-tab.is-active::after {
  opacity: 1;
}

/* ── Grid ── */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 200px;
}

/* ── List item animation ── */
.fp-grid .featured-prop-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: flex;
}

.fp-grid .featured-prop-item.is-visible  { opacity: 1; transform: translateY(0); }
.fp-grid .featured-prop-item.is-leaving  { opacity: 0; transform: translateY(10px); }

.fp-grid .featured-prop-item:nth-child(1) { transition-delay: 0.00s; }
.fp-grid .featured-prop-item:nth-child(2) { transition-delay: 0.05s; }
.fp-grid .featured-prop-item:nth-child(3) { transition-delay: 0.10s; }
.fp-grid .featured-prop-item:nth-child(4) { transition-delay: 0.15s; }
.fp-grid .featured-prop-item:nth-child(5) { transition-delay: 0.20s; }
.fp-grid .featured-prop-item:nth-child(6) { transition-delay: 0.25s; }
.fp-grid .featured-prop-item:nth-child(7) { transition-delay: 0.30s; }
.fp-grid .featured-prop-item:nth-child(8) { transition-delay: 0.35s; }

/* ── Card shell ── */
.fp-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.fp-card:hover {
  box-shadow: 0 8px 32px rgba(21,89,69,.12);
  transform: translateY(-4px);
}

/* ── Image wrap ── */
.fp-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8e8e8;
}

.fp-card__img-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* ── Two-layer crossfade images ── */
.fp-card__img-link {
  transition: transform 0.4s ease;
}

.fp-card:hover .fp-card__img-link {
  transform: scale(1.04);
}

.fp-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* opacity-only transition — no transform, avoids flicker during layer swap */
  transition: opacity 0.38s ease;
  opacity: 0;
}

/* Top layer = visible */
.fp-card__img.fp-img-top {
  opacity: 1;
  z-index: 2;
}

/* Back layer sits behind */
.fp-card__img:not(.fp-img-top) {
  z-index: 1;
}

/* ── Deal badge (top-left) ── */
.fp-card__deal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #155945;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
  line-height: 1.4;
  z-index: 10;
  pointer-events: none;
}

/* ── New badge (top-right) ── */
.fp-card__new-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e8a000;
  color: #fff;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  padding: 4px 10px;
  border-radius: 20px;
  line-height: 1.4;
  z-index: 10;
  pointer-events: none;
}

/* ── Slider arrow buttons ── */
.fp-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  padding: 0;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.2s ease, transform 0.2s ease;
}

.fp-slide-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.fp-slide-prev { left: 10px; }
.fp-slide-next { right: 10px; }

/* Reveal on card hover */
.fp-card:hover .fp-slide-btn {
  opacity: 1;
}

/* ── Dot indicators ── */
.fp-slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.fp-card:hover .fp-slide-dots {
  opacity: 1;
}

.fp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background 0.2s ease, transform 0.2s ease;
  display: block;
}

.fp-dot.is-active {
  background: #fff;
  transform: scale(1.4);
}

/* ── Card body ── */
.fp-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  gap: 6px;
}

.fp-card__title {
  font-size: clamp(0.9375rem, 0.9rem + 0.18vw, 1.0625rem); /* 15→17px */
  font-weight: var(--fw-bold);
  line-height: 1.3;
  margin: 0 0 2px;
  color: #1a1a1a;
}

.fp-card__title a { color: inherit; text-decoration: none; }
.fp-card__title a:hover { color: #155945; }

.fp-card__location {
  font-size: 0.82rem;
  color: #888;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.3;
}

.fp-card__location i { color: #d94040; font-size: 0.8rem; flex-shrink: 0; }

.fp-card__specs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin: 4px 0;
}

.fp-card-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: #555;
  font-weight: var(--fw-medium);
}

.fp-card-spec i { color: #155945; font-size: 0.82rem; }

.fp-card-spec + .fp-card-spec {
  border-left: 1px solid #e0e0e0;
  padding-left: 14px;
}

.fp-card__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.fp-card__price {
  font-size: clamp(1rem, 0.93rem + 0.36vw, 1.25rem); /* 16→20px */
  font-weight: var(--fw-extrabold);
  color: #1a1a1a;
  line-height: 1.2;
  white-space: nowrap;
}

.fp-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #155945;
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s ease;
}

.fp-card__btn i {
  font-size: 0.68rem;
  transition: transform 0.2s ease;
}

.fp-card__btn:hover { color: #0e3d2f; }
.fp-card__btn:hover i { transform: translateX(4px); }

/* ══════════════════════════════════════════
   SKELETON LOADING
══════════════════════════════════════════ */

@keyframes fp-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.fp-sk {
  background: linear-gradient(
    90deg,
    #ede8e4 25%,
    #e2dbd6 50%,
    #ede8e4 75%
  );
  background-size: 1200px 100%;
  animation: fp-shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}

/* Skeleton tab buttons */
.fp-sk-tab {
  height: 38px;
  border-radius: 99px !important;
  border: none !important;
  pointer-events: none;
}
.fp-sk-tab:nth-child(1) { width: 48px; }
.fp-sk-tab:nth-child(2) { width: 116px; }
.fp-sk-tab:nth-child(3) { width: 128px; }
.fp-sk-tab:nth-child(4) { width: 124px; }
.fp-sk-tab:nth-child(5) { width: 132px; }

/* Skeleton card item — same opacity/transform as real items so they fade in too */
.featured-prop-skeleton {
  pointer-events: none;
}

/* Skeleton image area */
.fp-sk-img-wrap {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

/* Skeleton text lines */
.fp-sk-line {
  border-radius: 4px;
  display: block;
}

.fp-sk-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.fp-sk-title-line   { height: 16px; width: 85%; }
.fp-sk-title-line2  { height: 16px; width: 60%; }
.fp-sk-loc-line     { height: 12px; width: 70%; margin-top: 2px; }

.fp-sk-specs-row {
  display: flex;
  gap: 14px;
  width: 100%;
  justify-content: center;
  padding: 8px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin: 2px 0;
}
.fp-sk-spec-pill { height: 12px; width: 72px; border-radius: 4px; }

.fp-sk-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  width: 100%;
}
.fp-sk-price-line { height: 20px; width: 55%; }
.fp-sk-btn-line   { height: 12px; width: 80px; }

/* ── Empty state ── */
.featured-prop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: #888;
  font-size: 1rem;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
  .fp-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .fp-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 600px) {
  .fp-tabs {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding: 0 4px 2px;
    gap: 8px;
  }
  .fp-tab {
    flex-shrink: 1;
  }
}

@media (max-width: 480px) {
  .fp-grid { grid-template-columns: 1fr; gap: 16px; }
  .fp-tab  { padding: 9px 16px; font-size: 12px; }
}
