/* Contact page only: geographic SVG, city pins, and accessible location cards. */
.gl-branches {
  --branch-blue: var(--blue, #02283D);
  --branch-green: var(--green, #12471D);
  --branch-lime: var(--lime, #86BC02);
  margin-block: 25px 100px;
}

.gl-branches-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.gl-branches-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--branch-green);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gl-branches-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--branch-lime);
  box-shadow: 0 0 0 5px rgb(134 188 2 / .1);
}

.gl-branches-heading h2 {
  margin: 0;
  max-width: 760px;
  color: var(--branch-blue);
  font-size: clamp(34px, 4.6vw, 66px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.gl-branches-heading > p {
  max-width: 255px;
  margin: 0 0 5px;
  color: var(--branch-green);
  font-size: 14px;
  line-height: 1.7;
}

.gl-branches-visual {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 30px 26px 0;
  border: 1px solid rgb(2 40 61 / .16);
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 56% 32%, rgb(134 188 2 / .15), transparent 52%),
    linear-gradient(135deg, var(--branch-blue) 35%, var(--branch-green) 180%);
  box-shadow: 0 24px 70px rgb(2 40 61 / .1), inset 0 1px 0 rgb(255 255 255 / .12);
  overflow: hidden;
}

.gl-branches-visual::before {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgb(255 255 255 / .065);
  border-radius: 24px;
  pointer-events: none;
}

.gl-branches-visual svg.gl-world-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  overflow: visible;
  direction: ltr;
}

.gl-world-grid {
  fill: none;
  stroke: #fff;
  stroke-width: .6;
  opacity: .065;
}

.gl-world-coastline {
  stroke: rgb(255 255 255 / .28);
  stroke-width: .55;
  stroke-linejoin: round;
}

.gl-world-connection {
  fill: none;
  stroke: var(--branch-lime);
  stroke-width: 1.2;
  stroke-dasharray: 3 7;
  opacity: .62;
}

.gl-map-halo {
  fill: var(--branch-lime);
  opacity: .11;
  transition: opacity .3s ease;
}

.gl-map-ring {
  fill: none;
  stroke: var(--branch-lime);
  stroke-width: 1;
  opacity: .58;
}

.gl-map-dot {
  fill: var(--branch-lime);
  stroke: #fff;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 7px rgb(134 188 2 / .55));
  transition: fill .3s ease, filter .3s ease;
}

.gl-map-label > .gl-map-label-bg {
  fill: var(--branch-blue);
  stroke: rgb(255 255 255 / .19);
  stroke-width: .8;
}

.gl-map-label > .gl-map-city-label {
  fill: #fff;
  font: 600 11px Arial, sans-serif;
  letter-spacing: .01em;
  direction: ltr;
  text-anchor: start;
}

.gl-branches-map-caption {
  position: relative;
  margin: -20px 0 0;
  padding: 0 12px 28px;
  color: rgb(255 255 255 / .6);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .02em;
  text-align: end;
}

.gl-branch-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.gl-branch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 190px;
  padding: clamp(22px, 2.5vw, 34px);
  border: 1px solid rgb(2 40 61 / .13);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, rgb(134 188 2 / .035));
  color: var(--branch-blue);
  box-shadow: 0 8px 30px rgb(2 40 61 / .035);
  text-decoration: none;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.gl-branch-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-bottom: 22px;
}

.gl-branch-flag {
  display: inline-flex;
  width: 44px;
  height: 33px;
  flex: 0 0 44px;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgb(2 40 61 / .1), 0 4px 10px rgb(2 40 61 / .1);
  overflow: hidden;
}

.gl-branch-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gl-branch-index {
  color: rgb(2 40 61 / .4);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
}

