/* Property pages: the hub and individual listings. Shared tokens live in site.css. */

.page-top { padding-top: 104px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.loc { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); margin-top: 14px; }
.loc .ic { color: var(--accent-text); }

/* Airbnb-style gallery: one large, four small */
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 8px; margin-top: 32px; border-radius: var(--r-card); overflow: hidden; }
.gallery .ph { position: relative; overflow: hidden; background: var(--card); }
.gallery .ph:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.3s; }
.gallery .ph:hover img { transform: scale(1.04); filter: brightness(1.06); }
.gallery .show-all { position: absolute; right: 16px; bottom: 16px; background: rgba(10, 15, 30, 0.86); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 120px; margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .gallery .ph:first-child { grid-column: span 2; grid-row: auto; }
  .gallery .ph:nth-child(n+4) { display: none; }
}

/* Body: content left, sticky price card right */
.listing { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 64px; align-items: start; padding: 56px 0 96px; }
.listing section + section { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.listing h2 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); margin-bottom: 16px; }
.listing .body + .body { margin-top: 14px; }
@media (max-width: 960px) { .listing { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: grid; gap: 10px; }
.fact .ic { font-size: 24px; width: 24px; height: 24px; color: var(--accent-text); }
.fact b { font-weight: 600; }
.fact span { color: var(--muted); font-size: 0.85rem; display: block; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }

.included { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; list-style: none; margin-top: 8px; }
.included li { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.included .ic { width: 22px; height: 22px; color: var(--soft); }
@media (max-width: 560px) { .included { grid-template-columns: 1fr; } }

.video { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(10, 15, 30, 0.05), rgba(10, 15, 30, 0.45)); }
.video .play > span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: #0a0f1e; font-weight: 600; transition: transform 0.25s var(--ease); }
.video .play:hover > span { transform: scale(1.04); }
.video .play .ic { width: 18px; height: 18px; }
.video.playing .play { display: none; }
.video-note { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }

/* Amenities bento: exactly five cells */
.amen { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.amen figure { margin: 0; }
.amen figure:nth-child(1) { grid-column: span 4; }
.amen figure:nth-child(2) { grid-column: span 2; }
.amen figure:nth-child(n+3) { grid-column: span 2; }
.amen button { display: block; width: 100%; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--card); }
.amen figure:nth-child(1) button, .amen figure:nth-child(2) button { aspect-ratio: auto; height: 300px; }
.amen img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.amen button:hover img { transform: scale(1.05); }
.amen figcaption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.92rem; color: var(--soft); }
.amen figcaption .ic { color: var(--accent-text); }
@media (max-width: 640px) {
  .amen { grid-template-columns: 1fr 1fr; }
  .amen figure:nth-child(n) { grid-column: span 1; }
  .amen figure:nth-child(1) { grid-column: span 2; }
  .amen figure:nth-child(1) button, .amen figure:nth-child(2) button { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
}

.near { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 24px; }
.near div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
.near .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-wash); color: var(--accent-text); }
.near b { display: block; font-weight: 600; }
.near span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) { .near { grid-template-columns: 1fr; } }
.map { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--card); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); }
.fine { color: var(--muted); font-size: 0.84rem; margin-top: 10px; }

.staged { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.staged button { border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--card); }
.staged img { width: 100%; height: 100%; object-fit: cover; }
.staged-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--soft); font-size: 0.9rem; }
.staged-note .ic { color: var(--accent-text); margin-top: 2px; }
@media (max-width: 640px) { .staged { grid-template-columns: 1fr 1fr; } }

/* Price card */
.price { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 28px; }
.price .tag-lease { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--ok); margin-bottom: 10px; }
.price .amt { font-size: 2.1rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price .amt small { font-size: 1rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price .incl { color: var(--soft); font-size: 0.92rem; margin-top: 6px; }
.price hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.price .sale { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price .sale span { color: var(--muted); font-size: 0.92rem; }
.price .sale b { white-space: nowrap; font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.price .btns { display: grid; gap: 10px; margin-top: 24px; }
.price .btns .btn { justify-content: center; }
.price .note { color: var(--muted); font-size: 0.82rem; margin-top: 16px; line-height: 1.5; }
@media (max-width: 960px) { .price { position: static; order: -1; } }

/* Inquiry form */
.inquire { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 32px; }
.inquire form { display: grid; gap: 18px; margin-top: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-input); cursor: pointer; color: var(--soft); }
.seg label:has(input:checked) { border-color: var(--accent-text); background: var(--accent-wash); color: var(--text); }
.seg input { accent-color: var(--accent); }
.seg small { display: block; color: var(--muted); font-size: 0.82rem; }
@media (max-width: 560px) { .inquire { padding: 22px 16px; } .seg { grid-template-columns: 1fr; } }

/* Mobile bottom bar */
.mbar { display: none; }
@media (max-width: 960px) {
  .mbar { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(14, 21, 37, 0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); }
  .mbar b { font-size: 1.1rem; font-weight: 650; display: block; }
  .mbar span { color: var(--muted); font-size: 0.8rem; }
  body.has-mbar { padding-bottom: 76px; }
}

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(4, 7, 15, 0.96); }
.lb.open { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: var(--muted); font-size: 0.9rem; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 72px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-cap { text-align: center; color: var(--soft); padding: 14px 16px 22px; font-size: 0.95rem; }
.lb-btn { width: 48px; height: 48px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); }
.lb-btn:hover { background: rgba(255, 255, 255, 0.1); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: -58px; transform: none; } .lb-prev { left: 16px; } .lb-next { right: 16px; } }

/* Properties hub */
.hub-head { max-width: 720px; margin-bottom: 48px; }
.hub-head h1 { margin-bottom: 16px; }
.card-listing { display: grid; grid-template-columns: 1.3fr 1fr; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--card); text-decoration: none; transition: border-color 0.3s; }
.card-listing:hover { border-color: var(--line-2); }
.card-listing .pic { position: relative; min-height: 380px; overflow: hidden; }
.card-listing .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-listing:hover .pic img { transform: scale(1.04); }
.card-listing .info { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.card-listing .status { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-size: 0.85rem; font-weight: 600; }
.card-listing .meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--soft); font-size: 0.92rem; }
.card-listing .meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-listing .meta .ic { color: var(--accent-text); }
.card-listing .prices { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: end; }
.card-listing .prices b { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; display: block; }
.card-listing .prices span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 860px) { .card-listing { grid-template-columns: 1fr; } .card-listing .pic { min-height: 260px; } .card-listing .info { padding: 24px; } }
.empty { margin-top: 20px; border: 1px dashed var(--line-2); border-radius: var(--r-card); padding: 40px 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.empty .ic { width: 44px; height: 44px; color: var(--muted); }
.empty h2 { font-size: 1.2rem; margin-bottom: 4px; }
.empty p { color: var(--muted); }
@media (max-width: 760px) { .empty { grid-template-columns: 1fr; padding: 28px 20px; } }
