/* Vacant storefronts: tag filter, column slider, hover, lightbox map. */

.vsf-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 20;
  margin: 0 0 1.2em;
  padding: 0.5em 0;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-height: 28px;
}

.vsf-tagfold {
  flex: 1 0 100%;
  margin: 0.55em 0 0;
}

.vsf-tags-toggle,
.vsf-about-toggle {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.vsf-tags-toggle:hover,
.vsf-tags-toggle:focus-visible,
.vsf-about-toggle:hover,
.vsf-about-toggle:focus-visible {
  text-decoration: underline;
}

.vsf-tags-toggle:focus-visible,
.vsf-about-toggle:focus-visible {
  outline: 1px solid #000;
  outline-offset: 3px;
}

.vsf-tags-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  appearance: none;
  line-height: 0;
  vertical-align: middle;
}

.vsf-tags-toggle:hover,
.vsf-tags-toggle:focus-visible {
  text-decoration: none;
  border: 0;
  background: none;
  box-shadow: none;
  outline: none;
}

.vsf-tags-toggle svg {
  display: block;
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}

html.vsf-tags-open .vsf-tags-toggle svg {
  transform: rotate(180deg);
}

.vsf-tagdrop {
  display: grid;
  grid-template-rows: 0fr;
}

html.vsf-tags-motion .vsf-tagdrop {
  transition: grid-template-rows 0.22s ease;
}

html.vsf-tags-open .vsf-tagdrop {
  grid-template-rows: 1fr;
}

.vsf-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 0;
  width: 100%;
  margin: 0;
  overflow: hidden;
  row-gap: 7px;
}

html.vsf-tags-open .vsf-tagdrop,
html.vsf-tags-open .vsf-tags {
  --vsf-tag-rows: 4;
  max-height: calc(0.45em + var(--vsf-tag-rows) * (1.4em + 0.5em + 2px) + (var(--vsf-tag-rows) - 1) * 7px + 2px);
}

html.vsf-tags-open .vsf-tags {
  padding-top: 0.45em;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 767px) {
  html.vsf-tags-open .vsf-tagdrop,
  html.vsf-tags-open .vsf-tags {
    --vsf-tag-rows: 8;
  }
}

.vsf-label {
  opacity: 0.85;
  margin-right: 0.6em;
  flex-shrink: 0;
}

.vsf-about-panel {
  flex: 1 0 100%;
  display: grid;
  grid-template-rows: 0fr;
  background: #fff;
  text-transform: none;
  letter-spacing: normal;
  transition: grid-template-rows 0.42s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.vsf-about-panel[hidden] {
  display: none;
}

.vsf-bar.vsf-about-open .vsf-about-panel {
  grid-template-rows: 1fr;
}

.vsf-about-clip {
  min-height: 0;
  overflow: hidden;
}

.vsf-about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  width: 100%;
  padding: 0.85rem 0 0.15rem;
  transform-origin: center center;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.45, 0.05, 0.55, 0.95), opacity 0.32s ease;
}

.vsf-bar.vsf-about-open .vsf-about-body {
  transform: scale(1);
  opacity: 1;
}

.vsf-about-block {
  margin: 0 0 0.85rem;
}

.vsf-about-block h2 {
  margin: 0 0 0.2rem;
  color: rgba(0, 0, 0, 0.55);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vsf-about-block p {
  margin: 0;
  color: rgba(0, 0, 0, 0.85);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: none;
}

@media (max-width: 767px) {
  .vsf-about-body {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vsf-tagdrop,
  .vsf-about-panel,
  .vsf-about-body {
    transition: none;
  }

  .vsf-about-body {
    transform: none;
    opacity: 1;
  }
}

.vsf-count {
  display: inline-block;
  margin-left: 0.6em;
  opacity: 0.6;
}

.vsf-hold {
  display: none;
}

.vsf-zoom {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-left: auto;
  white-space: nowrap;
}

.vsf-zslider {
  -webkit-appearance: none;
  appearance: none;
  width: 170px;
  height: 22px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.vsf-zslider:active {
  cursor: grabbing;
}

.vsf-zslider:focus {
  outline: none;
}

.vsf-zslider::-webkit-slider-runnable-track {
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.75) var(--vsf-p, 0%), rgba(0, 0, 0, 0.14) var(--vsf-p, 0%));
}

.vsf-zslider::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.14);
}

