/* =========================================
   LOCATION SECTION
========================================= */

.location_section {
  position: relative;
  overflow: hidden;
  padding: 70px 0 ;
  /* background: #ffffff; */
  color: #111111;
}

.location_section .location_container {
  position: relative;
  z-index: 2;

  width: min(1440px, calc(100% - 80px));
  margin: auto;
}

/* =========================================
   HEADER
========================================= */

.location_section .location_header {
  position: relative;
  z-index: 3;

  margin-bottom: 30px;
}

/* =========================================
   MAIN CONTENT
========================================= */

.location_section .location_content {
  display: grid;

  grid-template-columns: 390px minmax(0, 1fr);

  min-height: 650px;

  border: 1px solid #dedede;
}

/* =========================================
   LEFT INFO
========================================= */

.location_section .location_info {
  display: flex;
  flex-direction: column;

  padding: 45px 38px;

  border-right: 1px solid #dedede;

  background: #fff;
}

/* =========================================
   INTRO
========================================= */

.location_section .location_intro {
  padding-bottom: 30px;

  border-bottom: 1px solid #e2e2e2;
}

.location_section .location_eyebrow {
  display: block;

  margin-bottom: 20px;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.2em;

  color: #888888;
}

.location_section .location_intro h2 {
  margin: 0;

  font-size: clamp(36px, 3vw, 52px);

  line-height: 0.98;

  font-weight: 400;

  letter-spacing: -0.045em;
}

.location_section .location_intro h2 span {
  font-weight: 700;
}

.location_section .location_intro p {
  max-width: 320px;

  margin: 25px 0 0;

  font-size: 13px;

  line-height: 1.8;

  color: #777777;
}

/* =========================================
   ACTIVE LOCATION
========================================= */

.location_section .location_active {
  display: flex;
  align-items: center;
  gap: 17px;

  padding: 27px 0;

  border-bottom: 1px solid #e2e2e2;
}

.location_section .location_active_icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 50%;

  background: #111111;
  color: #ffffff;

  font-size: 17px;

  animation: locationPulse 2.5s ease-in-out infinite;
}

@keyframes locationPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.12);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
}

.location_section .location_active span {
  display: block;

  margin-bottom: 5px;

  font-size: 9px;

  letter-spacing: 0.15em;

  color: #999999;
}

.location_section .location_active h3 {
  margin: 0;

  font-size: 15px;

  font-weight: 700;
}

.location_section .location_active strong {
  display: block;

  margin-top: 4px;

  font-size: 10px;

  color: #999999;
}

/* =========================================
   LOCATION LIST
========================================= */

.location_section .location_list {
  flex: 1;

  padding: 12px 0;
}

.location_section .location_item {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 14px;

  padding: 13px 10px;

  border: 0;

  border-bottom: 1px solid #eeeeee;

  background: transparent;

  text-align: left;

  cursor: pointer;

  transition:
    background 0.35s ease,
    padding 0.35s ease;
}

.location_section .location_item:last-child {
  border-bottom: 0;
}

.location_section .location_item:hover,
.location_section .location_item.active {
  padding-left: 16px;

  background: #f6f6f6;
}

.location_section .location_item_icon {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border: 1px solid #dedede;

  border-radius: 50%;

  font-size: 11px;

  color: #555555;

  transition:
    background 0.35s ease,
    color 0.35s ease;
}

.location_section .location_item:hover .location_item_icon,
.location_section .location_item.active .location_item_icon {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.location_section .location_item_content {
  display: flex;
  flex-direction: column;

  min-width: 0;

  flex: 1;
}

.location_section .location_item_content small {
  margin-bottom: 3px;

  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 0.12em;

  color: #999999;
}

.location_section .location_item_content strong {
  font-size: 11px;

  font-weight: 600;

  color: #222222;
}

.location_section .location_item_distance {
  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.08em;

  color: #999999;
}

/* =========================================
   DIRECTIONS BUTTON
========================================= */

.location_section .location_direction_btn {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;

  margin-top: 20px;

  padding: 13px 0;

  color: #111111;

  border-top: 1px solid #111111;

  text-decoration: none;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.16em;
}

.location_section .location_direction_icon {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #111111;
  border-radius: 50%;

  font-size: 10px;

  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.location_section .location_direction_btn:hover .location_direction_icon {
  background: #111111;
  color: #ffffff;

  transform: rotate(45deg);
}

/* =========================================
   MAP
========================================= */

.location_section .location_map_wrapper {
  position: relative;

  min-height: 650px;

  overflow: hidden;

  background: #eeeeee;
}

.leaflet_location_map {
  width: 100%;
  height: 100%;

  min-height: 650px;

  /* filter: grayscale(100%) contrast(0.9); */
}

/* =========================================
   MAP OVERLAY
========================================= */

.location_section .location_map_wrapper::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 400;

  pointer-events: none;

  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.08), transparent 25%);
}

/* =========================================
   CUSTOM MARKER
========================================= */

.custom_leaflet_marker {
  background: transparent !important;

  border: 0 !important;
}

.leaflet_marker_pin {
  position: relative;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50% 50% 50% 0;

  background: var(--marker-color);

  transform: rotate(-45deg);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  transition:
    transform 0.35s ease,
    background 0.35s ease;
}

