/* Popular Properties in Ahmedabad — matches SEO internal links card layout */

.popular-properties-seo-section {
  background: #f8fafc;
  padding: 2rem 0 !important;
}

.popular-properties-seo-section .container {
  background: #f8fbff;
  border: 1px solid #e5edf8;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  padding: 2rem 3rem;
}

.popular-properties-seo__header {
  margin-bottom: 2rem !important;
}

.popular-properties-seo__title {
  color: #0f172a;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0;
}

.popular-properties-seo__slider {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-top: 0;
}

.popular-properties-seo__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.popular-properties-seo__track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.45s ease;
  will-change: transform;
}

.popular-properties-seo__slide {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 100%;
}

.popular-properties-seo__grid {
  align-items: stretch;
  display: grid;
  gap: 2rem 4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.popular-properties-seo__column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.popular-properties-seo__column-title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.popular-properties-seo__list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.85rem;
}

.popular-properties-seo__link {
  color: #334155;
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1.45;
  position: relative;
  text-decoration: none;
  transition: all 0.25s ease;
  word-break: break-word;
}

.popular-properties-seo__link:hover,
.popular-properties-seo__link:focus-visible {
  color: #2563eb;
  transform: translateX(4px);
}

.popular-properties-seo__link::after {
  background: #2563eb;
  bottom: -2px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transition: width 0.25s ease;
  width: 0;
}

.popular-properties-seo__link:hover::after,
.popular-properties-seo__link:focus-visible::after {
  width: 100%;
}

.popular-properties-seo__empty {
  line-height: 1.5;
}

.popular-properties-seo__arrow {
  align-items: center;
  align-self: center;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  color: #334155;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  width: 44px;
}

.popular-properties-seo__arrow:hover:not(:disabled),
.popular-properties-seo__arrow:focus-visible:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.popular-properties-seo__arrow--next:hover:not(:disabled),
.popular-properties-seo__arrow--next:focus-visible:not(:disabled) {
  transform: translateX(2px);
}

.popular-properties-seo__arrow--prev:hover:not(:disabled),
.popular-properties-seo__arrow--prev:focus-visible:not(:disabled) {
  transform: translateX(-2px);
}

.popular-properties-seo__arrow:disabled {
  border-color: #e2e8f0;
  box-shadow: none;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

@media (max-width: 991.98px) {
  .popular-properties-seo-section .container {
    padding: 1.5rem 1.25rem;
  }

  .popular-properties-seo__grid {
    gap: 1.5rem 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .popular-properties-seo__slider {
    flex-wrap: wrap;
  }

  .popular-properties-seo__grid {
    gap: 1.25rem;
    grid-template-columns: 1fr;
  }

  .popular-properties-seo__viewport {
    order: 1;
    width: 100%;
  }

  .popular-properties-seo__arrow--prev {
    order: 2;
  }

  .popular-properties-seo__arrow--next {
    order: 3;
    margin-left: auto;
  }
}
