/* Mobile-first property type rail */
@media (max-width: 767.98px) {
  .catalog-types {
    position: sticky;
    z-index: 1050;
    top: 0;
    gap: 8px;
    padding: 10px 12px 11px;
    border-bottom: 1px solid rgba(8, 127, 89, .12);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(19, 61, 47, .08);
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 12px;
    scroll-snap-type: inline proximity;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(16px) saturate(150%);
  }

  .catalog-types a {
    isolation: isolate;
    flex: 0 0 70px;
    min-width: 70px;
    height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 5px 6px;
    border: 1px solid #e2ece7;
    border-radius: 19px;
    background: linear-gradient(155deg, #fff, #f7fbf9);
    color: #587067;
    box-shadow: 0 4px 13px rgba(25, 64, 50, .045);
    scroll-snap-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .catalog-types a::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 5px;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: border-color .2s ease;
  }

  .catalog-types a > i {
    align-self: auto;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #edf7f2;
    color: #17815e;
    font-size: 16px;
    line-height: 1;
    transition: transform .22s ease, background .22s ease;
  }

  .catalog-types a span {
    align-self: auto;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .catalog-types a small {
    position: absolute;
    z-index: 2;
    top: 5px;
    left: 5px;
    grid-row: auto;
    min-width: 20px;
    width: auto;
    height: 20px;
    padding-inline: 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e9f0ed;
    color: #657971;
    font-size: 7px;
    font-weight: 900;
    line-height: 16px;
  }

  .catalog-types a.active {
    border-color: #087f59;
    background: linear-gradient(145deg, #0b9568, #06744f);
    color: #fff;
    box-shadow: 0 9px 22px rgba(8, 127, 89, .27);
    transform: translateY(-1px);
  }

  .catalog-types a.active::after {
    border-color: rgba(255, 255, 255, .16);
  }

  .catalog-types a.active > i {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    transform: scale(1.05);
  }

  .catalog-types a.active small {
    border-color: #078258;
    background: #fff;
    color: #087f59;
  }

  .catalog-types a:active {
    transform: scale(.96);
  }
}

@media (max-width: 370px) {
  .catalog-types {
    gap: 7px;
    padding-inline: 9px;
  }

  .catalog-types a {
    flex-basis: 66px;
    min-width: 66px;
    height: 68px;
    border-radius: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-types,
  .catalog-types a,
  .catalog-types a > i {
    scroll-behavior: auto;
    transition: none;
  }
}
