/* ============================================================
   GCOMPANY · CONTACT MAP PANEL  (gcompany-map.css)
   Real Google Maps embed styled exactly like the original
   decorative panel: animated gradient border, grid texture,
   amber teardrop pin with pulse, glass capsule label.
   Prefix .ghq-  ·  no JS required  ·  self-contained colours
   ============================================================ */

/* ---- the frame (same treatment as .g-map-panel) ---- */
.ghq-map {
  position: relative;
  height: clamp(340px, 40vw, 480px);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(rgba(21, 12, 56, 0.93), rgba(21, 12, 56, 0.93)) padding-box,
    linear-gradient(115deg,
      #700035 0%,
      #C15058 20%,
      #E0A97D 42%,
      #FFF0D2 50%,
      #F2C16D 58%,
      #E0A97D 76%,
      #700035 100%) border-box;
  background-size: 100% 100%, 300% 300%;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: ghqBorderFlow 7s linear infinite;
}
@keyframes ghqBorderFlow {
  0%   { background-position: 0% 50%, 0% 50%; }
  50%  { background-position: 0% 50%, 100% 50%; }
  100% { background-position: 0% 50%, 0% 50%; }
}

/* THE FIX: any pasted Google Maps embed fills the frame
   edge-to-edge — no fixed 600x450 leftovers, no border, no gaps. */
.ghq-map iframe,
.ghq-map embed,
.ghq-map object,
.ghq-map video,
.ghq-map > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  margin: 0;
  display: block;
}

/* Dark skin so Google's bright map matches the panel —
   remove the class "ghq-dark" to keep Google's light colours. */
.ghq-dark iframe,
.ghq-dark embed,
.ghq-dark object {
  filter: invert(0.92) hue-rotate(185deg) saturate(0.72)
          contrast(1.04) brightness(0.96) sepia(0.10);
}

/* subtle grid texture over the map (same as the placeholder) */
.ghq-grid {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
}

/* ---- the GCompany mark: pin + pulse + capsule ---- */
.ghq-mark {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;               /* map stays fully draggable */
}
.ghq-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  text-align: center;
}
.ghq-pin-dot {
  width: 18px; height: 18px;
  margin: 0 auto;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #F2C16D, #C15058);
  box-shadow: 0 0 24px rgba(242, 193, 109, 0.65);
}
.ghq-pin-pulse {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(242, 193, 109, 0.5);
  margin: -46px auto 0;
  animation: ghqPinPulse 2.4s ease-out infinite;
}
@keyframes ghqPinPulse {
  0%   { transform: scale(0.35); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* capsule label — same glass style as before, now a link */
.ghq-label {
  position: absolute; left: 50%; top: 58%;
  transform: translateX(-50%);
  pointer-events: auto;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(21, 12, 56, 0.72);
  border: 1px solid rgba(224, 169, 125, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.ghq-label strong { color: #F2C16D; }
.ghq-label:hover,
.ghq-label:focus-visible {
  border-color: rgba(242, 193, 109, 0.75);
  box-shadow: 0 12px 34px -12px rgba(242, 193, 109, 0.45);
  transform: translateX(-50%) translateY(-2px);
  color: #ffffff;
}

/* ---- responsive ---- */
@media (max-width: 575px) {
  .ghq-map { height: clamp(300px, 92vw, 380px); }
  .ghq-label {
    white-space: normal;
    text-align: center;
    max-width: 86%;
    font-size: 12px;
    line-height: 1.55;
    padding: 8px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ghq-map { animation: none !important; }
  .ghq-pin-pulse { animation: none !important; opacity: 0.4; }
  .ghq-label { transition: none; }
}
