:root {
  --page-line: rgba(11, 17, 23, 0.15);
  --page-muted: #687173;
  --page-soft: #e4e5e1;
  --page-green: #6f8d1d;
}

.subpage-main {
  background: var(--paper);
}

.subpage-main > section {
  position: relative;
}

.subpage-hero {
  min-height: 68dvh;
  overflow: hidden;
  color: #fff;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
}

.subpage-hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  height: 150px;
  content: "";
  pointer-events: none;
  background: var(--paper);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
  mask-image: linear-gradient(180deg, transparent, #000);
}

.shop-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 10, 14, 0.87), rgba(5, 10, 14, 0.24)),
    url("./assets/facade-real.jpg");
  background-position: center 58%;
}

.taste-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 10, 14, 0.86), rgba(5, 10, 14, 0.2)),
    url("./assets/night-scene-real.jpg");
  background-position: center 55%;
}

.events-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 10, 14, 0.84), rgba(5, 10, 14, 0.2)),
    url("./assets/project-block.jpg");
  background-position: center 52%;
}

.visit-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 10, 14, 0.84), rgba(5, 10, 14, 0.18)),
    url("./assets/hero-aerial-real.jpg");
  background-position: center 50%;
}

.subpage-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  min-height: 68dvh;
  padding: 150px 0 126px;
}

.subpage-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.subpage-breadcrumb a:hover {
  color: #fff;
}

.subpage-kicker {
  margin: 0 0 18px;
  color: var(--acid);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.subpage-hero h1 {
  max-width: 9em;
  margin: 0;
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.subpage-lead {
  max-width: 540px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.85;
}

.directory-section,
.events-section,
.visit-section {
  padding: 92px 0 116px;
}

.directory-intro,
.events-intro,
.visit-intro {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 8vw;
  margin-bottom: 68px;
}

.directory-intro h2,
.events-intro h2,
.visit-intro h2 {
  max-width: 13em;
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 530;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.directory-intro h2 span,
.events-intro h2 span,
.visit-intro h2 span {
  color: #8f9696;
}

.directory-intro-copy,
.events-intro-copy,
.visit-intro-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--page-muted);
  font-size: 15px;
  line-height: 1.9;
}

.directory-toolbar {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding: 16px 0;
  background: transparent;
  border-top: 1px solid var(--page-line);
  border-bottom: 1px solid var(--page-line);
}

.filter-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  padding: 9px 13px;
  color: #5d6667;
  background: transparent;
  border: 1px solid rgba(11, 17, 23, 0.16);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.directory-count {
  margin: 0;
  color: var(--page-muted);
  font-size: 12px;
  white-space: nowrap;
}

.directory-count strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 560;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
}

.merchant-card {
  min-width: 0;
}

.merchant-card[hidden] {
  display: none;
}

.merchant-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: rgba(11, 17, 23, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.1)),
    #dfe1dd;
  border: 1px solid rgba(11, 17, 23, 0.12);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 16px 42px rgba(38, 48, 48, 0.08);
}

.merchant-media::before,
.merchant-media::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.merchant-media::before {
  width: 42%;
  height: 1px;
  background: currentColor;
}

.merchant-media::after {
  width: 1px;
  height: 42%;
  background: currentColor;
}

.merchant-media span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: rgba(11, 17, 23, 0.34);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.merchant-media img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.merchant-copy {
  padding: 16px 3px 0;
}

.merchant-copy p,
.merchant-copy h3 {
  margin: 0;
}

.merchant-copy p {
  margin-bottom: 7px;
  color: var(--page-green);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.merchant-copy h3 {
  min-height: 2.8em;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 570;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.directory-note {
  max-width: 720px;
  margin: 64px 0 0;
  padding-top: 26px;
  color: var(--page-muted);
  border-top: 1px solid var(--page-line);
  font-size: 13px;
  line-height: 1.8;
}

.events-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 18px;
}

.event-feature,
.event-list {
  min-width: 0;
}

.event-feature {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  min-height: 520px;
  padding: 42px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11, 17, 23, 0.08), rgba(11, 17, 23, 0.86)),
    url("./assets/lake-panorama-real.jpg") center / cover;
  border: 1px solid var(--material-edge);
  border-radius: var(--radius);
  box-shadow: 0 20px 54px var(--material-shadow);
}

.event-feature p,
.event-feature h3 {
  margin: 0;
}

.event-feature p {
  margin-bottom: 14px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.event-feature h3 {
  max-width: 10em;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 530;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.event-feature span {
  max-width: 34em;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.75;
}

.event-list {
  display: grid;
  gap: 18px;
}

.event-slot {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  min-height: 155px;
  padding: 26px;
  background: var(--page-soft);
  border: 1px solid rgba(11, 17, 23, 0.1);
  border-radius: var(--radius);
}

.event-slot p,
.event-slot h3 {
  margin: 0;
}

.event-slot p {
  color: var(--page-green);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.event-slot h3 {
  max-width: 12em;
  font-size: 20px;
  font-weight: 560;
  line-height: 1.4;
}

.visit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 20px;
  align-items: stretch;
}

.map-frame {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 17, 23, 0.52), rgba(11, 17, 23, 0.03) 40%, rgba(11, 17, 23, 0.72)),
    url("./assets/project-block.jpg") 48% center / cover;
  border: 1px solid rgba(11, 17, 23, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 20px 54px var(--material-shadow);
}

.map-static {
  position: relative;
  width: 100%;
  min-height: 590px;
  overflow: hidden;
  isolation: isolate;
}

.map-static::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(255, 255, 255, 0.13) 50%, transparent 50.15%),
    linear-gradient(transparent 49.85%, rgba(255, 255, 255, 0.11) 50%, transparent 50.15%);
  background-size: 112px 112px;
  opacity: 0.24;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 64%);
  mask-image: linear-gradient(180deg, #000, transparent 64%);
}

