.lim-widget {
  --lim-map-fill: #4a7754;
  --lim-map-hover: #8b3131;
  --lim-map-dimmed: #d1d3d4;
  --lim-map-stroke: #ffffff;
  --lim-radius: 16px;
  --lim-hover-scale: 1.32;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: #ececec;
  padding: clamp(14px, 2.4vw, 28px);
  border-radius: 8px;
  font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  overflow: hidden;
}

.lim-widget *,
.lim-widget *::before,
.lim-widget *::after {
  box-sizing: border-box;
}

.lim-widget .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lim-layout {
  display: grid;
  grid-template-columns: minmax(160px, var(--lim-sidebar-width, 320px)) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 20px) clamp(16px, 2.2vw, 24px);
  align-items: start;
  width: 100%;
}

.lim-map-pos-left .lim-layout {
  grid-template-columns: minmax(0, 1fr) minmax(160px, var(--lim-sidebar-width, 320px));
}

.lim-map-pos-left .lim-right {
  order: -1;
}

.lim-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
  min-width: 0;
}

.lim-right {
  position: relative;
  min-width: 0;
}

.lim-search {
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  min-height: 52px;
}

.lim-search__input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 14px 46px 14px 18px;
  font-size: 15px;
  color: #333;
  outline: none;
  border-radius: inherit;
}

.lim-search__input::placeholder {
  color: #b0b0b0;
}

.lim-search__icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9a9a9a;
  pointer-events: none;
}

.lim-panel {
  background: #fff;
  border-radius: var(--lim-radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 22px 20px 16px;
}

.lim-panel__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
}

.lim-panel__subtitle {
  margin: 6px 0 16px;
  font-size: 13px;
  line-height: 1.4;
  color: #9a9a9a;
}

.lim-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lim-widget .lim-chip,
.elementor-widget-london_interactive_map .lim-chip {
  display: block;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: #fff;
  background-image: none;
  color: #7a7a7a;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.lim-chip--wide {
  grid-column: 1 / -1;
}

.lim-widget .lim-chip:hover,
.lim-widget .lim-chip.is-active,
.elementor-widget-london_interactive_map .lim-chip:hover,
.elementor-widget-london_interactive_map .lim-chip.is-active {
  color: #8b3131;
  background: #faf6f6;
  box-shadow: 0 4px 14px rgba(139, 49, 49, 0.12);
  transform: translateY(-1px);
}

.lim-chip.is-hidden,
.lim-chip.is-filtered {
  display: none;
}

.lim-widget .lim-view-all,
.elementor-widget-london_interactive_map .lim-view-all,
.elementor-widget-london_interactive_map button.lim-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e4e4e4;
  background: #f4f4f4;
  background-image: none;
  color: #555;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

.lim-widget .lim-view-all:hover,
.elementor-widget-london_interactive_map .lim-view-all:hover {
  background: #ececec;
  color: #333;
}

.lim-view-all__icon {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.lim-widget.is-expanded .lim-view-all__icon {
  transform: rotate(180deg);
}

.lim-widget .lim-services,
.elementor-widget-london_interactive_map .lim-services {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
  background: #7a2e2e;
  background-image: none;
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(122, 46, 46, 0.25);
  cursor: pointer;
}

.lim-map {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow: visible;
}

.lim-map svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: visible;
}

.lim-borough-link {
  cursor: pointer;
  outline: none;
  text-decoration: none;
}

.lim-borough-link:focus-visible .lim-borough,
.lim-borough.has-link:focus-visible {
  stroke-width: 2.8;
  filter: drop-shadow(0 0 0.5px rgba(139, 49, 49, 0.65));
}

.lim-borough {
  fill: var(--lim-map-fill);
  stroke: var(--lim-map-stroke);
  stroke-width: 1.7;
  stroke-linejoin: round;
  cursor: pointer;
  pointer-events: auto;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 0.22s ease, filter 0.22s ease, transform 0.22s ease, stroke-width 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.lim-widget.is-hovering .lim-borough {
  fill: var(--lim-map-dimmed);
}

.lim-widget.is-hovering .lim-borough.is-active {
  fill: var(--lim-map-hover);
  stroke-width: 2.4;
  transform: scale(var(--lim-hover-scale, 1.32));
  filter: drop-shadow(0 14px 18px rgba(70, 16, 16, 0.5));
}

.lim-widget.is-hovering .lim-borough.is-active.is-small {
  transform: scale(calc(var(--lim-hover-scale, 1.32) * 1.28));
  stroke-width: 3;
}

.lim-map-label {
  font-size: 11px;
  font-weight: 600;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  opacity: 0;
}

.lim-widget--labels .lim-map-label {
  opacity: 0.95;
}

.lim-widget.is-hovering .lim-map-label {
  opacity: 0;
}

.lim-hover-label {
  pointer-events: none;
}

.lim-hover-label text {
  fill: #fff;
  font-size: 22px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: hanging;
  paint-order: stroke;
  stroke: rgba(80, 20, 20, 0.28);
  stroke-width: 0.8;
}

.lim-hover-label .lim-pin {
  fill: #fff;
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scale(1.45);
}

@media (max-width: 1100px) {
  .lim-layout,
  .lim-map-pos-left .lim-layout {
    grid-template-columns: minmax(150px, min(36vw, var(--lim-sidebar-width, 280px))) minmax(0, 1fr);
  }

  .lim-panel__title {
    font-size: clamp(18px, 2.2vw, 22px);
  }
}

@media (max-width: 900px) {
  .lim-layout,
  .lim-map-pos-left .lim-layout {
    grid-template-columns: 1fr;
  }

  .lim-map-pos-left .lim-right {
    order: 0;
  }

  .lim-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .lim-widget .lim-services,
  .elementor-widget-london_interactive_map .lim-services {
    align-self: flex-start;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .lim-widget {
    --lim-hover-scale: 1.18;
  }

  .lim-hover-label text {
    font-size: clamp(14px, 3.6vw, 20px);
  }
}

@media (max-width: 640px) {
  .lim-widget {
    padding: 12px;
    --lim-hover-scale: 1.12;
  }

  .lim-left {
    gap: 12px;
  }

  .lim-search {
    min-height: 46px;
  }

  .lim-search__input {
    padding: 12px 42px 12px 14px;
    font-size: 14px;
  }

  .lim-panel {
    padding: 16px 14px 12px;
  }

  .lim-panel__title {
    font-size: 18px;
  }

  .lim-panel__subtitle {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .lim-areas {
    gap: 8px;
  }

  .lim-widget .lim-chip,
  .elementor-widget-london_interactive_map .lim-chip {
    font-size: 12px;
    padding: 10px;
  }

  .lim-widget .lim-services,
  .elementor-widget-london_interactive_map .lim-services {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 13px;
  }

  .lim-map-label {
    font-size: 9px;
  }

  .lim-hover-label .lim-pin {
    transform: scale(1.15);
  }
}

@media (max-width: 420px) {
  .lim-areas {
    grid-template-columns: 1fr;
  }

  .lim-chip--wide {
    grid-column: auto;
  }

  .lim-widget .lim-view-all,
  .elementor-widget-london_interactive_map .lim-view-all,
  .elementor-widget-london_interactive_map button.lim-view-all {
    font-size: 12px;
    padding: 10px 12px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .lim-widget.is-hovering .lim-borough.is-active {
    transform: scale(1.08);
  }

  .lim-widget.is-hovering .lim-borough.is-active.is-small {
    transform: scale(1.16);
  }
}
