/* ==========================================================================
   ARCHI VOGUE — catalogue, plan detail, Plan Finder, compare & search additions
   (complements app.css; only page-specific pieces live here)
   ========================================================================== */

/* ---------- Listing ---------- */
.catalog-hero .filter-pills a { background: transparent; }
.filter-form fieldset.filter-group { margin: 0; min-width: 0; }
.filter-form legend.fg-title { float: none; margin-bottom: 0; }
.filter-form .form-check-label { font-size: .9rem; }
.filter-form .chip label { min-width: 44px; min-height: 40px; padding: .4rem .8rem; font-size: .82rem; }
.filter-head { padding-bottom: .5rem; }
.filter-head a { color: var(--av-grey); text-decoration: none; }
.filter-head a:hover { color: var(--av-ink); text-decoration: underline; }
.filter-actions { border-top: 1px solid var(--av-line); padding-top: 1.25rem; }
.filter-actions:empty { display: none; }
.filter-canvas .filter-actions { position: sticky; bottom: -1.5rem; background: var(--av-ivory); padding-bottom: 1.5rem; }
.mobile-filter-bar .btn-av-outline { gap: .5rem; }
.mobile-filter-bar .form-select { min-height: 48px; font-size: .85rem; }
.active-filters a { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border: 1px solid var(--av-line); background: var(--av-paper); font-size: .78rem; text-decoration: none; transition: border-color .2s; }
.active-filters a:hover, .active-filters a:focus-visible { border-color: var(--av-ink); }
.active-filters a.clear-all { border-color: transparent; background: none; text-decoration: underline; color: var(--av-grey); }
.catalog-main { min-width: 0; }
.results-wrap .skeleton-card { min-width: 0; }

.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--av-line); }
.link-list li a { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--av-line); text-decoration: none; font-size: .95rem; }
.link-list li a .arrow { transition: transform .3s var(--av-ease); }
.link-list li a:hover .arrow { transform: translateX(5px); }

/* ---------- Styles index ---------- */
.style-list { display: grid; gap: clamp(48px, 7vw, 110px); }
.style-row { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.style-row:nth-child(even) .media-frame { order: 2; }
.style-row h2 a { text-decoration: none; }
@media (max-width: 991.98px) { .style-row { grid-template-columns: 1fr; } .style-row:nth-child(even) .media-frame { order: 0; } }

/* ---------- Plot sizes index ---------- */
.plot-size-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem clamp(28px, 5vw, 80px); padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--av-line); }
.plot-size-row h2 a { text-decoration: none; }
@media (max-width: 767.98px) { .plot-size-row { grid-template-columns: 1fr; } }
.dim-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--av-line); border-left: 1px solid var(--av-line); }
.dim-list li { flex: 0 0 170px; border-right: 1px solid var(--av-line); border-bottom: 1px solid var(--av-line); }
.dim-list a { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem; background: var(--av-ivory); text-decoration: none; transition: background .2s; height: 100%; }
.dim-list a:hover { background: var(--av-paper); }
.dim-list .dim { font-family: var(--av-font-display); font-size: 1.6rem; line-height: 1; }
.dim-list .dim small { font-family: var(--av-font-sans); font-size: .7rem; color: var(--av-grey); }
.dim-list .n { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--av-grey); }

