/* =========================================
   MAP SECTION — Futuristic store locator
   ========================================= */

.map-section {
  padding: 0 0 var(--space-2xl);
}

.map-header {
  text-align: center;
  margin-bottom: 0;
}

.map-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-pale);
  letter-spacing: 0.3px;
}

.map-address__icon { font-size: 1rem; }

.map-subtitle {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

/* Two-column layout */
.map-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: stretch;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: invert(90%) hue-rotate(180deg) saturate(0.8) brightness(0.85);
}

/* Cantos futuristas */
.map-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 2;
  pointer-events: none;
}

.map-corner--tl { top: -1px; left: -1px;  border-top: 2px solid var(--purple-light); border-left: 2px solid var(--purple-light); border-radius: 4px 0 0 0; }
.map-corner--tr { top: -1px; right: -1px; border-top: 2px solid var(--purple-light); border-right: 2px solid var(--purple-light); border-radius: 0 4px 0 0; }
.map-corner--bl { bottom: -1px; left: -1px;  border-bottom: 2px solid var(--purple-light); border-left: 2px solid var(--purple-light); border-radius: 0 0 0 4px; }
.map-corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--purple-light); border-right: 2px solid var(--purple-light); border-radius: 0 0 4px 0; }

/* Glows laterais */
.map-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 2;
  pointer-events: none;
}

.map-glow--left {
  left: 0;
  background: linear-gradient(to bottom, transparent, var(--purple), transparent);
  box-shadow: 0 0 18px 4px rgba(124, 58, 237, 0.5);
}

.map-glow--right {
  right: 0;
  background: linear-gradient(to bottom, transparent, var(--purple), transparent);
  box-shadow: 0 0 18px 4px rgba(124, 58, 237, 0.5);
}

/* --- Info Panel --- */
.map-info {
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* Cantos do painel — ocultos */
.map-info__corner { display: none; }

.map-info__header { margin-bottom: 16px; }

.map-info__category {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 6px;
}

.map-info__name {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 2px;
}

.map-info__tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.map-info__rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-info__stars {
  color: #fbbf24;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.map-info__score {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fbbf24;
}

.map-info__reviews {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.map-info__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 14px 0;
}

.map-info__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.map-info__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-subtle);
  line-height: 1.45;
}

.map-info__icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.map-info__open {
  color: #4ade80;
  font-weight: 700;
}

.map-info__link {
  color: var(--purple-pale);
  text-decoration: none;
  transition: color 0.2s;
}
.map-info__link:hover { color: #fff; }

.map-info__directions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.map-info__directions:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-wrapper { height: 300px; }
}

@media (max-width: 480px) {
  .map-wrapper {
    height: 240px;
    border-radius: var(--radius-md);
  }
  .map-info { padding: 18px 16px; }
}
