/* ============================================================
   Glass Map Widget  –  gmw-style.css  v1.0.0
   Matches the Glass Container Widget liquid-glass design system.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ─── Outer wrapper ─────────────────────────────────────── */
.gmw-wrap {
  --gmw-container-glass-color: rgba(255,255,255,0.10);
  --gmw-container-blur: 18px;

  position: relative;
  border-radius: 24px;
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
  isolation: isolate;
}

/* Glass container variant */
.gmw-wrap.gmw-has-glass {
  background-color: #4a2e1a;
  background-image:
    radial-gradient(ellipse at 15% 20%, rgba(240,122,20,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(120,60,10,0.30) 0%, transparent 60%);
  backdrop-filter: blur(var(--gmw-container-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--gmw-container-blur)) saturate(160%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.18),
    inset -1px -1px 0 rgba(0,0,0,0.25),
    0 8px 40px rgba(0,0,0,0.35);
}

/* No-glass variant: bare map only */
.gmw-wrap.gmw-no-glass {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 !important;
}

/* Top-left container shine (glass only) */
.gmw-wrap.gmw-has-glass .gmw-glass-shine {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(
    160deg,
    var(--gmw-container-glass-color) 0%,
    rgba(255,255,255,0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Bottom rim light (glass only) */
.gmw-wrap.gmw-has-glass .gmw-glass-rim {
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.30) 35%,
    rgba(255,255,255,0.30) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.gmw-inner {
  position: relative;
  z-index: 1;
}

/* ─── Match-column-height (stretch) mode ─────────────────── */
/* Make the whole chain flex so the map fills leftover space and
   the wrapper equals the height of the column / sibling widget.
   Elementor nests: .elementor-widget > .elementor-widget-container > .gmw-wrap
   so every level must be height:100% for the stretch to propagate. */
.elementor-widget-gmw_map:has(.gmw-wrap.gmw-stretch),
.elementor-widget-gmw_map:has(.gmw-wrap.gmw-stretch) > .elementor-widget-container {
  height: 100%;
}

.gmw-wrap.gmw-stretch {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.gmw-wrap.gmw-stretch .gmw-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.gmw-wrap.gmw-stretch .gmw-map-frame {
  flex: 1 1 auto;
  height: auto;
}

/* ─── Header ─────────────────────────────────────────────── */
.gmw-header { margin-bottom: 20px; }

.gmw-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f07a14;
  margin: 0 0 12px;
}

.gmw-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.12;
  color: #f5e6d0;
  margin: 0;
  letter-spacing: -0.02em;
}

/* ─── Map frame ──────────────────────────────────────────── */
.gmw-map-frame {
  --gmw-extra-filter: ;
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.18),
    0 4px 24px rgba(0,0,0,0.22);
  background: #1a1410;
}

.gmw-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  transition: filter 0.3s ease;
}

/* Dark theme treatment over the embedded map */
.gmw-map-frame.gmw-theme-dark iframe {
  filter: grayscale(40%) invert(92%) hue-rotate(180deg) contrast(90%) brightness(95%) var(--gmw-extra-filter, );
}

/* ─── Map placeholder (no link yet) ──────────────────────── */
.gmw-map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  color: #c8a882;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(240,122,20,0.12) 0%, transparent 60%),
    #2a1c11;
}
.gmw-map-placeholder i { font-size: 38px; color: #f07a14; opacity: 0.7; }

/* ─── Overlay info card (glass) ──────────────────────────── */
.gmw-overlay {
  --gmw-blur: 12px;
  --gmw-glass-opacity: 0.18;
  --gmw-glass-color: #ffffff;

  position: absolute;
  z-index: 5;
  max-width: min(300px, calc(100% - 32px));
  border-radius: 16px;
  padding: 16px 18px;
  overflow: hidden;
  isolation: isolate;

  background: rgba(255,255,255, var(--gmw-glass-opacity));
  backdrop-filter: blur(var(--gmw-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--gmw-blur)) saturate(180%);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.32),
    inset -1px -1px 0 rgba(0,0,0,0.18),
    0 4px 24px rgba(0,0,0,0.28);
}

/* Overlay positions */
.gmw-pos-top-left     { top: 16px;    left: 16px; }
.gmw-pos-top-right    { top: 16px;    right: 16px; }
.gmw-pos-bottom-left  { bottom: 16px; left: 16px; }
.gmw-pos-bottom-right { bottom: 16px; right: 16px; }

.gmw-overlay-shine {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.06) 35%,
    rgba(255,255,255,0.00) 55%,
    rgba(255,255,255,0.08) 80%,
    rgba(255,255,255,0.20) 100%
  );
  mix-blend-mode: screen;
}

.gmw-overlay-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.gmw-overlay-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #f07a14;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 10px rgba(240,122,20,0.45),
    inset 0 1px 0 rgba(255,255,255,0.30);
}
.gmw-overlay-icon::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  pointer-events: none;
}
.gmw-overlay-icon i,
.gmw-overlay-icon svg {
  font-size: 15px;
  width: 15px;
  height: 15px;
  color: #fff;
  fill: #fff;
  position: relative;
  z-index: 1;
}

.gmw-overlay-body { min-width: 0; }

.gmw-overlay-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #c8a882;
  margin: 0 0 4px;
}

.gmw-overlay-address {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f5e6d0;
  margin: 0;
  line-height: 1.35;
}

.gmw-overlay-phone {
  margin: 6px 0 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.gmw-overlay-phone a {
  color: #f5e6d0;
  text-decoration: none;
}
.gmw-overlay-phone a:hover { color: #f07a14; }

.gmw-overlay-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f07a14;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow:
    0 2px 10px rgba(240,122,20,0.45),
    inset 0 1px 0 rgba(255,255,255,0.30);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gmw-overlay-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 18px rgba(240,122,20,0.55),
    inset 0 1px 0 rgba(255,255,255,0.40);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gmw-heading { font-size: clamp(22px, 3.4vw, 30px); }
}

@media (max-width: 767px) {
  .gmw-header { margin-bottom: 16px; }
  .gmw-heading { font-size: clamp(20px, 6vw, 28px); }
  /* On small screens, let the overlay sit full-width across the bottom
     so it never overflows a narrow map. */
  .gmw-overlay {
    left: 12px !important;
    right: 12px !important;
    max-width: none;
    bottom: 12px;
    top: auto;
  }
  .gmw-pos-top-left, .gmw-pos-top-right { top: 12px; bottom: auto; }
}

@media (max-width: 480px) {
  .gmw-wrap.gmw-has-glass { padding: 16px; }
  .gmw-overlay { padding: 12px 14px; border-radius: 14px; }
  .gmw-overlay-inner { gap: 10px; }
  .gmw-overlay-icon { width: 34px; height: 34px; min-width: 34px; }
  .gmw-overlay-address { font-size: 13px; }
  .gmw-overlay-btn { margin-top: 10px; padding: 7px 14px; }
}
