/* property-single.css — Single Property Page */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --pp-bg:           #fafaf8;
  --pp-white:        #ffffff;
  --pp-ink:          #1a1a18;
  --pp-muted:        #6b6b65;
  --pp-line:         #e8e8e3;
  --pp-accent:       #2a4a3e;
  --pp-accent-lt:    #e8f0ed;
  --pp-sale:         #2a4a3e;
  --pp-rent:         #4a3a2a;
  --pp-radius:       4px;
  --pp-shadow:       0 2px 16px rgba(0,0,0,.07);
  --pp-shadow-md:    0 6px 28px rgba(0,0,0,.10);
  --pp-font-display: 'Cormorant Garamond', Georgia, serif;
  --pp-font-body:    'DM Sans', system-ui, sans-serif;
  --pp-transition:   220ms ease;
  --pp-max:          1200px;
  --pp-gap:          32px;
}

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.pp-wrap {
  max-width: var(--pp-max);
  margin: 0 auto;
  padding: 0 24px 80px;
  font-family: var(--pp-font-body);
  color: var(--pp-ink);
}

/* ── Marketing tag ────────────────────────────────────────────────────────── */
.pp-mktg-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pp-accent);
  background: var(--pp-accent-lt);
  border-radius: 2px;
  padding: 4px 10px;
  margin: 24px 0 12px;
}

/* ── Hero Slider ──────────────────────────────────────────────────────────── */
.pp-slider {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pp-line);
  aspect-ratio: 16/7;
  margin-bottom: 0;
  user-select: none;
}

@media (max-width: 700px) {
  .pp-slider { aspect-ratio: 4/3; }
}

.pp-slider__track {
  display: flex;
  height: 100%;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.pp-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.pp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prev / next buttons */
.pp-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pp-ink);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  transition: background var(--pp-transition), transform var(--pp-transition);
  backdrop-filter: blur(4px);
}

.pp-slider__btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.pp-slider__btn svg   { width: 20px; height: 20px; }
.pp-slider__btn--prev { left: 16px; }
.pp-slider__btn--next { right: 16px; }

/* Counter */
.pp-slider__counter {
  position: absolute;
  bottom: 64px;
  right: 16px;
  font-size: 12px;
  font-family: var(--pp-font-body);
  color: #fff;
  background: rgba(0,0,0,.45);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Thumbnail strip */
.pp-thumbs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  overflow-x: auto;
  background: linear-gradient(transparent, rgba(0,0,0,.45));
  scrollbar-width: none;
}

.pp-thumbs::-webkit-scrollbar { display: none; }

.pp-thumb {
  flex: 0 0 64px;
  height: 44px;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color var(--pp-transition), opacity var(--pp-transition);
  opacity: .65;
}

.pp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pp-thumb.is-active {
  border-color: #fff;
  opacity: 1;
}

.pp-thumb:hover { opacity: .9; }

/* ── Property Header ──────────────────────────────────────────────────────── */
.pp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--pp-line);
}

@media (max-width: 640px) {
  .pp-header { flex-direction: column; gap: 16px; }
}

