/**
 * Frontend styling for the allsizes-maps map (site/snippets/map.php).
 *
 * This file lives inside the plugin so it ports with it to other projects.
 * Kirby publishes it to /media/plugins/allsizes/maps/css/map.css.
 * Tweak the variables below to restyle the map container and markers.
 */

.allsizes-map {

    --light: white;
    --backgroundColor: #DAFF0C;
    --textColor: #FF005E; 

  /* --- tweakable variables ------------------------------------------- */
  --map-height: 60vh;          /* height of the map on desktop */
  --map-min-height: 320px;     /* minimum height on small screens */
  --map-radius: 0;             /* rounded corners of the map, e.g. 8px */
  --map-marker-width: 50px;    /* marker icon width */
  --map-marker-height: 50px;   /* marker icon height */
  --map-link-color: inherit;   /* popup link color */
  /* ------------------------------------------------------------------- */

  width: 100%;
  height: var(--map-height);
  min-height: var(--map-min-height);
  border-radius: var(--map-radius);
  overflow: hidden;
}

/* Popup link color */
.allsizes-map .mapboxgl-popup-content a {
  color: var(--map-link-color);
}

/* Popup label / link text */
.allsizes-popup-link,
.allsizes-popup-label {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}
.allsizes-popup-link:hover {

}

/* Marker (clickable pin) */
.allsizes-marker {
  display: block;
  width: var(--map-marker-width);
  height: var(--map-marker-height);
  cursor: pointer;
}

.allsizes-marker img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Optional: hover effect on markers */
.allsizes-marker:hover img {
  transform: scale(1.18);
  transition: transform 0.15s ease;
}

.mapboxgl-popup-content{
    background: var(--backgroundColor);
    padding: 1rem;
}

.allsizes-popup-link {
    font-size: 1.5rem;
    outline: 0;
}

.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
    border-bottom-color: var(--backgroundColor);
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: var(--backgroundColor);
}