/* ==========================================================================
   Section: Engineered For Global Markets (.global-markets)
   ========================================================================== */

.global-markets {
  --gm-font: "Archivo", "Montserrat", "Open Sans", sans-serif;
  --gm-blue: #2581c4;
  --gm-blue-light: #2dafe6;
  --gm-teal: #00a88e;
  --gm-marker-blue: #2581c4;
  --gm-marker-red: #d32f2f;
  --gm-route-stroke: #2581c4;
  --gm-text: #4a4a49;
  --gm-text-dark: #1a1a1a;
  --gm-white: #ffffff;
  --gm-card-header: #1f1f1f;
  --gm-pin-width: 28px;
  --gm-pin-height: 36px;
  --gm-pin-width-active: 32px;
  --gm-pin-height-active: 40px;
  --gm-aside-width: clamp(280px, 22vw, 380px);
  --gm-europe-width: min(58%, 920px);
  --gm-india-width: min(34%, 520px);

  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  max-height: 1200px;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--gm-font);
  color: var(--gm-text);
}

/* --------------------------------------------------------------------------
   Background
   -------------------------------------------------------------------------- */

.global-markets__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.global-markets__bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* --------------------------------------------------------------------------
   Layout shell
   -------------------------------------------------------------------------- */

.global-markets__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--gm-aside-width);
  align-items: stretch;
  gap: clamp(16px, 2.5vw, 40px);
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100vh;
  padding: clamp(28px, 4.5vh, 56px) clamp(20px, 3vw, 64px);
  box-sizing: border-box;
}

.global-markets__stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.global-markets__maps {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - clamp(56px, 9vh, 112px));
}

/* --------------------------------------------------------------------------
   Maps
   -------------------------------------------------------------------------- */

.global-markets__map {
  margin: 0;
  position: absolute;
  z-index: 2;
}


.global-markets__map--europe {
    left: clamp(5%, 16vw, 11%);
    top: clamp(4%, 14vh, 2%);
    width: var(--gm-europe-width);
    max-width: 50%;
}
.global-markets__map--india {
    left: 47vw;
    top: 8vw;
    width: var(--gm-india-width);
    max-width: 35%;
    z-index: 6;
}

.global-markets__markers--india {
  z-index: 7;
}

.global-markets__marker--india {
  z-index: 8;
}

.global-markets__marker--india .global-markets__marker-label--india {
  pointer-events: none;
}

.global-markets__markers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.global-markets__map-image {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-width: 100%;
  pointer-events: none;
  user-select: none;
}

