.d3map-root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --tab: #3C6389;
  --text: #111;
  --adi-red: #EF3340;
  --adi-black: #3A3637;
  --muted: #6b7280;
  --line: rgba(0,0,0,.08);
  --shadow: 0 12px 28px rgba(0,0,0,.12);
  --radius: 14px;
  --stroke: #DADADA;
  --light-grey: #F5F6F9;

  color: var(--text);
  display: flex;
  flex-direction: column;
}

.d3map-root * { box-sizing: border-box; }

.d3map-root .app {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-height: calc(100vh - 120px);
  height: 800px;
  margin-bottom: 140px;
  border-bottom: 1px solid var(--stroke);

  @media (max-width: 1512px) {
    grid-template-columns: 246px 1fr;
    max-height: calc(100vh - 34px);
  }
  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    max-height: unset;
    margin-bottom: 70px;
  }
}

.d3map-root .panel {
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  order: 0;
  overflow: auto;

  @media (max-width: 1512px) {
    padding: 16px;
  }
  @media (max-width: 991px) {
    order: 2;
  }
  @media (max-width: 767px) {
    padding: 16px;
  }
}

/* SEARCH */
.d3map-root .search {
  position: absolute;
  top: 40px;
  right: 40px;

  @media (max-width: 991px) {
    top: 16px;
    right: 16px;
  }
}

.d3map-root .search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 7px 35px 7px 10px;
  background: #fff;
  position: relative;
  width: 56px;
  overflow: hidden;
  transition: width 0.3s ease;

  @media (max-width: 991px) {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 30px;
    width: 44px;
  }
}

.d3map-root .search-box.open {
  width: 240px;
}

.d3map-root #searchOpen {
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;

  @media (max-width: 991px) {
    top: 8px;
    right: 9px;
  }
}

.d3map-root #searchOpen svg {
  width: auto;
  height: auto;

  @media (max-width: 991px) {
    width: 24px;
    height: 24px;
  }
}

.d3map-root .search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  font-weight: 850;
  color: #111;
  background: transparent;

  @media (max-width: 991px) {
    line-height: 32px;
  }
}

.d3map-root #searchClose {
  cursor: pointer;
  position: absolute;
  top: 17px;
  right: 15px;
  display: none;
  background: transparent;

  @media (max-width: 991px) {
    top: 12px;
    right: 12px;
  }
}

.d3map-root #searchClose svg {
  width: auto;
  height: auto;
}

.d3map-root .search-dd {
  position: absolute;
  left: 0; right: 0; top: 55px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
  display: none;
  z-index: 50;
  max-height: 320px;
  overflow: auto;
}

