/* Enrolled shops directory + homepage injections */

/* Homepage spacing */
[data-welcome-intro],
[data-shop-slider],
[data-featured-shops],
[data-floors-guide],
[data-amenities-home],
[data-rooftop-home-image] {
  padding-top: 40px;
  padding-bottom: 36px;
}

[data-welcome-intro] {
  padding-top: 28px;
  padding-bottom: 12px;
}

[data-shop-slider] {
  padding-top: 8px;
  padding-bottom: 20px;
}

[data-rooftop-home-image] {
  padding-top: 20px;
  padding-bottom: 48px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head .kicker {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.section-head h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 560;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 6px;
}

.floors-guide-wrap {
  margin-top: 36px;
}

/* Mixed light / dark bands */
[data-welcome-intro],
[data-shop-slider],
[data-floors-guide],
[data-rooftop-home-image] {
  background: transparent;
  color: var(--ink);
}

[data-featured-shops],
[data-amenities-home] {
  background: #0f241e;
  color: #e8f0ec;
}

[data-featured-shops] .section-head .kicker,
[data-amenities-home] .section-head .kicker {
  color: #9fd6c2;
}

[data-featured-shops] .section-head h2,
[data-amenities-home] .section-head h2 {
  color: #f4faf7;
}

[data-featured-shops] .featured-shop,
[data-amenities-home] .amenities-home article {
  background: #17352c;
  border-color: rgba(232, 240, 236, 0.14);
  color: #e8f0ec;
}

[data-featured-shops] .featured-shop-copy h3,
[data-amenities-home] .amenities-home h3 {
  color: #f4faf7;
}

[data-featured-shops] .featured-shop-copy p,
[data-amenities-home] .amenities-home p,
[data-featured-shops] .featured-shop-copy .text-link {
  color: #b8c7c0;
}

[data-floors-guide] .section-head h2 {
  color: var(--night);
}

[data-floors-guide] .tour-frame {
  border-color: var(--line);
}

/* Hero: video only — no poster / still image */
.studio-hero--video .hero-video-wrap {
  background: #0d2e28 !important;
  background-image: none !important;
}
.studio-hero--video .hero-video {
  display: block !important;
}
.studio-hero .studio-photos,
.studio-hero .hero-img {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .studio-hero--video .hero-video {
    display: block !important;
  }
  .studio-hero--video .hero-video-wrap {
    background: #0d2e28 !important;
    background-image: none !important;
  }
}

.enrolled-home,
.enrolled-directory {
  margin-bottom: 36px;
}

.enrolled-home__head,
.enrolled-directory__head {
  margin-bottom: 18px;
}

.enrolled-directory__note {
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.shops-page {
  padding-bottom: 96px;
}

.shops-page__head {
  padding: 36px 0 10px;
}

.shops-page__dek {
  max-width: 36rem;
  margin-top: 10px;
  color: var(--ink-soft);
}

.shops-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 22px;
}

.shops-toolbar__count {
  color: var(--muted);
  margin: 0;
}

.shops-toolbar input[type="search"] {
  min-width: min(100%, 280px);
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 10px 16px;
}

.shops-empty {
  padding: 40px 0;
  color: var(--muted);
}

.shops-status {
  min-height: 1.4em;
  margin: 0 0 16px;
  color: var(--muted);
}

.shops-detail {
  display: none;
  margin-top: 8px;
}

.shops-detail.is-open {
  display: block;
}

.shops-detail__back {
  margin-bottom: 18px;
}

.shops-detail__hero {
  margin-top: 12px;
  height: min(52vh, 460px);
  background: var(--paper-deep);
  border-radius: 18px;
  overflow: hidden;
}

.shops-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shops-detail__body {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 48px;
  padding: 40px 0 20px;
}

.shops-detail__lede {
  font-size: 1.15rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.shops-detail__aside {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.shops-detail__aside h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.shops-detail__aside dl {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.shops-detail__aside dt {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.shops-detail__aside dd {
  margin: 2px 0 0;
}

.shops-detail__products {
  margin-top: 28px;
}

.shops-detail__products h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.shops-detail__products ul {
  display: grid;
  gap: 10px;
}

.shops-detail__products li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.shops-list[hidden],
.shops-detail[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .shops-detail__body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .shops-detail__hero {
    height: min(42vh, 320px);
  }
}

/* Featured shops (homepage injection only) */
.featured-shops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 981px) {
  .featured-shops {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.welcome-intro {
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.welcome-intro .kicker {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
}

.welcome-intro h2 {
  margin: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 560;
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--night);
}

.welcome-intro p {
  color: var(--ink-soft);
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 1.06rem;
  line-height: 1.55;
  max-width: 34rem;
}

.welcome-intro-lead {
  color: var(--ink) !important;
  font-size: 1.18rem !important;
  font-weight: 500;
}

.amenities-home {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.amenities-home article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 0 14px;
  overflow: hidden;
}

.amenities-home-media {
  aspect-ratio: 4 / 5;
  background: #0d2e28;
  overflow: hidden;
}

.amenities-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.amenities-home h3 {
  margin: 16px 18px 8px;
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 560;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  color: var(--night);
}

.amenities-home p {
  margin: 0 18px;
  color: var(--ink-soft);
}

.rooftop-home-bottom {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #12261f;
  border: 1px solid var(--line);
}

.rooftop-home-bottom img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #12261f;
}

.rooftop-home-bottom figcaption {
  padding: 12px 16px 14px;
  background: #fff;
  color: var(--ink-soft);
}

.floors-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.floors-guide-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 16px;
}

.floors-guide-card h3 {
  margin: 6px 0 14px;
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 560;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

.floors-guide-card ol,
.floors-guide-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
}

.floors-guide-card li {
  line-height: 1.45;
}

.floors-guide-card strong {
  color: var(--ink);
}

.featured-shop {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.featured-shop:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.featured-shop-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0d2e28;
  position: relative;
  isolation: isolate;
}

.featured-shop-media video,
.featured-shop-video {
  transition: opacity 0.2s ease;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #0d2e28;
  transform: scale(1.02);
}

.featured-shop-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 34, 28, 0.08) 0%, transparent 28%, transparent 62%, rgba(4, 34, 28, 0.28) 100%);
}

.tour-frame {
  position: relative;
  overflow: hidden;
  background: #0d2e28;
}

.tour-frame .tour-aerial-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  display: block;
  background: #0d2e28;
}

.tour-frame .tour-aerial-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 34, 28, 0.12) 0%, transparent 35%, rgba(4, 34, 28, 0.22) 100%);
}

.featured-shop-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 16px 16px;
}

.featured-shop-copy h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 560;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

.featured-shop-copy p {
  color: var(--ink-soft);
  margin: 0;
}

.featured-shop-copy .text-link {
  margin-top: 4px;
}

.shop-slider-section {
  overflow: hidden;
}

.shop-slider {
  margin-top: 8px;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.shop-slider-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 4px 16px 8px;
  will-change: transform;
  transition: transform 0.55s ease;
}

.shop-slider-tile {
  flex: 0 0 auto;
  width: 118px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(33, 33, 33, 0.06);
}

.shop-slider-tile img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #0d2e28;
}

.shop-slider-tile figcaption {
  padding: 7px 8px 9px;
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  .shop-slider-track {
    transition: none !important;
    transform: none !important;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .featured-shops,
  .floors-guide,
  .amenities-home {
    grid-template-columns: 1fr;
  }

  .shop-slider-tile {
    width: 104px;
  }
}
