/* Pisomi UI refresh 2026-11: additive layer; dynamic branding stays in Admin. */
:root { --ui-soft-shadow: 0 14px 42px -22px rgba(22,38,33,.24); --ui-lift-shadow: 0 24px 54px -24px rgba(22,38,33,.34); }
.site-header { transition: background .22s ease, box-shadow .22s ease, border-color .22s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 28px -24px rgba(0,0,0,.38); }
.main-nav a, .header-link { transition: color .2s ease, background .2s ease; }
.hero { min-height: min(790px, 95svh); }
.hero::after { background: linear-gradient(95deg, rgba(6,19,16,.76) 0%,rgba(6,19,16,.34) 68%,rgba(6,19,16,.2) 100%),linear-gradient(0deg,rgba(5,15,12,.55),transparent 68%); }
.hero-content { padding-bottom: clamp(72px,9vw,112px); }
.hero h1 { letter-spacing: -.048em; line-height: 1.07; max-width: 850px; }
.hero .eyebrow { padding: 9px 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(255,255,255,.13); backdrop-filter: blur(12px); font-weight: 750; }
.searchbar { border-radius: 24px; padding: 10px; max-width: 990px; box-shadow: 0 26px 64px -21px rgba(0,0,0,.42); }
.searchbar .sb-field { border-radius: 15px; }
.searchbar .btn { border-radius: 17px; }
.hero-trust span { background: rgba(8,24,19,.38); border: 1px solid rgba(255,255,255,.18); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
.cat-chip { border-radius: 16px; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.cat-chip:hover { transform: translateY(-3px); box-shadow: var(--ui-soft-shadow); }
.pcard { border-radius: 22px; transition: transform .22s ease; }
.pcard-media { border-radius: 21px; box-shadow: var(--ui-soft-shadow); }
.pcard:hover { transform: translateY(-4px); }
.pcard:hover .pcard-media { box-shadow: var(--ui-lift-shadow); }
.pcard-title a:hover { color: var(--brand); }
.pcard-price strong { letter-spacing: -.025em; }
.pp-gallery { border-radius: 23px; }
.pp-head h1 { letter-spacing: -.037em; }
.btn:focus-visible, .pcard a:focus-visible, .cat-chip:focus-visible, .searchbar input:focus-visible { outline: 3px solid var(--accent,var(--brand)); outline-offset: 3px; }
/* Newly added: locally stored recently visited homes (no account or server tracking). */
.recent-homes { padding: 38px 0 48px; background: var(--bg-soft); border-block: 1px solid var(--line); }
.recent-homes[hidden] { display: none; }
.recent-homes-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.recent-homes-head h2 { font-size: clamp(1.35rem, 2.3vw, 1.9rem); }
.recent-homes-head p { color: var(--muted); font-size: .9rem; margin-top: 5px; }
.recent-clear { background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 15px; color: var(--ink-2); font-size: .84rem; font-weight: 650; }
.recent-clear:hover { border-color: var(--brand); color: var(--brand); }
.recent-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.recent-home { display: block; min-width: 0; overflow: hidden; background: var(--surface); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--ui-soft-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.recent-home:hover { transform: translateY(-4px); box-shadow: var(--ui-lift-shadow); }
.recent-home img { width: 100%; aspect-ratio: 1.55; object-fit: cover; background: var(--bg-sand); }
.recent-home-body { display: grid; gap: 4px; padding: 13px 14px 16px; }
.recent-home-title { color: var(--ink); font-weight: 750; font-size: .94rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.recent-home-city { color: var(--muted); font-size: .83rem; }
/* Small screen: comfortable tap targets, no horizontal search overflow. */
@media (max-width: 900px) {
  .recent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .searchbar { border-radius: 20px; }
  .searchbar .btn { min-height: 50px; }
}
@media (max-width: 560px) {
  .hero { min-height: min(760px, 96svh); }
  .hero-content { padding-bottom: 70px; }
  .hero h1 { letter-spacing: -.037em; }
  .hero-trust { gap: 7px; }
  .hero-trust span { font-size: .76rem; padding: 6px 9px; }
  .searchbar { margin-top: 22px; padding: 8px; border-radius: 18px; }
  .searchbar .sb-field { padding: 10px 14px; border-radius: 12px; }
  .searchbar .sb-field + .sb-field::before { display: none; }
  .searchbar input { font-size: 16px; }
  .searchbar .btn { border-radius: 12px; min-height: 48px; }
  .pcard-media { border-radius: 17px; }
  .recent-homes { padding: 30px 0 38px; }
  .recent-grid { gap: 10px; }
  .recent-home { border-radius: 13px; }
  .recent-home-body { padding: 10px 11px 12px; }
  .recent-home-title { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .cat-chip, .recent-home { transition: none; transform: none !important; }
  .hero-media img, .hero-content > *, .hero-scroll { animation: none !important; }
}
