
/* --- GLOBAL FLUID TYPOGRAPHY & SCALING --- */
html {
    /* Mobile to Laptop: Smooth subtle scaling from 14px to 16px */
    font-size: clamp(14px, 13.47px + 0.164vw, 16px);
}
@media (min-width: 1536px) {
    html {
        /* Desktop to Ultrawide: Pure proportional scaling (16px at 1536px -> 20px at 1920px) */
        font-size: 1.0416vw;
    }
}

/* ==========================================================================
   KÜRESEL OPERASYONLAR & İNTERAKTİF HARİTA PAKETİ (global-map.css)
   Bağımsız, modern ve duyarlı (responsive) harita bileşeni stilleri.
   ========================================================================== */

:root {
  --gmap-primary: #00ACC8;
  --gmap-primary-hover: #0092ab;
  --gmap-primary-light: rgba(0, 172, 200, 0.12);
  --gmap-primary-glow: rgba(0, 172, 200, 0.35);
  --gmap-gold: #ffb703;
  --gmap-slate: #4C4F54;
  --gmap-dark: #1E293B;
  --gmap-muted: #64748B;
  --gmap-border: #E2E8F0;
  --gmap-bg: #F8FAFC;
  --gmap-white: #FFFFFF;
  --gmap-font: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gmap-radius-sm: 8px;
  --gmap-radius-md: 14px;
  --gmap-radius-lg: 20px;
  --gmap-shadow-card: 0 16px 36px rgba(10, 25, 47, 0.12);
}

/* --------------------------------------------------------------------------
   Temel Bölüm ve Bağımsız Grid Yapısı (Bootstrap Olmasa Bile Kusursuz Çalışır)
   -------------------------------------------------------------------------- */
.global-section {
  font-family: var(--gmap-font);
  padding: 5rem 0 6rem;
    width: 100%;
  background-color: #ffffff; /* White background */
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.global-section *, 
.global-section *::before, 
.global-section *::after {
  box-sizing: border-box;
}

.global-section-container {
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto;
    padding-left: 2.5vw !important;
    padding-right: 2.5vw !important;
    box-sizing: border-box;
}

.global-section-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1200px) {
  .global-section-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem !important; 
  }
  .global-content-col {
    max-width: 100%;
    margin-bottom: 0;
  }
  .global-map-container {
    display: grid !important;
    grid-template-columns: 75% 1fr !important;
    grid-template-rows: 1fr !important; 
    gap: 0 !important; /* LEGO FIT: NO GAP */
    align-items: stretch !important; 
    background: transparent !important;
    box-shadow: 0 16px 40px rgba(10, 25, 47, 0.08) !important; /* Unified shadow for the lego block */
    border-radius: var(--gmap-radius-lg) !important;
    border: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .global-map-visual {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 2 !important; 
    background: #f1f5f9 !important;
    border-radius: var(--gmap-radius-lg) 0 0 var(--gmap-radius-lg) !important; /* LEGO FIT: Left rounded, right sharp */
    box-shadow: none !important; /* Handled by container */
    border: 1px solid var(--gmap-border) !important;
    margin: 0 !important;
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; 
    position: relative !important;
  }
  .map-country-nav { 
    position: absolute !important;
    left: 0 !important;
    right: 25% !important; /* Limits the centering width to exactly the map's 75% area */
    margin: 0 auto !important; /* Centers within that limited area */
    bottom: 2rem !important;
    z-index: 30 !important;
  }
  .map-popover-card {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important; 
    position: static !important;
    width: 100% !important;
    height: 100% !important; 
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important; 
    background: #ffffff !important;
    border-radius: 0 var(--gmap-radius-lg) var(--gmap-radius-lg) 0 !important; /* LEGO FIT: Left sharp, right rounded */
    box-shadow: none !important; /* Handled by container */
    border-left: none !important; /* LEGO FIT: Merge seamlessly with map's right border */
    transform: none !important;
    padding: 1.8rem !important; 
  }
}

/* --------------------------------------------------------------------------
   Sol Kolon: Başlık, Açıklama, İstatistikler ve Aksiyon Butonu
   -------------------------------------------------------------------------- */
.global-content-col {
  display: flex;
  flex-direction: column;
}

