/* Popup de marcadores en mapas (directorio, guía turística, portada) */

.directorio-map-panel .gm-style-iw-c,
.home-guia-mapa-modal__map .gm-style-iw-c {
  padding: 0 !important;
  max-height: none !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
}

.directorio-map-panel .gm-style-iw-d,
.home-guia-mapa-modal__map .gm-style-iw-d {
  overflow: visible !important;
  max-height: none !important;
}

.directorio-map-panel .gm-style-iw-chr,
.home-guia-mapa-modal__map .gm-style-iw-chr {
  display: none !important;
}

.directorio-map-panel .gm-style-iw-tc::after,
.home-guia-mapa-modal__map .gm-style-iw-tc::after {
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dir-map-popup {
  width: 280px;
  max-width: 100%;
  font-family: var(--font-body);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.dir-map-popup__media {
  position: relative;
  height: 132px;
  overflow: hidden;
  background: #e8e8e8;
}

.dir-map-popup__cover-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.dir-map-popup__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dir-map-popup__rubro {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--color-brand-gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.dir-map-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(185, 152, 75, 0.92);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.dir-map-popup__close:hover {
  background: var(--color-brand-gold-dark);
}

.dir-map-popup__logo {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dir-map-popup__body {
  padding: 12px 14px 14px;
}

.dir-map-popup__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #2c3e50;
}

.dir-map-popup__title a {
  color: inherit;
  text-decoration: none;
}

.dir-map-popup__title a:hover {
  color: var(--color-brand-primary);
}

.dir-map-popup__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #666;
}

.dir-map-popup__row i {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-brand-gold);
  font-size: 0.82rem;
}

.dir-map-popup__row--phone a {
  color: #333;
  text-decoration: none;
}

.dir-map-popup__row--phone a:hover {
  color: var(--color-brand-primary);
}

.dir-map-popup__status {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.dir-map-popup__status--open {
  color: #2e7d32;
}

.dir-map-popup__status--closed {
  color: #c62828;
}

@media (max-width: 767px) {
  .dir-map-popup {
    width: 260px;
  }

  .dir-map-popup__media {
    height: 118px;
  }

  .dir-map-popup__title {
    font-size: 0.94rem;
  }
}
