/* ============================================
   Dra. Ana Matumoto — Localização
   Map strip · dark-filtered Google Maps embed
   Inherits tokens from hero.css
   ============================================ */

.location {
  position: relative;
  padding: clamp(80px, 11vh, 140px) clamp(20px, 4vw, 64px);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.location::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 0%,
      rgba(203, 163, 107, 0.04) 0%,
      transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.location-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: stretch;
}

/* ============================================
   INFO (left column)
   ============================================ */
.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vh, 32px);
  padding: clamp(0px, 2vh, 24px) 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}

.location.is-revealed .location-info {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.1s;
}

.location-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 18px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 8, 7, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: fit-content;
}

.location-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.location-eyebrow strong {
  color: var(--ink);
  font-weight: 600;
}

.location-title {
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "SOFT" 40;
}

.location-title em {
  font-style: italic;
  color: var(--accent-2);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}

.location-title .period {
  color: var(--accent);
  margin-left: -0.04em;
}

.location-address {
  font-style: normal;
  font-family: var(--f-sans);
  font-size: clamp(14.5px, 1.05vw, 16px);
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.location-address strong {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink);
  letter-spacing: -0.008em;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 36, "SOFT" 100;
}

.location-meta {
  list-style: none;
  margin: 0;
  padding: clamp(20px, 3vh, 28px) 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.location-meta li {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.location-meta .meta-label {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-shrink: 0;
  min-width: 92px;
}

.location-meta .meta-value {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 100;
}

.location-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 14px 22px 14px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(203, 163, 107, 0.06);
  transition: gap 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
  width: fit-content;
  margin-top: 8px;
}

.location-cta .pin {
  width: 16px;
  height: 16px;
  color: var(--accent-2);
  flex-shrink: 0;
}

.location-cta .arrow {
  width: 18px;
  height: 9px;
  transition: transform 0.4s var(--ease);
}

.location-cta:hover {
  background: rgba(203, 163, 107, 0.14);
  color: var(--accent-2);
  gap: 16px;
}

.location-cta:hover .arrow {
  transform: translateX(3px);
}

/* ============================================
   MAP (right column)
   ============================================ */
.location-map {
  position: relative;
  min-height: 420px;
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.location.is-revealed .location-map {
  opacity: 1; transform: translateY(0) scale(1);
  transition-delay: 0.28s;
}

.map-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow:
    0 1px 0 rgba(244, 238, 227, 0.06) inset,
    0 28px 60px -28px rgba(0, 0, 0, 0.8),
    0 12px 28px -12px rgba(0, 0, 0, 0.55);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Dark-mode the Google Maps iframe via CSS filter */
  filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.92) saturate(0.75);
}

/* Subtle warm overlay to integrate the map into the page palette */
.map-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center,
      transparent 30%,
      rgba(10, 8, 7, 0.18) 100%),
    linear-gradient(135deg,
      rgba(203, 163, 107, 0.04) 0%,
      transparent 40%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

/* Gold corner accents on the map frame */
.map-frame::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 18px; height: 18px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0;
  transform: translate(6px, -6px);
  transition: opacity 0.8s var(--ease-out) 0.6s, transform 0.8s var(--ease-out) 0.6s;
  pointer-events: none;
  z-index: 3;
}

.location.is-revealed .map-frame::after {
  opacity: 0.7;
  transform: translate(0, 0);
}

/* Pin pulse overlay — subtle marker indicator */
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 0 0 0 rgba(203, 163, 107, 0.6);
  animation: mapPinPulse 2.4s ease-out infinite;
}

@keyframes mapPinPulse {
  0%   { box-shadow: 0 0 0 0 rgba(203, 163, 107, 0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(203, 163, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(203, 163, 107, 0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 920px) {
  .location-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .location-map {
    min-height: 340px;
    order: 2;
  }

  .map-frame {
    min-height: 340px;
  }

  .location-info {
    order: 1;
  }
}

@media (max-width: 580px) {
  .location {
    padding: 64px 18px;
  }

  .location-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .location-meta li {
    flex-direction: column;
    gap: 4px;
  }

  .location-cta {
    width: 100%;
    justify-content: center;
  }

  .map-frame {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location *,
  .location *::before,
  .location *::after {
    transition: none !important;
    animation: none !important;
  }
  .location .location-info,
  .location .location-map {
    opacity: 1 !important;
    transform: none !important;
  }
}