.global-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gmap-primary);
  margin-bottom: 0.75rem;
}

.global-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gmap-dark);
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (min-width: 1200px) {
  .global-title {
    font-size: 2.75rem;
  }
}

.global-subtitle {
  font-size: 1rem;
  color: var(--gmap-muted);
  line-height: 1.65;
  margin: 0 0 1.75rem 0;
}

/* Kompakt Kurumsal İstatistik Şeridi */
.global-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: var(--gmap-bg);
  border-radius: var(--gmap-radius-md);
  border: 1px solid var(--gmap-border);
  margin-bottom: 1.75rem;
}

.metric-strip-item {
  display: flex;
  flex-direction: column;
}

.metric-strip-item .m-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gmap-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric-strip-item .m-lbl {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gmap-muted);
  margin-top: 0.25rem;
}

.metric-strip-divider {
  width: 1px;
  height: 28px;
  background: #cbd5e1;
}

.global-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  width: fit-content;
  padding: 0.8125rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gmap-dark);
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: var(--gmap-radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.global-action-btn:hover {
  background: var(--gmap-dark);
  color: var(--gmap-white);
  border-color: var(--gmap-dark);
}

.global-action-btn i {
  transition: transform 0.25s ease;
}

.global-action-btn:hover i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Sağ Kolon: İnteraktif Harita Konteynırı
   -------------------------------------------------------------------------- */
.global-map-container {
    position: relative;
    border-radius: var(--gmap-radius-lg);
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 16px 40px rgba(10, 25, 47, 0.08);
}
.map-country-nav::-webkit-scrollbar { display: none; }
.map-country-nav::after { content: ""; display: block; width: 0.1px; flex-shrink: 0; }
.map-country-nav {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 20;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.08), 0 2px 10px rgba(0,0,0,0.02);
  width: 354px !important;
    height: 60px !important;
    min-height: 60px !important;
    overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  justify-content: flex-start;
  align-items: center;}

.c-nav-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #ffffff;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  overflow: hidden;
    flex-shrink: 0;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s, color 0.4s;
  padding: 0 0 0 10px; /* 44px width - 24px flag = 20px / 2 = 10px */
  cursor: pointer;
  position: relative;
  color: #475569;
}

.c-nav-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0;
  transition: all 0.4s ease;
}

.c-nav-tab span {
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  transform: translateX(-15px);
  margin-left: 0.25rem;
}

/* Yalnızca Active Durumu Genişleyip İsmi Gösterir */
.c-nav-tab.active {
    width: 130px !important;
  background: var(--gmap-primary);
  color: #ffffff;
  padding: 0 1.25rem 0 1rem;
}

.c-nav-tab.active .c-nav-flag {
  margin: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.c-nav-tab.active span {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* İnaktif tablar için hafif hover efekti */
.c-nav-tab:not(.active):hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

/* Harita Görseli ve SVG Rotaları */
.global-map-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  padding: 10px;
}

.global-map-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0.7;
}

.global-map-routes {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  z-index: 4;
}

/* Rota Çizgileri ve Animasyonlar */
.route-base {
  fill: none;
  stroke: rgba(0, 172, 200, 0.22);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
}

.route-stream {
  fill: none;
  stroke: #00acc8;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 12 160;
  animation: streamDash 3.2s linear infinite;
  opacity: 0.85;
  filter: drop-shadow(0 0 5px #00acc8);
  transition: all 0.35s ease;
}

.route-stream-gold {
  stroke: #ffb703;
  stroke-dasharray: 14 150;
  filter: drop-shadow(0 0 6px #ffb703);
  animation: streamDash 2.8s linear infinite;
}

.route-stream-transatlantic {
  stroke-dasharray: 18 200;
  animation: streamDash 4s linear infinite;
}

@keyframes streamDash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -172; }
}

.route-stream.active {
  stroke: #ffaa00;
  stroke-width: 3.2;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.9));
}

.photon-bead {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   İnteraktif Popover Bilgi Kartı (Floating Info Card)
   -------------------------------------------------------------------------- */
.map-popover-card {
  position: absolute;

  width: 345px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--gmap-radius-md);
  box-shadow: 0 15px 35px rgba(10, 25, 47, 0.08);
  padding: 1.75rem 1.25rem;
  z-index: 10;
  border: none;

  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  line-height: 1.5;
}

