/* Wohnen an der Römerstraße – rebau Immobilien GmbH */
:root {
  --orange: #ef7d1a;
  --orange-dark: #c9630a;
  --orange-soft: #fdf0e4;
  --ink: #26282b;
  --ink-soft: #55595f;
  --line: #e3e1dc;
  --bg: #ffffff;
  --bg-alt: #f5f3ef;
  --green: #3fa34d;
  --red: #c8372d;
  --yellow: #e9a400;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 20, 20, .10);
  --max: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 300; }
h2 strong { font-weight: 700; color: var(--orange); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: .6em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 760px; }
.section-head { margin-bottom: 40px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: .2s;
  font-family: inherit;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--light { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; background: var(--orange); transform: rotate(45deg); border-radius: 6px;
  display: grid; place-items: center; flex-shrink: 0;
}
.brand__mark span { transform: rotate(-45deg); color: #fff; font-weight: 800; font-size: .95rem; }
.brand__text { line-height: 1.15; }
.brand__text strong { display: block; font-size: 1.05rem; }
.brand__text small { color: var(--ink-soft); font-size: .78rem; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--orange); }
.nav .btn { color: #fff; padding: .6em 1.2em; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.72) 100%);
}
.hero__content { position: relative; padding: 120px 0 56px; width: 100%; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge {
  display: inline-block; padding: .35em .9em; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35);
}
.badge--green { background: var(--green); border-color: var(--green); }
.badge--orange { background: var(--orange); border-color: var(--orange); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 300; margin-bottom: .2em; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero h1 strong { font-weight: 800; }
.hero__sub { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 720px; margin-bottom: 28px; }
.hero__bar { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.hero__price {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow);
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.hero__price b { font-size: 1.9rem; color: var(--orange); display: block; line-height: 1.1; }
.hero__price small { color: var(--ink-soft); font-size: .8rem; }
.hero__price .divider { width: 1px; align-self: stretch; background: var(--line); }
.hero__credit { position: absolute; right: 12px; bottom: 8px; font-size: .7rem; opacity: .75; }

/* Quick facts strip */
.facts { background: var(--orange); color: #fff; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 22px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.25); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-size: 1.6rem; line-height: 1.2; }
.fact span { font-size: .92rem; opacity: .95; }

/* Generic grids/cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: .2em; }
.img-round { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.icon {
  width: 52px; height: 52px; background: var(--orange); border-radius: 10px; transform: rotate(45deg);
  display: grid; place-items: center; margin: 6px 0 18px 6px;
}
.icon svg { transform: rotate(-45deg); width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { padding-left: 1.8em; position: relative; margin-bottom: .55em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: .7em; height: .7em; background: var(--orange); transform: rotate(45deg);
}

/* Familie Redlich */
.family { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.family__photo { position: relative; }
.family__photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; }
.family__tag {
  position: absolute; left: -12px; bottom: 28px; background: var(--orange); color: #fff; padding: 12px 18px; border-radius: 10px;
  box-shadow: var(--shadow); font-weight: 700; line-height: 1.25;
}
.family__tag small { display: block; font-weight: 400; opacity: .95; }
.quote {
  font-size: clamp(1.15rem, 2vw, 1.35rem); font-style: italic; border-left: 4px solid var(--orange);
  padding: 4px 0 4px 22px; margin: 22px 0; color: var(--ink);
}
.quote cite { display: block; font-style: normal; font-weight: 700; font-size: 1rem; margin-top: 10px; color: var(--orange-dark); }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.person { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.person > div { padding: 12px 14px 14px; }
.person__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 8%; background: #5a5c63; }
.person__initials {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
}
.person__initials { background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 800; }
.person b { display: block; font-size: .98rem; line-height: 1.25; }
.person span { font-size: .82rem; color: var(--ink-soft); line-height: 1.3; display: block; }

/* Vorteile (financial) */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 5px solid var(--orange); }
.benefit--highlight { background: var(--orange); color: #fff; border-top-color: var(--ink); }
.benefit--highlight .icon { background: #fff; }
.benefit--highlight .icon svg { stroke: var(--orange); }
.benefit p { margin: 0; font-size: .98rem; }
.benefit--highlight p { color: #fff; }
.fineprint { font-size: .8rem; color: var(--ink-soft); margin-top: 26px; }

/* Wohnungsliste */
.units-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .45em 1.1em; font-weight: 700; font-size: .95rem;
  cursor: pointer; font-family: inherit; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.toggle { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--orange); }
.availability {
  display: flex; align-items: center; gap: 14px; background: var(--orange-soft); border: 1px solid #f6d3b2; border-radius: 12px;
  padding: 14px 20px; margin-bottom: 26px; font-weight: 600;
}
.availability b { font-size: 1.6rem; color: var(--orange-dark); }
.availability .bar { flex: 1; height: 10px; background: #fff; border-radius: 99px; overflow: hidden; min-width: 120px; }
.availability .bar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }

.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.unit {
  background: #fff; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.07); padding: 22px; position: relative;
  border: 2px solid transparent; transition: .2s; display: flex; flex-direction: column;
}
.unit--frei:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow); }
.unit__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.unit__nr { font-size: 1.35rem; font-weight: 800; }
.unit__nr small { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.status { font-size: .78rem; font-weight: 800; padding: .3em .8em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.status--frei { background: #e4f4e6; color: #22762e; }
.status--reserviert { background: #fff3cd; color: #8a6100; }
.status--verkauft { background: #fbe1df; color: var(--red); }
.unit__specs { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-soft); font-size: .95rem; margin-bottom: 14px; }
.unit__specs b { color: var(--ink); }
.unit__ph { display: inline-block; font-size: .75rem; font-weight: 800; color: #fff; background: var(--ink); border-radius: 6px; padding: .15em .55em; margin-left: 6px; vertical-align: middle; }
.unit__price { margin-top: auto; border-top: 1px dashed var(--line); padding-top: 12px; }
.unit__price .main { font-size: 1.55rem; font-weight: 800; color: var(--orange-dark); line-height: 1.15; }
.unit__price .main small { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.unit__price .extras { font-size: .82rem; color: var(--ink-soft); line-height: 1.4; margin-top: 4px; }
.unit__price .total { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.unit__cta { margin-top: 14px; font-size: .92rem; padding: .6em 1.1em; justify-content: center; }
.unit--verkauft, .unit--reserviert { opacity: .72; }
.unit--verkauft .unit__price, .unit--reserviert .unit__price { color: var(--ink-soft); font-size: .92rem; }
.units-note { margin-top: 26px; font-size: .88rem; color: var(--ink-soft); }

/* Häuser */
.houses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.house { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.house img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.house__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.house__num { font-size: 2.4rem; font-weight: 200; color: var(--orange); line-height: 1; }
.house__body p { font-size: .95rem; color: var(--ink-soft); }
.house__free { margin-top: auto; font-weight: 700; font-size: .92rem; }
.house__body .house__energy { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.08); font-size: .76rem; line-height: 1.5; }
.house__energy .ea { display: inline-block; background: var(--green); color: #fff; border-radius: 4px; padding: 0 6px; }

/* Ausstattung */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.06); border-radius: 12px; padding: 18px; }
.feature .icon { width: 42px; height: 42px; margin: 4px 4px 0 4px; flex-shrink: 0; }
.feature .icon svg { width: 20px; height: 20px; }
.feature b { display: block; margin-bottom: 2px; }
.feature span { font-size: .92rem; opacity: .85; }

/* Lage */
.distances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.distance { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.distance b { display: block; color: var(--orange-dark); font-size: 1.25rem; }
.distance span { font-size: .9rem; color: var(--ink-soft); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; border-radius: 12px; overflow: hidden; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
.lightbox {
  position: fixed; inset: 0; background: rgba(10,10,10,.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; border-radius: 8px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 1.6rem; cursor: pointer;
}
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; }
.lightbox__nav--next { right: 18px; top: 50%; }
.lightbox__caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .85rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--orange) 0%, #f39a3f 100%); color: #fff; padding: 56px 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0; font-weight: 300; }
.cta-band h2 strong { color: #fff; }

/* Kontakt */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; }
.contact__role { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.contact__head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.contact__head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; }
.contact h3 { margin: 0; font-size: 1.15rem; }
.contact address { font-style: normal; color: var(--ink-soft); font-size: .95rem; margin-bottom: 14px; }
.contact .btn { margin-top: 8px; justify-content: center; font-size: .95rem; }
.contact .btn:first-of-type { margin-top: auto; }
.service-partner { margin-top: 26px; display: flex; gap: 18px; align-items: center; background: var(--bg-alt); border-radius: 12px; padding: 18px 22px; font-size: .95rem; }

/* Footer */
.footer { background: #1b1c1e; color: #c9c9c9; padding: 44px 0 100px; font-size: .88rem; }
.footer a { color: #fff; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.footer__legal { font-size: .78rem; color: #999; border-top: 1px solid #333; padding-top: 18px; }

/* Mobile sticky CTA */
.mobile-cta { display: none; }

/* Responsive */
@media (max-width: 1020px) {
  .houses, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .benefits, .features, .contacts, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px; gap: 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 860px) {
  .grid-2, .family { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.25); }
  .people { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .person > div { padding: 8px 10px 10px; }
  .person span { display: none; }
  .family__tag { left: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .houses, .grid-4, .benefits, .features, .contacts, .grid-3, .distances { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery .wide { grid-column: span 2; }
  .gallery .tall { grid-row: span 1; }
  .hero__price { width: 100%; }
  .hero__price .divider { display: none; }
  .availability { flex-wrap: wrap; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: #fff; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.12);
  }
  .mobile-cta .btn { justify-content: center; padding: .8em 1em; }
  .brand__text small { display: none; }
}

/* Grundriss-Button und -Fenster */
[hidden] { display: none !important; }
.unit__actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
.unit__actions .btn { margin-top: 0; justify-content: center; font-size: .95rem; padding: .7em 1em; white-space: nowrap; }
.unit__top > .unit__nr { min-width: 0; flex: 1; overflow-wrap: anywhere; hyphens: auto; }
.unit__top > .status { flex-shrink: 0; }
.unit__plan { color: var(--ink); border-color: var(--ink); }
.unit__plan:hover { background: var(--bg-alt); }
.house { cursor: pointer; transition: transform .2s; }
.house:hover, .house:focus-visible { transform: translateY(-4px); outline: none; box-shadow: 0 14px 34px rgba(20,20,20,.16); }
.plan-modal { position: fixed; inset: 0; z-index: 250; background: rgba(15,15,15,.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.plan-modal__box { position: relative; background: #fff; border-radius: var(--radius); width: min(980px, 100%); max-height: 92vh; overflow: auto; padding: 22px 22px 20px; box-shadow: var(--shadow); border-top: 6px solid var(--orange); }
.plan-modal__title { font-size: 1.1rem; margin: 0 44px 12px 0; }
.plan-modal__img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.plan-modal__note { font-size: .82rem; color: var(--ink-soft); margin: 10px 0 14px; }
.plan-modal__close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.noscript-hint { background: var(--ink); color: #fff; text-align: center; padding: 12px 16px; font-size: .95rem; }
.unit__link { display: inline-block; margin-top: 8px; font-size: .9rem; font-weight: 700; color: var(--orange-dark); }
.plan-modal__senova { margin-left: 8px; }
@media (max-width: 640px) { .plan-modal__senova { margin: 8px 0 0; } }

/* Interaktiver Lageplan */
.section--plan { padding-block: clamp(40px, 6vw, 72px); background: var(--bg-alt); }
.siteplan { position: relative; max-width: 1100px; margin-inline: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.siteplan > img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.siteplan__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.siteplan__house { fill: rgba(239,125,26,.12); stroke: rgba(239,125,26,.55); stroke-width: 3; cursor: pointer; transition: fill .2s, stroke .2s; }
.siteplan__house:hover, .siteplan__house:focus, .siteplan__house.is-hot { fill: rgba(239,125,26,.45); stroke: var(--orange); stroke-width: 5; outline: none; }
.siteplan__mark { position: absolute; width: 30px; height: 30px; transform: translate(-50%, -50%) rotate(45deg); background: var(--orange); border: 2px solid #fff; border-radius: 5px; padding: 0; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.3); transition: transform .2s, background .2s; }
.siteplan__mark span { display: block; transform: rotate(-45deg); color: #fff; font: 800 15px/26px var(--font); }
.siteplan__mark:hover, .siteplan__mark:focus-visible, .siteplan__mark.is-hot { background: var(--ink); transform: translate(-50%, -50%) rotate(45deg) scale(1.15); outline: none; }
.siteplan__pop { position: absolute; z-index: 5; width: 300px; max-width: calc(100% - 16px); background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.28); padding: 10px 10px 12px; border-top: 5px solid var(--orange); }
.siteplan__popimg { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.siteplan__popimg img { width: 100%; height: auto; display: block; }
.siteplan__popimg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.siteplan__popimg polygon { fill: transparent; stroke: none; }
.siteplan__popimg polygon.is-on { fill: rgba(239,125,26,.45); stroke: var(--orange); stroke-width: 10; }
.siteplan__poptext { padding: 8px 2px 8px; line-height: 1.35; }
.siteplan__poptitle { display: block; font-size: 1.05rem; }
.siteplan__popinfo { font-size: .88rem; color: var(--ink-soft); }
.siteplan__popinfo strong { color: var(--orange-dark); }
.siteplan__popbtn { width: 100%; justify-content: center; font-size: .92rem; padding: .6em 1em; }
.siteplan__popclose { position: absolute; top: 14px; right: 14px; z-index: 2; border: 0; background: rgba(255,255,255,.92); border-radius: 50%; width: 30px; height: 30px; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-soft); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.siteplan__pop.is-sheet { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: 420px; margin-inline: auto; z-index: 90; }
.siteplan-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.siteplan-legend button { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .5em 1.1em; font: 600 .95rem var(--font); color: var(--ink); cursor: pointer; }
.siteplan-legend button span { color: var(--orange-dark); font-weight: 700; }
.siteplan-legend button:hover, .siteplan-legend button.is-hot, .siteplan-legend button:focus-visible { border-color: var(--orange); outline: none; }
@media (max-width: 640px) { .siteplan__mark { width: 22px; height: 22px; } .siteplan__mark span { font-size: 11px; line-height: 18px; } }