/* =====================================================================
   Search landing pages (/flats-for-sale-in-vesu-surat ...) and the footer "popular searches" links.
     slp-*  landing page        sps-*  footer links
   Colours follow the builder listing: ink #1c1917 · slate #1f2933 · line #e4e1dc · gold #f5b83d
   ===================================================================== */
.slp {
  --slp-ink: #1c1917;
  --slp-slate: #1f2933;
  --slp-muted: #6b6560;
  --slp-faint: #8a847c;
  --slp-line: #e4e1dc;
  --slp-soft: #fafaf8;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.25rem clamp(0.75rem, 2vw, 1.5rem) 3rem;
  color: var(--slp-ink);
}

.slp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  color: var(--slp-faint);
  font-size: 0.8rem;
}

.slp .slp-crumbs a {
  color: var(--slp-muted) !important;
  text-decoration: none !important;
}

.slp .slp-crumbs a:hover {
  color: var(--slp-ink) !important;
  text-decoration: underline !important;
}

.slp-head__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.slp-head__lead {
  max-width: 52rem;
  margin: 0 0 0.9rem;
  color: var(--slp-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.slp-head__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slp-head__facts > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--slp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--slp-muted);
  font-size: 0.82rem;
}

.slp-head__facts strong {
  color: var(--slp-ink);
}

.slp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0 0;
}

.slp .slp-chips a,
.slp .slp-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.1rem;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--slp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--slp-ink) !important;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.slp .slp-chips a:hover,
.slp .slp-links a:hover {
  border-color: var(--slp-slate);
  background: var(--slp-soft);
}

.slp-chips a > span,
.slp-links a > span {
  min-width: 1.3rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #efeeea;
  color: var(--slp-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Cards ---------- */
.slp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.slp .slp-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--slp-line);
  border-radius: 14px;
  background: #fff;
  color: var(--slp-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.slp .slp-card:hover {
  border-color: #cfcac2;
  box-shadow: 0 14px 34px rgba(28, 25, 23, 0.12);
  transform: translateY(-2px);
}

.slp .slp-card:focus-visible {
  outline: 2px solid var(--slp-slate);
  outline-offset: 3px;
}

.slp-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9e6e0;
}

.slp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slp-card__tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--slp-ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.slp-card__price {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.8rem 0.85rem 0.6rem;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0) 0%, rgba(10, 14, 26, 0.78) 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.slp-card__body {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem 0.95rem;
}

.slp-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.slp-card__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--slp-muted);
  font-size: 0.84rem;
}

.slp-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.slp-card__specs > span {
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--slp-line);
  border-radius: 999px;
  background: var(--slp-soft);
  color: var(--slp-ink);
  font-size: 0.74rem;
  font-weight: 550;
}

.slp-more {
  margin: 1.4rem 0 0;
  text-align: center;
}

.slp .slp-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 1.25rem;
  border-radius: 10px;
  background: var(--slp-slate);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none !important;
}

.slp .slp-btn:hover {
  background: #111827;
}

.slp-empty {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  padding: 3rem 1rem;
  border: 1px solid var(--slp-line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.slp-empty > .bi {
  color: var(--slp-faint);
  font-size: 1.8rem;
}

.slp-empty h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.slp-empty p {
  margin: 0 0 0.6rem;
  color: var(--slp-muted);
}

/* ---------- Related areas + about ---------- */
.slp-links,
.slp-about {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--slp-line);
}

.slp-links h2,
.slp-about h2 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.slp-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slp-about p {
  max-width: 52rem;
  margin: 0 0 0.6rem;
  color: var(--slp-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Footer: popular searches (grouped chips) ---------- */
.sps {
  margin-top: 0.85rem;
  padding: 1rem var(--portal-gutter, 1rem) 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sps__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.sps__title {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sps__groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.sps__group {
  min-width: 0;
}

.sps__group-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sps__group-title .bi {
  color: #f5b83d;
  font-size: 0.9rem;
}

.sps__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.premium-footer .sps__chips a {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.premium-footer .sps__chips a:hover,
.premium-footer .sps__chips a:focus-visible {
  border-color: rgba(245, 184, 61, 0.55);
  background: rgba(245, 184, 61, 0.12);
  color: #fff !important;
  outline: none;
}

@media (max-width: 991.98px) {
  .sps__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .sps {
    padding-top: 0.85rem;
  }

  .sps__groups {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .premium-footer .sps__chips a {
    min-height: 2.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slp .slp-card {
    transition: none;
  }

  .slp .slp-card:hover {
    transform: none;
  }
}