.d3map-root .search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-top: 1px solid rgba(0,0,0,.05);
}
.d3map-root .search-item:first-child { border-top: none; }
.d3map-root .search-item:hover { background: #f3f4f6; }

.d3map-root .search-flag {
  width: 22px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  background: #eee;
  box-shadow: 0 1px 2px rgba(0,0,0,.10);
  flex: 0 0 auto;
}

.d3map-root .search-name { font-size: 13px; font-weight: 900; color: #111; }
.d3map-root .search-sub {
  margin-left: auto;
  font-size: 12px;
  font-weight: 950;
  color: #6b7280;
  max-width: 140px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.d3map-root .search-empty {
  padding: 12px;
  font-size: 12px;
  font-weight: 850;
  color: #6b7280;
}

.d3map-root .panel .brxe-accordion .accordion-title-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px;
  border-radius: 10px;
  column-gap: 14px;
  border: 1px solid var(--stroke);
  cursor: pointer;
  background: transparent;
  color: #111;

  @media (max-width: 1512px) {
    font-size: 16px;
  }
  @media (max-width: 991px) {
    font-size: 18px;
  }
}

.d3map-root .panel .brxe-accordion {
  margin: 0;
  padding: 0;
  list-style: none;
}

.d3map-root .panel .brxe-accordion .accordion-item {
  margin-bottom: 16px;
  display: block;

  @media (min-width: 991px) {
    margin-bottom: 14px;
  }
}

.d3map-root .panel .accordion-content-wrapper{
  position: relative;
  overflow: visible;

  @media (min-width: 991px) {
    padding-bottom: 0;
  }
}

/* LEGEND */
.d3map-root .legend-wrap .legend-title-wrap {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 30px;

  @media (max-width: 991px) {
    display: flex;
  }
}

.d3map-root .legend-wrap .legend-title-wrap svg path:first-child {
  opacity: 0;
}

.d3map-root .legend-wrap .legend-title-wrap.collapsed svg path:first-child {
  opacity: 1;
}

.d3map-root .legend-wrap #legendTitle{
  font-size: 18px;
  font-weight: 700;
}

.d3map-root .legend-wrap .legend-text{
  color: var(--adi-black);
  line-height: 1.3;
  font-style: italic;
  margin-top: 10px;
  font-size: 14px;

  @media (max-width: 991px) {
    display: none;
  }
}

.legend-wrap{
  position: absolute;
  padding: 16px;
  width: 228px;
  border-width: 1px solid var(--stroke);
  border-radius: 10px;
  background-color: var(--card);
  transform: translateY(10px);
  bottom: 20px;
  left: 10px;
  z-index: 2;
  transition: opacity 300ms ease, transform 300ms ease;

  @media (max-width: 1512px) {
    width: 212px;
  }

  @media (max-width: 991px) {
    left: 16px;
    right: 16px;
    bottom: 26px;
    width: 420px;
    max-width: calc(100% - 32px);
  }

  @media (max-width: 991px) {
    width: 100%;
  }
}

.d3map-root .panel .brxe-accordion .accordion-item.brx-open > .accordion-title-wrapper {
  background-color: var(--adi-black);
  color: var(--card);
}

.d3map-root .panel .brxe-accordion .accordion-item .icon {
  padding: 8px;
  background-color: var(--light-grey);
  border-radius: 10px;
  flex-shrink: 0;

  @media (max-width: 1512px) {
    padding: 4px;
  }
  @media (max-width: 991px) {
    border-radius: 6px;
  }
}

.d3map-root .panel .brxe-accordion .accordion-item.brx-open .icon {
    background-color: #ffffff;
}

.d3map-root .panel .brxe-accordion .accordion-item .icon svg {
  display: block;
}

.d3map-root .panel h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .2px;
}

.d3map-root .legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;

  @media (max-width: 991px) {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--stroke);
  }
}

.d3map-root .legend-item {
  display: flex;
  position: relative;
  gap: 10px;
  align-items: center;
  padding: 9px 16px;
  cursor: pointer;
  user-select: none;
  transition: background .12s ease, transform .12s ease, opacity .12s ease;

  @media (max-width: 1512px) {
    padding: 7px 12px;
  }
  @media (max-width: 991px) {
    padding: 0 0 0 22px;
  }
}

/*.d3map-root .legend-item:hover {*/
/*  background: #f2f4f7;*/
/*  transform: translateY(-1px);*/
/*}*/

.d3map-root .legend-item.off {
  opacity: .35;
}

.d3map-root .swatch {
  background: rgb(252, 112, 112);
  border-radius: 4px;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;

  @media (max-width: 991px) {
    width: 13px;
    height: 13px;
    border-radius: 100px;
    top: unset;
  }
}

.d3map-root .legend-label { 
  font-size: 14px; 
  font-weight: 700; 
  line-height: 1.3; 
  z-index: 1;
}

.d3map-root .hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* MAIN */
.d3map-root .main {
  overflow: visible;
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  order: 0;
  border-left: 1px solid var(--stroke);

  @media (max-width: 991px) {
    order: 1;
    height: calc(100vh - 160px);
  }
}

.d3map-root .tabs {
  padding: 16px 0 0 24px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0,0,0,.06);
  border-bottom: unset;

  @media (max-width: 991px) {
    padding-left: 0;
  }
}