.map-location-pin {
  position: absolute;
  top: 58%;
  left: 46%;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  transform: translate(-50%, -100%);
}

.map-location-label {
  padding: 9px 13px;
  color: #fff;
  background: rgba(11, 17, 23, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(11, 17, 23, 0.26);
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
}

.map-location-dot {
  width: 21px;
  height: 21px;
  background: var(--acid);
  border: 5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(217, 255, 105, 0.4);
}

.map-visual-meta,
.map-visual-footer {
  position: absolute;
  right: 28px;
  left: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.map-visual-meta {
  top: 27px;
}

.map-visual-footer {
  bottom: 27px;
  padding-top: 20px;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  letter-spacing: 0.08em;
}

.map-visual-footer span:last-child {
  color: var(--acid);
  font-size: 9px;
}

.map-note {
  max-width: 62em;
  margin: 14px 4px 0;
  color: var(--page-muted);
  font-size: 11px;
  line-height: 1.75;
}

.visit-card {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 255, 105, 0.1), transparent 34%),
    var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 20px 54px var(--material-shadow);
}

.visit-card h2,
.visit-card p {
  margin: 0;
}

.visit-card h2 {
  max-width: 8em;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 530;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.visit-address {
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.8;
}

.visit-actions {
  display: grid;
  gap: 10px;
  margin-top: 48px;
}

.visit-action {
  width: 100%;
  border: 0;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 620;
  transition: background-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.visit-action:hover {
  transform: translateY(-2px);
}

.visit-action.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.visit-copy.is-copied {
  color: #fff;
  background: #6f8d1d;
}

.visit-provider-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.visit-provider-row .visit-action {
  padding-right: 14px;
  padding-left: 14px;
  font-size: 11px;
}

.visit-back-link {
  justify-self: end;
  margin: 5px 4px 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.visit-back-link:hover {
  color: #fff;
}

@media (max-width: 1060px) {
  .directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .subpage-hero,
  .subpage-hero-inner {
    min-height: 62dvh;
  }

  .subpage-hero-inner {
    padding: 126px 0 104px;
  }

  .subpage-hero h1 {
    font-size: clamp(50px, 15vw, 76px);
    line-height: 1;
  }

  .subpage-lead {
    margin-top: 24px;
    font-size: 14px;
  }

  .directory-section,
  .events-section,
  .visit-section {
    padding: 72px 0 94px;
  }

  .directory-intro,
  .events-intro,
  .visit-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
  }

  .directory-toolbar {
    position: sticky;
    top: 50px;
    z-index: 5;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-right: -20px;
    margin-left: -20px;
    padding: 14px 20px;
    background: rgba(242, 241, 237, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
  }

  .filter-list {
    flex-wrap: nowrap;
    width: calc(100% + 20px);
    margin-right: -20px;
    padding-right: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-list::-webkit-scrollbar {
    display: none;
  }

  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .merchant-media {
    border-radius: 18px;
  }

  .merchant-copy h3 {
    min-height: 0;
    font-size: 15px;
  }

  .events-frame,
  .visit-layout {
    grid-template-columns: 1fr;
  }

  .event-feature {
    min-height: 430px;
    padding: 30px;
  }

  .event-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-slot {
    min-height: 165px;
    padding: 22px;
  }

  .map-frame,
  .map-static {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .visit-card {
    order: -1;
    min-height: 0;
    padding: 30px;
  }

  .visit-address {
    margin-top: 24px;
  }

  .visit-actions {
    margin-top: 34px;
  }
}

@media (max-width: 640px) {
  .directory-grid {
    grid-template-columns: 1fr 1fr;
  }

  .merchant-copy p {
    font-size: 9px;
  }

  .event-list {
    grid-template-columns: 1fr;
  }

  .event-slot {
    min-height: 140px;
  }

  .map-frame,
  .map-static {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .map-frame {
    background-position: 48% center;
  }

  .map-visual-meta,
  .map-visual-footer {
    right: 18px;
    left: 18px;
  }

  .map-visual-meta {
    top: 18px;
  }

  .map-visual-footer {
    bottom: 18px;
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
    padding-top: 12px;
    text-align: right;
  }

  .map-location-pin {
    top: 58%;
    left: 46%;
  }

  .map-location-label {
    padding: 8px 11px;
    font-size: 10px;
  }

  .map-location-dot {
    width: 18px;
    height: 18px;
    border-width: 4px;
  }

  .visit-card {
    padding: 26px 24px;
  }

  .visit-provider-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .filter-button,
  .visit-action {
    transition: none;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (max-width: 900px) {
    .directory-toolbar {
      background: rgba(242, 241, 237, 0.98);
    }
  }
}
