/* Models: search "By model" view, model pages, park selector, calculator summary, phone action bar (JOB A). Phone first. */

/* View switch */
.lview { display: inline-flex; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); grid-column: 1 / -1; justify-self: start; }
.lview__opt { position: relative; }
.lview__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.lview__opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.lview__opt input:checked + span { background: var(--ink); color: var(--on-dark); }
.lview__opt input:focus-visible + span { outline: 3px solid var(--sand); outline-offset: 2px; }
.lsearch:not(.is-view-home) .lgrid, .lsearch:not(.is-view-home) .lmore { display: none; }
.lsearch:not(.is-view-model) .mgrid { display: none; }
.lsearch:not(.is-view-park) .pgroups, .lsearch:not(.is-view-park) .pchips { display: none; }

/* Model cards */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min, 290px)), 1fr)); gap: var(--space-m, 1.25rem); }
.mcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.mcard[hidden] { display: none; }
.mcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mcard__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.mcard__link:focus-visible { outline: 3px solid var(--sand); outline-offset: -3px; }
.mcard__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist-2); }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.mcard:hover .mcard__media img { transform: scale(1.04); }
.mcard__type { position: absolute; left: .6rem; top: .6rem; padding: .2rem .65rem; border-radius: 999px; background: rgba(251, 252, 251, .94); font-size: .8rem; font-weight: 600; }
.mcard__body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.mcard__make { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mcard__title { margin: 0; font-family: var(--serif); font-size: 1.7rem; line-height: 1.05; font-weight: 600; }
.mcard__facts { font-size: .95rem; color: var(--muted); }
.mcard__where { display: flex; align-items: center; gap: .45rem; margin-top: .35rem; font-size: .95rem; font-weight: 500; }
.mcard__dot { width: .6rem; height: .6rem; border-radius: 50%; border: 2px solid var(--marsh); flex: none; }
.mcard__dot--on { background: #1d6640; border-color: #1d6640; }
.mcard__price { margin-top: auto; padding-top: .5rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }

/* Alerts: one compact button that opens */
.lalerts { width: 100%; }
.lalerts__btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border: 1px solid var(--marsh); border-radius: 999px; color: var(--marsh); font-weight: 600; cursor: pointer; list-style: none; background: var(--surface); }
.lalerts__btn::-webkit-details-marker { display: none; }
.lalerts__btn::before { content: ""; width: .9rem; height: .9rem; border: 2px solid currentColor; border-radius: 3px 3px 6px 6px; }
.lalerts[open] .lalerts__btn { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.lalerts[open] > #cgl-alerts-signup { margin-top: .75rem; }
.lalerts__btn:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }

/* Filters button for thumbs (phones) */
.lfab { display: none; }
@media (max-width: 899px) {
	.lfab { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 950; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: 0 1.4rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-dark); font: inherit; font-weight: 700; font-size: 1rem; box-shadow: 0 10px 28px -8px rgba(16, 48, 44, .6); cursor: pointer; white-space: nowrap; }
	.lfab__ico { width: 18px; height: 14px; background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 6px / 70% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 12px / 40% 2px no-repeat; }
	.lfab__n { font-weight: 500; opacity: .85; }
	.lfab__n:empty { display: none; }
	.lsearch.is-sheet-open .lfab { display: none; }
	.lsearch { padding-bottom: 90px; }
	.lfilters__foot { position: sticky; bottom: 0; background: var(--mist, #eef3f1); margin: 0 -1rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
	.lfilters__foot .btn { min-height: 48px; }
	#lf-show { flex: 1; }
	.chip span, .lchip { min-height: 44px; }
	.lsearch__sort { grid-column: auto; justify-self: stretch; }
	.lsearch__bar { grid-template-columns: 1fr auto; }
	.lview { grid-column: 1 / -1; width: 100%; }
	.lview__opt { flex: 1; }
	.lview__opt span { justify-content: center; width: 100%; }
}

/* Model page: price box */
.mprice__park { margin: 0; font-size: .9rem; font-weight: 600; color: var(--marsh); }

/* Park selector */
.mparks h2 { margin: 0 0 .4rem; font-size: clamp(1.7rem, 3vw, 2.1rem); }
.mparks__intro { margin: 0 0 1rem; color: var(--muted); }
.mparks__list { display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .1rem .9rem; margin: 0 calc(-1 * var(--gutter, 16px)); padding-inline: var(--gutter, 16px); scrollbar-width: thin; overscroll-behavior-x: contain; }
.mpark { flex: 0 0 min(72%, 260px); scroll-snap-align: start; display: grid; gap: .15rem; text-align: left; min-height: 120px; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.mpark:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.mpark[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.mpark__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.mpark__area { font-size: .85rem; color: var(--muted); }
.mpark__status { justify-self: start; margin-top: .35rem; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--mist-2); }
.mpark--available .mpark__status { background: #1d6640; color: #fff; }
.mpark--order .mpark__status { background: var(--sand); color: var(--ink); }
.mpark--none { background: var(--mist); }
.mpark--none .mpark__status { background: transparent; border: 1px dashed var(--muted); color: var(--muted); }
.mpark__price { font-weight: 700; font-size: 1rem; }
.mpanel { margin-top: .5rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.mpanel[hidden] { display: none; }
.mpanel__title { margin: 0 0 .6rem; font-size: 1.25rem; }
.mpanel__homes { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.mpanel__homes a { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; align-items: center; min-height: 56px; padding: .7rem .9rem; border-radius: 10px; background: var(--mist); color: var(--ink); text-decoration: none; }
.mpanel__homes a:hover, .mpanel__homes a:focus-visible { background: var(--sand-soft); }
.mpanel__h { font-weight: 700; }
.mpanel__m { grid-column: 1; font-size: .85rem; color: var(--muted); }
.mpanel__p { grid-column: 2; grid-row: 1 / span 2; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.mpanel__small { font-size: .9rem; color: var(--muted); }
@media (min-width: 900px) {
	.mparks__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; margin: 0; padding: .25rem 0 .9rem; }
	.mpark { min-height: 132px; }
}

/* Calculator folded into a summary */
.mcalc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mcalc__sum { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .1rem 1rem; min-height: 64px; padding: .9rem 1.1rem; cursor: pointer; list-style: none; }
.mcalc__sum::-webkit-details-marker { display: none; }
.mcalc__sum::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; justify-self: end; margin-right: 6px; }
.mcalc[open] .mcalc__sum::after { transform: rotate(-135deg); }
.mcalc__sum:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.mcalc__label { font-size: .85rem; font-weight: 600; color: var(--muted); grid-column: 1; }
.mcalc__val { grid-column: 1; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.mcalc__hint { grid-column: 1; font-size: .85rem; color: var(--muted); }
.mcalc > #cgl-calculator { padding: 0 .5rem .5rem; }
.cglc-parkfees { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; background: var(--mist); }
.cglc-parkfees__title { margin: 0 0 .4rem; font-weight: 700; font-size: .95rem; }
.cglc-parkfees__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; font-size: .92rem; }
.cglc-parkfees__list li { display: flex; justify-content: space-between; gap: 1rem; }
.cglc-parkfees__season { color: var(--muted); font-style: italic; }

/* Also at other parks (home page) */
.malso { padding-block: 1rem 2.5rem; }
.malso__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
.malso__head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.1rem); }
.malso__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--marsh); }
.malso__sub { margin: 1.2rem 0 .6rem; font-weight: 700; }
.malso__row { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.malso__row > * { scroll-snap-align: start; }
.malso__parks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.malso__parks a { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.malso__parks a:hover, .malso__parks a:focus-visible { border-color: var(--ink); }
.malso__pname { font-weight: 700; }
.malso__pprice { font-size: .85rem; color: var(--muted); }
@media (min-width: 900px) {
	.malso__row { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min, 290px)), 1fr)); overflow: visible; }
}

