/* hhh-single-property.css — Hokkaido Hobby Homes single property page
   Yukinami — dark amber "winter glass"
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Page-level resets ────────────────────────────────────────── */
.hhh-property { box-sizing: border-box; }
.hhh-property *, .hhh-property *::before, .hhh-property *::after { box-sizing: inherit; }
.hhh-property img { max-width: 100%; }

/* ── Design tokens ────────────────────────────────────────────── */
.hhh-property {
  --sph-bg:           #0A0A0A;
  --sph-bg2:          #121212;
  --sph-fg:           #FAFAF7;
  --sph-fg-dim:       #A8A8A3;
  --sph-fg-faint:     #55554F;
  --sph-accent:       #F0A500;
  --sph-accent-dim:   rgba(240,165,0,0.15);
  --sph-line:         rgba(250,250,247,0.12);
  --sph-line-strong:  rgba(250,250,247,0.22);
  --sph-glass:        rgba(0,0,0,0.28);
  --sph-blur:         32px;
  --sph-hero-h:       100vh;
  --sph-display:      'Instrument Serif', Georgia, serif;
  --sph-sans:         'Inter Tight', sans-serif;
  --sph-mono:         ui-monospace, 'SF Mono', Menlo, monospace;
  --sph-title-style:  italic;
  --sph-title-ls:     -0.025em;
  --sph-r:            10px;
  --sph-num-size:     clamp(44px, 5.5vw, 80px);
  background: var(--sph-bg);
  color: var(--sph-fg);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.sph-hero {
  position: relative;
  overflow: hidden;
  height: var(--sph-hero-h);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--sph-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--sph-fg);
}

.sph-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}

.sph-hero__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
}

.sph-hero__badge {
  font-family: var(--sph-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sph-fg);
}

.sph-hero__coord {
  font-family: var(--sph-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--sph-fg);
  opacity: 0.55;
}

.sph-hero__id {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 28px 32px;
  background: var(--sph-glass);
  backdrop-filter: blur(var(--sph-blur)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--sph-blur)) saturate(1.3);
  border-top: 1px solid var(--sph-line);
}

.sph-hero__id-left {
  flex: 1;
  min-width: 0;
}

.sph-hero__id-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  flex-shrink: 0;
}

.sph-hero__title {
  font-family: var(--sph-display);
  font-style: var(--sph-title-style);
  letter-spacing: var(--sph-title-ls);
  font-size: clamp(26px, 3.5vw, 52px);
  line-height: 1.1;
  margin: 0;
  color: var(--sph-fg);
  font-weight: 400;
}

.sph-hero__id-sub {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sph-hero__address {
  font-family: var(--sph-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--sph-fg-dim);
}

.sph-hero__specline {
  font-family: var(--sph-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--sph-fg-dim);
}

.sph-hero__price {
  font-family: var(--sph-mono);
  font-size: clamp(20px, 2.5vw, 36px);
  letter-spacing: 0.02em;
  color: var(--sph-accent);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.sph-hero__enquire {
  font-family: var(--sph-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--sph-accent);
  color: #000;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: var(--sph-r);
  white-space: nowrap;
  margin-top: 14px;
  transition: opacity 0.2s;
}

.sph-hero__enquire:hover {
  opacity: 0.85;
}

.sph-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sph-accent);
  flex-shrink: 0;
}

.sph-label {
  font-family: var(--sph-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sph-fg-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px 0;
}

/* ── Gallery ─────────────────────────────────────────────────── */
.sph-gallery {
  overflow: hidden;
}

.sph-gallery__track {
  display: flex;
  /* JS drives movement via transform:translate3d — no native scroll here. */
  height: 400px;
  gap: 3px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  /* Let the browser handle vertical page scroll, we handle horizontal drag. */
  touch-action: pan-y;
  /* Promote to a GPU layer so translate3d moves are compositor-only (fast on mobile). */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.sph-gallery__track.is-dragging {
  cursor: grabbing;
}

.sph-gallery__item {
  flex-shrink: 0;
  width: clamp(300px, 38vw, 540px);
  height: 100%;
  overflow: hidden;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  display: block;
}

.sph-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.sph-gallery__item:hover img {
  transform: scale(1.04);
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.sph-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sph-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sph-lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
}

.sph-lb-close:hover {
  background: rgba(10,10,10,0.8);
  border-color: rgba(255,255,255,0.28);
}

.sph-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: #fff;
  font-size: 20px;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}

.sph-lb-nav:hover {
  background: rgba(10,10,10,0.8);
  border-color: rgba(255,255,255,0.28);
}

.sph-lb-nav--prev { left: 16px; }
.sph-lb-nav--next { right: 16px; }

@media (max-width: 600px) {
  .sph-lb-nav   { width: 46px; height: 46px; font-size: 18px; }
  .sph-lb-nav--prev { left: 10px; }
  .sph-lb-nav--next { right: 10px; }
  .sph-lb-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 18px; }
}