.vsf-zslider::-moz-range-progress {
  height: 3px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.75);
}

.vsf-zslider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border: 0;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 3px rgba(243, 239, 228, 0.95), 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s cubic-bezier(0.3, 0.7, 0.3, 1), box-shadow 0.18s ease;
}

.vsf-zslider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 3px rgba(243, 239, 228, 0.95), 0 1px 4px rgba(0, 0, 0, 0.25);
}

.vsf-zslider:hover::-webkit-slider-thumb,
.vsf-zslider:focus-visible::-webkit-slider-thumb {
  transform: scale(1.12);
}

.vsf-zslider:active::-webkit-slider-thumb {
  transform: scale(1.22);
}

.vsf-shuffle,
.vsf-gps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 2px;
  background: transparent;
  color: #111;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.vsf-gps-btn {
  margin: 0 2px 0 0;
}

.vsf-shuffle {
  margin: 0 0 0 2px;
}

.vsf-shuffle:hover,
.vsf-gps-btn:hover {
  opacity: 1;
  border-color: #000;
  background: rgba(0, 0, 0, 0.04);
}

.vsf-shuffle:active,
.vsf-gps-btn:active {
  transform: scale(0.92);
}

.vsf-gps-btn.active {
  background: #111;
  border-color: #111;
  color: #fff;
  opacity: 1;
}

.vsf-shuffle svg,
.vsf-gps-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Below 768px the right-aligned controls cover the tag filters.
   Same controls, still inside this bar; they drop to the next line instead of disappearing. */
@media (max-width: 767px) {
  .vsf-zoom {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
    margin-top: 0.4em;
    margin-left: 0;
    white-space: normal;
    row-gap: 0.35em;
  }

  .vsf-zslider {
    max-width: 100%;
  }

  .vsf-grid:not(.vsf-empty) {
    grid-template-columns: repeat(var(--vsf-cols, 4), minmax(0, 1fr));
  }
}

.vsf-grid {
  display: grid;
  grid-template-columns: repeat(var(--vsf-cols, 6), minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  overflow-anchor: none;
}

.vsf-grid.vsf-stagger .vsf-tile {
  opacity: 0;
  transition: none;
}

.vsf-grid.vsf-empty {
  display: none;
}

.vsf-tile {
  position: relative;
  z-index: 1;
  margin: 0;
  scale: 1;
  translate: 0 0;
  transform-origin: center center;
  cursor: zoom-in;
  transition: opacity 0.35s ease, scale 0.55s cubic-bezier(0.3, 0.7, 0.3, 1), translate 0.55s cubic-bezier(0.3, 0.7, 0.3, 1), box-shadow 0.4s ease;
}

.vsf-tile img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.vsf-tile:hover {
  scale: var(--vsf-hs, 1.15);
  translate: var(--vsf-tx, 0px) var(--vsf-ty, 0px);
  z-index: 20;
  box-shadow: 0 calc(8px / var(--vsf-hs, 1.15)) calc(24px / var(--vsf-hs, 1.15)) rgba(0, 0, 0, 0.3);
  transition: opacity 0.35s ease, scale 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), translate 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s ease;
}

html.vsf-lb-open .vsf-tile:hover {
  scale: 1;
  translate: 0 0;
  box-shadow: none;
}

.vsf-tile[data-vsf-wait] {
  opacity: 0;
  transition: none;
}

.vsf-tile[data-vsf-leaving]:not(:hover) {
  z-index: 5;
}

html.vsf-sizing {
  overflow-anchor: none;
}

html.vsf-sizing .vsf-grid .vsf-tile {
  pointer-events: none;
}

html.vsf-sizing,
html.vsf-sizing * {
  cursor: grabbing;
}

.vsf-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.32s ease;
  cursor: zoom-out;
}

.vsf-lb.vsf-lb-on {
  opacity: 1;
}

.vsf-lb > img {
  max-width: min(96vw, 1600px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
  -webkit-user-drag: none;
  user-select: none;
  cursor: default;
  pointer-events: auto;
}

.vsf-lb.vsf-lb-closing {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.vsf-lb.vsf-lb-closing > img {
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
}

.vsf-tag:focus-visible,
.vsf-shuffle:focus-visible,
.vsf-gps-btn:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}
