/* Referanslarımız */

.refs-page {
  padding-bottom: 3rem;
}

.refs-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.25rem auto 1.75rem;
  max-width: 52rem;
}

@media (min-width: 720px) {
  .refs-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.refs-summary__item {
  text-align: center;
  padding: 1rem 0.7rem 0.95rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(94, 234, 212, 0.16);
}

.refs-summary__n {
  display: block;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  color: #5eead4;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.refs-summary__l {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.refs-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 2rem;
}

.refs-filters__btn {
  appearance: none;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: rgba(15, 23, 42, 0.45);
  color: #cbd5e1;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.refs-filters__btn:hover,
.refs-filters__btn:focus-visible {
  border-color: rgba(94, 234, 212, 0.55);
  color: #f1f5f9;
  outline: none;
}

.refs-filters__btn.is-active {
  background: rgba(15, 118, 110, 0.45);
  border-color: #5eead4;
  color: #ecfdf5;
}

.refs-section {
  margin-bottom: 2.35rem;
}

.refs-section.is-empty {
  display: none;
}

.refs-section__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(94, 234, 212, 0.12);
}

.refs-section__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  color: #e2e8f0;
}

.refs-section__count {
  font-size: 0.78rem;
  color: #5eead4;
  font-weight: 600;
}

.refs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .refs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .refs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.refs-card {
  margin: 0;
  padding: 1.05rem 1.05rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  min-height: 8.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.refs-card__city {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.refs-card__place {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
  flex: 1;
}

.refs-card__note {
  margin: 0;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.refs-pill {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.refs-pill--greenfield {
  color: #99f6e4;
  background: rgba(15, 118, 110, 0.35);
  border: 1px solid rgba(94, 234, 212, 0.35);
}

.refs-pill--upgrade,
.refs-pill--rehab {
  color: #fde68a;
  background: rgba(120, 80, 20, 0.32);
  border: 1px solid rgba(251, 191, 36, 0.32);
}

.refs-pill--special {
  color: #c4b5fd;
  background: rgba(76, 29, 149, 0.28);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.refs-pill--listed {
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.28);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

[dir="rtl"] .refs-section__head {
  flex-direction: row-reverse;
}