.leaflet_marker_pin::before {
  content: "";

  position: absolute;

  width: 13px;
  height: 13px;

  border-radius: 50%;

  background: #ffffff;
}

.leaflet_marker_pin::after {
  content: "";

  position: absolute;

  width: 65px;
  height: 65px;

  border: 1px solid rgba(0, 0, 0, 0.35);

  border-radius: 50%;

  animation: markerRipple 2.5s ease-out infinite;
}

.marker_active {
  transform: rotate(-45deg) scale(1.25);
  z-index: 10;
}

@keyframes markerRipple {
  0% {
    opacity: 0.8;
    transform: scale(0.7);
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* =========================================
   POPUP
========================================= */

.leaflet_popup {
  min-width: 150px;

  display: flex;
  flex-direction: column;
}

.leaflet_popup span {
  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 0.15em;

  color: #999999;
}

.leaflet_popup strong {
  margin-top: 5px;

  font-size: 13px;

  color: #111111;
}

.leaflet_popup small {
  margin-top: 4px;

  font-size: 9px;

  color: #777777;
}

/* =========================================
   MAP CORNER LABEL
========================================= */

.map_corner_label {
  position: absolute;

  right: 22px;
  top: 22px;

  z-index: 500;

  display: flex;
  flex-direction: column;

  align-items: flex-end;

  font-size: 8px;

  letter-spacing: 0.12em;

  color: #555555;

  pointer-events: none;
}

/* =========================================
   MAP STATUS
========================================= */

.map_status {
  position: absolute;

  left: 22px;
  bottom: 22px;

  z-index: 500;

  display: flex;
  align-items: center;

  gap: 8px;

  padding: 10px 13px;

  background: rgba(255, 255, 255, 0.92);

  font-size: 8px;

  font-weight: 700;

  letter-spacing: 0.14em;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

  pointer-events: none;
}

.map_status_dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #111111;

  animation: statusBlink 1.6s ease-in-out infinite;
}

@keyframes statusBlink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

/* =========================================
   SCALE
========================================= */

.map_scale {
  position: absolute;

  right: 22px;
  bottom: 22px;

  z-index: 500;

  display: flex;
  align-items: center;

  gap: 8px;

  pointer-events: none;
}

.map_scale span {
  display: block;

  width: 55px;
  height: 5px;

  border-left: 1px solid #111;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
}

.map_scale small {
  font-size: 8px;

  letter-spacing: 0.1em;

  color: #444444;
}

/* =========================================
   MAP LOADING
========================================= */

.location_map_loading {
  width: 100%;
  height: 100%;

  min-height: 650px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 18px;

  background: #f5f5f5;

  font-size: 9px;

  letter-spacing: 0.2em;

  color: #777777;
}

.location_loader {
  width: 35px;
  height: 35px;

  border: 1px solid #cccccc;
  border-top-color: #111111;

  border-radius: 50%;

  animation: mapLoader 0.8s linear infinite;
}

@keyframes mapLoader {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   BOTTOM
========================================= */

.location_section .location_bottom {
  display: grid;

  grid-template-columns: auto 1fr auto;

  align-items: center;

  gap: 25px;

  margin-top: 35px;
}

.location_section .location_bottom_item {
  display: flex;
  align-items: center;

  gap: 10px;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.14em;
}

.location_section .location_bottom_item svg {
  font-size: 13px;
}

.location_section .location_bottom_line {
  height: 1px;

  background: #dedede;
}

.location_section .location_bottom p {
  display: flex;
  flex-direction: column;

  margin: 0;

  text-align: right;

  font-size: 9px;

  letter-spacing: 0.14em;

  color: #999999;
}

.location_section .location_bottom p strong {
  margin-top: 5px;

  font-size: 12px;

  color: #111111;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {
  .location_section .location_content {
    grid-template-columns: 350px minmax(0, 1fr);
  }

  .location_section .location_info {
    padding: 35px 28px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .location_section .location_content {
    grid-template-columns: 1fr;
  }

  .location_section .location_info {
    border-right: 0;
    border-bottom: 1px solid #dedede;
  }

  .location_section .location_map_wrapper {
    min-height: 550px;
  }

  .leaflet_location_map {
    min-height: 550px;
  }

  .location_section .location_list {
    margin-top: 10px;
  }
}

@media (min-width: 0px) and (max-width: 767.98px) {
  .location_section {
    padding: 70px 0;
  }

  .location_section .location_content {
    grid-template-columns: 1fr;
  }

  .location_section .location_container {
    width: calc(100% - 28px);
  }

  .location_bg_text {
    top: 10px;
    right: -30px;

    font-size: 100px;
  }

  .location_section .location_info {
    padding: 30px 22px;
  }

  .location_section .location_intro h2 {
    font-size: 40px;
  }

  .location_section .location_map_wrapper {
    min-height: 420px;
  }

  .leaflet_location_map {
    min-height: 420px;
  }

  .location_section .location_bottom {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .location_section .location_bottom_line {
    display: none;
  }

  .location_section .location_bottom p {
    text-align: left;
  }
}
