/* PlacEVision V22 — property-detail wayfinding.
   All selectors are opt-in so the detail page remains usable if JavaScript fails. */

:root {
  --pv-detail-nav-gold: #b88945;
  --pv-detail-nav-gold-light: #dfba78;
  --pv-detail-nav-ink: #201a15;
  --pv-detail-nav-dark: #12100d;
  --pv-detail-header-offset: 83px;
}

.pv-detail-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 38px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(156, 115, 57, 0.2);
}

.pv-detail-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #7b6f63;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.pv-detail-breadcrumb a {
  color: #7b6f63;
  text-decoration: none;
  transition: color 180ms ease;
}

.pv-detail-breadcrumb a:hover,
.pv-detail-breadcrumb a:focus-visible {
  color: var(--pv-detail-nav-gold);
}

.pv-detail-breadcrumb__separator {
  color: rgba(156, 115, 57, 0.48);
}

.pv-detail-breadcrumb__current {
  max-width: min(38vw, 360px);
  overflow: hidden;
  color: var(--pv-detail-nav-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#propertyDetail .pv-detail-back {
  display: inline-flex;
  min-width: 206px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  flex: 0 0 auto;
  padding: 12px 25px;
  border: 1px solid #a97632;
  background: linear-gradient(125deg, #9a682d 0%, #bc8844 48%, #d2a35d 100%);
  box-shadow: 0 10px 24px rgba(117, 76, 29, 0.17);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#propertyDetail .pv-detail-back:hover,
#propertyDetail .pv-detail-back:focus-visible {
  box-shadow: 0 14px 28px rgba(117, 76, 29, 0.24);
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.pv-detail-back__arrow,
.pv-detail-explore__arrow,
.pv-detail-sticky__arrow {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  transition: transform 180ms ease;
}

.pv-detail-back:hover .pv-detail-back__arrow,
.pv-detail-back:focus-visible .pv-detail-back__arrow {
  transform: translateX(-4px);
}

/* Desktop scroll companion. It sits below the existing fixed header. */
.pv-detail-sticky {
  position: fixed;
  z-index: 45;
  top: calc(var(--pv-detail-header-offset) - 1px);
  right: 0;
  left: 0;
  visibility: hidden;
  border-top: 1px solid rgba(215, 178, 108, 0.12);
  border-bottom: 1px solid rgba(215, 178, 108, 0.36);
  background: rgba(18, 16, 13, 0.965);
  box-shadow: 0 14px 30px rgba(18, 13, 8, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-115%);
  transition: transform 280ms cubic-bezier(0.22, 0.76, 0.26, 1), opacity 200ms ease, visibility 280ms;
  backdrop-filter: blur(14px);
}

.pv-detail-sticky.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pv-detail-sticky__inner {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  min-height: 66px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  margin: 0 auto;
}

.pv-detail-sticky__back,
.pv-detail-sticky__list {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
}

.pv-detail-sticky__back:hover .pv-detail-sticky__arrow,
.pv-detail-sticky__back:focus-visible .pv-detail-sticky__arrow {
  transform: translateX(-3px);
}

.pv-detail-sticky__identity {
  min-width: 0;
  text-align: center;
}

.pv-detail-sticky__identity span {
  display: block;
  margin-bottom: 2px;
  color: var(--pv-detail-nav-gold-light);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.pv-detail-sticky__identity strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-detail-sticky__list {
  min-width: 126px;
  padding: 0 17px;
  border: 1px solid rgba(222, 181, 105, 0.68);
  background: rgba(184, 137, 69, 0.12);
  color: #f0d6a5;
  transition: background 180ms ease, color 180ms ease;
}

.pv-detail-sticky__list:hover,
.pv-detail-sticky__list:focus-visible {
  background: var(--pv-detail-nav-gold);
  color: #fff;
}

/* A clear continuation route after the enquiry and property information. */
.pv-detail-explore {
  position: relative;
  display: grid;
  overflow: hidden;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  margin-top: 54px;
  padding: 42px 48px;
  border: 1px solid rgba(197, 151, 79, 0.48);
  background:
    linear-gradient(90deg, rgba(184, 137, 69, 0.1) 0, transparent 42%),
    var(--pv-detail-nav-dark);
  box-shadow: 0 20px 44px rgba(46, 31, 17, 0.13);
  color: #fff;
}

.pv-detail-explore::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #edcf91, #9f6a2b);
  content: "";
}

.pv-detail-explore__eyebrow {
  margin: 0 0 10px;
  color: var(--pv-detail-nav-gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.pv-detail-explore h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.pv-detail-explore__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.9;
}

.pv-detail-explore__button {
  display: inline-flex;
  min-width: 210px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 24px;
  border: 1px solid #d7ad65;
  background: linear-gradient(125deg, #9a682d, #c5944e);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.pv-detail-explore__button:hover,
.pv-detail-explore__button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.pv-detail-explore__button:hover .pv-detail-explore__arrow,
.pv-detail-explore__button:focus-visible .pv-detail-explore__arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .pv-detail-navigation {
    display: grid;
    gap: 17px;
    margin-bottom: 30px;
    padding-bottom: 22px;
  }

  .pv-detail-breadcrumb {
    gap: 7px;
    overflow: hidden;
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .pv-detail-breadcrumb__current {
    max-width: none;
    min-width: 0;
  }

  #propertyDetail .pv-detail-back {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .pv-detail-sticky {
    display: none !important;
  }

  .pv-detail-explore {
    display: grid;
    gap: 24px;
    margin-top: 38px;
    padding: 31px 24px 26px;
  }

  .pv-detail-explore__button {
    width: 100%;
    min-width: 0;
  }

  .mobile-action-bar.pv-mobile-action-bar--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mobile-action-bar.pv-mobile-action-bar--four a {
    min-width: 0;
    padding-right: 3px;
    padding-left: 3px;
    font-size: 10px;
    letter-spacing: 0.01em;
  }

  .mobile-action-bar.pv-mobile-action-bar--four .pv-mobile-property-list {
    border-right-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, #986329, #c18c46);
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pv-detail-back,
  .pv-detail-back__arrow,
  .pv-detail-sticky,
  .pv-detail-sticky__arrow,
  .pv-detail-sticky__list,
  .pv-detail-explore__button,
  .pv-detail-explore__arrow {
    transition: none !important;
  }
}
