/* VARIABLES */
/* TYPOGRAPHY */
/* Google Fonts */
.site-map-section {
  background-color: #222222;
  padding-top: 3.75rem;
  padding-bottom: 3.75rem;
}
.site-map-section__header {
  padding-bottom: 1.875rem;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.5);
}
.site-map-section__title {
  font-size: 2rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.site-map-section__title strong {
  font-weight: 700;
}
.site-map-section__download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.25rem;
  color: #fff;
  font-size: 0.8125rem;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.site-map-section__download:hover,
.site-map-section__download:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}
.site-map-section__download-icon {
  width: 19px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
  background-image: url("../../images/download.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.site-map-section__body {
  position: relative;
  display: flex;
  align-items: stretch;
}
.site-map-section__map-wrap {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  background: #222;
  cursor: grab;
  min-height: 340px;
}
.site-map-section__map-wrap:active {
  cursor: grabbing;
}
.site-map-section__map {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.site-map-section__map svg {
  width: 100%;
  height: auto;
  display: block;
}
.site-map-section__map svg [data-category] {
  transition:
    opacity 0.3s ease,
    filter 0.3s ease;
  cursor: pointer;
}
.site-map-section__map.has-filter [data-category] {
  opacity: 0.18;
}
.site-map-section__map.has-filter [data-category].is-filter-active {
  opacity: 1;
  filter: drop-shadow(
    0 0 5px var(--filter-glow-color, rgba(255, 255, 255, 0.8))
  );
}
.site-map-section__map.has-active-buildings [data-category] {
  opacity: 0.18;
}
.site-map-section__map.has-active-buildings [data-category].is-active {
  opacity: 1 !important;
  filter: drop-shadow(
    0 0 5px var(--filter-glow-color, rgba(255, 255, 255, 0.8))
  );
}
.site-map-section__map [data-category].is-active {
  opacity: 1 !important;
  filter: drop-shadow(
    0 0 5px var(--filter-glow-color, rgba(255, 255, 255, 0.8))
  );
}
.site-map-section__map [data-category]:hover,
.site-map-section__map [data-category].is-hover {
  opacity: 1 !important;
  filter: drop-shadow(
    0 0 5px var(--filter-glow-color, rgba(255, 255, 255, 0.8))
  );
  cursor: pointer;
}
.site-map-section__map [data-category].is-hover [fill="white"],
.site-map-section__map [data-category].is-hover [fill="#fff"],
.site-map-section__map [data-category].is-active [fill="white"],
.site-map-section__map [data-category].is-active [fill="#fff"] {
  fill: #383838 !important;
}
.site-map-section__controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  background: rgba(30, 30, 30, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  overflow: hidden;
}
.site-map-section__zoom-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.site-map-section__zoom-btn + .site-map-section__zoom-btn {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-map-section__zoom-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.site-map-section__zoom-btn:active {
  background: rgba(255, 255, 255, 0.18);
}
.site-map-section__zoom-btn span {
  display: block;
  margin-top: -0.25rem;
  pointer-events: none;
}
.site-map-section__filter-toggle {
  display: none;
}
.site-map-section__legend {
  -webkit-overflow-scrolling: touch;
}
.site-map-section__legend::-webkit-scrollbar {
  width: 4px;
}
.site-map-section__legend::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.125rem;
}

.site-map-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 0.125rem solid var(--filter-glow-color, rgba(255, 255, 255, 0.5));
  border-radius: 0.375rem;
  padding: 0.4rem 0.8rem;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.site-map-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.site-map-tooltip__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  display: block;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.site-map-tooltip__cta {
  font-size: 0.6875rem;
  color: #32c5f4;
  display: none;
  margin-top: 0.125rem;
}
.site-map-tooltip.has-url .site-map-tooltip__cta {
  display: block;
}

.site-map-offcanvas__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
}

.site-map-legend__group {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 0;
}
.site-map-legend__group:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.site-map-legend__group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--category-color, transparent);
  border-radius: 0 1px 1px 0;
  opacity: 0;
  transform: scaleY(0.4);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.site-map-legend__group.has-filter-active::before,
