/* =========================================================
   B&B ASSOCIATES — LOCATION MODAL
   Clean / Minimal / Theme Matched
========================================================= */

/* =========================================================
   BODY / BOOTSTRAP SCROLL FIX
========================================================= */

.modal {
  padding-right: 0 !important;
}

body.modal-open {
  padding-right: 0 !important;
}

/* =========================================================
   BACKDROP
========================================================= */

.modal-backdrop.location-backdrop {
  background: rgba(15, 15, 15, 0.52);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 1;
}

/* =========================================================
   MODAL DIALOG
========================================================= */

.location-modal .location-modal__dialog {
  width: calc(100% - 32px);
  max-width: 680px;

  margin: 1.5rem auto;
}

/* =========================================================
   MAIN MODAL
========================================================= */

.location-modal .location-modal__content {
  position: relative;

  width: 100%;

  padding: 38px 42px 30px;

  background: rgba(250, 250, 248, 0.88);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border: 1px solid rgba(20, 20, 20, 0.12);

  border-radius: 6px;

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);

  color: var(--ink);

  overflow: visible;
}

/* Small red theme accent */

.location-modal .location-modal__content::before {
  content: "";

  position: absolute;

  top: 0;
  left: 50%;

  width: 42px;
  height: 3px;

  background: var(--red);

  transform: translateX(-50%);
}
/* =========================================================
   RED THEME ACCENTS
Left + Right
========================================================= */

/* LEFT RED BAR */
.location-modal__side-bar {
  position: absolute;

  top: 50%;

  width: 3px;
  height: 272px;

  background: var(--red);

  transform: translateY(-50%);

  z-index: 20;

  pointer-events: none;
}

/* LEFT — TOUCHING EDGE */
.location-modal__side-bar--left {
  left: 0;
}

/* RIGHT — TOUCHING EDGE */
.location-modal__side-bar--right {
  right: 0;
}
@media (max-width: 576px) {
  .location-modal__side-bar {
    top: 57%;
    height: 330px;
  }
}
/* =========================================================
   CLOSE BUTTON
========================================================= */

.location-modal .location-modal__close {
  position: absolute;

  top: 14px;
  right: 14px;

  width: 38px;
  height: 38px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  /* border: 1px solid rgba(20, 20, 20, 0.12); */

  border-radius: 50%;

  /* background: rgba(255, 255, 255, 0.65); */

  color: var(--ink);

  cursor: pointer;

  z-index: 20;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.3s ease;
}

.location-modal .location-modal__close svg {
  width: 16px;
  height: 16px;

  display: block;
}

/* .location-modal .location-modal__close:hover {

    background: var(--red);

    border-color: var(--red);

    color: #fff;

    transform: rotate(90deg);
} */

.location-modal .location-modal__close:focus {
  outline: none;

  box-shadow: none;
}

/* =========================================================
   HEADER
========================================================= */

.location-modal .location-modal__header {
  text-align: center;

  margin-bottom: 26px;
}

/* =========================================================
   LOGO — CIRCLE / NO SQUARE
========================================================= */

.location-modal .location-modal__logo {
  width: 82px;
  height: 82px;

  margin: 0 auto 18px;

  /* border-radius: 50% !important; */

  display: flex;
  align-items: center;
  justify-content: center;

  /* Completely transparent */

  background: transparent;

  /* border: 1px solid rgba(20, 20, 20, 0.14); */

  box-shadow: none;

  overflow: hidden;
}

.location-modal .location-modal__logo img {
  width: 58px;
  height: 58px;

  object-fit: contain;

  display: block;
}

/* =========================================================
   TITLE
========================================================= */
.location-modal .location-modal__title {
  margin: 0;
  /* font-family: var(--serif); */
  font-family: "Inter";
  font-size: clamp(26px, 4vw, 6px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-align: center;
}
/* =========================================================
   LOCATION GRID
========================================================= */
.location-modal .location-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}
/* Last single location takes BOTH columns */
/* .location-modal__grid .loc-btn:last-child {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
} */
/* =========================================================
   LOCATION LINKS
   No filled button background
========================================================= */

