.ylm-section {
  padding: 76px 0 88px;
  overflow: hidden;
  background: #f5f7fb;
}

.ylm-heading {
  margin-bottom: 32px;
  text-align: center;
}

.ylm-heading h2 {
  margin: 0;
  color: #071e50;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.2;
}

.ylm-heading h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 11px auto 0;
  border-radius: 4px;
  background: #0877cd;
}

.ylm-heading p {
  margin: 15px 0 0;
  color: #697386;
  font-size: 16px;
}

.ylm-map-wrap {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 6px;
  background: #dce5ed;
  box-shadow: 0 16px 45px rgba(8, 30, 80, .12);
}

.ylm-map {
  width: 100%;
  height: 520px;
}

.ylm-location {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: clamp(24px, 5vw, 72px);
  width: min(360px, calc(100% - 48px));
  padding: 30px;
  border-left: 4px solid #19a0ff;
  border-radius: 4px;
  background: rgba(4, 31, 101, .95);
  color: #fff;
  box-shadow: 0 18px 45px rgba(1, 14, 55, .28);
  transform: translateY(-50%);
}

.ylm-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #59bdff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.ylm-location h3 {
  margin: 0 0 13px;
  color: #fff;
  font-size: 27px;
  line-height: 1.25;
}

.ylm-location p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.7;
}

.ylm-directions {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, gap .2s ease;
}

.ylm-directions:hover {
  gap: 20px;
  color: #59bdff;
}

.ylm-marker {
  position: relative;
  width: 36px;
  height: 36px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #0877cd;
  box-shadow: 0 5px 18px rgba(0, 49, 121, .4);
  transform: rotate(-45deg);
}

.ylm-marker::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}

.maplibregl-popup-content {
  padding: 14px 17px;
  border-radius: 4px;
  color: #263044;
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(8, 30, 80, .16);
}

.maplibregl-popup-content strong {
  display: block;
  margin-bottom: 3px;
  color: #071e50;
}

.maplibregl-ctrl-attrib {
  font-size: 10px;
}

@media (max-width: 760px) {
  .ylm-section {
    padding: 56px 0 64px;
  }

  .ylm-map-wrap {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .ylm-map {
    height: 400px;
  }

  .ylm-location {
    position: relative;
    top: auto;
    left: auto;
    order: -1;
    width: 100%;
    padding: 26px 24px;
    border-left: 0;
    border-bottom: 4px solid #19a0ff;
    border-radius: 0;
    transform: none;
  }
}

@media (max-width: 480px) {
  .ylm-heading h2 {
    font-size: 30px;
  }

  .ylm-heading p {
    font-size: 14px;
  }

  .ylm-map {
    height: 360px;
  }
}