/* ---------- Plan detail ---------- */
.product-top { padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 6vw, 80px); }
.product-gallery { min-width: 0; }
.gallery-main figure { margin: 0; }
.gallery-main:focus-visible { outline: 2px solid var(--av-rose-deep); outline-offset: 3px; }
.gallery-main .g-expand { position: absolute; right: 1rem; top: 1rem; z-index: 2; width: 42px; height: 42px; border: 0; background: rgba(248,246,242,.92); display: inline-flex; align-items: center; justify-content: center; }
.gallery-main img { user-select: none; -webkit-user-drag: none; }
.gallery-thumbs button.is-drawing img { object-fit: contain; background: #fff; }
.gallery-note { margin: .9rem 0 0; font-size: .78rem; color: var(--av-grey); display: flex; gap: .5rem; align-items: flex-start; }
.gallery-note i { color: var(--av-rose-deep); }
.purchase-panel { min-width: 0; }
.package-options { border: 0; padding: 0; margin: 1.5rem 0 0; }
.package-options legend { font-size: .7rem; margin-bottom: .75rem; float: none; }
.package-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .8rem .9rem; border: 1px solid var(--av-line); background: var(--av-paper); cursor: pointer; transition: border-color .2s, box-shadow .2s; margin-bottom: -1px; position: relative; }
.package-option .form-check-input { margin: 0; }
.package-option:has(input:checked) { border-color: var(--av-ink); box-shadow: inset 0 0 0 1px var(--av-ink); z-index: 1; }
.package-option .po-name { font-size: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.package-option .po-price { font-size: .9rem; white-space: nowrap; }
.purchase-panel .price-display { margin: 1.25rem 0 1rem; flex-wrap: wrap; }
.purchase-panel .cta-row > .btn-av-outline { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.purchase-panel .btn-av-outline.is-active { background: var(--av-ink); color: var(--av-ivory); }
.policy-note { font-size: .78rem; color: var(--av-grey); margin: .75rem 0 0; padding-top: .9rem; border-top: 1px solid var(--av-line); }
.spec-grid dd a { text-decoration: none; border-bottom: 1px solid var(--av-line); }
.spec-grid dd a:hover { border-color: var(--av-ink); }
.package-card:focus-visible { outline: 2px solid var(--av-rose-deep); outline-offset: -4px; }
.package-card .pk-quote { font-size: 1.6rem; }
.package-card.is-quote { cursor: default; }
.package-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.include-list.single { columns: 1; }
.customize-block .endorse-line { font-size: .8rem; letter-spacing: .08em; color: var(--av-grey); margin-top: 1.25rem; }
.lightbox img.is-drawing { background: #fff; }
.lightbox .lb-prev, .lightbox .lb-next { transform: translateY(-50%); }
.lightbox button:focus-visible { outline: 2px solid var(--av-rose); outline-offset: 2px; }
.sticky-buy .btn-av-sm { white-space: nowrap; }

/* ---------- Plan Finder ---------- */
.wizard:not(.is-enhanced) .wizard-step { display: block; margin-bottom: 3rem; }
.wizard:not(.is-enhanced) .wizard-progress, .wizard:not(.is-enhanced) [data-wizard-back], .wizard:not(.is-enhanced) [data-wizard-next] { display: none; }
.wizard.is-enhanced .wizard-submit-nojs { display: none; }
.wizard-step legend { float: none; }
.wizard-step fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard-meta { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--av-grey); margin-bottom: 1rem; }
.wizard-hint { color: var(--av-grey); margin-bottom: 2rem; }
.dims-inputs { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 1rem; align-items: end; max-width: 640px; }
.dims-inputs .x { font-family: var(--av-font-display); font-size: 2rem; padding-bottom: .4rem; }
.dims-inputs .form-control { min-height: 56px; font-size: 1.25rem; }
@media (max-width: 575.98px) { .dims-inputs { grid-template-columns: 1fr auto 1fr; } .dims-inputs .unit-wrap { grid-column: 1 / -1; } }
.wizard-error { color: var(--av-danger); font-size: .88rem; margin-top: 1rem; min-height: 1.3em; }
.finder-results { margin-top: clamp(2.5rem, 5vw, 4rem); }
.finder-results:empty { display: none; }
.match-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .9rem; }
.match-score small { font-family: var(--av-font-sans); font-size: .7rem; color: var(--av-grey); }
.finder-summary { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.finder-summary li { padding: .3rem .7rem; border: 1px solid var(--av-line); font-size: .78rem; background: var(--av-paper); }

/* ---------- Compare ---------- */
.compare-table thead td { vertical-align: bottom; }
.compare-table .cmp-media { display: block; aspect-ratio: 4 / 3; background: var(--av-stone); overflow: hidden; margin-bottom: .75rem; }
.compare-table .cmp-media img { width: 100%; height: 100%; object-fit: cover; }
.compare-table .cmp-name { font-family: var(--av-font-display); font-size: 1.35rem; line-height: 1.15; display: block; text-decoration: none; }
.compare-table td ul { list-style: none; padding: 0; margin: 0; }
.compare-table td ul li { padding: .15rem 0; }
.compare-table .cmp-remove { background: none; border: 0; padding: 0; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--av-grey); text-decoration: underline; }
.compare-table .cmp-remove:hover { color: var(--av-ink); }
.compare-table tbody tr:hover td, .compare-table tbody tr:hover th { background: var(--av-paper); }

/* ---------- Search ---------- */
.search-page-form { display: flex; gap: .75rem; max-width: 760px; margin-top: 2rem; }
.search-page-form .form-control { min-height: 56px; font-size: 1.1rem; }
.result-section + .result-section { margin-top: clamp(3rem, 6vw, 5rem); }
.result-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--av-line); }
.result-list li a { display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--av-line); text-decoration: none; }
.result-list li a strong { font-family: var(--av-font-display); font-size: 1.4rem; font-weight: 500; display: block; }
.result-list li a span { font-size: .85rem; color: var(--av-grey); }
.choice-cards.compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choice-cards.compact label .big { font-size: 1.3rem; line-height: 1.2; }
@media (min-width: 1200px) { .plot-grid.plot-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.plot-grid.plot-grid-5 { background: var(--av-ivory); }
.plot-grid.plot-grid-5 .plot-card { box-shadow: 1px 1px 0 var(--av-line); }

/* "Illustrative image" honesty label on stock feature photos of sample plans (is_dummy = 1) */
.gallery-main .g-illustrative { position: absolute; left: 1rem; top: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .34rem .62rem; font-size: .6rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2; color: var(--av-ink); background: rgba(248,246,242,.9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); cursor: help; }
.gallery-main .g-illustrative i { font-size: .72rem; color: var(--av-rose-deep); }
@media (max-width: 575.98px) { .gallery-main .g-illustrative { left: .6rem; top: .6rem; font-size: .55rem; letter-spacing: .12em; } }