.location-modal .loc-btn {
  position: relative;
  min-width: 0;
  min-height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 5px !important;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

/* Label */

.location-modal .loc-btn__label {
  color: inherit;

  font-family: var(--sans);

  font-size: 14px;

  font-weight: 500;

  letter-spacing: 0.01em;
}

/* Arrow */

.location-modal .loc-btn__arrow {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 16px;
  height: 16px;

  color: #888;

  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.location-modal .loc-btn__arrow svg {
  width: 14px;
  height: 14px;
}

/* Hover */

.location-modal .loc-btn:hover {
  background: var(--ink);

  border-color: var(--ink);

  color: #fff;

  transform: translateY(-2px);
}

.location-modal .loc-btn:hover .loc-btn__arrow {
  color: #fff;

  transform: translateX(3px);
}

/* =========================================================
   FOOTER
========================================================= */

.location-modal .location-modal__footer {
  margin-top: 24px;

  padding-top: 18px;

  border-top: 1px solid rgba(20, 20, 20, 0.12);

  text-align: center;
}

/* Brand */

.location-modal .location-modal__footer .brand {
  display: block;

  font-family: var(--serif);

  font-size: 16px;

  font-weight: 400;

  line-height: 1;

  letter-spacing: 0.02em;

  color: var(--ink);
}

/* Tagline */

.location-modal .location-modal__footer .tagline {
  display: block;

  margin-top: 7px;

  font-family: var(--sans);

  font-size: 9px;

  font-weight: 500;

  line-height: 1;

  letter-spacing: 0.2em;

  text-transform: uppercase;

  color: #777;
}

/* =========================================================
   ANIMATION
========================================================= */

.location-modal.fade .location-modal__content {
  opacity: 0;

  transform: translateY(15px) scale(0.98);

  transition:
    opacity 0.3s ease,
    transform 0.35s ease;
}

.location-modal.show .location-modal__content {
  opacity: 1;

  transform: translateY(0) scale(1);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
  .location-modal .location-modal__dialog {
    width: calc(100% - 30px);

    max-width: 650px;
  }

  .location-modal .location-modal__content {
    padding: 34px 30px 26px;
  }
}

/* =========================================================
   MOBILE
   IMPORTANT: STILL 2 COLUMNS
========================================================= */

@media (max-width: 576px) {
  .location-modal .location-modal__dialog {
    width: calc(100% - 20px);

    max-width: none;

    margin: 10px auto;
  }

  .location-modal .location-modal__content {
    padding: 30px 16px 22px;

    border-radius: 5px;
  }

  /* Smaller circular logo */

  .location-modal .location-modal__logo {
    width: 68px;
    height: 68px;

    margin-bottom: 16px;
  }

  .location-modal .location-modal__logo img {
    width: 48px;
    height: 48px;
  }

  /* Smaller heading */

  .location-modal .location-modal__title {
    font-size: 24px;

    margin-bottom: 5px;
  }

  /* KEEP TWO COLUMNS */

  .location-modal .location-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 7px;
  }

  /* Compact links */

  .location-modal .loc-btn {
    min-height: 48px;

    padding: 0 8px;

    border-radius: 3px;

    font-size: 12px;
  }

  .location-modal .loc-btn__label {
    font-size: 12px;
  }

  .location-modal .loc-btn__arrow {
    display: none;
  }

  /* Footer */

  .location-modal .location-modal__footer {
    margin-top: 20px;

    padding-top: 15px;
  }

  .location-modal .location-modal__footer .brand {
    font-size: 14px;
  }

  .location-modal .location-modal__footer .tagline {
    font-size: 8px;

    letter-spacing: 0.16em;
  }

  /* Close */

  .location-modal .location-modal__close {
    top: 9px;
    right: 9px;

    width: 34px;
    height: 34px;
  }

  .location-modal .location-modal__close svg {
    width: 14px;
    height: 14px;
  }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
  .location-modal .location-modal__content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .location-modal .location-modal__title {
    font-size: 29px;
  }

  .location-modal .loc-btn {
    min-height: 45px;

    padding: 0 6px;
  }

  .location-modal .loc-btn__label {
    font-size: 11px;
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .location-modal *,
  .location-modal .location-modal__content {
    animation: none !important;

    transition: none !important;
  }
}
