/* LocaTroc Patch 022 - carte sans header/footer internes */

.map-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.map-shell {
  background: #ffffff;
  border-radius: 18px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

#locatroc-map {
  display: block !important;
  width: 100% !important;
  height: 650px !important;
  min-height: 650px !important;
  border-radius: 14px;
  overflow: hidden;
  background: #dfe7f1;
  position: relative;
  z-index: 1;
}

.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  min-height: 650px !important;
  border-radius: 14px;
  font-family: inherit;
}

.map-debug {
  margin-top: 12px;
  font-size: 14px;
  border-radius: 12px;
}

.map-popup-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.map-popup-price {
  font-weight: 700;
  color: #0d6efd;
}

.map-popup-link {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  font-weight: 600;
}

.user-position-marker {
  width: 18px;
  height: 18px;
  background: #0d6efd;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.22);
}

@media (max-width: 768px) {
  .map-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  #locatroc-map,
  .leaflet-container {
    height: 540px !important;
    min-height: 540px !important;
  }
}


.map-locate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 145px;
}

.map-locate-button.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.map-locate-button.is-loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: locatroc-map-spin 0.75s linear infinite;
}

.map-locate-button.is-loading .bi {
  display: none;
}

@keyframes locatroc-map-spin {
  to {
    transform: rotate(360deg);
  }
}


@media (max-width: 768px) {
  .map-locate-button {
    width: 100%;
    min-width: 0;
  }
}
