/* ==========================================================================
   Security Services Across Sri Lanka - interactive district section
   Scoped under .sl-areas so it cannot affect the existing site layout.
   ========================================================================== */

.sl-areas {
  --sl-bg: #0a0a0b;
  --sl-panel: #121214;
  --sl-panel-2: #17171a;
  --sl-line: rgba(255, 255, 255, 0.10);
  --sl-text: #ffffff;
  --sl-muted: #b3b3b8;
  --sl-green: #62bb46;
  --sl-green-soft: rgba(98, 187, 70, 0.18);
  background: radial-gradient(120% 80% at 78% 12%, #141416 0%, #0a0a0b 60%), var(--sl-bg);
  color: var(--sl-text);
  padding: 72px 0 84px;
  overflow-x: hidden;
}

.sl-areas .sl-wrap {
  width: min(1240px, 92%);
  margin: 0 auto;
}

.sl-areas .sl-grid {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: 48px;
  align-items: start;
}

/* ---------- Left column ---------- */
.sl-eyebrow {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--sl-green);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.sl-title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 0;
  text-transform: uppercase;
  color: var(--sl-text);
}

.sl-title span {
  display: block;
  color: var(--sl-green);
}

.sl-rule {
  width: 84px;
  height: 2px;
  margin: 20px 0 22px;
  background: linear-gradient(90deg, var(--sl-green), rgba(98, 187, 70, 0));
}

.sl-sub {
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: #e6e6e8;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.sl-areas p.sl-copy {
  color: var(--sl-muted);
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 14px;
  max-width: 56ch;
}

/* ---------- District list ---------- */
.sl-list-panel {
  margin-top: 28px;
  border: 1px solid var(--sl-line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--sl-panel-2), var(--sl-panel));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.sl-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sl-line);
}

.sl-list-head h3 {
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.sl-list-head .sl-count {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--sl-green);
}

.sl-list {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.sl-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #e9e9ec;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.sl-list a .sl-num {
  font-family: "Oswald", sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--sl-green);
  min-width: 20px;
}

.sl-list a .sl-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-list a .sl-arrow {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 0.22s ease, color 0.22s ease;
}

.sl-list a:hover,
.sl-list a:focus-visible,
.sl-list a.is-active {
  background: var(--sl-green-soft);
  border-color: rgba(98, 187, 70, 0.45);
  color: #fff;
}

.sl-list a:hover .sl-arrow,
.sl-list a:focus-visible .sl-arrow,
.sl-list a.is-active .sl-arrow {
  color: var(--sl-green);
  transform: translateX(3px);
}

.sl-areas a:focus-visible,
.sl-areas [tabindex]:focus-visible {
  outline: 2px solid var(--sl-green);
  outline-offset: 2px;
}

/* ---------- Right column / map ---------- */
.sl-map-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 212px;
  gap: 26px;
  align-items: start;
}

.sl-map-panel {
  position: relative;
  border: 1px solid var(--sl-line);
  border-radius: 12px;
  background:
    radial-gradient(70% 55% at 50% 30%, rgba(98, 187, 70, 0.08), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #141417, #0d0d0f);
  padding: 18px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}

.sl-map-panel svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 1150px;
  margin: 0 auto;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.65));
  overflow: visible;
}

.sl-district {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.1;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.22s ease, stroke 0.22s ease, filter 0.22s ease;
}

.sl-district:hover,
.sl-district:focus-visible,
.sl-district.is-active {
  fill: var(--sl-green);
  stroke: #eafbe4;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(98, 187, 70, 0.65));
  outline: none;
}

.sl-label {
  font-family: "Carlito", sans-serif;
  font-size: 15px;
  fill: rgba(255, 255, 255, 0.92);
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.7);
  stroke-width: 2.4px;
  text-anchor: middle;
  pointer-events: none;
  user-select: none;
}

.sl-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  padding: 7px 12px;
  border: 1px solid rgba(98, 187, 70, 0.5);
  border-radius: 5px;
  background: rgba(10, 10, 11, 0.94);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -140%);
  transition: opacity 0.18s ease;
}

.sl-tooltip.is-visible {
  opacity: 1;
}

/* ---------- Side cards ---------- */
.sl-cards {
  display: grid;
  gap: 18px;
}

.sl-card {
  border: 1px solid var(--sl-line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--sl-panel-2), var(--sl-panel));
  padding: 22px 20px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

.sl-card .sl-card-ic {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98, 187, 70, 0.4);
  border-radius: 8px;
  color: var(--sl-green);
  font-size: 17px;
  margin-bottom: 14px;
}

.sl-card p {
  margin: 0;
  color: var(--sl-muted);
  font-size: 14px;
  line-height: 1.65;
}

.sl-card h3 {
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
  text-transform: uppercase;
  color: #fff;
}

.sl-card .sl-card-rule {
  display: block;
  width: 42px;
  height: 1px;
  background: var(--sl-green);
  margin: 12px 0;
  opacity: 0.8;
}

.sl-note {
  margin-top: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sl-map-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .sl-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sl-areas {
    padding: 56px 0 64px;
  }
  .sl-areas .sl-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .sl-map-panel svg {
    max-height: none;
    max-width: 460px;
  }
}

@media (max-width: 560px) {
  .sl-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .sl-list a {
    padding: 13px 12px;
    font-size: 15px;
  }
  .sl-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .sl-map-panel {
    padding: 12px;
  }
  .sl-label {
    font-size: 16px;
  }
  .sl-tooltip {
    font-size: 12px;
  }
}