.pp-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.pp-status--for-sale,
.pp-status--for-sale { background: var(--pp-sale); }
.pp-status--to-let   { background: var(--pp-rent); }
.pp-status--sold-stc { background: #888; }

.pp-title {
  font-family: var(--pp-font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.pp-address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  color: var(--pp-muted);
  margin: 0 0 8px;
  line-height: 1.4;
}

.pp-address svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

.pp-headline {
  font-size: 14px;
  color: var(--pp-accent);
  font-weight: 500;
  margin: 4px 0 0;
}

.pp-price {
  font-family: var(--pp-font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  color: var(--pp-ink);
  white-space: nowrap;
  line-height: 1;
  margin-bottom: 12px;
}

.pp-price__freq {
  font-family: var(--pp-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--pp-muted);
  margin-left: 4px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.pp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pp-font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  border-radius: var(--pp-radius);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--pp-transition);
  white-space: nowrap;
}

.pp-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.pp-btn--outline {
  color: var(--pp-accent);
  background: transparent;
  border: 1px solid var(--pp-accent);
}

.pp-btn--outline:hover {
  background: var(--pp-accent);
  color: #fff;
}

.pp-btn--full {
  width: 100%;
  justify-content: center;
  background: var(--pp-accent);
  color: #fff;
  border: none;
}

.pp-btn--full:hover { background: #1e3830; }

/* ── Key Features Bar ─────────────────────────────────────────────────────── */
.pp-features {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  overflow: hidden;
  margin: 24px 0;
  background: var(--pp-white);
  box-shadow: var(--pp-shadow);
}

.pp-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 100px;
  padding: 20px 16px;
  border-right: 1px solid var(--pp-line);
  text-align: center;
}

.pp-feature:last-child { border-right: none; }

.pp-feature svg {
  width: 20px;
  height: 20px;
  color: var(--pp-accent);
  margin-bottom: 2px;
}

.pp-feature__val {
  font-family: var(--pp-font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--pp-ink);
}

.pp-feature__lbl {
  font-size: 11px;
  font-weight: 400;
  color: var(--pp-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

@media (max-width: 600px) {
  .pp-feature { flex: 1 1 80px; padding: 16px 10px; }
  .pp-feature__val { font-size: 17px; }
}

/* ── Body grid ────────────────────────────────────────────────────────────── */
.pp-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--pp-gap);
  align-items: start;
}

@media (max-width: 960px) {
  .pp-body {
    grid-template-columns: 1fr;
  }
  .pp-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .pp-sidebar { grid-template-columns: 1fr; }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.pp-section {
  margin-bottom: 40px;
}

.pp-section__title {
  font-family: var(--pp-font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--pp-ink);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pp-line);
  letter-spacing: -.01em;
}

.pp-description {
  font-size: 15px;
  line-height: 1.75;
  color: #2e2e2c;
}

.pp-description p  { margin: 0 0 1em; }
.pp-description br { display: block; margin-bottom: .5em; content: ''; }

/* Floorplan */
.pp-floorplans {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pp-floorplans a { display: block; }

.pp-floorplans img {
  width: 100%;
  border-radius: var(--pp-radius);
  border: 1px solid var(--pp-line);
  transition: box-shadow var(--pp-transition);
}

.pp-floorplans a:hover img { box-shadow: var(--pp-shadow-md); }

/* EPC */
.pp-epc img {
  max-width: 480px;
  width: 100%;
  border-radius: var(--pp-radius);
  border: 1px solid var(--pp-line);
}

/* ── Sidebar cards ────────────────────────────────────────────────────────── */
.pp-sidebar-card {
  background: var(--pp-white);
  border: 1px solid var(--pp-line);
  border-radius: 6px;
  padding: 22px 24px;
  box-shadow: var(--pp-shadow);
  margin-bottom: 20px;
}

.pp-sidebar-card:last-child { margin-bottom: 0; }

.pp-sidebar-card__title {
  font-family: var(--pp-font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pp-line);
  color: var(--pp-ink);
}

/* Detail list */
.pp-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pp-detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid var(--pp-line);
}

.pp-detail-list li:last-child { border-bottom: none; }

.pp-detail-list li span { color: var(--pp-muted); flex-shrink: 0; }

.pp-detail-list li strong {
  color: var(--pp-ink);
  font-weight: 500;
  text-align: right;
}

/* ── Map ──────────────────────────────────────────────────────────────────── */
.pp-map {
  height: 260px;
  border-radius: var(--pp-radius);
  overflow: hidden;
  border: 1px solid var(--pp-line);
}

/* Override Leaflet attribution position for tight sidebar */
.pp-map .leaflet-control-attribution {
  font-size: 9px;
}

/* ── Virtual Tour Button ─────────────────────────────────────────────────── */
.pp-tour-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--pp-accent, #368479);
  color: var(--pp-accent, #368479);
  border-radius: var(--pp-radius, 4px);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.pp-tour-btn:hover {
  background: var(--pp-accent, #368479);
  color: #fff;
}

.pp-tour-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Virtual Tour Lightbox ───────────────────────────────────────────────── */
.pp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

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

.pp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  cursor: pointer;
}

.pp-lightbox__inner {
  position: relative;
  z-index: 1;
  width: min(400px, 90vw);
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

.pp-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.pp-lightbox__close:hover { background: rgba(255,255,255,.15); }
.pp-lightbox__close svg { width: 15px; height: 15px; }

.pp-lightbox__embed {
  position: relative;
  padding-bottom: 177.78%; /* 9:16 portrait for reels */
  height: 0;
}

.pp-lightbox__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
