/* ── BREADCRUMB ── */
.breadcrumb-bar {
  padding-top: calc(0.75rem + 88px);
  background: #fff; border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-right: 4rem;
  padding-bottom: 0.75rem;
  padding-left: 4rem;
}
.breadcrumb {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text-light); }

/* ── GALLERY ── */
.gallery {
  background: var(--navy);
  padding: 1.5rem 4rem;
}
.gallery-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 480px;
}
.gallery-main {
  grid-row: 1 / 3;
  background: linear-gradient(135deg, #d4cfc8 0%, #c2bdb5 100%);
  position: relative; overflow: hidden; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.gallery-main:hover .gallery-overlay { opacity: 1; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-overlay span {
  color: #fff; font-size: 0.78rem; letter-spacing: 0.15em;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 0.5rem 1.2rem;
}
.gallery-sub {
  background: linear-gradient(135deg, #cdd2d8 0%, #bcc3ca 100%);
  border-radius: 3px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: filter 0.3s;
}
.gallery-sub:hover { filter: brightness(1.05); }
.gallery-sub:nth-child(3) { background: linear-gradient(135deg, #d8d3c6 0%, #c8c1b4 100%); }
.gallery-ph {
  text-align: center;
}
.gallery-ph svg { width: 36px; height: 36px; stroke: rgba(0,0,0,0.2); fill: none; stroke-width: 1; display: block; margin: 0 auto 0.4rem; }
.gallery-ph p { font-family: monospace; font-size: 0.6rem; color: rgba(0,0,0,0.25); letter-spacing: 0.1em; }
.gallery-count {
  position: absolute; bottom: 1rem; right: 1rem;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 0.72rem; letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem; border-radius: 2px;
}

/* ── MAIN CONTENT ── */
.detail-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 2.5rem 4rem 5rem;
  display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start;
}

/* ── LEFT: DETAIL ── */
.detail-left {}

.detail-header { margin-bottom: 1.8rem; }
.detail-badges { display: flex; gap: 0.4rem; margin-bottom: 0.8rem; }
.badge {
  font-size: 0.65rem; letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem; border-radius: 2px; font-weight: 500;
}
.badge-new { background: var(--gold); color: #fff; }
.badge-type { background: var(--navy); color: #fff; }

.detail-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600; color: var(--navy);
  letter-spacing: 0.03em; line-height: 1.5;
  margin-bottom: 0.6rem;
}
.detail-location {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; color: var(--text-light); letter-spacing: 0.06em;
}
.detail-location svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 2; }

.detail-price-row {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.4rem 0; border-top: 1px solid rgba(0,0,0,0.07); border-bottom: 1px solid rgba(0,0,0,0.07);
  margin-bottom: 2rem;
}
.detail-price {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--gold);
}
.detail-price span { font-size: 1rem; font-weight: 300; color: var(--text-light); margin-left: 0.2rem; }
.detail-price-note { font-size: 0.75rem; color: var(--text-light); line-height: 1.6; }

/* Quick specs */
.quick-specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem;
}
.qs-item {
  background: #fff; border-radius: 4px; padding: 1rem;
  border: 1px solid rgba(0,0,0,0.06); text-align: center;
  transition: border-color 0.3s;
}
.qs-item:hover { border-color: rgba(180,150,90,0.3); }
.qs-item svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.5; margin-bottom: 0.5rem; }
.qs-label { font-size: 0.65rem; letter-spacing: 0.12em; color: var(--text-light); margin-bottom: 0.2rem; }
.qs-value { font-family: var(--serif); font-size: 0.95rem; font-weight: 600; color: var(--navy); }

/* TABS */
.tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(0,0,0,0.1); margin-bottom: 2rem; }
.tab-btn {
  padding: 0.8rem 1.6rem; border: none; border-bottom: 2px solid transparent;
  background: none; font-family: var(--sans); font-size: 0.82rem;
  letter-spacing: 0.08em; color: var(--text-light); cursor: pointer;
  transition: color 0.2s, border-color 0.2s; margin-bottom: -1px;
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 500; }
.tab-btn:hover:not(.active) { color: var(--text); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Detail table */
.detail-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.detail-table tr { border-bottom: 1px solid rgba(0,0,0,0.06); }
.detail-table tr:last-child { border-bottom: none; }
.detail-table th {
  width: 35%; padding: 1rem 1.2rem;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-light); background: var(--ivory-deep);
  text-align: left; vertical-align: top;
}
.detail-table td {
  padding: 1rem 1.2rem; font-size: 0.85rem;
  color: var(--text); line-height: 1.7;
}

/* Description */
.desc-section h3 {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.8rem; letter-spacing: 0.03em;
}
.desc-section p {
  font-size: 0.88rem; color: var(--text-mid);
  line-height: 2; letter-spacing: 0.03em; margin-bottom: 1.5rem;
}
.feature-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1rem;
}
.feature-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-mid);
}
.feature-item::before {
  content: ''; display: block; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%; flex-shrink: 0;
}