.map-popover-card.card-animated {
  animation: popoverFadeIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes popoverFadeIn {
  from {
    opacity: 0.3;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--gmap-border);
}

.popover-title-group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.popover-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.popover-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gmap-dark);
  margin: 0;
  line-height: 1.2;
}

.popover-subtitle {
  font-size: 0.6875rem;
  color: var(--gmap-muted);
  margin: 0.2rem 0 0 0;
}

.popover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.875rem;
}

.popover-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gmap-slate);
  background: var(--gmap-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.popover-tag-item i {
  color: var(--gmap-primary);
}

.popover-details {
  font-size: 0.75rem;
  margin-bottom: 0.875rem;
}

.popover-details-row {
  margin-bottom: 0.45rem;
}

.popover-details-label {
  color: var(--gmap-muted);
  font-size: 0.6875rem;
  display: block;
  margin-bottom: 0.1rem;
}

.popover-details-val {
  color: var(--gmap-dark);
  font-weight: 600;
  line-height: 1.35;
}

.popover-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--gmap-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  width: 100%;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.popover-link:hover {
  background: var(--gmap-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
}

.popover-link i {
  transition: transform 0.2s ease;
}

.popover-link:hover i {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Duyarlılık (Responsive Media Queries)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199.98px) {

}

@media (max-width: 767.98px) {
  .global-section {
    padding: 3.5rem 1rem 4.5rem;
  }
}

@media (max-width: 1199.98px) {
  .global-map-container {
    display: flex;
    flex-direction: column;
  }
  
  .map-country-nav {
    position: static !important;
    order: 2;
    margin: 1.5rem auto !important;
    width: 100% !important;
      max-width: 354px !important;
    padding: 0.5rem !important;
    margin: 1.5rem auto !important;
  }
  .map-popover-card {
    order: 3;
    position: static;
    transform: none;
    width: 100%;
    margin: 0;
    border-radius: 0 0 var(--gmap-radius-lg) var(--gmap-radius-lg);
    border: none;
    border-top: 1px solid var(--gmap-border);
    box-shadow: none;
    padding: 1.25rem 1.25rem 1.5rem;
    background: #ffffff;
  }
}


/* Harita Pin Hover ve Active Efektleri (SVG) */
.map-interactive-pin circle {
  transition: all 0.3s ease;
  transform-box: fill-box;
  transform-origin: center;
}

/* İlk circle (arka plan/ışıltı) hover durumu */
.map-interactive-pin:hover circle:first-child {
  fill: var(--gmap-secondary); /* Turuncu */
  opacity: 1 !important;
  stroke: rgba(255, 183, 3, 0.4);
  stroke-width: 4px;
}

/* Merkez beyaz çemberin hover durumu */
.map-interactive-pin:hover circle:last-child {
  fill: #fff;
  transform: scale(1.3);
}

/* Active durumu */
.map-interactive-pin.active circle:first-child {
  fill: var(--gmap-secondary); /* Turuncu */
  opacity: 1 !important;
  stroke: #ffffff;
  stroke-width: 3px;
  transform: scale(1.15);
}

.map-interactive-pin.active circle:last-child {
  fill: var(--gmap-primary); /* Koyu mavi iç nokta */
  transform: scale(0.8);
}



@media (min-width: 1536px) {
  .global-section-container {
    padding-left: 4vw !important;
    padding-right: 4vw !important;
  }
}
.global-map-visual { order: 1; }

.global-map-visual { order: 1; }


/* --------------------------------------------------------------------------
   Popover Cover Image (Stock Photo with Soft Fade)
   -------------------------------------------------------------------------- */
.popover-cover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.map-popover-card {
  position: relative !important;
  overflow: hidden;
}

.popover-header, .popover-tags, .popover-details {
  position: relative;
  z-index: 1;
}

.popover-header {
  margin-top: 130px !important;
}

/* Ensure the header content is visible over the fade */
.popover-title-group {
  text-shadow: 0 2px 15px rgba(255,255,255,0.8);
}
