/* Y360 Listings: component styles. Colours/type come from the theme's custom properties, with fallbacks. */
.y360-grid,.y360-single,.y360-archive,.y360-gone{--_navy:var(--mm-navy,#0E203A);--_ivory:var(--mm-ivory,#F7F3EC);--_white:var(--mm-white,#FFFDF9);--_teak:var(--mm-teak,#8A5A3B);--_steel:var(--mm-steel,#9AA3AD);--_brass:var(--mm-brass,#B08D57);--_ink:var(--mm-ink,#1C2330);--_muted:var(--mm-muted,#545D69);--_serif:var(--mm-serif,Georgia,"Times New Roman",serif)}
.y360-archive,.y360-single,.y360-gone{max-width:var(--mm-wide,1280px);margin:0 auto;padding:clamp(1.5rem,4vw,3rem) var(--mm-gutter,1.25rem)}
.y360-grid{display:grid;gap:2rem 1.5rem;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));margin:1.5rem 0}
.y360-card{display:flex;flex-direction:column;background:var(--_white);border:1px solid rgba(14,32,58,.1)}
.y360-card__media{position:relative;display:block;aspect-ratio:3/2;overflow:hidden;background:var(--_ivory)}
.y360-img{display:block;width:100%;height:100%;object-fit:cover}
.y360-img-missing{background:var(--_ivory);width:100%}
.y360-card__body{padding:1.1rem 1.25rem 1.35rem;display:flex;flex-direction:column;gap:.3rem;flex:1}
.y360-card__title{font-family:var(--_serif);font-weight:600;font-size:1.45rem;line-height:1.2;margin:0}
.y360-card__title a{color:var(--_navy);text-decoration:none}
.y360-card__title a:hover,.y360-card__title a:focus-visible{text-decoration:underline;text-underline-offset:.2em}
.y360-card__name{margin:0;font-style:italic;color:var(--_muted)}
.y360-card__facts{margin:0;color:var(--_muted);font-size:.95rem}
.y360-card__price{margin:.35rem 0 0;font-weight:600;color:var(--_ink)}
.y360-card__links{margin:auto 0 0;padding-top:.75rem;display:flex;flex-wrap:wrap;gap:.25rem 1.25rem;font-size:.92rem}
.y360-card__links a{color:var(--_teak);text-underline-offset:.2em}
.y360-badge{position:absolute;top:.75rem;left:.75rem;background:var(--_navy);color:var(--_ivory);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;padding:.3rem .6rem}
.y360-more{margin:0 0 2rem}
.y360-more a{color:var(--_teak)}
.y360-empty{padding:2rem;background:var(--_ivory);max-width:68ch}
.y360-empty a{color:var(--_teak)}
/* Sold strip */
.y360-sold{list-style:none;margin:1.5rem 0;padding:0;display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}
.y360-sold__item{display:flex;flex-direction:column;gap:.2rem}
.y360-sold__item .y360-img{aspect-ratio:3/2;height:auto;margin-bottom:.5rem}
.y360-sold__title{font-family:var(--_serif);font-size:1.2rem;color:var(--_navy)}
.y360-sold__meta{font-size:.85rem;color:var(--_muted);letter-spacing:.04em}
/* Buttons (theme may restyle) */
.y360-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.75rem 1.4rem;font:inherit;font-weight:500;text-decoration:none;border:1px solid var(--_navy);cursor:pointer;line-height:1.2}
.y360-btn--primary{background:var(--_brass);border-color:var(--_brass);color:var(--_navy)}
.y360-btn--primary:hover{background:#9d7b47;border-color:#9d7b47}
.y360-btn--quiet{background:transparent;color:var(--_navy)}
.y360-btn--quiet:hover{background:var(--_navy);color:var(--_ivory)}
.y360-btn:focus-visible,.y360-card a:focus-visible,.y360-filters :focus-visible,.y360-quick a:focus-visible,.y360-gallery__link:focus-visible{outline:3px solid var(--_teak);outline-offset:3px}
/* Archive */
.y360-archive__head{max-width:68ch;margin-bottom:1.5rem}
.y360-quick{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.25rem}
.y360-quick a{padding:.55rem 1rem;border:1px solid rgba(14,32,58,.25);color:var(--_navy);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.y360-quick a[aria-current]{background:var(--_navy);color:var(--_ivory);border-color:var(--_navy)}
.y360-filters{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));padding:1.25rem;background:var(--_ivory);align-items:end}
.y360-field{display:flex;flex-direction:column;gap:.35rem}
.y360-field label,.y360-field__legend{font-size:.85rem;font-weight:500;color:var(--_ink)}
.y360-field--pair{display:grid;grid-template-columns:1fr 1fr;gap:.35rem}
.y360-field--pair .y360-field__legend{grid-column:1/-1}
.y360-filters select{min-height:44px;padding:.4rem .5rem;border:1px solid var(--_steel);background:var(--_white);font:inherit;font-size:.95rem;color:var(--_ink);width:100%}
.y360-field--actions{flex-direction:row;align-items:center;gap:1rem}
.y360-field--actions a{color:var(--_teak)}
.y360-count{margin:1.25rem 0 0;color:var(--_muted)}
.y360-pages ul{list-style:none;display:flex;flex-wrap:wrap;gap:.35rem;padding:0;margin:2rem 0}
.y360-pages a,.y360-pages span{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;padding:0 .75rem;border:1px solid rgba(14,32,58,.2);color:var(--_navy);text-decoration:none}
.y360-pages [aria-current]{background:var(--_navy);color:var(--_ivory)}
/* Single */
.y360-crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.25rem .5rem;padding:0;margin:0 0 1.25rem;font-size:.88rem;color:var(--_muted)}
.y360-crumbs li+li::before{content:"/";margin-right:.5rem;color:var(--_steel)}
.y360-crumbs a{color:var(--_muted)}
.y360-single__head{display:grid;gap:1rem 2rem;grid-template-columns:1fr;margin-bottom:1.5rem}
@media (min-width:900px){.y360-single__head{grid-template-columns:1fr auto;align-items:end}}
.y360-single__title{font-family:var(--_serif);font-weight:600;font-size:clamp(2.1rem,4.5vw,3.4rem);line-height:1.05;margin:0;color:var(--_navy)}
.y360-single__name{margin:.35rem 0 0;font-style:italic;font-size:1.15rem;color:var(--_muted)}
.y360-single__facts{margin:.35rem 0 0;color:var(--_muted)}
.y360-single__price{font-family:var(--_serif);font-size:2rem;margin:0;color:var(--_navy)}
.y360-single__price-note{font-size:.85rem;color:var(--_muted);max-width:40ch;margin:.25rem 0 0}
.y360-single__ctas{display:flex;flex-wrap:wrap;gap:.75rem;margin:1rem 0 0}
.y360-gallery__grid{list-style:none;padding:0;margin:0 0 2.5rem;display:grid;gap:.5rem;grid-template-columns:repeat(2,1fr)}
@media (min-width:700px){.y360-gallery__grid{grid-template-columns:repeat(4,1fr)}}
.y360-gallery__grid li{aspect-ratio:3/2;overflow:hidden;background:var(--_ivory)}
.y360-gallery__grid li.is-lead{grid-column:1/-1}
@media (min-width:1100px){.y360-gallery__grid{grid-template-columns:repeat(6,1fr)}.y360-gallery__grid li.is-lead{grid-column:1/5;grid-row:span 3;aspect-ratio:auto}}
.y360-gallery__link{display:block;width:100%;height:100%}
.y360-single__body{display:grid;gap:2.5rem;grid-template-columns:1fr}
@media (min-width:1000px){.y360-single__body{grid-template-columns:minmax(0,1fr) 360px}.y360-single__aside{position:sticky;top:6rem;align-self:start;max-height:calc(100vh - 7rem);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}}
.y360-single__main{max-width:72ch}
.y360-single__main h2,.y360-single__aside h2,.y360-similar h2{font-family:var(--_serif);font-weight:600;font-size:1.9rem;color:var(--_navy);margin:0 0 .75rem}
.y360-take,.y360-specs,.y360-builder{margin-bottom:2.5rem}
.y360-prose{line-height:1.65}
.y360-prose h4{font-size:1rem;margin:1.5rem 0 .5rem}
.y360-specs table{width:100%;border-collapse:collapse;font-size:.97rem}
.y360-specs th,.y360-specs td{text-align:left;padding:.6rem .5rem;border-bottom:1px solid rgba(14,32,58,.12);vertical-align:top}
.y360-specs th{width:38%;font-weight:500;color:var(--_muted)}
.y360-section,.y360-more-text{border-top:1px solid rgba(14,32,58,.12);padding:1rem 0}
.y360-section summary,.y360-more-text summary{cursor:pointer;font-weight:500;color:var(--_navy);min-height:44px;display:flex;align-items:center}
.y360-section.is-disclaimer{font-size:.88rem;color:var(--_muted)}
.y360-cobroke{font-size:.9rem;color:var(--_muted)}
.y360-video a{color:var(--_teak)}
.y360-single__aside{background:var(--_ivory);padding:1.5rem}
.y360-single__aside:focus{outline:none}
.y360-form{min-height:var(--y360-form-min,520px)}
.y360-form__fallback{margin:0}
.y360-similar{margin-top:3.5rem}
/* Lightbox */
.y360-lightbox{border:0;padding:0;max-width:min(96vw,1600px);width:100%;background:#0b1626;color:var(--_ivory)}
.y360-lightbox::backdrop{background:rgba(8,16,28,.92)}
.y360-lightbox img{display:block;width:100%;height:auto;max-height:82vh;object-fit:contain}
.y360-lightbox button{font:inherit;min-height:44px;padding:.5rem 1rem;background:transparent;color:var(--_ivory);border:1px solid rgba(247,243,236,.5);margin:.75rem .25rem;cursor:pointer}
.y360-lightbox button:focus-visible{outline:3px solid var(--_brass);outline-offset:2px}
.y360-lightbox__count{display:inline-block;margin:.75rem 1rem}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
@media (prefers-reduced-motion:reduce){.y360-grid *,.y360-single *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.y360-refine{margin:0 0 1.5rem}
.y360-refine__toggle{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:.75rem 1rem;border:1px solid var(--mm-navy,#0E203A);color:var(--mm-navy,#0E203A);font-weight:500;cursor:pointer;list-style:none}
.y360-refine__toggle::-webkit-details-marker{display:none}
.y360-refine__toggle::after{content:"+";font-size:1.3rem;line-height:1}
.y360-refine[open] .y360-refine__toggle::after{content:"\2212"}
.y360-refine[open] .y360-filters{margin-top:.75rem}
@media (min-width:900px){.y360-refine__toggle{display:none}.y360-refine[open] .y360-filters{margin-top:0}}