.d3map-root .tab {
  width: 100%;
  padding: 10px 20px 10px 10px ;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--light-grey);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  color: #111;
  transition: background .12s ease, transform .12s ease;

  @media (max-width: 1512px) {
    font-size: 15px;
  }
  @media (max-width: 991px) {
    font-size: 16px;
  }
}
.d3map-root .tab:hover { background: #f3f4f6; transform: translateY(-1px); }
.d3map-root .tab.active { 
  background: var(--adi-red); color: var(--card);
}

.d3map-root .map-wrap {
  position: relative;
  flex: 0 0 auto;
  background: #F5F6F9;
  width: 100%;
  height: 100%;
}
.d3map-root #svg { width: 100%; height: 100%; display: block; shape-rendering: geometricPrecision; }

.d3map-root .compare-profiles {
  margin: 0 0 140px;

  @media (max-width: 991px) {
    margin: 0;
  }
}

.d3map-root .compare-profiles .cp-eyebrow {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--tab);
  text-transform: uppercase;
  margin-bottom: 12px;
  align-self: center;
}

.d3map-root .compare-profiles .cp-title {
  font-size: 30px;
  text-align: center;
  color: #3a3637;
  margin-bottom: 24px;
  align-self: center;

  @media (min-width: 992px) {
    font-size: 36px;
  }
}

.d3map-root .compare-profiles .cp-subtitle {
  margin-bottom: 50px;
  width: 100%;
  max-width: 800px;
  text-align: center;
  color: #6b7280;
  font-size: 18px;
  align-self: center;
}

