/* ================================================================
   GREECE INTERACTIVE MAP — Leaflet version
   Tretiakov in Athens brand styles
   ================================================================ */

/* ── Section ── */
.gmap-section {
  padding: 80px 0 72px;
  background: #EDE7DC;
  position: relative;
}
.gmap-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 30%, rgba(23,87,155,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 70%, rgba(122,148,54,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Header ── */
.gmap-section-header { text-align: center; margin-bottom: 36px; }
.gmap-section-eyebrow {
  font-family: var(--font-body, 'Lato', sans-serif);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #CC5628; margin-bottom: 10px;
}
.gmap-section-title {
  font-family: var(--font-display, 'Caveat', cursive);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #1A1A2E; margin: 0 0 12px; line-height: 1.15;
}
.gmap-section-sub {
  font-family: var(--font-body, 'Lato', sans-serif);
  font-size: 0.88rem; color: #6B7280;
  font-weight: 300; max-width: 460px;
  margin: 0 auto; line-height: 1.65;
}

/* ── Legend ── */
.gmap-legend {
  display: flex; align-items: center;
  justify-content: center; gap: 28px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.gmap-legend-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body, 'Lato', sans-serif);
  font-size: 0.76rem; font-weight: 600;
  color: #555F6D; letter-spacing: 0.03em;
}
.gmap-legend-dot {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid #EDE7DC;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.gmap-legend-dot--active { background: #CC5628; }
.gmap-legend-dot--soon   { background: #9BA8BB; }

/* ── Map frame ── */
.gmap-frame {
  position: relative;
  background: #E0D9CE;
  border-radius: 20px;
  padding: 16px;
  border: 1.5px solid rgba(23,87,155,0.14);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.04),
    0 16px 48px rgba(23,87,155,0.10),
    inset 0 1px 3px rgba(255,255,255,0.6);
  max-width: 880px;
  margin: 0 auto;
}
.gmap-frame::before,
.gmap-frame::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-style: solid;
  border-color: rgba(204,86,40,0.35);
  z-index: 5; pointer-events: none;
}
.gmap-frame::before { top: 8px; left: 8px;   border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.gmap-frame::after  { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }

/* ── Leaflet map container ── */
#leaflet-map {
  width: 100%;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
}

/* ── Hide Leaflet attribution (keep it accessible but minimal) ── */
.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(237,231,220,0.75) !important;
  color: #9BA8BB !important;
  border-radius: 6px 0 0 0 !important;
  padding: 2px 6px !important;
}
.leaflet-control-attribution a { color: #9BA8BB !important; }

/* ── Zoom controls style ── */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 12px rgba(23,87,155,0.12) !important;
  border-radius: 10px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  background: rgba(237,231,220,0.95) !important;
  color: #17579B !important;
  border: none !important;
  font-size: 16px !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-weight: 700 !important;
}
.leaflet-control-zoom a:hover {
  background: #17579B !important;
  color: #F5F2EE !important;
}

/* ── Pin icons ── */
.gmap-leaflet-pin {
  background: none !important;
  border: none !important;
  /* NO transform on hover — prevents pin from jumping away from cursor */
}
.gmap-leaflet-pin:hover svg,
.gmap-leaflet-pin:focus svg {
  /* Scale the SVG image itself, keeping the anchor point fixed */
  transform: scale(1.22);
  transform-origin: center center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gmap-leaflet-pin svg {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.gmap-leaflet-pin--active svg circle:first-child {
  animation: leafletPulse 2.4s ease-in-out infinite;
}
@keyframes leafletPulse {
  0%   { opacity: 0.6; r: 14; }
  60%  { opacity: 0.08; r: 19; }
  100% { opacity: 0.6; r: 14; }
}

/* ── Popup ── */
.gmap-leaflet-popup .leaflet-popup-content-wrapper {
  background: #FFFFFF;
  border: 1px solid rgba(23,87,155,0.13);
  border-radius: 16px !important;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 16px 40px rgba(23,87,155,0.16),
    0 0 0 4px rgba(237,231,220,0.9) !important;
  padding: 0 !important;
  overflow: hidden;
}
.gmap-leaflet-popup .leaflet-popup-content {
  margin: 0 !important;
  width: auto !important;
}
.gmap-leaflet-popup .leaflet-popup-tip-container {
  display: none;
}
.gmap-leaflet-popup .leaflet-popup-close-button {
  color: #9BA8BB !important;
  font-size: 18px !important;
  top: 8px !important; right: 10px !important;
  width: 24px !important; height: 24px !important;
  background: rgba(23,87,155,0.06) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
}
.gmap-leaflet-popup .leaflet-popup-close-button:hover {
  color: #CC5628 !important;
  background: rgba(204,86,40,0.1) !important;
}

.gmap-popup-inner {
  padding: 16px 16px 14px;
  min-width: 240px;
  max-width: 280px;
}

.gmap-popup-region {
  display: flex; align-items: center;
  font-family: var(--font-body, 'Lato', sans-serif);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #CC5628; margin-bottom: 10px;
  padding-right: 20px;
}

.gmap-guides-list { display: flex; flex-direction: column; }
.gmap-guide-row   { padding: 8px 0 10px; }
.gmap-guide-row + .gmap-guide-row { border-top: 1px solid rgba(23,87,155,0.07); }

.gmap-popup-divider { height: 1px; background: rgba(23,87,155,0.07); }

.gmap-guide-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 8px; margin-bottom: 3px;
}
.gmap-guide-name {
  font-family: var(--font-display, 'Caveat', cursive);
  font-size: 1.05rem; font-weight: 700;
  color: #1A1A2E; line-height: 1.2; flex: 1;
}
.gmap-guide-badge {
  font-family: var(--font-body, 'Lato', sans-serif);
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 20px; padding: 2px 7px;
  white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}
.gmap-guide-spots {
  font-family: var(--font-body, 'Lato', sans-serif);
  font-size: 0.73rem; color: #6B7280;
  margin-bottom: 7px; line-height: 1.4;
}
.gmap-popup-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-body, 'Lato', sans-serif);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: #17579B;
  border-bottom: 1.5px solid rgba(23,87,155,0.3);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.gmap-popup-btn:hover { color: #CC5628; border-color: #CC5628; }
.gmap-popup-btn--soon { color: #9BA8BB; border-color: rgba(155,168,187,0.4); }
.gmap-popup-btn--soon:hover { color: #CC5628; border-color: #CC5628; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .gmap-section { padding: 56px 0 48px; }
  .gmap-frame   { padding: 10px; border-radius: 14px; }
  #leaflet-map  { height: 360px; }
}
