/* Bloc carte + cabinets */
.locations-block {
  background: #f5f3ef;
  border: 1px solid rgba(134, 115, 109, 0.12);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(27, 28, 26, 0.06);
}

.locations-block__layout {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .locations-block__layout {
    grid-template-columns: minmax(15rem, 22rem) 1fr;
    min-height: 28rem;
  }
}

@media (min-width: 1024px) {
  .locations-block__layout {
    min-height: 32rem;
  }
}

/* Liste des cabinets */
.locations-block__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: #fbf9f5;
  border-bottom: 1px solid rgba(134, 115, 109, 0.1);
}

@media (min-width: 900px) {
  .locations-block__list {
    padding: 1.25rem;
    border-bottom: none;
    border-right: 1px solid rgba(134, 115, 109, 0.1);
  }
}

@media (max-width: 899px) {
  .locations-block__list {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.65rem;
    padding-bottom: 1.25rem;
  }
}

.location-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: 'Manrope', sans-serif;
  color: #53433e;
  scroll-snap-align: start;
  flex-shrink: 0;
}

@media (max-width: 899px) {
  .location-card {
    min-width: 14.5rem;
    max-width: 16rem;
  }
}

.location-card:hover {
  border-color: rgba(137, 75, 52, 0.25);
  box-shadow: 0 4px 12px rgba(27, 28, 26, 0.05);
}

.location-card.is-active {
  border-color: #894b34;
  background: #fff;
  box-shadow: 0 4px 16px rgba(137, 75, 52, 0.12);
}

.location-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: #d2e6c6;
  color: #56674e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-card.is-active .location-card__icon {
  background: #ffb59b;
  color: #894b34;
}

.location-card__icon .material-symbols-outlined {
  font-size: 1.35rem;
}

.location-card__body {
  flex: 1;
  min-width: 0;
}

.location-card__title {
  display: block;
  font-family: 'Noto Serif', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1b1c1a;
  margin-bottom: 0.2rem;
}

.location-card__address {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #53433e;
}

/* Zone carte */
.locations-block__map {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.locations-picker__frame {
  position: relative;
  flex: 1;
  min-height: 16rem;
  background: #eae8e4;
  overflow: hidden;
}

.locations-block__map .locations-picker__frame {
  min-height: clamp(18rem, 50vh, 32rem);
  border-radius: 0;
}

@media (min-width: 900px) {
  .locations-block__map .locations-picker__frame {
    min-height: 100%;
    height: 100%;
  }

  .locations-block__layout {
    align-items: stretch;
  }
}

.locations-picker__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.locations-block__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border-top: 1px solid rgba(134, 115, 109, 0.1);
  font-size: 0.875rem;
  color: #53433e;
}

.locations-block__footer strong {
  color: #1b1c1a;
  font-weight: 600;
}

.location-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #894b34;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.location-directions:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.location-directions .material-symbols-outlined {
  font-size: 1.1rem;
}

/* Accueil : carte à droite, liste verticale compacte */
.locations-block--home {
  display: flex;
  flex-direction: column;
  min-height: 22rem;
}

.locations-block--home .locations-block__layout {
  flex: 1;
  min-height: 22rem;
}

@media (min-width: 640px) {
  .locations-block--home .locations-block__layout {
    grid-template-columns: minmax(9.5rem, 11.5rem) 1fr;
    min-height: 24rem;
  }
}

@media (min-width: 1024px) {
  .locations-block--home .locations-block__layout {
    grid-template-columns: minmax(10rem, 12rem) 1fr;
    min-height: 100%;
    height: 100%;
  }

  .locations-block--home {
    min-height: 26rem;
  }
}

.locations-block--home .locations-block__list {
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  border-right: 1px solid rgba(134, 115, 109, 0.1);
  border-bottom: none;
}

.locations-block--home .location-card {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 0.6rem 0.65rem;
  gap: 0.55rem;
  align-items: center;
}

.locations-block--home .location-card__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.locations-block--home .location-card__icon .material-symbols-outlined {
  font-size: 1.1rem;
}

.locations-block--home .location-card__title {
  font-size: 0.88rem;
  margin-bottom: 0.1rem;
}

.locations-block--home .location-card__address {
  font-size: 0.68rem;
  line-height: 1.3;
  opacity: 0.9;
}

.locations-block--home .locations-block__footer {
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
}

.locations-block--home .location-directions {
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
}

@media (max-width: 639px) {
  .locations-block--home .locations-block__list {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-right: none;
    border-bottom: 1px solid rgba(134, 115, 109, 0.1);
    padding: 0.75rem;
  }

  .locations-block--home .location-card {
    min-width: 10.5rem;
    width: auto;
  }
}

[data-location-link] {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

[data-location-link]:hover {
  color: #894b34;
}