.gl-branch-card h3 {
  margin: 0 0 15px;
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.gl-branch-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: auto;
  color: var(--branch-green);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.gl-branch-card-link svg {
  width: 27px;
  height: 27px;
  padding: 6px;
  border: 1px solid rgb(18 71 29 / .18);
  border-radius: 50%;
  flex: 0 0 27px;
  transition: background .3s ease, border-color .3s ease;
}

.gl-branch-card:focus-visible {
  border-color: var(--branch-green);
  outline: 3px solid var(--branch-lime);
  outline-offset: 4px;
}

/* Cards and matching geographic dots respond together without JavaScript. */
.gl-branches:has(.gl-branch-card--eg:focus-visible) .gl-map-pin--eg .gl-map-halo,
.gl-branches:has(.gl-branch-card--nl:focus-visible) .gl-map-pin--nl .gl-map-halo,
.gl-branches:has(.gl-branch-card--us:focus-visible) .gl-map-pin--us .gl-map-halo {
  opacity: .38;
}

@media (hover: hover) and (pointer: fine) {
  .gl-branch-card:hover {
    transform: translateY(-4px);
    border-color: rgb(18 71 29 / .4);
    box-shadow: 0 18px 35px rgb(2 40 61 / .08);
  }
  .gl-branch-card:hover .gl-branch-card-link svg {
    background: var(--branch-lime);
    border-color: var(--branch-lime);
  }
  .gl-branches:has(.gl-branch-card--eg:hover) .gl-map-pin--eg .gl-map-halo,
  .gl-branches:has(.gl-branch-card--nl:hover) .gl-map-pin--nl .gl-map-halo,
  .gl-branches:has(.gl-branch-card--us:hover) .gl-map-pin--us .gl-map-halo {
    opacity: .38;
  }
  .gl-branches:has(.gl-branch-card--eg:hover) .gl-map-pin--eg .gl-map-dot,
  .gl-branches:has(.gl-branch-card--nl:hover) .gl-map-pin--nl .gl-map-dot,
  .gl-branches:has(.gl-branch-card--us:hover) .gl-map-pin--us .gl-map-dot {
    fill: #fff;
    filter: drop-shadow(0 0 12px rgb(134 188 2 / .9));
  }
}

[dir=rtl] .gl-branches-heading h2,
[dir=rtl] .gl-branches-eyebrow {
  letter-spacing: 0;
}

[dir=rtl] .gl-branches-heading h2 {
  line-height: 1.4;
}

[dir=rtl] .gl-branch-card-link svg {
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .gl-branches-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .gl-branches-heading > p { max-width: none; }
  .gl-branches-visual { padding: 22px 15px 0; border-radius: 26px; }
  .gl-branch-cards { gap: 12px; }
  .gl-branch-card { padding: 20px 18px; }
  .gl-branches-map-caption { margin-top: -7px; padding-bottom: 20px; }
}

@media (max-width: 600px) {
  .gl-branches { margin-block: 0 65px; }
  .gl-branches-heading { margin-bottom: 24px; }
  .gl-branches-heading > p { font-size: 13px; }
  .gl-branches-visual { padding: 14px 6px 0; border-radius: 20px; }
  .gl-branches-visual::before { inset: 5px; border-radius: 16px; }
  .gl-map-label { transform: translate(-35px, -69px); }
  .gl-map-label > .gl-map-city-label { display: none; }
  .gl-map-label > .gl-map-label-bg { width: 70px; height: 55px; }
  .gl-map-pin-flag { x: 8px; y: 7px; width: 54px; height: 40.5px; }
  .gl-map-dot { r: 8px; stroke-width: 3; }
  .gl-map-ring { r: 15px; stroke-width: 1.5; }
  .gl-map-halo { r: 23px; }
  .gl-branches-map-caption { padding: 0 13px 15px; font-size: 9px; }
  .gl-branch-cards { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .gl-branch-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0 20px;
    min-height: 112px;
    padding: 22px;
    border-radius: 18px;
  }
  .gl-branch-card-top { grid-column: 1; grid-row: 1 / 3; width: auto; margin: 0; }
  .gl-branch-index { display: none; }
  .gl-branch-card h3 { grid-column: 2; margin-bottom: 8px; font-size: 19px; }
  .gl-branch-card-link { grid-column: 2; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .gl-branches *, .gl-branches *::before, .gl-branches *::after {
    animation: none !important;
    transition: none !important;
  }
  .gl-branch-card:hover { transform: none; }
}

@media print {
  .gl-branches { break-inside: avoid; margin-block: 20px; }
  .gl-branches-visual, .gl-branch-card { box-shadow: none; }
  .gl-branch-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
