/* ============================================================
   CAN COMPANYO — Property-specific styles only
   Backgrounds handled by property.css (same as Mas Feliu)
   ============================================================ */

/* Performance: hint GPU layers for animated elements */
.reveal { will-change: transform, opacity; }
.reveal.revealed { will-change: auto; }

/* Performance: defer rendering of off-screen heavy sections */
.cc-olive,
.cc-buildings,
.prop-history,
.prop-potential,
.prop-location,
.cc-videos {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* Performance: promote gallery slider to its own layer */
.gs-main img {
  will-change: contents;
}

/* Hero placeholder (shown when photo not loaded) */
.cc-hero-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy-deep) 0%, #0e1e31 100%);
  display: flex; align-items: center; justify-content: center;
}
.cc-hero-placeholder__inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

/* Building card images */
.cc-building-card__img {
  height: 220px; overflow: hidden;
}
.cc-building-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ============================================================
   VIDEOS SECTION
   ============================================================ */
.cc-videos {
  padding: 100px 0;
  background: var(--white);
}
.cc-videos h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}
.cc-videos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) { .cc-videos__grid { grid-template-columns: 1fr; } }

.cc-video-wrap { display: flex; flex-direction: column; gap: 12px; }
.cc-video-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cc-video-ratio {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--warm-grey);
}
.cc-video-ratio iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
}

/* ============================================================
   OLIVE SECTION (custom dark section)
   ============================================================ */
.cc-olive {
  padding: 100px 0;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.cc-olive h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
}

.cc-olive__lead {
  max-width: 640px;
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem; line-height: 1.7; margin-bottom: 56px;
}
.cc-olive__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
@media (max-width: 800px) { .cc-olive__grid { grid-template-columns: 1fr; gap: 32px; } }
.cc-olive__img-placeholder {
  width: 100%; height: 360px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.cc-olive__img-placeholder p { color: rgba(255,255,255,0.18); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.cc-olive__features { display: flex; flex-direction: column; gap: 28px; }
.cc-olive__feat { display: flex; gap: 16px; align-items: flex-start; }
.cc-olive__feat svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold); margin-top: 3px; }
.cc-olive__feat h4 { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.cc-olive__feat p { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.6; margin: 0; }

/* ============================================================
   BUILDINGS SECTION (custom dark section)
   ============================================================ */
.cc-buildings {
  padding: 100px 0;
  background: var(--navy);
}
.cc-buildings__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px;
}
@media (max-width: 800px) { .cc-buildings__grid { grid-template-columns: 1fr; } }
.cc-building-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.3s;
}
.cc-building-card:hover { border-color: rgba(200,160,80,0.25); }
.cc-building-card__body { padding: 24px 28px; }
.cc-building-card__tag { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.cc-building-card__body h3 { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.cc-building-card__body p { font-size: 0.85rem; color: rgba(255,255,255,0.42); line-height: 1.65; margin: 0; }

/* ============================================================
   ACQUISITION SOLO CARD
   ============================================================ */
.cc-acq-solo {
  max-width: 560px; margin: 40px auto 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 48px 40px; text-align: center;
}
.cc-acq-solo__badge { display: inline-block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(200,160,80,0.3); border-radius: 4px; padding: 4px 12px; margin-bottom: 20px; }
.cc-acq-solo__price { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: #fff; margin-bottom: 8px; }
.cc-acq-solo__sub { font-size: 0.82rem; color: rgba(255,255,255,0.35); margin-bottom: 32px; line-height: 1.5; }
.cc-acq-solo__list { text-align: left; margin-bottom: 36px; }
.cc-acq-solo__cta { width: 100%; text-align: center; justify-content: center; }
@media (max-width: 600px) { .cc-acq-solo { padding: 32px 24px; } }

/* ============================================================
   POTENTIAL SECTION — grid & lines (CC uses different class names)
   ============================================================ */
.potential-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 56px;
}
@media (max-width: 800px) { .potential-grid { grid-template-columns: repeat(2, 1fr); } }

.pot-kpi__val {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.9rem; font-weight: 600;
  color: var(--gold); line-height: 1; margin-bottom: 8px;
}
.pot-kpi__label {
  display: block;
  font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white);
  font-weight: 500;
}

.potential-lines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 56px;
}
@media (max-width: 900px) { .potential-lines { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .potential-lines { grid-template-columns: 1fr; } }

.potential-lines .pot-line {
  display: flex;
  flex-direction: column;
  background: var(--navy);
  padding: 28px 24px;
  border-top: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.potential-lines .pot-line:hover { border-top-color: var(--gold); background: rgba(255,255,255,0.025); }
.potential-lines .pot-line .pot-line__icon {
  width: 24px; height: 24px;
  color: var(--gold); opacity: 0.7;
  margin-bottom: 16px; flex-shrink: 0;
}
.potential-lines .pot-line h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 600;
  color: var(--white); margin-bottom: 10px; line-height: 1.2;
}
.potential-lines .pot-line p {
  font-size: 0.84rem; color: rgba(255,255,255,0.35);
  line-height: 1.75; font-weight: 300; margin: 0;
}

.prop-potential .pot-context {
  max-width: 760px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 40px;
  margin-top: 8px;
}
.prop-potential .pot-context p {
  font-size: 1rem; color: rgba(255,255,255,0.42);
  line-height: 1.85; font-weight: 300;
}

/* Agent photo: white background for transparent PNG */
.prop-contact .agent-photo {
  background: #fff;
}

/* ============================================================
   CONTACT SECTION — grid layout (CC uses different class names)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: start;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-form-col .section-eyebrow { color: var(--gold); }
.contact-form-col h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; color: var(--white);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.contact-property-thumb { margin-bottom: 28px; }

.contact-info-col .contact-agent {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.contact-info-col .contact-agent strong {
  display: block; color: var(--white);
  font-size: 0.95rem; margin-bottom: 4px;
}
.contact-info-col .contact-agent p {
  color: rgba(255,255,255,0.4); font-size: 0.8rem; margin: 0;
}

.contact-details p { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-bottom: 8px; }
.contact-details a { color: rgba(255,255,255,0.7); text-decoration: none; }
.contact-details a:hover { color: var(--gold); }

/* ============================================================
   LOCATION SECTION — layout & distance items
   ============================================================ */
.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .location-layout { grid-template-columns: 1fr; gap: 32px; }
}

.location-map iframe {
  width: 100%; height: 360px;
  border: 0; border-radius: 8px;
  display: block;
}

.location-distances {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
.loc-dist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.loc-dist__place { color: var(--text); font-weight: 400; }
.loc-dist__time  { color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.05em; white-space: nowrap; }

.location-info .location-badges { margin-top: 0; margin-bottom: 28px; }
.location-desc p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
