/* ==========================================================================
   ARQAM CENTER — BESPOKE EDITORIAL & GIS INTERFACE STYLESHEET
   ========================================================================== */
:root {
  --obsidian: #050b14;
  --surface: #0a1526;
  --surface-elevated: #0e1d34;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 162, 59, 0.28);
  --gold: #c8942e;
  --gold-light: #e7be62;
  --cyan: #38bdf8;
  --emerald: #10b981;
  --purple: #a855f7;
  --rose: #f43f5e;
}

* { box-sizing: border-box; }

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--obsidian);
  color: #f1f5f9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Architectural Grid Background */
.bg-architectural-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Surfaces */
.glass-panel {
  background: rgba(10, 21, 38, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-panel-deep {
  background: rgba(6, 13, 25, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
}

.glass-card-hover {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}
.glass-card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 190, 98, 0.42);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.7);
}

/* Arabic-safe Gradient Heading (prevents descender clipping) */
.text-gold-gradient {
  background: linear-gradient(135deg, #f7df9d 0%, #e7be62 50%, #c8942e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.12em;
}

.btn-gold-primary {
  background: linear-gradient(135deg, #c8942e 0%, #e7be62 100%);
  color: #050b14;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gold-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 28px -6px rgba(200, 148, 46, 0.42);
  transform: translateY(-1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #050b14; }
::-webkit-scrollbar-thumb {
  background: #173054;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #c8942e; }

/* Subtle Precision Motion (Restrained, Executive) */
@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.72; }
  75% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(240%); }
}

.anim-radar { animation: radarSweep 18s linear infinite; }
.anim-scanline {
  background: linear-gradient(to bottom, transparent, rgba(56, 189, 248, 0.08), transparent);
  animation: scanline 7s linear infinite;
}

/* Soon Pill */
.soon-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(231, 190, 98, 0.12);
  border: 1px solid rgba(231, 190, 98, 0.30);
  color: #f3d78d;
}

/* Google Night Map Tiles Filter */
.google-night-tiles {
  filter: invert(100%) hue-rotate(180deg) brightness(86%) contrast(96%) saturate(120%);
}

/* Leaflet Popups & Tooltips */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: rgba(5, 11, 20, 0.96) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(200, 148, 46, 0.7) !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(12px);
}
.leaflet-popup-content {
  margin: 12px 14px !important;
  line-height: 1.55;
  font-family: 'Cairo', sans-serif !important;
}
.leaflet-tooltip.arqam-map-label {
  background: rgba(5, 11, 20, 0.92) !important;
  border: 1px solid rgba(231, 190, 98, 0.40) !important;
  color: #f8fafc !important;
  font-family: 'Cairo', sans-serif !important;
  font-weight: 800 !important;
  font-size: 10.5px !important;
  padding: 2px 7px !important;
  pointer-events: none !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55) !important;
}
.leaflet-tooltip.arqam-map-label::before { display: none !important; }

/* Custom Luminous Registration Center Map Marker */
.arqam-reg-pin-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.arqam-reg-pin-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  opacity: 0.48;
  pointer-events: none;
  animation: pulseRing 2.6s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.arqam-reg-pin-core {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: #050b14;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}
.arqam-reg-pin-wrap:hover .arqam-reg-pin-core { transform: scale(1.25); }
.arqam-reg-pin-wrap.compare-glow .arqam-reg-pin-core {
  width: 28px;
  height: 28px;
  border-width: 2.5px;
}
.arqam-reg-pin-wrap.compare-glow .arqam-reg-pin-halo {
  inset: -10px;
  opacity: 0.80;
  animation-duration: 1.8s;
}

/* Stage 2 Iraq 18-Governorate Interactive SVG Map */
.irq-gov-path {
  fill: #0b1c34;
  stroke: rgba(148, 163, 184, 0.42);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}
.irq-gov-path:hover {
  fill: #15345e;
  stroke: #38bdf8;
  stroke-width: 2;
}
.irq-gov-path.gov-active {
  fill: rgba(200, 148, 46, 0.42);
  stroke: #e7be62;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 14px rgba(231, 190, 98, 0.5));
}
.irq-gov-path.gov-active:hover {
  fill: rgba(231, 190, 98, 0.65);
}
.irq-gov-path.gov-selected-ring {
  stroke: #ffffff;
  stroke-width: 2.5;
}
.irq-gov-label {
  fill: #e2e8f0;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(5, 11, 20, 0.96);
  stroke-width: 3.5px;
}

#arqamToast {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
