/* ==========================================================================
   Thakral Global Presence Map
   ========================================================================== */

.tgpm-section {
  background: transparent;
  display: block;
  line-height: 0;
  cursor: default;
  user-select: none;
}

/* Wrapper — transparent, no card styling, just a positioning anchor */
.tgpm-map-wrapper {
  position: relative;
  background: transparent;
}

/* ── Map canvas ──────────────────────────────────────────────────────────── */

.tgpm-map-canvas {
  width: 100%;
  height: clamp(520px, 68vh, 760px);
  display: block;
  position: relative;
  background: #ffffff;
}

.tgpm-map-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */

.tgpm-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 5;
  transition: opacity 0.45s ease;
}
.tgpm-map-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.tgpm-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(200, 167, 106, 0.18);
  border-top-color: #C8A76A;
  border-radius: 50%;
  animation: tgpm-spin 0.85s linear infinite;
}
@keyframes tgpm-spin { to { transform: rotate(360deg); } }

/* ── SVG land ────────────────────────────────────────────────────────────── */

.tgpm-land-base {
  fill: #F0EDE7;
  stroke: rgba(175, 163, 148, 0.45);
  stroke-width: 0.4px;
  stroke-linejoin: round;
  pointer-events: none;
}

.tgpm-land-highlight {
  fill: rgba(200, 167, 106, 0.17);
  stroke: rgba(200, 167, 106, 0.80);
  stroke-width: 0.9px;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ── Markers ─────────────────────────────────────────────────────────────── */

.tgpm-marker-group { pointer-events: none; }

/* HTML hotspot div — invisible click/hover target over each SVG marker */
.tgpm-hotspot {
  position: absolute;
  width: 58px;
  height: 58px;
  margin-left: -29px;
  margin-top: -29px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 15;
  background: transparent;
}

.tgpm-pulse-ring {
  fill: rgba(200, 167, 106, 0.20);
  transform-box: fill-box;
  transform-origin: center;
  animation: tgpm-pulse 3.2s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
  pointer-events: none;
}
.tgpm-pulse-ring-2 { fill: rgba(200, 167, 106, 0.12); animation-delay: 1.4s; }

@keyframes tgpm-pulse {
  0%   { transform: scale(0.25); opacity: 0.9; }
  65%  { opacity: 0.12; }
  100% { transform: scale(2.8);  opacity: 0; }
}

.tgpm-marker-ring  { fill: none; stroke: rgba(200, 167, 106, 0.5); stroke-width: 1px; pointer-events: none; }
.tgpm-marker-white { fill: #ffffff; pointer-events: none; }
.tgpm-marker-dot   { fill: #C8A76A; pointer-events: none; }

.tgpm-marker-label {
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 2px;
  fill: rgba(60, 48, 30, 0.55);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  text-anchor: middle;
  dominant-baseline: auto;
  pointer-events: none;
  user-select: none;
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */

.tgpm-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 3;
  transition: background 0.35s ease;
}
.tgpm-overlay.is-active {
  background: rgba(240, 237, 231, 0.25);
}

/* ── Vignette ────────────────────────────────────────────────────────────── */

.tgpm-map-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    radial-gradient(ellipse 80% 55% at 0%   50%, rgba(255,255,255,0.50) 0%, transparent 55%),
    radial-gradient(ellipse 80% 55% at 100% 50%, rgba(255,255,255,0.50) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 50%  0%,  rgba(255,255,255,0.40) 0%, transparent 50%),
    radial-gradient(ellipse 55% 70% at 50%  100%,rgba(255,255,255,0.40) 0%, transparent 50%);
}

/* ── Floating card (desktop) ─────────────────────────────────────────────── */

.tgpm-card {
  position: absolute;
  width: 292px;
  background: #ffffff;
  border: 1px solid rgba(200, 167, 106, 0.30);
  border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  will-change: opacity, transform;
}
.tgpm-card.is-visible { pointer-events: auto; }

.tgpm-card-country {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #C8A76A;
  margin-bottom: 7px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.tgpm-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 10px;
}
.tgpm-card-desc {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(40, 40, 40, 0.60);
  margin-bottom: 15px;
  font-weight: 300;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.tgpm-card-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(200, 167, 106, 0.40), transparent);
  margin-bottom: 14px;
}
.tgpm-card-block { margin-bottom: 12px; }
.tgpm-card-block:last-child { margin-bottom: 0; }
.tgpm-card-block-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(160, 130, 80, 0.80);
  margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.tgpm-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tgpm-card-tag {
  font-size: 10.5px;
  color: rgba(30, 30, 30, 0.75);
  background: rgba(200, 167, 106, 0.08);
  border: 1px solid rgba(200, 167, 106, 0.25);
  border-radius: 5px;
  padding: 4px 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  line-height: 1;
}


/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Tablet: 769px – 1024px */
@media (max-width: 1024px) {
  .tgpm-map-canvas { height: 400px !important; }
}

/* Phone: ≤768px */
@media (max-width: 768px) {
  .tgpm-section {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .tgpm-map-canvas { height: 520px !important; }
  .tgpm-card { display: none !important; }
}

/* Small phone: ≤480px */
@media (max-width: 480px) {
  .tgpm-map-canvas { height: 460px !important; }
}
