/* ─────────────────────────────────────────────
   PROPERTY DETAIL PAGE — Shared Styles
───────────────────────────────────────────── */

/* Reuse all root variables from style.css */

/* ── BACK NAV ── */
.back-nav {
  background: var(--navy);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  font-weight: 600;
  transition: color var(--transition);
}
.back-link:hover { color: var(--gold-light); }
.back-link svg { transition: transform var(--transition); }
.back-link:hover svg { transform: translateX(-3px); }

/* ── PROPERTY HERO ── */
.prop-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.prop-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prop-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,58,.9) 0%, rgba(11,31,58,.4) 55%, transparent 100%);
}
.prop-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 0;
}
.prop-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}
.prop-status.launched        { background: #22c55e; color: #fff; }
.prop-status.coming-soon     { background: var(--gold); color: var(--navy); }
.prop-status.under-construction { background: #3b82f6; color: #fff; }

.prop-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.8px;
  margin-bottom: 8px;
}
.prop-hero-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.7);
  font-size: .95rem;
}
.prop-hero-loc svg { color: var(--gold); flex-shrink: 0; }

/* ── LAYOUT ── */
.prop-body {
  background: var(--ivory);
  padding: 56px 0 80px;
}
.prop-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
}

/* ── PRICE STRIP ── */
.price-strip {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.price-strip-main { display: flex; flex-direction: column; gap: 2px; }
.price-strip-label { font-size: .7rem; color: var(--slate-light); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.price-strip-val { font-size: 1.8rem; font-weight: 800; color: var(--gold); letter-spacing: -.5px; line-height: 1; }
.price-strip-unit { font-size: .8rem; color: var(--slate-light); font-weight: 500; }
.price-strip-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.p-badge {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--ivory);
  border: 1.5px solid var(--border);
  color: var(--slate);
}
.p-badge.gold { background: var(--gold-pale); border-color: var(--gold); color: #7a5a00; }

/* ── SECTION BLOCK ── */
.prop-section {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 24px;
}
.prop-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.prop-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(var(--gold), var(--gold-light));
  border-radius: 2px;
}

/* ── OVERVIEW GRID ── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.overview-item {
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
  text-align: center;
}
.overview-icon { font-size: 1.6rem; margin-bottom: 6px; }
.overview-label { font-size: .7rem; color: var(--slate-light); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; margin-bottom: 4px; }
.overview-val { font-size: .95rem; font-weight: 700; color: var(--navy); }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.gallery-main { grid-row: 1 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid > div { overflow: hidden; }
.gallery-grid > div:hover img { transform: scale(1.05); }

/* ── HIGHLIGHTS ── */
.highlights-list { display: flex; flex-direction: column; gap: 12px; }
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--ivory);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.hi-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.hi-text strong { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.hi-text span   { font-size: .8rem; color: var(--slate-light); line-height: 1.5; }

/* ── AMENITIES ── */
.amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.am-item {
  text-align: center;
  padding: 16px 8px;
  background: var(--ivory);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.am-item:hover { background: var(--gold-pale); border-color: var(--gold); }
.am-icon { font-size: 1.6rem; margin-bottom: 6px; display: block; }
.am-item span { font-size: .72rem; font-weight: 700; color: var(--navy); }

/* ── PAYMENT PLAN ── */
.payment-table { width: 100%; border-collapse: collapse; }
.payment-table th,
.payment-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
}
.payment-table th { background: var(--ivory); font-weight: 700; color: var(--navy); font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; }
.payment-table td { color: var(--slate); }
.payment-table tr:last-child td { border-bottom: none; }
.payment-table td:last-child { font-weight: 700; color: var(--navy); }

/* ── LOCATION INFO ── */
.location-list { display: flex; flex-direction: column; gap: 10px; }
.loc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--ivory);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.loc-place { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--navy); }
.loc-dist { font-size: .82rem; font-weight: 700; color: var(--gold); }

/* ── STICKY SIDEBAR ── */
.prop-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  padding: 28px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.sidebar-card p { font-size: .82rem; color: var(--slate-light); margin-bottom: 20px; }

.sidebar-contact {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .875rem;
  transition: all var(--transition);
}
.sc-call { background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.15); }
.sc-call:hover { background: rgba(255,255,255,.18); }
.sc-wa  { background: var(--green-wa); color: var(--white); }
.sc-wa:hover { background: var(--green-wa-dk); }

/* ── SIMILAR PROPERTIES ── */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.sim-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.sim-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sim-img { height: 150px; overflow: hidden; }
.sim-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sim-card:hover .sim-img img { transform: scale(1.05); }
.sim-body { padding: 16px; }
.sim-title { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.sim-loc { font-size: .78rem; color: var(--slate-light); margin-bottom: 8px; }
.sim-price { font-size: 1rem; font-weight: 800; color: var(--gold); margin-bottom: 12px; }
.sim-body .btn { font-size: .78rem; padding: 8px 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .prop-layout   { grid-template-columns: 1fr; }
  .prop-sidebar  { position: static; }
  .similar-grid  { grid-template-columns: repeat(2, 1fr); }
  .prop-hero     { height: 360px; }
  .overview-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .prop-hero        { height: 280px; }
  .prop-body        { padding: 32px 0 56px; }
  .prop-section     { padding: 20px; }
  .price-strip      { flex-direction: column; align-items: flex-start; gap: 12px; }
  .gallery-grid     { grid-template-columns: 1fr; grid-template-rows: 200px 140px 140px; }
  .gallery-main     { grid-row: auto; }
  .overview-grid    { grid-template-columns: repeat(2, 1fr); }
  .amenities-list   { grid-template-columns: repeat(3, 1fr); }
  .similar-grid     { grid-template-columns: 1fr; }
  .payment-table th,
  .payment-table td { padding: 10px 12px; font-size: .8rem; }
}

@media (max-width: 400px) {
  .overview-grid  { grid-template-columns: repeat(2, 1fr); }
  .amenities-list { grid-template-columns: repeat(3, 1fr); }
}
