﻿.locations {
  background: #e8e4da;
  overflow: hidden;
}
.locations-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  align-items: end;
  margin-bottom: 42px;
}
.locations-head h2 {
  font-size: clamp(44px, 5vw, 72px);
  margin: 0;
}
.locations-head .body-copy {
  max-width: 450px;
  margin: 0;
}
.map-wrap {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  min-height: 540px;
  background: #d5d1c6;
  border: 1px solid #c5c0b3;
}
.map-canvas {
  position: relative;
  overflow: hidden;
  background-color: #d8d4ca;
  background-image:
    linear-gradient(
      32deg,
      transparent 47%,
      #c4c0b5 48%,
      #c4c0b5 49%,
      transparent 50%
    ),
    linear-gradient(
      115deg,
      transparent 47%,
      #cbc7bc 48%,
      #cbc7bc 49%,
      transparent 50%
    ),
    linear-gradient(
      155deg,
      transparent 47%,
      #c7c3b8 48%,
      #c7c3b8 49%,
      transparent 50%
    );
  background-size:
    180px 180px,
    220px 220px,
    260px 260px;
}
.map-canvas:before {
  content: "";
  position: absolute;
  inset: 12% 16%;
  border: 1px solid #b4ae9e;
  border-radius: 48% 39% 52% 43%;
  transform: rotate(-17deg);
  box-shadow:
    0 0 0 28px #d2cec3,
    0 0 0 29px #bcb7aa;
}
.map-road {
  position: absolute;
  height: 13px;
  background: #eeeae1;
  border: 1px solid #beb9ae;
  transform-origin: left center;
  z-index: 1;
}
.road-one {
  width: 95%;
  top: 57%;
  right: -7%;
  transform: rotate(-19deg);
}
.road-two {
  width: 90%;
  top: 32%;
  right: -5%;
  transform: rotate(25deg);
}
.road-three {
  width: 72%;
  top: 78%;
  right: 6%;
  transform: rotate(8deg);
}
.map-district {
  position: absolute;
  color: #a09b8f;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}
.district-one {
  top: 17%;
  right: 19%;
}
.district-two {
  top: 50%;
  right: 43%;
}
.district-three {
  bottom: 13%;
  left: 20%;
}
.map-pin {
  position: absolute;
  z-index: 5;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #c7a34c;
  box-shadow: 0 3px 12px #51401f66;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.map-pin i {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}
.map-pin span {
  position: absolute;
  right: 17px;
  top: -11px;
  white-space: nowrap;
  padding: 3px 7px;
  background: #fff;
  color: #171714;
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.map-pin:hover,
.map-pin.is-selected {
  transform: translate(-50%, -50%) scale(1.35);
  background: #9b7824;
}
.map-pin:hover span,
.map-pin.is-selected span {
  opacity: 1;
}
.map-panel {
  background: #f8f6f0;
  padding: 28px 25px;
  display: flex;
  flex-direction: column;
}
.map-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #dcd6c8;
  font-weight: 700;
}
.map-panel-head b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #c7a34c;
  border-radius: 50%;
  font: 700 12px Manrope;
  color: #fff;
}
.map-project-list {
  overflow: auto;
  margin-top: 10px;
}
.map-project-item {
  position: relative;
  width: 100%;
  display: block;
  text-align: right;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e4e0d6;
  color: #171714;
  cursor: pointer;
}
.map-project-item span,
.map-project-item small {
  display: block;
}
.map-project-item span {
  font-weight: 700;
}
.map-project-item small {
  color: #716e66;
  font-size: 11px;
}
.map-project-item b {
  position: absolute;
  left: 0;
  top: 18px;
  color: #c7a34c;
  font-size: 19px;
}
.map-project-item:hover,
.map-project-item.is-selected {
  color: #917126;
  padding-right: 8px;
}
.map-note {
  margin: auto 0 0;
  color: #99958b;
  font-size: 10px;
  line-height: 1.7;
}
.map-popup {
  position: fixed;
  z-index: 30;
  top: 110px;
  left: 7vw;
  width: min(330px, calc(100% - 40px));
  padding: 25px;
  background: #fff;
  color: #171714;
  box-shadow: 0 20px 50px #1b170c2b;
  border-right: 4px solid #c7a34c;
  animation: popupIn 0.25s ease;
}
.map-popup[hidden] {
  display: none;
}
.map-popup button {
  position: absolute;
  left: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #716e66;
  font-size: 22px;
  cursor: pointer;
}
.popup-kicker {
  color: #a07a25;
  font-size: 11px;
}
.map-popup h3 {
  margin: 7px 0 0;
  font-size: 23px;
}
.map-popup p {
  color: #716e66;
  margin: 0 0 13px;
}
.map-popup div {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}
.map-popup div span {
  padding: 4px 8px;
  background: #f1e7c9;
  color: #876720;
  font-size: 10px;
}
.map-popup > b {
  font-size: 11px;
  color: #716e66;
}
@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.values article,
.service-grid article,
.project {
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}
.values article.is-selected {
  background: #fff8e6;
  box-shadow: inset 0 -3px #c7a34c;
  transform: translateY(-5px);
}
.service-grid article.is-selected {
  background: #292418;
  box-shadow: inset 0 -3px #c7a34c;
  transform: translateY(-5px);
}
.service-specialty-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1px;
  border: 1px solid #d4cbb9;
  background: #d4cbb9;
}
.service-specialty-grid article,
.service-specialty-grid article:hover {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #faf8f2;
}
.service-specialty-grid article.is-selected {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid #c7a34c;
  background: #fffdf8;
  box-shadow: inset 0 0 0 1px #c7a34c;
  transform: none;
  animation: service-open 0.35s ease both;
}
.service-specialty-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 132px;
  padding: 24px 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: right;
}
.service-specialty-trigger:focus-visible {
  outline: 2px solid #c7a34c;
  outline-offset: -4px;
}
.service-specialty-grid article:not(.is-selected) .service-specialty-trigger:hover,
.service-specialty-grid article.is-selected .service-specialty-trigger {
  background: #f4f1e9;
}
.service-specialty-number {
  align-self: start;
  color: #92752e;
  font: 700 12px Manrope, sans-serif;
}
.service-specialty-label {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.service-specialty-label strong {
  font-size: 18px;
  line-height: 1.6;
}
.service-specialty-label small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.service-specialty-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #d8c99f;
  border-radius: 50%;
  color: #92752e;
  font: 500 18px Manrope, sans-serif;
  transition: transform 0.25s ease, background 0.25s ease;
}
.service-specialty-grid article.is-selected .service-specialty-toggle {
  background: #f1e7ca;
  transform: rotate(45deg);
}
.service-specialty-details {
  display: none;
  align-self: stretch;
  padding: 24px 30px;
  border-inline-start: 1px solid var(--line);
  animation: service-open 0.35s ease both;
}
.service-specialty-details[hidden] {
  display: none !important;
}
.service-specialty-grid article.is-selected .service-specialty-details:not([hidden]) {
  display: block;
}
.service-specialty-details > p {
  margin: 0 0 18px;
  color: #625e55;
  font-size: 13px;
  line-height: 2;
}
.service-specialty-details h3 {
  margin: 0 0 11px;
  color: #a27d29;
  font-size: 12px;
}
.service-specialty-details ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-specialty-details li {
  position: relative;
  padding-inline-start: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.service-specialty-details li::before {
  position: absolute;
  inset-inline-start: 0;
  color: #c7a34c;
  content: "•";
}
@keyframes service-open {
  from { opacity: 0.65; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .service-specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .service-specialty-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
  }
  .service-specialty-grid article.is-selected {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-specialty-trigger {
    min-height: 106px;
    padding: 19px 17px;
  }
  .service-specialty-details {
    padding: 0 20px 22px;
    border-inline-start: 0;
  }
  .service-specialty-details ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-specialty-grid article.is-selected,
  .service-specialty-details {
    animation: none;
  }
  .service-specialty-toggle {
    transition: none;
  }
}
@keyframes sectionPulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 transparent;
  }
  50% {
    box-shadow: inset 0 0 0 2px #c7a34c;
  }
}
.map-project-item.is-selected {
  animation: sectionPulse 1.3s ease;
}
.map-pin:focus-visible,
.map-project-item:focus-visible,
.values article:focus-visible,
.service-grid article:focus-visible {
  outline: 2px solid #c7a34c;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .map-popup {
    animation: none;
  }
}
@media (max-width: 900px) {
  .locations-head {
    gap: 5vw;
  }
  .map-wrap {
    grid-template-columns: 1fr;
  }
  .map-panel {
    min-height: 330px;
  }
  .map-project-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
}
@media (max-width: 680px) {
  .locations-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .map-wrap {
    min-height: 0;
  }
  .map-canvas {
    height: 410px;
  }
  .map-panel {
    padding: 22px 18px;
  }
  .map-project-list {
    grid-template-columns: 1fr;
  }
  .map-pin span {
    display: none;
  }
  .map-popup {
    top: 86px;
    left: 20px;
  }
  .locations .section-label {
    top: 32px;
  }
}

