/* Kapellan — gagnvirka teikningin. Deilt milli útlita A og B. */
/* interactive plan */
.plan-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.plan-tab {
  font-family: var(--sans); font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 11px 18px; border: 2px solid var(--ink); border-radius: 3px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.plan-tab.active { background: var(--ink); color: var(--bone); }
.plan-stage { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .plan-stage { grid-template-columns: 1fr; } }
.plan-floors { border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); box-shadow: 6px 6px 0 rgba(19,31,23,0.12); padding: 12px; }
.plan-svg { width: 100%; height: auto; color: var(--moss); }
.plan-room { cursor: pointer; transition: fill 0.15s; stroke: var(--ink); stroke-width: 1.5; outline: none; }
.plan-room.laust { fill: rgba(201,226,101,0.35); }
.plan-room.laust:hover, .plan-room.laust:focus, .plan-room.laust.sel { fill: var(--lime); }
.plan-room.fratekid { fill: rgba(19,31,23,0.08); }
.plan-room.fratekid:hover, .plan-room.fratekid.sel { fill: rgba(19,31,23,0.16); }
.plan-room.sameign { fill: rgba(185,138,46,0.13); }
.plan-room.sameign:hover, .plan-room.sameign.sel { fill: rgba(185,138,46,0.3); }
.plan-label { font-family: var(--sans); font-size: 12.5px; fill: var(--ink); text-anchor: middle; pointer-events: none; }
.plan-ctx { fill: none; stroke: rgba(19,31,23,0.18); stroke-width: 1; stroke-dasharray: 4 4; pointer-events: none; }
.plan-panel { border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); padding: 24px; min-height: 220px; }
.plan-panel h3 { font-size: 21px; margin: 10px 0 8px; }
.plan-panel p { font-size: 14.5px; color: #4a564e; }
.plan-hint { font-size: 14.5px; color: #8f9a92; }
.plan-price { font-family: var(--serif); font-size: 19px; color: var(--ink); margin-top: 10px; }
.plan-status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 3px; border: 1.5px solid var(--ink); }
.plan-status.laust { background: var(--lime); }
.plan-status.fratekid { background: rgba(19,31,23,0.08); }
.plan-status.sameign { background: rgba(185,138,46,0.2); }
.plan-cta {
  display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 12px 18px; background: var(--ink); color: var(--bone);
  text-decoration: none; border-radius: 3px;
}
.plan-cta:hover { background: var(--pine); }
.plan-fine { margin-top: 14px; font-size: 12.5px; color: #8f9a92; }

/* iso 3D view */
.plan-iso .iso-top.laust { fill: rgba(201,226,101,0.55); }
.plan-iso .iso-top.laust:hover, .plan-iso .iso-top.laust.sel { fill: var(--lime); }
.plan-iso .iso-top.fratekid { fill: rgba(19,31,23,0.1); }
.plan-iso .iso-top.sameign { fill: rgba(185,138,46,0.18); }
.plan-iso .iso-top { stroke: var(--ink); stroke-width: 1.2; cursor: pointer; }
.iso-side { stroke: var(--ink); stroke-width: 1; pointer-events: none; }
.iso-side.laust { fill: rgba(160,185,80,0.5); }
.iso-side.fratekid { fill: rgba(19,31,23,0.22); }
.iso-side.sameign { fill: rgba(150,110,40,0.3); }
.iso-desk { fill: rgba(19,31,23,0.25); pointer-events: none; }
.iso-roof { fill: rgba(245,241,230,0.75); stroke: var(--ink); stroke-width: 1.2; pointer-events: none; }
.iso-roofline { stroke: var(--ink); stroke-width: 0.8; opacity: 0.5; pointer-events: none; }
.iso-support { stroke: var(--ink); stroke-width: 1; opacity: 0.35; pointer-events: none; }

/* 3D líflegheit */
.iso-block { animation: iso-rise 0.5s ease both; transition: transform 0.18s ease; }
.iso-block:has(.plan-room:hover), .iso-block:has(.plan-room.sel) { transform: translateY(-5px); }
@keyframes iso-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .iso-block { animation: none; transition: none; } }
.iso-roofmain { fill: rgba(19,31,23,0.05); stroke: var(--ink); stroke-width: 1; opacity: 0.85; pointer-events: none; }
.iso-roofmain.gable { fill: rgba(19,31,23,0.09); }
.iso-ridge { stroke: var(--ink); stroke-width: 1.4; opacity: 0.6; }
.iso-roofg, .iso-mezzg { pointer-events: auto; }
.iso-roofg { pointer-events: none; }
.iso-dimline { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.55; }
.plan-dim { font-family: var(--sans); font-size: 11px; fill: var(--ink); opacity: 0.75; }
.plan-toggles { display: flex; gap: 18px; margin: -8px 0 14px; }
.plan-toggles label { font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.plan-toggles input { accent-color: var(--moss); }

.iso-ghost { opacity: 0.22; pointer-events: none; }
.iso-ghost .plan-room { cursor: default; }
.iso-logo { opacity: 0.7; pointer-events: none; }

.plan-photo { width: 100%; border-radius: 4px; margin-bottom: 14px; display: block; object-fit: cover; aspect-ratio: 3/2; }
