/* Property page styles — hero, details, prose, gallery, bed cards,
   amenities, house rules, neighbourhood, map. Ported from v3 mockup. */

/* HERO — full-viewport image with overlaid intro copy */
.hero {
  position: relative;
  height: 92vh;
  min-height: 640px;
  max-height: 900px;
  overflow: hidden;
  background: #2C1810;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31, 30, 27, 0.15) 0%, rgba(31, 30, 27, 0) 25%, rgba(31, 30, 27, 0) 30%, rgba(31, 30, 27, 0.55) 65%, rgba(31, 30, 27, 0.8) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.hero-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 32px 200px;
  width: 100%;
}
.hero-narrow { max-width: 820px; }
.hero-locale {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(31, 30, 27, 0.15);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--white);
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px);
  color: #E8C39F;
  line-height: 1.2;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
  max-width: 680px;
}
.hero-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 40px;
  font-weight: 400;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.02em;
  max-width: 720px;
}
.hero-meta span::before {
  content: "· ";
  color: rgba(255, 255, 255, 0.35);
  margin-right: 4px;
}
.hero-meta span:first-child::before { content: ""; margin-right: 0; }
.hero-meta a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  color: var(--white);
}

/* DETAILS PANEL */
.info {
  padding: 96px 0;
}
.info-inner {
  max-width: var(--max-med);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.info-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.info-head h2 em { font-style: italic; color: var(--terracotta); font-weight: 300; }
.info-head p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
}
.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}
.info-item h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
}
.info-item p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
  font-weight: 400;
}
.info-item.wide { grid-column: span 2; }
.info-item.wide p { font-size: 16px; line-height: 1.55; }

/* PREVIEW GRID (6 images between details and prose) */
.preview {
  padding: 24px 0 96px;
  background: var(--base);
}
.preview-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 32px;
}
.preview-frame { position: relative; }
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.preview-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--base-2);
  border-radius: 16px;
  opacity: 1;
  transform: none;
  transition: opacity .38s var(--ease), transform .48s var(--ease);
  will-change: opacity, transform;
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.preview-item:hover img { transform: scale(1.03); }

/* Staggered gallery transition — tiles fade out upward, fade in from below */
.preview-item.is-leaving {
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
}
.preview-item.is-entering {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

/* Gallery arrows */
.preview-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 6px 20px rgba(31, 30, 27, 0.10);
  transition: all .2s var(--ease);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
}
.preview-arrow:hover:not(:disabled) {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
  transform: translateY(-50%) scale(1.04);
}
.preview-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.preview-arrow-prev { left: -28px; }
.preview-arrow-next { right: -28px; }

.preview-count {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 900px) {
  .preview-arrow-prev { left: 8px; }
  .preview-arrow-next { right: 8px; }
  .preview-arrow { width: 44px; height: 44px; font-size: 16px; }
}

/* PROSE */
.prose {
  padding: 96px 0;
}
.prose-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
}
.prose h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.prose h2 em { font-style: italic; color: var(--terracotta); font-weight: 300; }
.prose p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 20px;
}
.prose p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.9;
  float: left;
  margin: 6px 8px 0 0;
  font-weight: 400;
  color: var(--terracotta);
}

/* GALLERY (sequential) */
.gal {
  padding: 32px 0;
}
.gal-item {
  max-width: var(--max-med);
  margin: 0 auto 56px;
  padding: 0 32px;
}
.gal-item.wide {
  max-width: var(--max-wide);
}
.gal-item img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.gal-cap {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 12px;
  padding: 0 8px;
}
.gal-pair {
  max-width: var(--max-med);
  margin: 0 auto 56px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.gal-pair img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
}