.sph-lb-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sph-lb-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.sph-lb-counter {
  position: absolute;
  bottom: 20px;
  font-family: ui-monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.14em;
}

/* ── Numbers ─────────────────────────────────────────────────── */
.sph-numbers {
  display: flex;
  flex-wrap: wrap;
  background: var(--sph-bg);
  border-top: 1px solid var(--sph-line);
  border-bottom: 1px solid var(--sph-line);
}

.sph-numbers__item {
  flex: 1 0 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px;
  border-right: 1px solid var(--sph-line);
}

.sph-numbers__item:last-child {
  border-right: none;
}

.sph-numbers__val {
  font-family: var(--sph-display);
  font-size: var(--sph-num-size);
  line-height: 1;
  color: var(--sph-fg);
  font-style: var(--sph-title-style);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.sph-numbers__unit {
  font-size: 0.32em;
  font-family: var(--sph-mono);
  letter-spacing: 0.1em;
  font-style: normal;
  color: var(--sph-fg-dim);
}

.sph-numbers__label {
  font-family: var(--sph-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sph-fg-dim);
  margin-top: 10px;
}

/* ── Story ───────────────────────────────────────────────────── */
.sph-story {
  padding: 88px 40px;
  background: var(--sph-bg);
}

.sph-story__wrap {
  max-width: 720px;
  margin: 0 auto;
}

.sph-story__copy {
  font-family: var(--sph-sans);
  font-size: 17px;
  line-height: 1.78;
  color: var(--sph-fg-dim);
  margin-top: 24px;
}

.sph-story__copy p {
  margin: 0 0 1.4em;
}

/* ── Dossier ─────────────────────────────────────────────────── */
.sph-dos {
  padding: 64px 40px;
  background: var(--sph-bg2);
}

.sph-dos__wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px 60px;
}

.sph-dos__table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sph-dos__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--sph-line);
}

.sph-dos__row dt {
  font-family: var(--sph-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sph-fg-dim);
}

.sph-dos__row dd {
  font-family: var(--sph-sans);
  font-size: 14px;
  color: var(--sph-fg);
  text-align: right;
  margin: 0;
}

.sph-dos__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sph-dos__features li {
  font-family: var(--sph-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--sph-line);
  color: var(--sph-fg-dim);
  border-radius: calc(var(--sph-r) * 0.8);
}

/* ── Action band ─────────────────────────────────────────────── */
.sph-action {
  padding: 80px 40px;
  background: var(--sph-bg);
  border-top: 1px solid var(--sph-line);
}

.sph-action__wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.sph-action__left {
  flex: 1;
}

.sph-action__right {
  flex-shrink: 0;
  /* push buttons down past the eyebrow label so they sit beside the title */
  padding-top: 37px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.sph-action__title {
  font-family: var(--sph-display);
  font-size: clamp(20px, 2.5vw, 36px);
  font-style: var(--sph-title-style);
  color: var(--sph-fg);
  margin: 12px 0 8px;
  line-height: 1.2;
  letter-spacing: var(--sph-title-ls);
}

.sph-action__price {
  font-family: var(--sph-mono);
  font-size: clamp(18px, 2vw, 28px);
  color: var(--sph-accent);
  letter-spacing: 0.02em;
  margin: 0;
}

.sph-action__btn {
  font-family: var(--sph-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--sph-accent);
  color: #000;
  border: none;
  padding: 14px 28px;
  cursor: pointer;
  border-radius: var(--sph-r);
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.sph-action__btn:hover {
  opacity: 0.85;
}

body.hhh-page a.sph-action__btn { color: #000; }
body.hhh-page a.sph-action__btn:hover { color: #000; }

/* ── Nav: always dark on this page ───────────────────────────── */
body.single-property .hhh-nav {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-bottom-color: var(--line);
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .sph-hero__id {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .sph-hero__id-right {
    align-items: flex-start;
  }

  .sph-hero__actions {
    justify-content: flex-start;
  }

  .sph-action__wrap {
    flex-direction: column;
  }

  .sph-action__right {
    padding-top: 0;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .sph-numbers__item {
    flex: 1 0 45%;
  }

  .sph-gallery__track {
    height: 280px;
  }

  .sph-gallery__item {
    width: clamp(220px, 75vw, 380px);
    height: 280px;
  }
}