/* Sticky action bar on phones */
.home-callbar { display: none !important; }
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: .4rem; padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom)); background: rgba(251, 252, 251, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 48, 44, .12); }
.mbar__btn { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 48px; padding: 0 .4rem; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; text-align: center; line-height: 1.1; }
.mbar__btn--call { background: var(--ink); color: var(--on-dark); }
.mbar__btn--main { background: var(--sand); border-color: var(--sand); }
.mbar__num { display: none; }
.mbar__btn:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
@media (min-width: 420px) { .mbar__num { display: inline; font-weight: 600; } .mbar { grid-template-columns: 1.6fr 1fr 1.3fr; } }
@media (min-width: 900px) { .mbar { display: none; } }
@media (max-width: 899px) { body.single-property:has(.mbar) { padding-bottom: 80px; } }
@media (prefers-reduced-motion: reduce) { .mcard, .mcard__media img, .mpark { transition: none !important; } }

/* Calculator total: keep "a month" on its own line so it never sits on the figure. */
.home .cglc-total__value { line-height: 1.15; }
.home .cglc-total__value > span { display: block; margin-top: .35rem; }

/* Grid items must not grow to the width of their swipe rows (no sideways scroll on phones). */
.home__main, .home__aside, .mparks, .mcalc, .malso { min-width: 0; }
@media (max-width: 899px) { .home__layout { grid-template-columns: minmax(0, 1fr); } }

.tour__tools .tour__tool { min-height: 48px; min-width: 48px; }

/* Example all-in monthly cost on cards and page headers */
.lcard__monthly, .mcard__monthly { display: block; font-size: .9rem; font-weight: 600; color: var(--marsh); }
.lcard__monthly { margin-top: .2rem; }
.mcard__monthly[hidden], .home__monthly[hidden] { display: none; }
.home__monthly { margin: .25rem 0 0; font-weight: 600; }
.home__monthly a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: .9rem; color: var(--marsh); }

/* What's included and the sleeping plan (home pages) */
.home-included__title { margin: 1.5rem 0 .6rem; font-size: 1.25rem; }
.home-features > .home-included__title:first-child { margin-top: 0; }
.home-sleep { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.home-sleep li { padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.home-sleep__room { font-weight: 700; }
.home-sleep__bed { color: var(--muted); }
.home-sleep__note { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); }