.site-map-legend__group:has(
    .site-map-legend__group-header[aria-expanded="true"]
  )::before {
  opacity: 1;
  transform: scaleY(1);
}
.site-map-legend__group[data-category="stage-village"] .site-map-legend__items {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  grid-template-columns: repeat(2, 6fr);
}
.site-map-legend__group-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem 0.7rem 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background-color 0.15s ease;
  position: relative;
  outline: none;
}
.site-map-legend__group-header:hover {
  background-color: rgba(255, 255, 255, 0.04);
}
.site-map-legend__group-header:focus-visible {
  background-color: rgba(255, 255, 255, 0.06);
  outline: 1px solid rgba(255, 255, 255, 0.2);
  outline-offset: -2px;
}
.site-map-legend__group-header.is-active-filter {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 100%
  );
}
.site-map-legend__group-header.is-active-filter .site-map-legend__dot {
  transform: scale(1.25);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.4),
    0 0 10px 3px var(--swatch-color, rgba(255, 255, 255, 0.4));
}
.site-map-legend__group-header.is-active-filter .site-map-legend__group-name {
  color: rgba(255, 255, 255, 0.95);
}
.site-map-legend__group-header.is-active-filter .site-map-legend__badge {
  color: var(--category-color, #fff);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px var(--swatch-color, rgba(255, 255, 255, 0.2));
}
.site-map-legend__group-header.has-active-item .site-map-legend__group-name {
  color: rgba(255, 255, 255, 0.95);
}
.site-map-legend__group-header.has-active-item .site-map-legend__badge {
  color: var(--category-color, #fff);
  background: rgba(255, 255, 255, 0.1);
}
.site-map-legend__group-header:hover .site-map-legend__chevron {
  opacity: 0.8;
}
.site-map-legend__group-header[aria-expanded="true"] .site-map-legend__chevron {
  opacity: 0.7;
}
.site-map-legend__group-header[aria-expanded="true"]
  .site-map-legend__chevron::before {
  transform: rotate(-135deg) translate(-1px, -2px);
}
.site-map-legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  transition:
    box-shadow 0.3s ease,
    transform 0.2s ease;
}
.site-map-legend__group-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.09em;
  line-height: 1.3;
  flex: 1;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.site-map-legend__badge {
  font-size: 0.5625rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  padding: 1px 0.4375rem;
  line-height: 1.7;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.site-map-legend__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}
.site-map-legend__chevron::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg) translate(-1px, -2px);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-map-legend__items {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-map-legend__group-header[aria-expanded="true"] + .site-map-legend__items {
  max-height: 700px;
}
.site-map-legend__group-header[aria-expanded="true"]
  + .site-map-legend__items::after {
  content: "";
  display: block;
  height: 0.5rem;
}
.site-map-legend__item {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  padding: 0.375rem 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  position: relative;
}
.site-map-legend__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 60%;
  border-radius: 0 1px 1px 0;
  background: var(--category-color, #fff);
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.site-map-legend__item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.site-map-legend__item.is-hover {
  background-color: rgba(255, 255, 255, 0.04);
}
.site-map-legend__item.is-active {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 80%
  );
}
.site-map-legend__item.is-active::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}
.site-map-legend__item.is-active .site-map-legend__check-box {
  background-color: var(--category-color, #fff);
  border-color: var(--category-color, #fff);
  box-shadow: 0 0 6px 1px var(--swatch-color, rgba(255, 255, 255, 0.3));
}
.site-map-legend__item.is-active .site-map-legend__check-box::after {
  opacity: 1;
}
.site-map-legend__item.is-active span:last-child {
  color: var(--category-color, #fff);
  font-weight: 600;
}
.site-map-legend__item:hover .site-map-legend__check-box {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.site-map-legend__item:hover span:last-child {
  color: rgba(255, 255, 255, 0.85);
}
.site-map-legend__item span:last-child {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  transition: color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-map-legend__check-box {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.1875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
  position: relative;
}
.site-map-legend__check-box::after {
  content: "";
  display: block;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  transform: rotate(-45deg) translate(0.5px, -1px);
  opacity: 0;
  transition: opacity 0.12s ease;
}

@media (min-width: 75rem) {
  #site-map-offcanvas {
    position: static !important;
    display: flex !important;
    visibility: visible !important;
    transform: none !important;
    width: 350px !important;
    height: auto !important;
    flex-shrink: 0;
    background: #222 !important;
    border: none !important;
    z-index: auto !important;
    flex-direction: column;
    overflow-y: auto;
    padding: 0;
    transition: none !important;
  }
  .site-map-offcanvas__header {
    display: none !important;
  }
  .site-map-offcanvas__body {
    display: block !important;
    padding: 1.125rem 0.875rem !important;
    overflow-y: visible !important;
    flex-grow: 1;
  }
}
@media (max-width: 74.99875rem) {
  .site-map-section__filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    z-index: 20;
    background: #313131;
    border: 0.5px solid #626262;
    border-radius: 0.375rem;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease;
    line-height: 1;
  }
  .site-map-section__filter-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
  }
  .site-map-section__filter-toggle-icon {
    font-size: 1rem;
    font-weight: 300;
    line-height: 0;
    margin-top: -0.25rem;
  }
  .site-map-section__legend.offcanvas {
    --bs-offcanvas-bg: #2a2a2a;
    --bs-offcanvas-width: 280px;
    --bs-offcanvas-color: #fff;
  }
  .site-map-section__controls {
    top: 0.5rem;
    left: 0.5rem;
    right: auto;
  }
  .site-map-section__map-wrap {
    min-height: 240px;
  }
  .site-map-section__body {
    position: relative;
  }
  .site-map-tooltip {
    display: none !important;
  }
  .site-map-offcanvas__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-map-offcanvas__body {
    padding: 1.125rem 0.875rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
[dir="rtl"] .site-map-section__controls {
  right: auto;
  left: 1rem;
}
[dir="rtl"] .site-map-legend__group-header {
  text-align: right;
  padding: 0.25rem 0.25rem 0.25rem 0.375rem;
}
[dir="rtl"] .site-map-legend__item {
  flex-direction: row-reverse;
}
[dir="rtl"] .site-map-offcanvas__header {
  flex-direction: row-reverse;
}
@media (max-width: 74.99875rem) {
  [dir="rtl"] .site-map-section__controls {
    left: 0.5rem;
    right: auto;
  }
  [dir="rtl"] #site-map-offcanvas.offcanvas-end {
    right: 0;
    left: auto;
    transform: translateX(100%);
  }
  [dir="rtl"] #site-map-offcanvas.offcanvas-end.show,
  [dir="rtl"] #site-map-offcanvas.offcanvas-end.showing {
    transform: translateX(0);
  }
}

.building-label:hover path {
  fill: #222;
}
