/* Explicit house + plot selection and map placement. Local release 1.17.0. */
.package-builder { background: #edf1e8; scroll-margin-top: 0; }
.package-builder-heading { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; margin-bottom: 42px; }
.package-builder-heading .eyebrow { color: #42624a; font-size: 10px; }
.package-builder h2 { font-size: clamp(34px, 4vw, 60px); line-height: 1.12; text-transform: none; margin-top: 20px; }
.package-builder-heading > p { font-size: 14px; line-height: 1.85; max-width: 41ch; color: #536953; padding-bottom: 3px; }
.package-builder-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(310px, 1fr); gap: 32px; align-items: start; }
.package-choices, .package-selection { min-width: 0; }
.package-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.package-step + .package-step { margin-top: 34px; padding-top: 26px; border-top: 1px solid #c4d0bf; }
.package-step legend { font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -.025em; padding: 0; display: flex; align-items: baseline; gap: 14px; }
.package-step legend > span { color: #5e795d; font-size: 11px; letter-spacing: .02em; }
.package-step-hint { font-size: 11px; color: #536953; line-height: 1.8; margin-top: 12px; max-width: 65ch; }
.package-step-hint a { color: #174d31; text-decoration: underline; text-underline-offset: 4px; }
.package-projects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.package-project-option { min-width: 0; border: 1px solid #ccd6c6; background: #fafbf7; padding: 0; text-align: left; color: var(--ink); cursor: pointer; font: inherit; overflow: hidden; }
.package-project-option img { width: 100%; height: auto; aspect-ratio: 1.45; display: block; object-fit: cover; }
.package-project-option > span { display: block; padding: 10px 8px; }
.package-project-option b { font-size: 11px; font-weight: 600; display: block; line-height: 1.5; }
.package-project-option small { display: block; font-size: 9px; line-height: 1.6; color: #52634e; margin-top: 3px; }
.package-project-option:hover { border-color: #53714b; background: #fff; }
.package-project-option[aria-pressed=true] { border-color: #164c33; box-shadow: inset 0 -4px #164c33; background: #fff; }
.package-project-option[aria-pressed=true] b::after { content: ' ✓'; color: #246437; }
.package-project-preview { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: #fafbf7; min-height: 210px; align-items: stretch; }
.package-preview-image { width: 100%; height: 100%; min-height: 210px; object-fit: cover; aspect-ratio: 1.35; display: block; }
.package-preview-copy { padding: 24px 20px; align-self: center; min-width: 0; }
.package-preview-copy .eyebrow { font-size: 9px; color: #54704e; }
.package-preview-copy h4 { font-size: 24px; line-height: 1.3; letter-spacing: -.04em; margin-top: 9px; font-weight: 500; }
.package-preview-copy p:not(.eyebrow) { font-size: 11px; line-height: 1.7; color: #53634f; margin-top: 10px; }
.package-preview-copy .package-house-price { padding-top: 12px; border-top: 1px solid var(--line); }
.package-project-preview > .package-empty { grid-column: 1 / -1; align-self: center; padding: 36px; text-align: center; max-width: 40ch; margin: auto; }
.package-empty { color: #596c53; font-size: 12px; line-height: 1.8; }
.package-plot-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin-top: 18px; }
.package-plot-row > div { min-width: 0; }
.package-plot-row label { display: block; font-size: 11px; color: #4e644d; margin-bottom: 9px; }
#package-plot { width: 100%; min-width: 0; min-height: 54px; padding: 12px 30px 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fafbf7; border: 1px solid #9caf95; border-radius: 0; }
#package-plot:disabled { opacity: .65; }
.package-map-link { display: flex; gap: 12px; align-items: center; min-height: 54px; font-size: 11px; border-bottom: 1px solid #8ea380; }
.package-map-link span { font-size: 21px; }
.package-selection { background: #123e2e; color: #f5f7ee; padding: 30px; position: sticky; top: 90px; }
.package-selection > .eyebrow { color: #c0d2ad; font-size: 9px; }
.package-selection h3 { font-size: 29px; font-weight: 400; letter-spacing: -.04em; line-height: 1.3; margin-top: 10px; }
#package-summary { margin-top: 25px; }
.package-selection .package-empty { color: #d1ddc7; }
.package-summary-item { padding: 18px 0; border-top: 1px solid #ffffff30; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 9px; align-items: start; }
.package-summary-item > span { font-size: 10px; line-height: 1.8; color: #bed0b2; padding-top: 3px; }
.package-summary-item b { display: block; font-size: 16px; font-weight: 500; line-height: 1.5; }
.package-summary-item small { display: block; font-size: 10px; line-height: 1.8; color: #c9d9bd; margin-top: 3px; }
.package-summary-item button { min-width: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; color: #d7e2ce; border: 1px solid #ffffff38; background: transparent; font: inherit; font-size: 9px; cursor: pointer; }
.package-summary-item button:hover { border-color: #d7e2ce; background: #ffffff12; }
.package-price-note { font-size: 10px; line-height: 1.8; color: #d1ddc6; padding: 15px 0 0; border-top: 1px solid #ffffff30; }
.package-estimate { padding: 23px 0; margin-top: 20px; border-top: 1px solid #ffffff30; }
.package-estimate > span { font-size: 10px; color: #c9d9bd; }
.package-estimate > strong { display: block; font-size: 27px; font-weight: 400; line-height: 1.4; margin-top: 5px; letter-spacing: -.03em; }
.package-estimate p { font-size: 10px; line-height: 1.8; color: #c9d9bd; margin-top: 10px; }
.package-show-map { width: 100%; min-height: 52px; padding: 12px 15px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: #edf4df; background: transparent; border: 1px solid #91aa7f; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.package-show-map span { font-size: 22px; flex: 0 0 auto; }
.package-show-map:hover { background: #ffffff0c; }
.package-show-map:disabled { color: #bdcdb1; border-color: #526d50; cursor: not-allowed; }
#package-submit { width: 100%; min-height: 56px; font-size: 10px; padding: 13px 16px; gap: 10px; text-align: left; justify-content: space-between; background: #deebc4; color: #163e2c; border-color: #deebc4; }
#package-submit > span { flex: 0 0 30px; }
#package-submit:disabled { background: #385c45; color: #c1cfb8; border-color: #57715c; cursor: not-allowed; opacity: 1; }
.package-status { font-size: 10px; line-height: 1.8; color: #e0eacb; margin-top: 12px; min-height: 36px; }
.package-selection-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-top: 10px; border-top: 1px solid #ffffff30; }
.package-selection-links button { min-height: 44px; padding: 4px 0; text-align: left; color: #e0eacb; background: none; border: 0; font: inherit; font-size: 10px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.package-selection-links button:disabled { opacity: .45; cursor: default; text-decoration: none; }
.package-selection-note { font-size: 9px; line-height: 1.8; color: #b4c6a7; margin-top: 15px; }
.package-noscript { font-size: 14px; line-height: 1.8; margin-top: 20px; }
.package-noscript a { text-decoration: underline; }
.package-builder button:focus-visible, .package-builder select:focus-visible, .package-builder a:focus-visible { outline: 3px solid #b88938; outline-offset: 4px; }
.package-selection button:focus-visible { outline-color: #f2d890; }
#plot-card > .button + .button { margin-top: 10px; }
#plot-card #plot-contact { color: var(--green); border-color: #a3b59d; }
.package-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.package-detail-actions .button { min-height: 48px; }
.atlas-package-panel { display: flex; flex-wrap: wrap; gap: 18px 30px; justify-content: space-between; align-items: center; padding: 22px 24px; background: #e5ecda; border-bottom: 1px solid #c4d0b9; }
.atlas-package-copy { min-width: 0; flex: 1 1 320px; }
.atlas-package-copy .eyebrow { font-size: 9px; color: #4f6846; margin-bottom: 7px; }
#atlas-package-description { font-size: 13px; line-height: 1.7; margin: 0; color: #25462e; overflow-wrap: anywhere; }
#map-show-package { min-height: 46px; padding: 12px 18px; font-size: 11px; line-height: 1.6; border: 1px solid #5d7850; background: #f8faf1; color: #264b30; cursor: pointer; }
#map-show-package:disabled { opacity: .6; cursor: default; }
.atlas-package-disclaimer { font-size: 11px; line-height: 1.75; padding: 14px 24px; margin: 0; color: #56664a; background: #f2f5e9; border-top: 1px solid #d5ddc8; }
.atlas-package-copy .atlas-package-disclaimer { padding: 0; margin-top: 8px; background: transparent; border: 0; max-width: 78ch; }
.atlas-package-actions { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.atlas-package-actions a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; color: #355736; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.atlas-package-preview { padding: 30px 26px; }
.atlas-package-preview > .atlas-eyebrow { color: #647a57; font-size: 9px; margin: 0; text-transform: uppercase; }
.atlas-package-preview h3 { font-size: 28px; font-weight: 500; letter-spacing: -.045em; line-height: 1.25; margin: 17px 0 15px; }
.atlas-package-preview p:not(.atlas-eyebrow) { font-size: 12px; line-height: 1.8; color: #56674b; margin: 10px 0; }
.atlas-package-preview > button { min-height: 48px; width: 100%; padding: 14px 16px; margin-top: 15px; font-size: 11px; line-height: 1.5; color: #fffef4; background: #2d4b38; border: 1px solid #2d4b38; cursor: pointer; }
.atlas-package-preview > a { display: inline-flex; min-height: 44px; align-items: center; font-size: 11px; color: #456238; text-decoration: underline; text-underline-offset: 4px; margin-top: 8px; }
.atlas-index [data-package-selected=true] { box-shadow: 0 0 0 2px #b98632; }
.atlas-fit-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 14px 22px; border-top: 1px solid #d5ddc8; border-bottom: 1px solid #d5ddc8; background: #f8faf3; color: #294936; }
.atlas-fit-legend-items { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.atlas-fit-legend-items > span { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; line-height: 1.6; }
.atlas-fit-swatch { width: 17px; height: 14px; flex: 0 0 auto; border: 1px solid #527057; background: #8fae95; }
.atlas-fit-swatch-neutral { border-color: #858c7d; background: #c9cbc2; }
#map-fit-legend-summary { margin: 0; font-size: 12px; line-height: 1.6; font-weight: 500; }
.atlas-fit-legend-note { flex-basis: 100%; margin: 0; font-size: 11px; line-height: 1.6; color: #52604d; }
.atlas-fit-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.atlas-fit-actions button { min-height: 44px; padding: 10px 14px; border: 1px solid #7b9473; background: #fffef7; color: #294936; font: inherit; font-size: 12px; line-height: 1.5; }
.atlas-fit-actions button:hover:not(:disabled) { background: #e4ecd9; }
.atlas-fit-actions button[aria-pressed=true] { background: #294936; color: #fffef7; border-color: #294936; }
#map-fit-filter-notice { flex-basis: 100%; margin: 0; padding: 10px 12px; border-left: 3px solid #a76e23; background: #fff2dc; color: #694119; font-size: 12px; line-height: 1.6; }
.atlas-index button[data-package-fit] { position: relative; background: #edeee9; color: #52604d; }
.atlas-index button[data-package-fit=fits] { background: #dce8d7; color: #294936; border-color: #8ba082; }
.atlas-index button[data-package-fit=fits]::after { content: '✓'; position: absolute; top: 1px; right: 2px; font-size: 8px; line-height: 1; }
.atlas-index button[data-package-fit][aria-pressed=true] { background: #294936; color: #fff; }
.atlas-viewport:focus-visible { outline-offset: -3px; }
.atlas-view-switch button, .atlas-reset { min-height: 44px; }
.atlas-tools button { width: 44px; height: 44px; }
.package-pose-summary { padding: 14px 0; border-top: 1px solid #ffffff30; color: #d1ddc6; font-size: 10px; line-height: 1.8; }
.atlas-house-editor { padding: 24px 22px; border-bottom: 1px solid #d5ddc8; background: #f2f5e9; min-width: 0; }
.atlas-house-select label { display: block; font-size: 12px; font-weight: 500; color: #294c32; margin-bottom: 9px; }
.atlas-package-plot-select { margin-bottom: 18px; }
#map-package-plot-hint { margin: 8px 0 0; color: #52604d; font-size: 11px; line-height: 1.6; }
#map-package-plot-fit-summary { margin: 10px 0 0; color: #294c32; font-size: 12px; line-height: 1.6; font-weight: 500; }
.atlas-package-fit { margin: 14px 0 0; padding: 12px; border-left: 3px solid #a76e23; background: #fff2dc; color: #694119; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.atlas-package-fit[hidden] { display: none; }
#map-package-plot:focus-visible { outline: 3px solid #b88938; outline-offset: 3px; }
.atlas-house-camera { margin-top: 16px; padding: 14px 0 16px; border-bottom: 1px solid #c5d1b9; }
.atlas-house-road-front { margin: 0 0 12px; font-size: 12px; line-height: 1.75; color: #355236; }
.atlas-house-camera-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.atlas-close-view-label { margin: 16px 0 8px; color: #2b4d34; font-size: 12px; line-height: 1.5; font-weight: 600; }
.atlas-house-camera-presets button { min-width: 0; min-height: 44px; padding: 9px 7px; border: 1px solid #9daf8e; background: #fffef7; color: #2b4d34; font-size: 11px; line-height: 1.5; cursor: pointer; }
.atlas-orbit-speed-label { margin: 14px 0 7px; color: #355236; font-size: 11px; line-height: 1.5; }
.atlas-orbit-speeds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.atlas-orbit-actions { margin-top: 8px; }
.atlas-orbit-resume[hidden] { display: none; }
.atlas-orbit-actions .atlas-orbit-resume { background: #2d4b38; color: #fffef5; border-color: #2d4b38; }
.atlas-orbit-button { grid-column: 1 / -1; }
.atlas-orbit-hint { margin: 8px 0 0; color: #52604d; font-size: 11px; line-height: 1.6; }
.atlas-catalog-reference { margin: 16px 0 0; }
.atlas-catalog-reference a { display: block; color: #254a38; text-decoration: none; }
.atlas-catalog-reference img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.atlas-catalog-reference span { display: block; padding: 7px 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.atlas-catalog-reference figcaption { font-size: 11px; line-height: 1.6; color: #52604d; }
.atlas-catalog-reference a:focus-visible { outline: 3px solid #b88938; outline-offset: 3px; }
.atlas-house-camera-presets [aria-pressed=true] { background: #2d4b38; color: #fffef5; border-color: #2d4b38; }
.atlas-house-camera-presets button:disabled { opacity: .55; cursor: default; }
.atlas-house-camera-presets button:focus-visible, #map-package-bath:focus-visible { outline: 3px solid #b88938; outline-offset: 3px; }
.atlas-bath-editor { margin-top: 18px; padding-bottom: 16px; border-bottom: 1px solid #c5d1b9; min-width: 0; }
.atlas-bath-editor label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 500; color: #294c32; }
#map-package-bath { width: 100%; min-width: 0; min-height: 50px; padding: 10px 28px 10px 10px; border: 1px solid #9eaf8d; border-radius: 0; background: #fffef9; color: #24402c; font: inherit; font-size: 16px; }
.atlas-bath-summary { margin: 12px 0 0; font-size: 12px; line-height: 1.8; color: #355235; overflow-wrap: anywhere; }
.atlas-bath-note { margin: 9px 0 0; font-size: 11px; line-height: 1.8; color: #5c6b50; }
#map-bath-source { display: inline-flex; align-items: center; min-height: 44px; margin-top: 5px; font-size: 11px; line-height: 1.6; color: #355c3e; text-decoration: underline; text-underline-offset: 3px; }
#map-bath-source[hidden], .atlas-bath-editor[hidden], .atlas-house-camera[hidden], .package-bath-summary[hidden] { display: none; }
.package-bath-summary small { overflow-wrap: anywhere; }
#map-package-project, #map-package-plot { width: 100%; min-width: 0; min-height: 50px; padding: 10px 28px 10px 10px; color: #24402c; border: 1px solid #9eaf8d; border-radius: 0; background: #fffef9; font: inherit; font-size: 16px; }
.atlas-house-edit-tools { margin-top: 14px; }
.atlas-house-guide-badge { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 8px; border: 1px solid #a28b4e; background: #fffef1; color: #294c32; font-size: 11px; line-height: 1.45; font-weight: 500; white-space: nowrap; }
.atlas-house-guide-badge[hidden] { display: none; }
.atlas-viewport[data-house-guides=true] .atlas-live { display: none; }
.atlas-viewport .atlas-topline { z-index: 4; }
.atlas-house-drag-hint { margin: 0 0 12px; color: #294c32; font-size: 12px; font-weight: 500; line-height: 1.7; }
.atlas-house-position-controls { min-width: 0; padding: 0; margin: 0; border: 0; }
.atlas-house-position-controls legend { width: 100%; padding: 0; font-size: 11px; line-height: 1.6; margin-bottom: 10px; color: #53684b; }
.atlas-house-nudge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: '. north .' 'west . east' '. south .'; gap: 5px; }
.atlas-house-nudge [data-house-shift=north] { grid-area: north; }
.atlas-house-nudge [data-house-shift=south] { grid-area: south; }
.atlas-house-nudge [data-house-shift=west] { grid-area: west; }
.atlas-house-nudge [data-house-shift=east] { grid-area: east; }
.atlas-house-position-controls button { min-width: 0; min-height: 44px; padding: 7px 4px; color: #2c4d30; background: #fffef9; border: 1px solid #c2ceb6; font-size: 10px; line-height: 1.5; }
.atlas-house-position-controls button:hover:not(:disabled) { border-color: #55784a; background: #e8eedc; }
#map-house-reset { display: block; width: 100%; margin-top: 12px; font-size: 11px; }
.atlas-house-pose { margin: 18px 0 0; padding-left: 12px; border-left: 2px solid #bb9953; color: #415a38; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.atlas-house-editor-note { margin: 12px 0 0; font-size: 10px; line-height: 1.8; color: #607052; }
.atlas-house-recommendations { margin-top: 18px; padding-top: 16px; border-top: 1px solid #c4d0b9; }
.atlas-house-recommendations p { font-size: 12px; line-height: 1.75; color: #52613e; margin: 0 0 10px; }
.atlas-house-recommendations button { display: block; width: 100%; min-height: 46px; padding: 10px; margin-top: 7px; text-align: left; color: #344f2c; background: #fffef7; border: 1px solid #a6b793; font-size: 12px; line-height: 1.7; }
.atlas-house-editor select:focus-visible { outline: 2px solid #527d54; outline-offset: 3px; }
.atlas-sidebar:has(.atlas-house-editor:not([hidden])) .atlas-package-preview { padding-top: 18px; padding-bottom: 18px; }
.atlas-sidebar:has(.atlas-house-editor:not([hidden])) .atlas-package-preview > .atlas-eyebrow,
.atlas-sidebar:has(.atlas-house-editor:not([hidden])) .atlas-package-preview h3,
.atlas-sidebar:has(.atlas-house-editor:not([hidden])) .atlas-package-dimensions,
.atlas-sidebar:has(.atlas-house-editor:not([hidden])) .atlas-package-preview-note { display: none; }
.atlas-viewport { position: sticky; top: 82px; align-self: start; height: min(900px, calc(100dvh - 112px)); }
#map .map-board { overflow: clip; }
.atlas-measurement-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.atlas-measurement-leaders { position: absolute; inset: 0; display: block; overflow: visible; }
.atlas-measurement-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); padding: 5px 7px; border: 1px solid #66809a; background: #fffef5; color: #24445c; box-shadow: 0 2px 7px #203a2526; font-size: 12px; font-weight: 500; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.atlas-measurement-label[data-measure=width], .atlas-measurement-label[data-measure=depth] { background: #294c36; color: #fffef5; border-color: #294c36; }
.atlas-measurement-label[hidden], .atlas-measurement-labels[hidden] { display: none; }
.atlas-measurements { margin-top: 14px; }
#map-house-measurements { width: 100%; min-height: 44px; padding: 10px 12px; text-align: left; border: 1px solid #9eaf8d; background: #fffef9; color: #294c32; font-size: 12px; line-height: 1.5; cursor: pointer; }
#map-house-measurements[aria-pressed=true] { background: #e0e9d4; border-color: #6d895c; }
#map-house-measurements[aria-pressed=true]::before { content: '✓ '; }
#map-house-measurements:disabled { opacity: .6; cursor: default; }
#map-house-measurements-summary { margin: 10px 0 0; font-size: 12px; line-height: 1.85; color: #355235; font-variant-numeric: tabular-nums; }
.atlas-measurements-note { margin: 7px 0 0; font-size: 11px; line-height: 1.7; color: #52634a; }
.atlas-measurements button:focus-visible { outline: 3px solid #b88938; outline-offset: 3px; }
@media (max-width: 1000px) {
  .atlas-workspace { display: block; }
  .atlas-viewport { top: 70px; z-index: 2; height: 320px; }
  .atlas-house-editor { padding: 20px; }
  .atlas-viewport[data-house-guides=true] .atlas-edition { display: none; }
  .atlas-house-editor button, .atlas-house-editor select { scroll-margin-top: 402px; }
  .atlas-house-nudge { max-width: 340px; margin-left: auto; margin-right: auto; }
  .atlas-measurement-label { padding: 4px 5px; font-size: 11px; }
}
@media (max-width: 1200px) {
  .package-builder-layout { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 24px; }
  .package-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .package-project-preview { grid-template-columns: 1fr; }
  .package-preview-image { max-height: 260px; min-height: 0; aspect-ratio: 1.8; }
  .package-preview-copy { padding: 20px; }
  .package-selection { padding: 26px; }
}
@media (max-width: 800px) {
  .package-builder-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 32px; }
  .package-builder-heading > p { max-width: 62ch; font-size: 13px; }
  .package-builder-layout { grid-template-columns: 1fr; gap: 28px; }
  .package-projects { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .package-project-preview { grid-template-columns: 1.3fr 1fr; }
  .package-preview-image { max-height: none; height: 100%; aspect-ratio: 1.4; }
  .package-selection { position: static; }
  .package-plot-row { grid-template-columns: 1fr auto; }
  .atlas-package-panel { padding: 18px; gap: 12px; }
  .atlas-package-copy { flex-basis: 100%; }
  #map-show-package { min-height: 46px; }
  .atlas-package-disclaimer { padding: 14px 18px; }
}
@media (max-width: 520px) {
  .package-builder { scroll-margin-top: 0; }
  .package-builder .eyebrow { font-size: 9px; }
  .package-builder h2 { font-size: 36px; }
  .package-step legend { font-size: 18px; gap: 10px; }
  .package-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .package-project-option > span { padding: 10px; }
  .package-project-option { min-height: 70px; }
  .package-project-option img { display: none; }
  .package-project-option b { font-size: 12px; }
  .package-project-option small { font-size: 10px; }
  .package-project-option:last-child { grid-column: auto; }
  .package-project-preview { grid-template-columns: 1fr; }
  .package-preview-image { height: auto; aspect-ratio: 1.5; }
  .package-preview-copy h4 { font-size: 26px; }
  .package-project-preview > .package-empty { padding: 28px 20px; }
  .package-plot-row { grid-template-columns: 1fr; gap: 7px; }
  .package-map-link { width: fit-content; min-height: 44px; }
  .package-selection { padding: 25px 20px; }
  .package-selection h3 { font-size: 26px; }
  #package-summary { margin-top: 20px; }
  .package-summary-item { padding-top: 14px; padding-bottom: 14px; }
  .package-estimate { padding-top: 18px; padding-bottom: 18px; }
  .package-summary-item { grid-template-columns: 42px minmax(0, 1fr) 44px; gap: 7px; }
  #package-submit { font-size: 10px; }
}

/* Object selection is explicit; controls move only the pressed object. */
.atlas-package-object-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.atlas-package-object-switch button { min-width: 0; min-height: 48px; padding: 12px 8px; border: 1px solid #9daf8e; background: #fffef7; color: #2b4d34; font: inherit; font-size: 13px; line-height: 1.5; cursor: pointer; }
.atlas-package-object-switch button[aria-pressed=true] { border-color: #2d4b38; background: #2d4b38; color: #fffef5; box-shadow: inset 0 -3px #d6b770; }
.atlas-package-object-switch button[aria-pressed=true]::before { content: '✓ '; }
.atlas-package-object-switch button:disabled { opacity: .5; cursor: default; }
.atlas-package-object-switch button:focus-visible { outline: 3px solid #b88938; outline-offset: 3px; }
#map-selected-object-status { margin: 10px 0 0; color: #355236; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.atlas-package-object-switch[hidden], #map-selected-object-status[hidden] { display: none; }

/* The inter-building ruler belongs to the selected object and stays distinct. */
.atlas-measurement-label[data-measure=between] { border-color: #906124; background: #fbefd5; color: #573b18; font-weight: 600; }
.atlas-measurements-summary { overflow-wrap: anywhere; }
.atlas-measurements-note { max-width: 55ch; }