.global-markets__markers .global-markets__marker {
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Shipping routes (SVG overlay)
   -------------------------------------------------------------------------- */

.global-markets__routes {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: visible;
    top: 25%;
    width: 82%;
    left: -1%;
}
.global-markets__routes img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.global-markets__routes-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.global-markets__routes-group {
  transform: translateZ(0);
}

.global-markets__route {
  fill: none;
  stroke: var(--gm-route-stroke);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 10;
  opacity: 0.32;
  vector-effect: non-scaling-stroke;
  transition:
        opacity 0.5s ease,
        stroke-width 0.5s ease;
}

.global-markets__route--rotterdam {
  opacity: 0.48;
  stroke-width: 2.5;
}

.global-markets__route--active {
    opacity: 0.95;
    stroke: #2581c4;
    opacity: 1;
    stroke-width: 3;
}
/* --------------------------------------------------------------------------
   Export ship
   -------------------------------------------------------------------------- */

.global-markets__export {
    position: absolute;
    left: clamp(0%, 27vw, 26%);
    bottom: clamp(8px, 0vh, 40px);
    z-index: 5;
    width: min(35%, 280px);
    max-width: 100%;
    margin: 0;
    pointer-events: none;
}
.global-markets__export-label {
    display: block;
    margin: 0 0 clamp(6px, 0.8vh, 12px);
    font-family: var(--gm-font);
    font-size: 34px;
    font-weight: 700;
    line-height: 0px;
    color: #4A4A49;
    text-align: center;
    letter-spacing: 0.02em;
}
.global-markets__export-ship {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Right aside: title + slider
   -------------------------------------------------------------------------- */

.global-markets__aside {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    width: 100%;
    max-width: var(--gm-aside-width);
    padding-top: 5vw;
    min-width: 0;
}

.global-markets__header {
    margin-bottom: 11px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: end;
}

.global-markets__title {
    font-size: 2.81vw;
    line-height: 3.19vw;
    font-weight: 500;
    /* margin-bottom: 40px; */
    background: linear-gradient(90deg, #1976d2, #08928a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-align: end;
}

.global-markets__subtitle {
    margin: 0;
    font-size: 1vw;
    font-weight: 600;
    line-height: 1.5vw;
    color: #4A4A49;
    max-width: 32ch;
    text-align: end;
}

/* --------------------------------------------------------------------------
   Swiper slider + card
   -------------------------------------------------------------------------- */

.global-markets__slider {
    width:15.25vw;
    overflow: visible;
    /* display: flex; */
    margin-left: auto;
}

.global-markets__slider-wrapper {
  display: block;
  align-items: stretch;
  transform: none !important;
  height: auto;
}

.global-markets__slide {
  display: none;
  width: 100% !important;
  height: auto;
  box-sizing: border-box;
  margin: 0 !important;
}

.global-markets__slide--active {
  display: block;
}

.global-markets__slide[hidden] {
  display: none !important;
}

.global-markets__card {
  overflow: hidden;
  border-radius: 0.63vw;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 48px rgba(37, 129, 196, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.global-markets__card-header {
    padding: 6px 16px;
    background: var(--gm-card-header);
}
.global-markets__card-title {
    margin: 0;
    font-family: var(--gm-font);
    font-size: 1vw;
    font-weight: 500;
    line-height: 1.5vw;
    color: var(--gm-white);
}

.global-markets__card-body
 {
    padding: 14px;
    margin-top: 29px;
}

.global-markets__card-text {
    margin: 0px;
    font-size: clamp(0.8125rem, 0.95vw, 0.875rem);
    line-height: 1.5vw;
    color: #4A4A49;
    font-size: 1vw;
}

.global-markets__card-text:last-child {
  margin-bottom: 0;
}

.global-markets__card-text strong {
    font-weight: 400;
    color: var(--gm-text-dark);
}

/* Swiper pagination — horizontal bar indicators */
.global-markets__slider-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    padding: 0;
}

.global-markets__slider-pagination.swiper-pagination-horizontal {
  width: 100%;
}

.global-markets__slider-pagination .swiper-pagination-bullet, .global-markets__slider-pagination .global-markets__pagination-bullet {
    flex: 1 1 0;
    max-width: 18px !important;
    height: 4px;
    margin: 0 !important;
    padding: 0;
    border: none;
    border-radius: 0;
    background: #d8dde3;
    opacity: 1;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.global-markets__slider-pagination .swiper-pagination-bullet-active,
.global-markets__slider-pagination .global-markets__pagination-bullet[aria-current="true"] {
  background: var(--gm-blue);
}
/* --------------------------------------------------------------------------
   Markers — base
   -------------------------------------------------------------------------- */

.global-markets__marker {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transform: translate(-50%, -100%);
  -webkit-tap-highlight-color: transparent;
  transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.global-markets__marker:focus-visible {
  outline: 2px solid var(--gm-blue-light);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Location pin icons (teardrop map markers, not dots) */
.global-markets__marker-pin {
  display: block;
  position: relative;
  flex-shrink: 0;
  width: 1.25vw;
  height:1.81vw;
  border: none;
  border-radius: 0;
  background: url("../images/map-pin-blue.svg") center bottom / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
  transition: width 0.2s ease, height 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.global-markets__marker--active .global-markets__marker-pin,
.global-markets__marker[aria-pressed="true"] .global-markets__marker-pin {
 width: 1.25vw;
  height:1.81vw;
  background-image: url("../images/map-pin-red.svg");
  filter: drop-shadow(0 4px 10px rgba(211, 47, 47, 0.35));
  transform: scale(1.02);
}

.global-markets__marker--active {
  z-index: 20;
}
/* --------------------------------------------------------------------------
   Marker labels
   -------------------------------------------------------------------------- */

.global-markets__marker-label {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 6px;
  padding: 5px 11px;
  border-radius: 4px;
  font-family: var(--gm-font);
  font-size: clamp(0.6875rem, 0.85vw, 0.8125rem);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

/* Europe — hidden until active */
.global-markets__marker-label--europe {
   background: linear-gradient(
    90deg,
    #009982 0%,
    #2581C4 100%
  );
  color: var(--gm-white);
  box-shadow: 0 4px 14px rgba(0, 168, 142, 0.35);
}

.global-markets__marker-label--hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.global-markets__marker--active .global-markets__marker-label--hidden,
.global-markets__marker[aria-pressed="true"] .global-markets__marker-label--hidden {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Active Europe label beside pin (Figma) */
.global-markets__marker--europe.global-markets__marker--active .global-markets__marker-label--europe, .global-markets__marker--europe[aria-pressed="true"] .global-markets__marker-label--europe {
    left: 2%;
    top: 149%;
    margin-top: 0;
    transform: translate(0, -50%);
}
/* India — always visible, white chip + blue text */
.global-markets__marker-label--india {
    visibility: visible;
    opacity: 1;
    background: var(--gm-white);
    color: #009982;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.12);
}

.global-markets__marker--jnpt .global-markets__marker-label--india {
  left: auto;
  right: calc(100% + 10px);
  top: 50%;
  margin-top: 0;
  transform: translate(0, -50%);
}

.global-markets__marker--chakan .global-markets__marker-label--india {
  left: 50%;
  top: auto;
  bottom: calc(100% + 8px);
  margin-top: 0;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Europe marker positions (% of Europe map)
   -------------------------------------------------------------------------- */

.global-markets__marker--rotterdam {
    left: 35%;
    top: 56%;
}

.global-markets__marker--hamburg {
    left: 57%;
    top: 41%;
}
.global-markets__marker--antwerp {
    left: 54.7%;
    top: 46.4%;
}

.global-markets__marker--felixstowe {
    left: 22.7%;
    top: 44%;
}

.global-markets__marker--barcelona {
    left: 29.2%;
    top: 59%;
}

.global-markets__marker--genoa {
    left: 52%;
    top: 53%;
}

.global-markets__marker--le-havre {
    left: 42.3%;
    top: 54%;
}

/* --------------------------------------------------------------------------
   India marker positions (% of India map)
   -------------------------------------------------------------------------- */

.global-markets__marker--jnpt {
  left: 24%;
  top: 58%;
}

.global-markets__marker--chakan {
    left: 37%;
    top: 56%;
}

/* ==========================================================================
   Tablet — proportional scale
   ========================================================================== */

@media screen and (max-width: 1199px) {
  .global-markets {
    --gm-europe-width: min(56%, 780px);
    --gm-india-width: min(36%, 460px);
    --gm-aside-width: clamp(260px, 28vw, 340px);
    max-height: none;
  }

  .global-markets__container {
    padding: clamp(24px, 3.5vh, 44px) clamp(18px, 2.5vw, 40px);
  }

  .global-markets__map--europe {
    top: clamp(8%, 9vh, 14%);
  }

  .global-markets__map--india {
    right: 8%;
    left: auto;
  }

  .global-markets__export {
    width: min(58%, 520px);
  }

  .global-markets__title {
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  }
}

@media screen and (max-width: 991px) {
  .global-markets {
    --gm-europe-width: min(52%, 860px);
    --gm-india-width: min(28%, 420px);
    height: auto;
    min-height: 100vh;
  }

  .global-markets__container {
    grid-template-columns: minmax(0, 1fr) clamp(240px, 32vw, 300px);
    gap: clamp(12px, 2vw, 24px);
  }

  .global-markets__maps {
    min-height: calc(100vh - 80px);
  }

  .global-markets__map--india {
    left: 40%;
  }

  .global-markets__export {
    width: min(65%, 480px);
    bottom: clamp(12px, 2vh, 28px);
  }

  .global-markets__subtitle {
    max-width: none;
  }
}

/* ==========================================================================
   Mobile — vertical stack
   ========================================================================== */

@media screen and (max-width: 767px) {
  .global-markets {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .global-markets__container {
    display: flex;
    flex-direction: column;
    min-height: auto;
    height: auto;
    padding: 36px 20px 48px;
    gap: 28px;
  }

  .global-markets__stage {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
    min-height: 380px;
  }

  .global-markets__aside {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding-top: 0;
  }

  .global-markets__maps {
    min-height: 360px;
    max-width: 100%;
  }

  .global-markets__map--europe {
    left: 50%;
    top: 0;
    width: min(94%, 420px);
    max-width: 94%;
    transform: translateX(-50%);
  }

  .global-markets__map--india {
    left: auto;
    right: 2%;
    top: 32%;
    width: min(52%, 240px);
    max-width: 55%;
    transform: none;
  }

  .global-markets__routes {
    inset: 0 0 12%;
  }

  .global-markets__export {
    left: 50%;
    bottom: 0;
    width: min(92%, 360px);
    transform: translateX(-50%);
  }

  .global-markets__export-label {
    font-size: 1.25rem;
  }

  .global-markets__header {
    margin-bottom: 20px;
    text-align: left;
  }

  .global-markets__title {
    font-size: clamp(1.5rem, 6.5vw, 1.875rem);
  }

  .global-markets__subtitle {
    font-size: 0.875rem;
    max-width: none;
  }

  .global-markets__slider-pagination .swiper-pagination-bullet {
    min-width: 28px;
    max-width: none;
  }

  /* Tighter marker positions on smaller maps */
  .global-markets__marker--rotterdam { left: 46%; top: 38%; }
  .global-markets__marker--hamburg { left: 54%; top: 24%; }
  .global-markets__marker--antwerp { left: 48%; top: 40%; }
  .global-markets__marker--felixstowe { left: 30%; top: 28%; }
  .global-markets__marker--barcelona { left: 26%; top: 62%; }
  .global-markets__marker--genoa { left: 56%; top: 56%; }
  .global-markets__marker--le-havre { left: 40%; top: 34%; }

  .global-markets__marker--jnpt { left: 22%; top: 56%; }
  .global-markets__marker--chakan { left: 56%; top: 46%; }

  .global-markets__marker--europe.global-markets__marker--active .global-markets__marker-label--europe,
  .global-markets__marker--europe[aria-pressed="true"] .global-markets__marker-label--europe {
    left: 50%;
    top: 100%;
    margin-top: 6px;
    transform: translate(-50%, 0);
  }

  .global-markets__marker--jnpt .global-markets__marker-label--india {
    right: auto;
    left: 50%;
    top: 100%;
    transform: translate(-50%, 0);
  }
}

@media screen and (max-width: 479px) {
  .global-markets__container {
    padding: 28px 16px 40px;
  }

  .global-markets__stage {
    min-height: 320px;
  }

  .global-markets__maps {
    min-height: 300px;
  }

  .global-markets__map--europe {
    width: 100%;
  }

  .global-markets__map--india {
    width: min(58%, 200px);
    right: 0;
    top: 34%;
  }

  .global-markets__export {
    width: 100%;
  }

  .global-markets__card {
    border-radius: 12px;
  }
}

/* Reduced motion — no animated dependencies in this file */
@media (prefers-reduced-motion: reduce) {
  .global-markets__marker-pin,
  .global-markets__marker-label,
  .global-markets__slider-pagination .swiper-pagination-bullet {
    transition: none;
  }
}
/* Active location pulse ring */
.global-markets__marker--active .global-markets__marker-pin::after,
.global-markets__marker[aria-pressed="true"] .global-markets__marker-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  /* border: 1px solid rgba(211, 47, 47, 0.45); */
  transform: translate(-50%, -50%) scale(1.35);
  pointer-events: none;
}
.global-markets__container {
    background: #c0e3f3;
}
.mobile-text{
  display: none;
}

.global-markets__slide.global-markets__slide--active h1,
.global-markets__slide.global-markets__slide--active h2,
.global-markets__slide.global-markets__slide--active h3,
.global-markets__slide.global-markets__slide--active p {
    opacity: 0;
    
    animation: fadeRight 1s ease forwards;
}

.global-markets__slide.global-markets__slide--active p {
    animation-delay: .2s;
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



@media(max-width:3000px) and (min-width: 1780px){
.global-markets__routes {
    top: 28%;
    width: 79%;
    left: -1%;
}
.global-markets__card-body {
    padding: 10px;
    margin-top: 39px;
}
    .global-markets__card-header {
        padding: 8px 10px 5px;
    }
.global-markets__aside{
  width: 104%;
}
}

.global-markets__marker--jnpt {
    left: 28%;
    top: 64%;
}

@media(max-width:3000px) and (min-width: 1600px){
 
}