/* Find Your Studio — popup + map controls, matched to the studio card */

/* --- mobile slide toggle --- */
.studio-location__left.slide-out,
.studio-location__right.slide-out {
  transform: translateY(100%) scale(0.1);
  opacity: 0;
  position: absolute;
}
.studio-location__left.slide-in,
.studio-location__right.slide-in {
  display: block;
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* --- popup shell: mirror the card --- */
.leaflet-popup-content-wrapper {
  background: var(--light-card-background);
  color: var(--light-card-text-color);
  border-radius: var(--card-radius);
  box-shadow: var(--box-shadow-l);
}
.leaflet-popup-tip {
  background: var(--light-card-background);
}
.leaflet-popup-content {
  margin: calc(var(--card-padding) * 0.75);
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  --icon-size: var(--text-l);
  width: max-content;
  font-size: var(--text-m);
}

/* heading — same as card heading */
.leaflet-popup-content .studio-location-box__heading {
  font-size: var(--h4);
  font-family: var(--heading-font-family);
  color: var(--heading-color);
  margin: 0;
}

/* contact list — match the card __list rhythm */
.leaflet-popup-content .studio-location-box__list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--card-gap) * 0.5);
  margin-block-start: calc(var(--card-gap) * -0.25);
  padding: 0;
  list-style: none;
}
.leaflet-popup-content .studio-location-box__list-item {
  display: flex;
  flex-direction: row;
  gap: var(--space-xs);
}
.leaflet-popup-content .studio-location-box__list-icon {
  height: var(--icon-size);
  width: var(--icon-size);
  transform: translateY(15%);
  flex-shrink: 0;
}
.leaflet-popup-content .studio-location-box__list-text {
  font-size: var(--text-s);
}

/* links inside the popup behave like card links (no underline / inherit colour) */
.leaflet-popup-content a:not([class*="btn"]) {
  text-decoration: unset;
  color: unset;
}
.leaflet-popup-content a:not([class*="btn"]):hover {
  color: unset;
}

.leaflet-popup-content a[class*="btn"]{
  color: var(--btn-text-color);
  &:hover{
    color: var(--btn-text-color-hover);
  }
}

/* button wrapper — same flex-grow behaviour as the card */
.leaflet-popup-content .studio-location-box__button-wrapper {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.leaflet-popup-content .studio-location-box__button-wrapper a {
  flex-grow: 1;
}

/* --- close button --- */
.leaflet-popup-close-button {
  color: var(--heading-color) !important;
  padding: 8px 8px 0 0 !important;
}
.leaflet-popup-close-button:hover {
  color: var(--base) !important;
}

/* --- zoom + layer controls, themed to match --- */
.leaflet-bar a,
.leaflet-control-layers {
  background: var(--light-card-background);
  color: var(--light-card-text-color);
  border-color: var(--border-color-dark);
}
.leaflet-bar a:hover {
  background: color-mix(in oklch, var(--light-card-background), black 10%);
}

.leaflet-container {
  font-family: inherit;
}