/* Shared styles for every Image Direct Media listing website. Brand color comes from --brand, set per page. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: #1B1B1B; background: #FFFFFF; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid #E8E6E1; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.top-brand { display: flex; align-items: center; gap: 14px; }
.top-brand img { height: 40px; width: auto; }
.top nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
.top nav a { text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px; border-radius: 999px; font: 600 15px Inter, sans-serif; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-brand { background: var(--brand); color: #FFFFFF; }
.btn-line { border-color: #1B1B1B; color: #1B1B1B; background: #FFFFFF; }

/* Hero */
.hero { position: relative; min-height: min(78vh, 780px); display: flex; align-items: flex-end; background: #1B1B1B; color: #FFFFFF; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.38); }
.hero .wrap { position: relative; z-index: 1; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 56px; }
.hero h1 { margin: 6px 0 0; font-weight: 500; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; }
.hero .city { margin: 8px 0 0; font-size: 19px; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; background: rgba(0,0,0,.35); }
.badge.sold { background: #7A2E2E; }
.badge.contract { background: #8A5A12; }
.price { font-size: clamp(34px, 4vw, 50px); font-weight: 600; }
.hero .meta { font-size: 15px; }
.sold-banner { position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: #7A2E2E; color: #FFFFFF; text-align: center; padding: 12px 24px; font-weight: 600; letter-spacing: .06em; }

/* Facts */
.facts { border-bottom: 1px solid #E8E6E1; }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.facts span { display: block; }
.facts .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #5E5A54; }
.facts .v { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; font-weight: 600; }

/* Sections */
section.block { padding: 72px 0 32px; }
h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); margin: 0 0 24px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 230px; gap: 12px; }
.gallery a { display: block; overflow: hidden; border-radius: 10px; }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.03); }
.about { display: flex; flex-wrap: wrap; gap: 56px; }
.about .text { flex: 1 1 520px; min-width: 0; }
.about .text p { font-size: 17px; line-height: 1.75; color: #3E3B36; margin: 0 0 16px; }
.about .feat { flex: 1 1 320px; min-width: 0; }
.about h3 { margin: 0 0 12px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #5E5A54; }
.about ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #E8E6E1; }
.about li { padding: 12px 0; border-bottom: 1px solid #E8E6E1; font-size: 15px; }
.media { background: #F5F3EF; }
.media .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1B1B1B; }
.frame iframe, .frame video, .frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame canvas { cursor: grab; touch-action: none; }
.hint { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: 12px; font-weight: 600; color: #FFFFFF; background: rgba(20,20,20,.72); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.plan { background: #FFFFFF; border: 1px solid #E8E6E1; border-radius: 12px; padding: 12px; }

/* Agent */
.agent { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; border-top: 1px solid #E8E6E1; padding: 56px 0; }
.agent .who { display: flex; gap: 20px; align-items: center; }
.agent .who img { width: 112px; height: 112px; border-radius: 999px; object-fit: cover; }
.agent .name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; font-weight: 600; }
.agent .actions { display: flex; flex-wrap: wrap; gap: 12px; }

footer { border-top: 1px solid #E8E6E1; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; font-size: 13px; color: #5E5A54; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(10,10,10,.94); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #FFFFFF; border: 0; width: 52px; height: 52px; border-radius: 999px; font-size: 26px; cursor: pointer; }
.lb .close { top: 20px; right: 20px; }
.lb .prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb .count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #FFFFFF; font-size: 14px; }

@media (max-width: 760px) {
  .top nav { display: none; }
  .gallery a:first-child { grid-column: auto; grid-row: span 2; }
}
