/**
 * Map wrapper
 */

.map-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.map-wrapper__image,
.map-wrapper__content {
  width: 100%;
}

@media (min-width: 1000px) {
  .map-wrapper {
    grid-template-columns: 7fr 5fr;
    align-items: center; /* aligne verticalement les contenus */
  }
}




.map-wrapper__country-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1200px) {
  .map-wrapper__country-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.map-wrapper__country-grid details {
  overflow: hidden;
  transition: all 0.3s ease;
}

.map-wrapper__country-grid details summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.map-wrapper__country-grid details summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}

.map-wrapper__country-grid details.is-open summary::after {
  transform: rotate(180deg);
}


.map-country__item{
  border-bottom: 1px solid #7a7979;
  height: fit-content;
}




.map-country__trigger {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  position: relative;
}

.map-country__trigger::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 7.4px;
  background-image: url('../../images/map/arrow-map.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

.map-country__item.is-open .map-country__trigger::after {
  transform: rotate(180deg);
}

.map-country__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.map-country__item.is-open .map-country__content {
  max-height: 500px;
}

.map-country__location-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1rem;;
  margin-bottom: 1rem;
}

.map-city {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

.map-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 1px 10px;
  border-radius: 72px;
}

.map-tag--hq {
  color: #f08e2e;
  border: 1px solid #f08e2e
}

.map-tag--sale-office {
  color: #2f923c;
  border: 1px solid #2f923c
}

.map-tag--prod {
  color: #ee252c;
  border: 1px solid #ee252c
}

.map-tag--warehouse {
  color: #558ed5;
  border: 1px solid #558ed5
}

@media (min-width: 1200px) and (max-width: 1799px) {
  .map-city {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .map-city span:first-child {
    flex-shrink: 0;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;

  }

  .map-city span:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    white-space: nowrap;
    min-width: 0;
  }
}