.d3map-root .compare-profiles .cp-select-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  border-bottom: 1px solid #DADADA;
  padding-bottom: 18px;

  @media (min-width: 992px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.d3map-root .compare-profiles .compare-slot-select {
  width: 100%;
  border: 1px solid #3a3637;
  border-radius: 8px;
  color: #3a3637;
  font-size: 18px;
  padding: 5px 10px;
}

.d3map-root .compare-profiles .cp-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 45px;

  @media (min-width: 992px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.d3map-root .compare-profiles .cp-card-slot {
  position: relative;
  min-height: 380px;
  display: flex;
}

.d3map-root .compare-profiles .cp-card {
  --cp-card-media-ratio: 16 / 9;
  border-radius: 20px;
  background: #eceff3;
  border: 1px solid rgba(151,164,184,.22);
  min-height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
}

.d3map-root .compare-profiles .cp-card-enter {
  opacity: 0;
  transform: translateY(14px) scale(.985);
}

.d3map-root .compare-profiles .cp-card-enter.cp-card-enter-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .24s ease, transform .28s cubic-bezier(.22,.61,.36,1);
}

.d3map-root .compare-profiles .cp-card-leave {
  opacity: 0;
  transform: translateY(-10px) scale(.985);
  transition: opacity .2s ease, transform .24s ease;
  pointer-events: none;
}

.d3map-root .compare-profiles .cp-card-media {
  aspect-ratio: 16/9;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #d9dee5 0%, #eef1f5 100%);
}

.d3map-root .compare-profiles .cp-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.d3map-root .compare-profiles .cp-card-image-fallback {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 28px 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.d3map-root .compare-profiles .cp-card-image-fallback-name {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  color: #2a3442;
  text-wrap: balance;
}

.d3map-root .compare-profiles .cp-card-media.is-fallback .cp-card-image {
  display: none;
}

.d3map-root .compare-profiles .cp-card-media.is-fallback .cp-card-image-fallback {
  display: flex;
}

.d3map-root .compare-profiles .cp-card-content{
  border-top: 8px solid #ef3340;
  background-color: #f5f6f7;
  padding-top: 16px;
  padding-right: 24px;
  padding-bottom: 24px;
  padding-left: 24px;
  row-gap: 24px;
  display: flex;
  flex-direction: column;
}

.d3map-root .compare-profiles .cp-card-remove {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
  background: transparent;
  padding: 0;
  z-index: 999;
}

.d3map-root .compare-profiles .cp-metrics {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.d3map-root .compare-profiles .cp-metrics-holder {
  row-gap: 10px;
  border-bottom: 1px solid rgba(28, 27, 27, 0.2);
  padding-bottom: 12px;
}

.d3map-root .compare-profiles .cp-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.d3map-root .compare-profiles .cp-metric-label{
  font-size: 16px;
  color: #3a3637;
}

.d3map-root .compare-profiles .cp-metric-value {
  width: auto;
  flex-shrink: 0;
  flex-direction: row;
  column-gap: 1px;
  display: flex;
  align-items: flex-start;
}

.d3map-root .compare-profiles .cp-readmore {
  border: 2px solid #fff;
  background: #EDEEF1;
  background: linear-gradient(180deg,rgba(237, 238, 241, 1) 0%, rgba(254, 254, 254, 1) 100%);
  color: #3a3637;
  text-transform: capitalize;
  text-decoration: none;
  display: inline-block;
  padding: 6px 20px;
  width: max-content;
}

.d3map-root .compare-profiles .cp-readmore[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.d3map-root .compare-profiles .cp-readmore:hover, .d3map-root .compare-profiles .cp-readmore:active, .d3map-root .compare-profiles .cp-readmore:focus {
  background-color: #ffffff !important;
  background: #ffffff;
}

.d3map-root .compare-profiles .cp-card-empty {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  background: #F5F6F9;

  @media (min-width: 992px) {
    min-height: 513px;
  }
}

.d3map-root .compare-profiles .cp-card-empty * {
  cursor: pointer;
}

.d3map-root .compare-profiles .cp-empty-plus {
  border-radius: 50%;
  background: #bad2ed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-bottom: 20px;
}

.d3map-root .compare-profiles .cp-empty-title {
  font-size: 18px;
  color: #121111;
  margin-bottom: 8px;
}

.d3map-root .compare-profiles .cp-empty-sub {
  font-size: 14px;
  color: #3a4853;
}

.d3map-root .compare-profiles .cp-reset {
  color: #3a3637;
  font-size: 18px;
  text-decoration: underline;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.d3map-root .compare-profiles .cp-reset svg {
  width: 32px;
}

.d3map-root .country { stroke: none; cursor: pointer; transition: opacity .12s ease, fill .25s ease; }


.d3map-root .borders {
  fill: none;
  stroke: rgba(255,255,255,.95);
  stroke-width: .45px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.d3map-root .selection-outline {
  fill: none;
  stroke: rgba(17,24,39,.55);
  stroke-width: 1.8px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.d3map-root .hover-card {
  position: absolute;
  display: none;
  align-items: center;
  gap: 14px;
  min-width: 190px;
  max-width: calc(100vw - 40px);
  padding: 13px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 3px 4px 4px 0 rgba(0, 0, 0, 0.14);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(.985);
  transition: opacity .12s ease, transform .12s ease;
  z-index: 9998;

  @media (min-width: 992px) {
    min-width: 230px;
    max-width: 360px;
    padding: 24px;
  }
}


.d3map-root .hover-card .hover-flag {
  width: 26px;
  height: 20px;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
  background: #e9edf3;
  opacity: 1;
  transition: opacity .14s ease, filter .14s ease;
}

.d3map-root .hover-card .hover-flag.is-loading {
  background: linear-gradient(110deg, #e3e8ef 8%, #f4f7fb 18%, #e3e8ef 33%);
  background-size: 220% 100%;
  animation: d3mapHoverFlagShimmer 1s linear infinite;
}

.d3map-root .hover-card .hover-flag.is-ready {
  animation: none;
}

.d3map-root .hover-card .hover-flag.is-empty {
  animation: none;
  opacity: .8;
  filter: grayscale(.2);
}

.d3map-root .hover-card .hover-title {
  font-size: 24px;
  font-weight: 700;
  color: #3a3637;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes d3mapHoverFlagShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}

.d3map-root .compare-panel {
  position: absolute;
  right: 110px;
  left: auto;
  bottom: 30px;
  width: 360px;
  background: #fff;
  border: 1px solid #dadada;
  border-radius: 10px;
  padding: 30px 20px;
  z-index: 20;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .24s ease, transform .28s cubic-bezier(.22,.61,.36,1), visibility 0s linear .28s;
  will-change: opacity, transform;

  @media (max-width: 1512px) {
    width: 300px;
    padding: 20px 16px;
    font-size: 16px;
  }
  @media (max-width: 991px) {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
  }
}

.d3map-root .panel {
  row-gap: 10px;
  position: relative;
  transition: all .3s ease;

  @media (max-width: 991px) {
    position: fixed;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    background-color: var(--light-grey);
    z-index: 100;
    padding-top: 60px;
  }
}

.d3map-root .panel.active {
  @media (max-width: 991px) {
    transform: translateX(0);
  }
}

.d3map-root .panel .panel-ctrl {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 20px;
  margin-bottom: 20px;
  font-size: 18px;

  @media (max-width: 991px) {
    display: flex;
  }
}

.d3map-root .panel .panel-ctrl .left-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.d3map-root .map-wrap .panel-ctrl {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 13px;
  display: none;
  position: absolute;
  top: 16px;
  left: 16px;

  @media (max-width: 991px) {
    display: block;
  }
}

.d3map-root .compare-panel.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition: opacity .24s ease, transform .28s cubic-bezier(.22,.61,.36,1), visibility 0s;
}

.d3map-root .compare-panel .compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  stroke-width: 1px;
  stroke: #DADADA;
  border-bottom: 1px solid #DADADA;
  transition: margin-bottom .28s ease;

  @media (max-width: 1512px) {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
}

.d3map-root .compare-panel .compare-headline {
  color: #3a3637;
  text-transform: uppercase;
}

.d3map-root .compare-panel #compareToggle {
  color: #ef3340;
  text-decoration: underline;
  cursor: pointer;
}

.d3map-root .compare-panel .compare-body {
  margin-bottom: 17px;
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition: max-height .28s ease, opacity .2s ease, transform .28s ease, margin-bottom .28s ease;
}

.d3map-root .compare-panel .compare-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #DADADA;

  @media (max-width: 1512px) {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
}

.d3map-root .compare-panel .compare-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 14px;
}

.d3map-root .compare-panel .compare-item-flag {
  width: 26px;
  height: 20px;
  object-fit: cover;
  background: #f3f4f6;
}

.d3map-root .compare-panel .compare-item-name {
  font-size: 20px;
  font-weight: 700;
  color: #3a3637;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  @media (max-width: 1512px) {
    font-size: 18px;
  }
}

.d3map-root .compare-panel .compare-remove {
  border: none;
  background: transparent;
  width: 20px;
  height: 20px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.d3map-root .compare-panel .compare-remove svg {
  display: block;
  width: 19px;
  height: 19px;
}

.d3map-root .compare-panel .compare-clear {
  display: inline-block;
  color: #6b7280;
  text-decoration: underline;
}

.d3map-root .compare-panel .compare-submit {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: #121111;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 34px;
  cursor: pointer;
  text-align: center;

  @media (max-width: 1512px) {
    font-size: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.d3map-root .compare-panel .compare-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.d3map-root .compare-panel.collapsed .compare-body {
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
  margin-bottom: 0;
  pointer-events: none;
}

.d3map-root .compare-panel.collapsed .compare-header {
  margin-bottom: 12px;
}

.d3map-root .popup {
  position: absolute;
  --popup-arrow-size: 10px;
  --arrow-x: 50%;
  --arrow-y: 24px;
  min-width: 300px;
  max-width: 430px;
  width: 100%;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 3px 4px 4px 0 rgba(0, 0, 0, 0.14);
  display: none;
  z-index: 9999;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;

  @media(max-width: 1440px){
    min-width: 260px;
    max-width: 360px;
    padding: 15px;
  }
  @media(max-width: 992px){
    min-width: 0;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }
}


.d3map-root .popup::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.d3map-root .popup.with-arrow::after {
  opacity: 0;

  @media (min-width: 1441px) {
    opacity: 1;
  }
}

.d3map-root .popup.arrow-left::after {
  left: calc(-1 * var(--popup-arrow-size));
  top: var(--arrow-y);
  transform: translateY(-50%);
  border-top: var(--popup-arrow-size) solid transparent;
  border-bottom: var(--popup-arrow-size) solid transparent;
  border-right: var(--popup-arrow-size) solid #fff;
}

.d3map-root .popup.arrow-right::after {
  right: calc(-1 * var(--popup-arrow-size));
  top: var(--arrow-y);
  transform: translateY(-50%);
  border-top: var(--popup-arrow-size) solid transparent;
  border-bottom: var(--popup-arrow-size) solid transparent;
  border-left: var(--popup-arrow-size) solid #fff;
}

.d3map-root .popup.arrow-top::after {
  top: calc(-1 * var(--popup-arrow-size));
  left: var(--arrow-x);
  transform: translateX(-50%);
  border-left: var(--popup-arrow-size) solid transparent;
  border-right: var(--popup-arrow-size) solid transparent;
  border-bottom: var(--popup-arrow-size) solid #fff;
}

.d3map-root .popup.arrow-bottom::after {
  bottom: calc(-1 * var(--popup-arrow-size));
  left: var(--arrow-x);
  transform: translateX(-50%);
  border-left: var(--popup-arrow-size) solid transparent;
  border-right: var(--popup-arrow-size) solid transparent;
  border-top: var(--popup-arrow-size) solid #fff;
}

.d3map-root .popup .close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.d3map-root .popup .top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.d3map-root .popup .flag {
  width: 26px;
  height: 20px;
  overflow: hidden;
  flex: 0 0 auto;
  object-fit: cover;
  background: #eee;
  display: none;
}

.d3map-root .popup .title {
  color: #3a3637;
  font-size: 24px;
  font-weight: 700;
}

.d3map-root .popup .rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
  @media(max-width: 1440px){
    gap: 13px;
  }
}

.d3map-root .popup .row {
  display: grid;
  grid-template-columns: minmax(120px, 45%) 1fr;
  gap: 12px;
  align-items: center;
  margin: 0;
}

.d3map-root .popup .label {
  font-size: 18px;
  color: #3a3637;

  @media(max-width: 1440px){
    font-size: 15px;
  }
}

.d3map-root .popup .value {
  font-size: 18px;
  color: #3a3637;

  @media(max-width: 1440px){
    font-size: 15px;
  }
}

.d3map-root .popup .popup-rating-stars {
  display: flex;
  gap: 1px;
  width: max-content;
}

.d3map-root .popup .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  gap: 12px;
  border-top: 1px solid #dadada;

  @media(max-width: 1440px){
    margin-top: 13px;
    padding-top: 13px;
  }
  @media(max-width: 991px){
    margin-top: 10px;
    padding-top: 10px;
  }
}

.d3map-root .popup .actions a {
  text-decoration: underline;
  cursor: pointer;
  font-size: 18px;
  @media(max-width: 1440px){
    font-size: 15px;
  }
}

.d3map-root .popup .actions a[disabled] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.d3map-root .popup .actions a:hover {
  text-decoration: underline;
}

.d3map-root .popup .compare-btn {
  border: 1px solid #121111;
  background: #fff;
  border-radius: 30px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: #121111;
  cursor: pointer;
  transition: .3s ease;

  @media(max-width: 1440px){
    padding: 6px 14px;
    font-size: 15px;
  }
}

.d3map-root .popup .compare-btn:hover {
  background: #f3f4f6;
}

@media (prefers-reduced-motion: reduce) {
  .d3map-root .compare-profiles .cp-card-enter.cp-card-enter-active,
  .d3map-root .compare-profiles .cp-card-leave {
    transition: none;
  }

  .d3map-root .hover-card .hover-flag.is-loading {
    animation: none;
  }
}

.d3map-root .zoom-ui {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 15;

  @media (max-width: 991px) {
    display: none;
  }
}

.d3map-root .zbtn {
  border: none;
  background-color: unset;
  cursor: pointer;

}

.d3map-root .zbtn svg {
 background-color: transparent;
}