{% set ash_blue = theme.global_colors.ash_blue.color|default("#1C2541", true) %}
{% set white = theme.global_colors.white.color|default("#FFFFFF", true) %}
{% set primary = theme.global_colors.primary.color|default("#28C5C9", true) %}

{% include "../../css/components/_location-card.css" %}

.locations {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  width: 100%;
}

.locations__country-name,
.locations h3.locations__country-name {
  color: var(--lc-country-color, ) !important;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.locations--text-dark {
  --lc-country-color: ;
}

.locations--text-light {
  --lc-country-color: ;
}

.locations--text-accent {
  --lc-country-color: ;
}

.locations__offices {
  align-items: stretch;
  display: grid;
  flex: 1 1 auto;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.locations__offices--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.locations__offices--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.locations__offices > .location-card {
  height: 100%;
  min-height: 100%;
}

@media (max-width: 991px) {
  .locations__offices--cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .locations__offices--cols-2,
  .locations__offices--cols-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-card__meta--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}