/* MAP placeholder */
.map-placeholder {
  width: 100%; height: 320px;
  background: linear-gradient(145deg, #e0ddd8 0%, #d5d0c9 100%);
  border-radius: 4px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.8rem;
  position: relative; overflow: hidden;
}
.map-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-placeholder svg { width: 40px; height: 40px; stroke: rgba(0,0,0,0.2); fill: none; stroke-width: 1; z-index: 1; }
.map-placeholder p { font-family: monospace; font-size: 0.7rem; color: rgba(0,0,0,0.3); letter-spacing: 0.12em; z-index: 1; }
.map-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.map-pin svg { width: 32px; height: 32px; stroke: var(--gold); fill: rgba(180,150,90,0.2); stroke-width: 2; }

/* ── RIGHT: STICKY CARD ── */
.detail-right { position: sticky; top: 88px; }

.contact-card {
  background: #fff; border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  overflow: hidden;
}
.contact-card-header {
  background: var(--navy); padding: 1.5rem 1.8rem;
}
.contact-card-header .price {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--gold);
}
.contact-card-header .price span { font-size: 0.9rem; font-weight: 300; color: rgba(255,255,255,0.5); margin-left: 0.2rem; }
.contact-card-header .cc-label { font-size: 0.68rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); margin-bottom: 0.4rem; }

.contact-card-body { padding: 1.8rem; }

.cc-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.6rem;
}
.cc-spec { font-size: 0.75rem; color: var(--text-light); }
.cc-spec strong { display: block; font-size: 0.88rem; color: var(--navy); font-weight: 500; margin-top: 0.15rem; }

.cc-divider { height: 1px; background: rgba(0,0,0,0.07); margin-bottom: 1.6rem; }

.cc-form { display: flex; flex-direction: column; gap: 0.7rem; }
.cc-input {
  width: 100%; padding: 0.75rem 1rem; border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.12); background: var(--ivory);
  font-family: var(--sans); font-size: 0.85rem; color: var(--text);
  outline: none; transition: border-color 0.3s;
}
.cc-input:focus { border-color: var(--gold); }
.cc-input::placeholder { color: var(--text-light); }
.cc-textarea {
  width: 100%; padding: 0.75rem 1rem; border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.12); background: var(--ivory);
  font-family: var(--sans); font-size: 0.85rem; color: var(--text);
  outline: none; resize: vertical; min-height: 80px;
  transition: border-color 0.3s;
}
.cc-textarea:focus { border-color: var(--gold); }
.cc-textarea::placeholder { color: var(--text-light); }

.btn-contact {
  width: 100%; padding: 1rem; background: var(--gold); color: #fff;
  border: none; border-radius: 3px; font-family: var(--sans);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.1em;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.btn-contact:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-tel {
  width: 100%; padding: 0.85rem; background: #fff; color: var(--navy);
  border: 1px solid rgba(0,0,0,0.12); border-radius: 3px;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.06em; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: border-color 0.2s;
}
.btn-tel:hover { border-color: var(--gold); color: var(--gold); }
.btn-tel svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.cc-note { font-size: 0.68rem; color: var(--text-light); text-align: center; line-height: 1.7; margin-top: 0.8rem; }

/* Fav / share bar */
.action-bar {
  display: flex; gap: 0.6rem; margin-top: 1rem;
}
.action-btn {
  flex: 1; padding: 0.7rem; border: 1px solid rgba(0,0,0,0.1); border-radius: 3px;
  background: #fff; font-family: var(--sans); font-size: 0.75rem;
  color: var(--text-mid); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: border-color 0.2s, color 0.2s;
}
.action-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.action-btn:hover { border-color: var(--gold); color: var(--gold); }
.action-btn.fav-active { border-color: #e05c5c; color: #e05c5c; }
.action-btn.fav-active svg { fill: #e05c5c; stroke: #e05c5c; }

/* ── RELATED ── */
.related-section {
  background: var(--ivory-deep);
  padding: 4rem 4rem 5rem;
}
.related-inner { max-width: 1200px; margin: 0 auto; }
.related-inner h2 {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  color: var(--navy); margin-bottom: 2rem; letter-spacing: 0.03em;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.rel-card {
  background: #fff; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
}
.rel-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.rel-img {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.rel-img svg { width: 32px; height: 32px; stroke: rgba(0,0,0,0.18); fill: none; stroke-width: 1; }
.rel-body { padding: 1.2rem; }
.rel-location { font-size: 0.7rem; color: var(--text-light); margin-bottom: 0.3rem; }
.rel-title { font-family: var(--serif); font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.5; }
.rel-price { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--gold); }
.rel-price span { font-size: 0.72rem; font-weight: 300; color: var(--text-light); margin-left: 0.2rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none;
  line-height: 1; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 0.6; }
.lightbox-img {
  max-width: 85vw; max-height: 80vh;
  background: linear-gradient(135deg, #d4cfc8, #c2bdb5);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  width: 900px; height: 560px;
}
.lightbox-img p { font-family: monospace; font-size: 0.75rem; color: rgba(0,0,0,0.3); letter-spacing: 0.1em; }

@media (max-width: 1000px) {
  nav { padding: 1rem 1.5rem; }
  .breadcrumb-bar {
    padding-top: calc(0.75rem + 88px);
    padding-right: 1.5rem;
    padding-bottom: 0.75rem;
    padding-left: 1.5rem;
  }
  .gallery { padding: 1rem 1.5rem; }
  .gallery-inner { height: 300px; }
  .detail-wrap { grid-template-columns: 1fr; padding: 2rem 1.5rem 4rem; }
  .detail-right { position: static; }
  .quick-specs { grid-template-columns: repeat(2, 1fr); }
  .related-section { padding: 3rem 1.5rem 4rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
