/* =========================================
   LEAFLET MAP – DRIVER OF SAMOS
   Clean / modern / tourism-friendly
   ========================================= */

/* 1) ΒΑΣΙΚΟ ΚΟΥΤΙ ΧΑΡΤΗ */
.leaflet-container {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  min-height: 0px; /* ρύθμιση ύψους */
  background: #f5f5f5;
}

/* Αν το img μέσα στον χάρτη επηρεάζεται από global rules */
.leaflet-container img {
  max-width: none !important;
}

/* 2) ZOOM BUTTONS */
.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
  border-radius: 12px !important;
  overflow: hidden;
  margin-top: 14px !important;
  margin-left: 14px !important;
}

.leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 20px;
  font-weight: 700;
  color: #222 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.leaflet-control-zoom a:last-child {
  border-bottom: 0 !important;
}

.leaflet-control-zoom a:hover,
.leaflet-control-zoom a:focus {
  background: #ffffff !important;
  text-decoration: none;
}

/* 3) SCALE BAR (100 m / 500 m) */
.leaflet-control-scale {
  margin-bottom: 12px !important;
  margin-left: 12px !important;
}

.leaflet-control-scale-line {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  color: #222 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  padding: 2px 6px !important;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* 4) ATTRIBUTION – πιο διακριτικό */
.leaflet-container .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.72) !important;
  color: #555 !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  padding: 2px 6px !important;
  border-radius: 8px 0 0 0;
  box-shadow: none !important;
}

/* Κρύβει μόνο το "Leaflet" */
.leaflet-container .leaflet-control-attribution .leaflet-control-attribution-link {
  display: none !important;
}

.leaflet-container .leaflet-control-attribution a {
  color: #555 !important;
  text-decoration: none;
}

.leaflet-container .leaflet-control-attribution a:hover {
  color: #222 !important;
  text-decoration: underline;
}

/* 5) POPUP */
.leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  padding: 0;
}

.leaflet-popup-content {
  margin: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
}

.leaflet-popup-tip {
  box-shadow: none;
}

.leaflet-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  font-size: 18px !important;
}

/* 6) OPTIONAL – marker hover effect για custom markers */
.leaflet-marker-icon {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.leaflet-marker-icon:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}

/* 7) ΓΕΝΙΚΑ CONTROLS */
.leaflet-top,
.leaflet-bottom {
  z-index: 400;
}

/* 8) MOBILE */
@media (max-width: 768px) {
  .leaflet-container {
    min-height: 320px;
    border-radius: 14px;
  }

  .leaflet-control-zoom {
    margin-top: 10px !important;
    margin-left: 10px !important;
    border-radius: 10px !important;
  }

  .leaflet-control-zoom a {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 18px;
  }

  .leaflet-container .leaflet-control-attribution {
    font-size: 9px !important;
    padding: 2px 5px !important;
  }
}

/* αφαίρεση άσπρου κάτω από την πινέζα */
.leaflet-marker-shadow {
  display: none !important;
}

.leaflet-marker-icon {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.18));
}

/* Πως εμφανίζεται το popup στον χάρτη */
/* =========================================
   GoSamos - Leaflet Popup
   ========================================= */

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.leaflet-popup-content {
  margin: 11px 14px;
  padding-right: 8px;
  font-family: 'PT Sans Local', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  max-width: 230px;
}

.leaflet-popup-tip {
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.10);
}

.leaflet-container a.leaflet-popup-close-button {
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  font-size: 18px;
  line-height: 20px;
  border-radius: 50%;
}

/* Λίγο πιο άνετο popup στα κινητά */
@media (max-width: 600px) {
  .leaflet-popup-content {
    margin: 11px 15px;
    padding-right: 8px;
    font-size: 14px;
  }
}

/* =========================================
   GoSamos - Leaflet Zoom Controls
   ========================================= */

.leaflet-control-zoom {
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
}

.leaflet-control-zoom a {
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  font-size: 22px !important;
  font-weight: 700 !important;

  background: rgba(255, 255, 255, 0.96) !important;
  color: #1677b8 !important;

  border: 0 !important;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.leaflet-control-zoom a:first-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.10) !important;
}

.leaflet-control-zoom a:hover,
.leaflet-control-zoom a:focus {
  background: #1677b8 !important;
  color: #fff !important;
}

.leaflet-control-zoom a.leaflet-disabled {
  background: #f3f3f3 !important;
  color: #aaa !important;
  cursor: default;
}

/* Λίγο πιο σωστή απόσταση από τις άκρες */
.leaflet-top.leaflet-left {
  margin-top: 4px;
  margin-left: 4px;
}


/* GoSamos - Leaflet Scale */

.leaflet-control-scale-line {
  background: rgba(255, 255, 255, 0.92);
  border: 0 !important;
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 12px;
  color: #444;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
}