/* ============================================================
   VINES SUPPORT SERVICES — LOCATIONS PAGE STYLES
   ============================================================ */

/* ── PAGE INTRO ─────────────────────────────────────────────── */
.locations-intro {
  background: var(--white);
}

.locations-intro__inner {
  max-width: 720px;
}

/* ── HOUSE BLOCK ────────────────────────────────────────────── */
.house-block {
  padding-block: var(--space-2xl);
}

.house-block:nth-child(odd)  { background: var(--white); }
.house-block:nth-child(even) { background: var(--green-pale2); }

.house-block__header {
  margin-bottom: var(--space-xl);
}

.house-block__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.house-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--green-pale);
  color: var(--green-dark);
  border: 1px solid rgba(46,125,82,0.2);
}

.house-tag svg { width: 13px; height: 13px; fill: var(--green-dark); }

.house-block__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.house-block__title span {
  color: var(--green-mid);
}

.house-block__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.house-block__location svg { width: 15px; height: 15px; fill: var(--gold); }

.house-block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: var(--space-xl);
}

.house-block__text p {
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: var(--space-sm);
  font-size: 1.02rem;
}

.house-block__highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(46,125,82,0.1);
}

.house-block:nth-child(even) .highlight-item {
  background: var(--white);
}

.highlight-item__icon {
  width: 36px; height: 36px;
  background: var(--green-dark);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.highlight-item__icon svg { width: 18px; height: 18px; fill: white; }

.highlight-item__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.highlight-item__val {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* ── PHOTO CAROUSEL ─────────────────────────────────────────── */
.carousel-section {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-block: var(--space-lg);
}

.carousel-section::before,
.carousel-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

/* Fade edges to show infinite feel */
.house-block:nth-child(odd) .carousel-section::before {
  left: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}
.house-block:nth-child(odd) .carousel-section::after {
  right: 0;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}
.house-block:nth-child(even) .carousel-section::before {
  left: 0;
  background: linear-gradient(to right, var(--green-pale2) 0%, transparent 100%);
}
.house-block:nth-child(even) .carousel-section::after {
  right: 0;
  background: linear-gradient(to left, var(--green-pale2) 0%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: carousel-scroll 40s linear infinite;
}

/* Second house scrolls in reverse for variety */
.carousel-track--reverse {
  animation: carousel-scroll-reverse 40s linear infinite;
}

.carousel-track:hover,
.carousel-track--reverse:hover {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes carousel-scroll-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.carousel-photo {
  width: 320px;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.carousel-photo:hover {
  transform: scale(1.03) translateY(-3px);
  box-shadow: var(--shadow-md);
}

.carousel-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.carousel-photo:hover img { transform: scale(1.05); }

/* ── LIGHTBOX ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__close:hover { background: rgba(255,255,255,0.2); }

/* ── ENQUIRE CTA (per house) ────────────────────────────────── */
.house-enquire {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.house-enquire p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  flex: 1;
  min-width: 200px;
}

.house-enquire p strong { color: white; display: block; font-size: 1.05rem; margin-bottom: 0.2rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .house-block__grid { grid-template-columns: 1fr; gap: 2rem; }
  .carousel-photo { width: 260px; height: 180px; }
}

@media (max-width: 600px) {
  .carousel-photo { width: 200px; height: 150px; }
  .carousel-section::before,
  .carousel-section::after { width: 40px; }
  .house-enquire { flex-direction: column; align-items: flex-start; }
}
