/* The beach search bar (PCB Condos and PCB Communities — this file is identical in both sites).
   Decision 91 fix-up (Doug, Oct 18: "every search bar looks like the home page bar"): the yyhoop home bar's look, value
   for value (yyhoop css/styles.css .ls-searchbar / .ls-morepanel; search-bar-look.test.mjs compares): the navy band, the
   white rounded bar, small uppercase grey labels (#64707a, Doug Oct 20: WCAG AA, 5.07:1 on white), the copper SEARCH button, the "More filters" link opening the white
   panel, and "Live MLS data · last updated <time>" with the time in gold. Each site keeps its own boxes and its own
   More-filters contents. Used by src/components/ListingSearch.astro (the band is its .ls-hero section) and by every
   /listing/<mls>/ page (.ls-hero-page, the yyhoop listing pages' rounded navy panel). Global on purpose: the bar's
   markup comes from src/lib/searchBarMarkup.ts through set:html, which Astro's scoped styles never reach. */
.ld-search { padding: 1.2rem 0 0; }
.ls-hero-page { background: linear-gradient(150deg, #0C1C2C 0%, #103244 100%); border-radius: 18px; padding: 1.1rem 1.2rem 1.15rem; color: #fff; }
.ls-hero .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border: none; cursor: pointer; text-decoration: none; font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; transition: background 0.2s ease, transform 0.2s ease; }
.ls-hero .btn-solid { background: #C17F5A; color: #FFFFFF; }
.ls-hero .btn-solid:hover, .ls-hero .btn-solid:focus-visible { background: #A66B48; transform: translateY(-1px); }
.ls-hero .ls-searchbar { background: #FFFFFF; border-radius: 14px; padding: 0.35rem; display: flex; align-items: stretch; gap: 0.35rem; flex-wrap: wrap; box-shadow: 0 22px 50px -20px rgba(0, 0, 0, .6); }
.ls-hero .sb-field { display: flex; flex-direction: column; justify-content: center; padding: 0.4rem 0.9rem; flex: 1 1 150px; min-width: 0; position: relative; }
.ls-hero .sb-loc { flex: 2 1 220px; }
.ls-hero .sb-field + .sb-field { border-left: 1px solid #ececec; }
.ls-hero .sb-field label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: #64707a; margin-bottom: 0.15rem; }
.ls-hero .sb-field input, .ls-hero .sb-field select { border: none; outline: none; background: transparent; font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 0.98rem; color: #1A2332; width: 100%; cursor: pointer; padding: 0; }
.ls-hero .sb-field input { cursor: text; }
.ls-hero .sb-go { flex: 0 0 auto; display: flex; align-items: center; }
.ls-hero .sb-go .btn { height: 100%; min-height: 46px; border-radius: 10px; padding: 0.95rem 1.7rem; font-size: 14px; }
.ls-hero .ls-morerow { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; flex-wrap: wrap; gap: 0.8rem; }
.ls-hero .ls-morebtn { background: transparent; border: none; color: #c7d2db; font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0; }
.ls-hero .ls-morebtn:hover, .ls-hero .ls-morebtn:focus-visible { color: #fff; }
.ls-hero .ls-chev { transition: transform 0.2s ease; }
.ls-hero .ls-morebtn.open .ls-chev { transform: rotate(180deg); }
.ls-hero .ls-freshness { color: #8fa0ac; font-size: 0.76rem; letter-spacing: 0.02em; }
.ls-hero .ls-freshness b { color: #CBA35C; font-weight: 600; }
.ls-hero .ls-morepanel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.ls-hero .ls-morepanel.open { max-height: 1400px; }
.ls-hero .ls-morepanel-inner { margin-top: 0.8rem; background: #FFFFFF; border-radius: 14px; padding: 0.9rem 1.1rem; display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; align-items: flex-end; }
.ls-hero .mp-field { display: flex; flex-direction: column; min-width: 130px; flex: 1 1 150px; }
.ls-hero .mp-field label { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: #64707a; margin-bottom: 0.3rem; }
.ls-hero .mp-field select { width: 100%; border: 1px solid rgba(193, 127, 90, 0.28); border-radius: 10px; padding: 8px 10px; font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 0.92rem; color: #1A2332; background: #F5F2ED; cursor: pointer; }
.ls-hero .ls-statuschips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ls-hero .mp-field:has(.ls-statuschips) { flex: 2 1 300px; }
.ls-hero .ls-chip { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid rgba(26, 35, 50, 0.2); background: #FFFFFF; color: #1A2332; font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.ls-hero .ls-chip.on { background: #0C1C2C; border-color: #0C1C2C; color: #FFFFFF; }
.ls-hero .mp-actions { display: flex; flex: 1 1 100%; gap: 0.7rem; justify-content: flex-end; align-items: center; }
.ls-hero .mp-actions .btn { padding: 0.7rem 1.6rem; border-radius: 10px; font-size: 13px; }
.ls-hero .ls-link-reset { background: none; border: none; color: #1A2332; font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 0.8rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ls-hero .ls-link-reset:hover { color: #A66B48; }
@media (max-width: 640px) {
  .ls-hero-page { padding: 0.9rem 0.8rem 1rem; }
  .ls-hero .sb-field + .sb-field { border-left: none; border-top: 1px solid #ececec; }
  .ls-hero .ls-searchbar { flex-direction: column; }
  /* flex-basis is a WIDTH in the desktop row; in the phone column it would become a HEIGHT and balloon each field */
  .ls-hero .sb-field, .ls-hero .sb-loc { flex: 0 0 auto; }
  .ls-hero .sb-go .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ls-hero .ls-chev, .ls-hero .ls-morepanel { transition: none; } }
