/* ============================================================
   SECTION 4 — Shipping Deputy Ministry
   Maritime Administration intro + Numbered World Map
   ============================================================ */

.s4-section {
  padding: 50px 0 80px;
}

/* === INTRO BLOCK === */
.s4-intro {
  padding: 0 60px 50px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
  margin-bottom: 50px;
}

.s4-intro h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 32px;
  color: var(--white);
}

.s4-intro h2 .gold {
  color: var(--gold-bright);
}

.s4-features {
  list-style: none;
}

.s4-features li {
  padding: 18px 0 18px 44px;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ice-blue);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.s4-features li:last-child {
  border-bottom: none;
}

.s4-features li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 27px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

/* === GLOBAL PRESENCE === */
.s4-global {
  padding: 0 60px;
}

.s4-global h3 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  color: var(--gold-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* === MAP CONTAINER === */
.map-container {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(201, 169, 97, 0.25);
  position: relative;
}

.world-map {
  width: 100%;
  height: auto;
  display: block;
}

/* === MAP MARKERS (static numbered indicators, non-interactive) === */
.map-marker-static {
  pointer-events: none;
}

.map-marker-pulse {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 2;
  opacity: 0;
  animation: marker-pulse 2.2s ease-out infinite;
}

@keyframes marker-pulse {
  0%   { opacity: 0.7; r: 19px; stroke-width: 3px; }
  100% { opacity: 0;   r: 40px; stroke-width: 0.5px; }
}

/* === NUMBER ROW (below map) === */
.office-number-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 32px;
  padding: 0 10px;
}

.office-num-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px 6px;
  border-radius: 14px;
  transition: all 0.2s;
  flex: 1 1 0;
  min-width: 0;
}

.office-num-item:active {
  transform: scale(0.95);
  background: rgba(201, 169, 97, 0.15);
}

.office-num-item.active {
  background: rgba(201, 169, 97, 0.18);
}

.office-num-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(11, 37, 69, 0.9);
  border: 2.5px solid var(--gold-bright);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s;
}

.office-num-item.active .office-num-circle {
  background: var(--gold-bright);
  color: var(--navy-deep);
}

/* HQ number circle — gold filled, stands out */
.office-num-item.is-hq .office-num-circle {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-soft));
  color: var(--navy-deep);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  border-color: white;
}

.office-num-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ice-blue);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.office-num-item.is-hq .office-num-label {
  color: var(--gold-bright);
  font-weight: 700;
}

/* === OFFICE POPUP === */
.office-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 780px;
  background: rgba(11, 37, 69, 0.98);
  border: 2px solid var(--gold-bright);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.office-popup.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.office-popup .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(201, 169, 97, 0.4);
  border-radius: 50%;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.office-popup .close-btn:active {
  transform: scale(0.92);
  background: rgba(201, 169, 97, 0.25);
}

.office-popup .popup-city {
  font-size: 42px;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1.1;
  margin-bottom: 6px;
  padding-right: 80px;
}

.office-popup .popup-country {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.popup-office-name {
  display: inline-block;
  font-size: 16px;
  color: var(--ice-blue);
  opacity: 0.85;
  font-style: italic;
  line-height: 1.3;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.popup-office-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-soft));
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  vertical-align: middle;
}

.office-popup .info-rows {
  border-top: 2px solid rgba(201, 169, 97, 0.3);
  padding-top: 24px;
}

.office-popup .info-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.office-popup .info-row:last-child {
  border-bottom: none;
}

.office-popup .info-row .info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.office-popup .info-row .info-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-bright);
}

.office-popup .info-row .info-content {
  flex: 1;
  min-width: 0;
}

.office-popup .info-row .info-label {
  font-size: 14px;
  color: var(--gold-bright);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 4px;
}

.office-popup .info-row .info-value {
  font-size: 20px;
  color: var(--white);
  line-height: 1.4;
  word-break: break-word;
}

.info-note {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold-bright);
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  font-style: italic;
  color: var(--ice-blue);
  line-height: 1.4;
  opacity: 0.9;
}

/* Popup backdrop */
.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.popup-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}