/* BEDROOMS */
.beds {
  padding: 96px 0;
  background: var(--base);
}
.beds-head {
  max-width: 780px;
  margin: 0 auto 48px;
  padding: 0 32px;
}
.beds-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.beds-head h2 em { font-style: italic; color: var(--terracotta); font-weight: 300; }
.beds-head p { font-size: 16px; color: var(--ink-2); margin: 0; }
.beds-grid {
  max-width: var(--max-med);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bed-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.bed-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.bed-body { padding: 24px; }
.bed-cat {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.bed-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
}
.bed-detail { font-size: 14px; color: var(--ink-2); margin: 0; }

/* AMENITIES */
.amen {
  padding: 96px 0;
  background: var(--base-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.amen-head {
  max-width: 780px;
  margin: 0 auto 48px;
  padding: 0 32px;
}
.amen-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.amen-head h2 em { font-style: italic; color: var(--terracotta); font-weight: 300; }
.amen-head p { font-size: 16px; color: var(--ink-2); margin: 0; }
.amen-groups {
  max-width: var(--max-med);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.amen-group h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.amen-group ul { list-style: none; padding: 0; margin: 0; }
.amen-group li {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  padding: 8px 0;
  font-weight: 400;
}
.amen-not {
  max-width: var(--max-med);
  margin: 56px auto 0;
  padding: 24px 32px;
  background: var(--white);
  border-left: 3px solid var(--ink-3);
  border-radius: 0 16px 16px 0;
}
.amen-not h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
  font-weight: 700;
}
.amen-not p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}

/* RULES */
.rules {
  padding: 96px 0;
  background: var(--base);
}
.rules-inner {
  max-width: var(--max-med);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.rules-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.rules-head h2 em { font-style: italic; color: var(--terracotta); font-weight: 300; }
.rules-head p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
}
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rule-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.rule-item:last-child { border-bottom: none; }
.rule-item h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 6px;
}
.rule-item p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}
.rule-item .fine {
  color: var(--terracotta);
  font-weight: 500;
}

/* NEIGHBOURHOOD */
.around {
  padding: 96px 0;
  background: var(--green);
  color: var(--white);
}
.around-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
}
.around .locale { color: var(--terracotta); }
.around h2 {
  color: var(--white);
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.around h2 em { font-style: italic; color: #E8C39F; font-weight: 300; }
.around p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 620px;
}
.around-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.around-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.around-item:nth-child(odd) { padding-right: 32px; }
.around-item:nth-child(even) { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.around-cat {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}
.around-place {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--white);
  line-height: 1.25;
  font-weight: 400;
}
.around-place small {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}

/* MAP */
.mapblock {
  padding: 96px 0 0;
  background: var(--base);
  position: relative;
}
.mapblock-head {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px 40px;
  text-align: left;
}
.mapblock-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.mapblock-head h2 em { font-style: italic; color: var(--terracotta); font-weight: 300; }
.mapblock-head p {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
}
.mapframe {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 68vh;
  min-height: 480px;
  max-height: 720px;
  overflow: hidden;
  background: var(--base-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mapframe iframe,
.mapleaflet {
  width: 100%;
  height: 100%;
  border: 0;
}
.mapframe iframe { filter: grayscale(0.25) saturate(0.85) contrast(1.02); }

/* Leaflet — brand-fit controls, muted tiles, no marker shadow bg. */
.mapleaflet .leaflet-tile-pane { filter: grayscale(0.35) saturate(0.85) contrast(1.02); }
.mapleaflet .leaflet-control-zoom a {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-weight: 600;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.mapleaflet .leaflet-control-zoom a:hover {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.mapleaflet .leaflet-control-attribution {
  background: rgba(248, 245, 240, 0.9);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 10px;
  padding: 3px 8px;
}
.mapleaflet .leaflet-control-attribution a { color: var(--terracotta); }
.mapleaflet .bs-pin { background: transparent; border: none; }

/* MOBILE */
@media (max-width: 720px) {
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero-inner { padding: 32px 24px 140px; }
  .hero-media { position: relative; height: 60vh; }
  .hero-veil { display: none; }
  .hero-content {
    background: var(--ink);
    align-items: stretch;
  }
  .hero h1 { font-size: 42px; }
  .hero-subtitle { font-size: 22px; }
  .hero-lead { font-size: 17px; }

  .info-inner { grid-template-columns: 1fr; gap: 40px; }
  .info-list { grid-template-columns: 1fr 1fr; gap: 24px; }
  .preview-grid { grid-template-columns: 1fr 1fr; }
  .beds-grid { grid-template-columns: 1fr; }
  .amen-groups { grid-template-columns: 1fr; gap: 32px; }
  .rules-inner { grid-template-columns: 1fr; gap: 32px; }
  .around-list { grid-template-columns: 1fr; }
  .around-item:nth-child(odd), .around-item:nth-child(even) { padding: 24px 0; border-left: none; }
  .gal-pair { grid-template-columns: 1fr; }
}
