/* ═══════════════════════════════════════════════════
   CALIFORNIA VILLAS — property.css
   ═══════════════════════════════════════════════════ */

/* ── BACK BUTTON ────────────────────────────────────── */
.prop-back {
  padding: 7.5rem 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
}
.back-link {
  color: var(--gold);
  text-decoration: none;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: opacity .25s;
  display: inline-flex;
  align-items: center;
}
.back-link:hover { opacity: .65; color: var(--gold); }

/* ── LOADING ─────────────────────────────────────────── */
.prop-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}
.prop-spinner {
  width: 44px; height: 44px;
  border: 2px solid rgba(201,168,76,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MAIN LAYOUT ─────────────────────────────────────── */
.prop-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

/* ── CAROUSEL ────────────────────────────────────────── */
.carousel-wrap {
  position: relative;
  /* Dark background so letterbox/pillarbox areas look intentional */
  background: #0a0a0a;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: 680px;
  /* Subtle gold border to frame the image area */
  border: 1px solid rgba(201,168,76,.12);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

/* ── KEY FIX: contain so images are never cropped ── */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show full image, no cropping */
  display: block;
}

/* Videos keep cover — they're usually landscape and look better full */
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Arrows */
.car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(8,8,8,.72);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .28s, border-color .28s;
  backdrop-filter: blur(8px);
}
.car-arrow:hover { background: var(--gold); color: var(--bk); border-color: var(--gold); }
.car-prev { left: 1.2rem; }
.car-next { right: 1.2rem; }

/* Caption */
.car-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .6rem 1.2rem;
  background: linear-gradient(0deg, rgba(8,8,8,.85) 0%, transparent 100%);
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--wh2);
  text-transform: uppercase;
}

/* Counter */
.car-counter {
  position: absolute;
  top: 1rem; right: 1.2rem;
  font-size: .6rem;
  letter-spacing: .22em;
  color: var(--gold);
  background: rgba(8,8,8,.7);
  padding: .3rem .7rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201,168,76,.2);
}

/* ── THUMBNAILS ──────────────────────────────────────── */
.car-thumbs {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.car-thumb {
  flex: 1;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .25s;
  position: relative;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.car-thumb.active { border-color: var(--gold); }

/* Thumbnails also use contain so you can recognise the image */
.car-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.car-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.car-thumb-video-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.4rem;
  background: rgba(8,8,8,.45);
}

/* ── INFO PANEL ──────────────────────────────────────── */
.prop-info {
  padding: 2.5rem 0 0;
}

.prop-tag-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.prop-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--bk);
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .28rem .85rem;
  font-weight: 600;
}
.prop-tag.exc {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.prop-loc-tag {
  font-size: .65rem;
  letter-spacing: .14em;
  color: var(--wh2);
}
.prop-loc-tag i { color: var(--gold); margin-right: .35rem; }

.prop-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: .5rem;
}
.prop-title em { font-style: italic; color: var(--gold-l); }

.prop-price-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold-l);
  margin: 1.2rem 0 1.8rem;
  display: flex;
  align-items: baseline;
  gap: .4rem;
}
.prop-price-note {
  font-size: 1rem;
  color: var(--wh2);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}

.prop-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(201,168,76,.14);
  border-bottom: 1px solid rgba(201,168,76,.14);
  margin-bottom: 2rem;
}
.prop-spec {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  color: var(--wh2);
}
.prop-spec i { color: var(--gold); font-size: .9rem; }
.prop-spec strong { color: var(--wh); font-weight: 500; font-size: .85rem; }

.prop-description {
  font-size: .84rem;
  line-height: 2;
  color: var(--wh2);
  margin-bottom: 2rem;
}

/* Features */
.prop-features-title {
  font-size: .6rem;
  letter-spacing: .3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.prop-features {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.5rem;
}
.prop-feature {
  border: 1px solid rgba(201,168,76,.25);
  color: var(--wh2);
  font-size: .67rem;
  letter-spacing: .1em;
  padding: .35rem .9rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  transition: border-color .25s, color .25s;
}
.prop-feature:hover { border-color: var(--gold); color: var(--gold); }
.prop-feature i { color: var(--gold); font-size: .7rem; }

/* CTA buttons inside detail */
.prop-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .prop-back { padding-top: 6rem; }
  .car-thumb { display: none; }
  .car-thumbs .car-thumb:nth-child(-n+3) { display: block; }
}
@media (max-width: 480px) {
  .car-thumbs { display: none; }
  .prop-specs { gap: .9rem; }
}

