@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --navy: #0b2446;
  --ink: #102541;
  --blue: #2761a1;
  --sky: #a5d1ff;
  --muted: #475b70;
  --paper: #f5f7fa;
  --line: #dce4ed;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid #3c84c8; outline-offset: 3px; }
img { display: block; width: 100%; }
svg { width: 22px; height: 22px; flex: 0 0 auto; }
figure, h1, h2, p, ul { margin: 0; }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 12px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.header { background: var(--navy); color: white; }
.header-inner { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand, .footer-brand { font-size: 34px; font-weight: 800; letter-spacing: -.065em; line-height: 1; width: fit-content; }
.brand span { color: var(--sky); }
.nav-current { display: inline-flex; align-items: center; min-height: 50px; position: relative; font-size: 13px; font-weight: 700; }
.nav-current[aria-current]::after { content: ''; position: absolute; height: 2px; background: var(--sky); inset: auto 0 7px; }
.main { flex: 1; padding-block: 46px 30px; }
.listing + .listing { margin-top: 48px; }
.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.29fr); gap: clamp(34px, 5.4vw, 80px); align-items: center; }
.intro { grid-area: 1 / 1; padding-bottom: 20px; }
.gallery-home { grid-area: 1 / 2; }
.eyebrow { color: var(--blue); font-weight: 800; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin-bottom: 19px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; border-radius: 1px; background: currentColor; }
.title { font-size: clamp(38px, 4.35vw, 66px); letter-spacing: -.065em; line-height: 1.04; font-weight: 800; text-wrap: balance; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 25px; color: var(--muted); font-size: 14px; font-weight: 600; }
.price strong { color: var(--blue); font-size: clamp(29px, 3.1vw, 41px); font-weight: 800; letter-spacing: -.055em; line-height: 1.12; white-space: nowrap; }
.features { padding: 18px 0 0; margin-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; list-style: none; }
.features li { display: flex; align-items: center; min-width: 0; gap: 9px; font-size: 13px; line-height: 1.45; font-weight: 700; }
.features li:last-child { grid-column: 1 / -1; }
.features svg { color: var(--blue); }
.home-summary { display: grid; gap: 8px; margin-top: 13px; font-size: 12px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.home-address, .home-extras { display: flex; align-items: flex-start; gap: 7px; }
.home-summary svg { width: 16px; height: 16px; color: var(--blue); }
.home-extras strong { color: var(--ink); }
.action { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 20px; border-radius: 9px; font-size: 14px; font-weight: 800; line-height: 1.25; text-align: center; }
.action-primary { background: var(--navy); color: white; margin-top: 25px; }
.action-primary:hover { background: #173f6d; }
.gallery { min-width: 0; }
.frame { position: relative; overflow: hidden; isolation: isolate; background: #dfe6ee; border-radius: 16px; height: clamp(340px, 35vw, 492px); }
.photo-trigger { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; touch-action: pan-y pinch-zoom; }
.photo-trigger:focus-visible { outline-offset: -5px; }
.main-photo { height: 100%; object-fit: cover; }
.count { position: absolute; display: inline-flex; align-items: center; gap: 6px; bottom: 13px; left: 13px; color: white; background: #0b1d32e6; border-radius: 100px; padding: 6px 11px; font-size: 12px; font-weight: 800; pointer-events: none; }
.count svg { width: 16px; height: 16px; }
.round { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: #0b1d32d9; color: white; border: 1px solid #ffffff65; border-radius: 50%; }
.round:hover { background: var(--navy); }
.previous, .next { top: 50%; transform: translateY(-50%); }
.previous { left: 13px; }
.next { right: 13px; }
.expand { bottom: 13px; right: 13px; }
.thumbnails { position: relative; display: flex; align-items: stretch; gap: 7px; overflow-x: auto; padding: 4px 2px 5px; margin-top: 7px; scrollbar-width: thin; scrollbar-color: #aebed1 transparent; overscroll-behavior-inline: contain; }
.thumb { flex: 1 0 57px; min-width: 0; max-width: 102px; height: 61px; padding: 2px; border: 2px solid transparent; background: transparent; border-radius: 8px; }
.thumb img { height: 100%; object-fit: cover; border-radius: 4px; background: #dfe6ee; }
.thumb[aria-current="true"] { border-color: var(--blue); }
.thumb:hover:not([aria-current="true"]) { border-color: #91b5d7; }
.thumb:focus-visible { outline-offset: -2px; }
.caption { margin: 5px 2px 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.contact { margin-top: 31px; display: flex; justify-content: space-between; align-items: center; gap: 18px; background: var(--navy); color: white; border-radius: 14px; padding: 17px 22px; }
.contact-label { display: flex; align-items: center; gap: 13px; }
.contact-label p { font-size: 16px; font-weight: 800; line-height: 1.3; }
.contact-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 9px; background: #ffffff13; color: var(--sky); }
.contact-number { font-size: 13px; font-weight: 600; color: #dbe9fa; display: inline-flex; align-items: center; min-height: 28px; }
.contact-number:hover { text-decoration: underline; }
.action-visit { background: white; color: var(--navy); }
.action-visit:hover { background: #d9ebff; }
.footer { border-top: 1px solid var(--line); color: var(--muted); }
.about-link { justify-self: end; font-size: 13px; padding-block: 12px; }
.about-link:hover, .footer-contact:hover { text-decoration: underline; }
.footer-about { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 28px; }
.footer-about h2, .footer-details summary { color: var(--ink); font-size: 14px; font-weight: 800; margin: 0 0 6px; }
.footer-details summary { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; cursor: pointer; list-style: none; }
.footer-details summary::-webkit-details-marker { display: none; }
.footer-details summary svg { width: 14px; height: 14px; }
.footer-details[open] summary svg { transform: rotate(180deg); }
.footer-details p { max-width: 50ch; font-size: 14px; line-height: 1.55; }
.footer-contacts { display: grid; font-style: normal; }
.footer-contact { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-align: left; overflow-wrap: anywhere; }
.footer-contact svg { width: 16px; height: 16px; }
.footer-copy-status { min-height: 1.25em; font-size: 12px; }
.footer-inner { min-height: 60px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; font-size: 12px; }
.footer-identity, .footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.footer-brand { color: var(--navy); font-size: 20px; }
.footer-brand span { color: var(--blue); }
.notice { padding: 20px 0; }
.property { max-width: 980px; margin-inline: auto; }
.back-link { display: inline-flex; min-height: 44px; margin: -12px 0 7px; align-items: center; gap: 8px; color: var(--blue); font-size: 13px; font-weight: 800; }
.back-link:hover { text-decoration: underline; }
.back-link svg { width: 18px; height: 18px; }
.gallery-details .frame { height: clamp(360px, 48vw, 525px); background: radial-gradient(ellipse at center, #e7ecf3, #cfdbe9); }
.gallery-details .main-photo { object-fit: contain; }
.facts { margin-top: 21px; padding: 25px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.facts .price { margin: 0 0 10px; }
.facts .title { font-size: clamp(25px, 3.5vw, 42px); letter-spacing: -.045em; text-wrap: initial; }
.facts .features { padding: 0; border: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts .features li { grid-column: auto; min-height: 60px; padding: 11px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.optional { display: grid; grid-template-columns: auto 1fr; gap: 8px 15px; font-size: 14px; margin-bottom: 0; }
.optional dt { font-weight: 800; }
.optional dd { margin: 0; }
.extras { margin-top: 20px; }
.extras h2 { font-size: 17px; margin-bottom: 9px; }
.extras-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.extras-list li { max-width: 100%; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; background: var(--paper); font-size: 13px; }
.extras-list li { display: inline-flex; align-items: center; gap: 7px; }
.extras-list svg { width: 19px; height: 19px; color: var(--blue); }
.property .contact { margin-top: 17px; }
.lightbox { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0; background: #081324; color: white; }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox::backdrop { background: #081324; }
.zoom-frame { position: relative; min-height: 0; }
.zoom-image { height: 100%; object-fit: contain; touch-action: pan-y pinch-zoom; }
.close { right: 13px; top: max(13px, env(safe-area-inset-top)); z-index: 1; }
.zoom-caption { padding: 12px 16px max(14px, env(safe-area-inset-bottom)); text-align: center; font-size: 14px; }

@media (max-width: 940px) {
  .wrap { width: calc(100% - 52px); }
  .hero { gap: 27px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 59px; grid-template-columns: 1fr auto; }
  .header nav { display: none; }
  .brand { font-size: 29px; }
  .main { padding-block: 14px 24px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .intro { padding-bottom: 0; }
  .frame { height: clamp(231px, 72vw, 390px); border-radius: 11px; }
  .gallery-details .frame { height: clamp(280px, 94vw, 495px); }
  .gallery-details .main-photo { object-fit: cover; }
  .thumb { flex: 0 0 61px; height: 54px; }
  .thumbnails { gap: 5px; margin-top: 5px; }
  .previous { left: 8px; }
  .next { right: 8px; }
  .count { left: 8px; bottom: 8px; }
  .expand { right: 8px; bottom: 8px; }
  .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .title { font-size: clamp(32px, 8vw, 44px); text-wrap: initial; }
  .price { margin-top: 14px; }
  .features { margin-top: 15px; padding-top: 13px; }
  .action-primary { margin-top: 17px; width: 100%; }
  .contact { margin-top: 19px; flex-direction: column; align-items: stretch; gap: 11px; padding: 14px; }
  .contact-label p { font-size: 14px; }
  .action-visit { width: 100%; }
  .back-link { margin-top: -8px; margin-bottom: 1px; }
  .facts { padding: 15px; margin-top: 14px; }
  .facts .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts .features li { min-height: 47px; }
  .facts .features li:last-child { grid-column: 1 / -1; }
  .footer-inner { min-height: 50px; }
  .footer-about { grid-template-columns: 1fr; gap: 17px; }
}
