/* ===== Locations carousel ===== */
.loc-carousel { --lc-gap: 24px; position: relative; width: 100%; }

.loc-carousel .research-result {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: var(--lc-gap);
  margin: 0 !important;
  padding: 8px 4px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.loc-carousel .research-result::-webkit-scrollbar { display: none; }

/* card */
.loc-carousel .research-result__item {
  position: relative;
  flex: 0 0 calc((100% - 2 * var(--lc-gap)) / 3) !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e3ebf2;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(11, 47, 74, .08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.loc-carousel .research-result__item:hover {
  transform: translateY(-3px);
}
.loc-carousel .research-item-card_link { position: absolute; inset: 0; z-index: 1; }

.loc-carousel .research-item__container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* logo area on top */
.loc-carousel .research-thumb {
  order: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  margin: 0 !important;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid #eef2f6;
}
.loc-carousel .research-thumb a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.loc-carousel .research-thumb img {
  width: auto !important;
  max-width: 80% !important;
  max-height: 100% !important;
  object-fit: contain;
}
.loc-card__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #eaf2f8;
  color: #074a76;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .02em;
}

/* text */
.loc-carousel .research-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100% !important;
  padding: 18px 20px 20px !important;
  text-align: left;
}
.loc-carousel .research-info__address { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: #5b6b7a; }
.loc-carousel .research-info__address:first-child {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #074a76;
}
.loc-carousel .research-info__phone a {
  position: relative;
  z-index: 2;            /* stays clickable above the full-card link */
  font-weight: 700;
  color: #074a76;
}
.loc-card__cta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 800;
  color: #c2540f;
}
.loc-card__cta i { display: inline-block; font-style: normal; transition: transform .2s ease; }
.research-result__item:hover .loc-card__cta i { transform: translateX(4px); }

/* controls */
.loc-carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.loc-carousel__count { font-size: 14px; font-weight: 600; color: #5b6b7a; }
.loc-carousel__nav { display: flex; gap: 10px; }
.loc-carousel .loc-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #cfdbe6;
  border-radius: 50%;
  background: #fff;
  color: #074a76;
  box-shadow: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.loc-carousel .loc-carousel__btn:hover:not(:disabled),
.loc-carousel .loc-carousel__btn:focus-visible:not(:disabled) {
  background: #074a76;
  border-color: #074a76;
  color: #fff;
}
.loc-carousel .loc-carousel__btn:disabled { opacity: .4; cursor: default; }

/* responsive */
@media (max-width: 1023px) {
  .loc-carousel .research-result__item { flex-basis: calc((100% - var(--lc-gap)) / 2) !important; }
}
@media (max-width: 640px) {
  .loc-carousel { --lc-gap: 16px; }
  .loc-carousel .research-result__item { flex-basis: 82% !important; }   /* peek of the next card */
}
@media (prefers-reduced-motion: reduce) {
  .loc-carousel .research-result__item, .loc-card__cta i { transition: none; }
}

/* Additional CSS */
.research-section__content.research-content {
  display: flex;
  flex-direction: column !important;
}
.research-content__result.research-result {
  flex-direction: row !important;
  width: 100% !important;
}
.research-item__container {
  flex-direction: column !important;
  padding: 0px !important;
}
.research-section__container.grid-container {
  max-width: calc(1405 * var(--scale_coef) / var(--base) * 100vw) !important;
  padding: calc(21 * var(--scale_coef) / var(--base) * 100vw) calc(25 * var(--scale_coef) / var(--base) * 100vw) calc(13 * var(--scale_coef) / var(--base) * 100vw) calc(24 * var(--scale_coef) / var(--base) * 100vw) !important;
}
.research-item__thumb.research-thumb {
  width: 100% !important;
}
.loc-carousel .research-thumb img {
  width: 60% !important;
  margin: auto !important;
}
.loc-carousel .research-info__address:first-child span {
  font-size: 20px !important;
  font-weight: 800;
  line-height: 1.25;
  color: #074a76 !important;
}
.loc-carousel .research-info__address span {
  font-size: 15px !important;
  color: #000 !important;
}
.research-info__address {
  line-height: 1.1;
}
.research-info__phone a {
  font-size: 16px !important;
  color: black !important;
}
.loc-carousel.is-ready {
  margin-top: 20px;
}