/* ═══════════════════════════════════════════════════════════════
   THE ULTIMATE BEAUTY — MAPBOX TÉRKÉP STÍLUSOK
   ═══════════════════════════════════════════════════════════════ */

/* ─── MAP CONTAINER ────────────────────────────────────────── */
.tub-map-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(44, 40, 36, 0.12);
  border: 1px solid rgba(184, 150, 90, 0.12);
}

#tub-map {
  width: 100%;
  height: 420px;
}

/* Gold gradient overlay on edges */
.tub-map-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 16px;
  box-shadow: inset 0 0 60px rgba(44, 40, 36, 0.15);
}

/* ─── CUSTOM MARKER ────────────────────────────────────────── */
.tub-map-marker {
  position: relative;
  cursor: pointer;
}

.tub-map-marker__pin {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #B8965A, #D4B87A);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(184, 150, 90, 0.4);
  transition: transform 0.3s ease;
}

.tub-map-marker:hover .tub-map-marker__pin {
  transform: rotate(-45deg) scale(1.1);
}

.tub-map-marker__icon {
  transform: rotate(45deg);
  font-size: 16px;
  color: #FDFAF6;
  line-height: 1;
}

.tub-map-marker__pulse {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: rgba(184, 150, 90, 0.25);
  border-radius: 50%;
  animation: tub-marker-pulse 2s ease-in-out infinite;
}

@keyframes tub-marker-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) scale(2.5); opacity: 0; }
}

/* ─── POPUP ────────────────────────────────────────────────── */
.tub-map-popup .mapboxgl-popup-content {
  background: #2C2824;
  color: #FDFAF6;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 220px;
  border: 1px solid rgba(184, 150, 90, 0.2);
}

.tub-map-popup .mapboxgl-popup-tip {
  border-top-color: #2C2824;
}

.tub-map-popup .mapboxgl-popup-close-button {
  color: rgba(253, 250, 246, 0.5);
  font-size: 18px;
  padding: 4px 8px;
}
.tub-map-popup .mapboxgl-popup-close-button:hover {
  color: #B8965A;
  background: transparent;
}

.tub-map-popup__content {
  font-family: 'Montserrat', sans-serif;
}

.tub-map-popup__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #FDFAF6;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.tub-map-popup__address {
  font-size: 0.78rem;
  color: rgba(253, 250, 246, 0.7);
  line-height: 1.5;
  margin-bottom: 4px;
}

.tub-map-popup__phone {
  font-size: 0.78rem;
  color: rgba(253, 250, 246, 0.5);
  margin-bottom: 12px;
}

.tub-map-popup__directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #B8965A;
  text-decoration: none;
  transition: gap 0.3s, color 0.3s;
}

.tub-map-popup__directions:hover {
  color: #D4B87A;
  gap: 10px;
}

/* ─── MAP INFO BAR ─────────────────────────────────────────── */
.tub-map-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.tub-map-info__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tub-map-info__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--charcoal, #2C2824);
}

.tub-map-info__address {
  font-size: 0.8rem;
  color: var(--text-muted, #8C8478);
}

.tub-map-info__right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.tub-map-info__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--gold, #B8965A);
  text-decoration: none;
  transition: gap 0.3s;
}
.tub-map-info__link:hover {
  gap: 10px;
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  #tub-map {
    height: 300px;
  }
  .tub-map-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── MAPBOX OVERRIDES ─────────────────────────────────────── */
.mapboxgl-ctrl-attrib {
  font-size: 9px !important;
  opacity: 0.5;
}
.mapboxgl-ctrl-group button {
  background: #2C2824 !important;
  border-color: rgba(184, 150, 90, 0.2) !important;
}
.mapboxgl-ctrl-group button .mapboxgl-ctrl-icon {
  filter: invert(1) brightness(0.8);
}
