/* Silver Living's own styles, on top of Yonder's base.css. */

/* Past the homepage, the dark top shows the homepage photo under Yonder's grey gradient. */
.page-top {
  background:
    linear-gradient(90deg, rgba(18, 18, 20, .9) 0%, rgba(18, 18, 20, .8) 50%, rgba(18, 18, 20, .88) 100%),
    url("https://images.unsplash.com/photo-1764173039182-7dcd014ed5aa?auto=format&fit=crop&w=1400&q=60") center 40% / cover no-repeat,
    #1C1C1E;
}
.header-links .saved-label { display: inline; }

/* ---------- Homepage: a big photo with the search on it (Zillow), then rows of homes (Airbnb) ---------- */
/* The photo area grows with the screen's width, so a wide screen never shows only a thin band of the photo. */
.home-hero { display: flex; flex-direction: column; justify-content: center; min-height: clamp(620px, 46vw, 940px); overflow: hidden; }
.home-hero .hero-inner { padding-top: 150px; padding-bottom: 100px; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Rotating photos: stacked, crossfading. site.js places each so its faces stay in view (object-position). */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-on { opacity: 1; }
/* Dots under the photos (one per photo; phones show only theirs), with a pause/play icon at the end. */
.hero-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 20px; background: rgba(18, 18, 20, .35); }
.hero-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.hero-dot::before { content: ""; width: 9px; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; }
.hero-dot:hover::before { background: rgba(255, 255, 255, .85); }
.hero-dot[aria-current="true"]::before { width: 22px; background: var(--white); }
.hero-dot[hidden] { display: none; }
.hero-pause { width: 28px; height: 28px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.hero-pause:hover { background: rgba(255, 255, 255, .32); }
.hero-pause-icon { width: 9px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero-pause.is-paused .hero-pause-icon { width: 0; height: 0; margin-left: 2px; border: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
/* Until site.js has picked a photo that fits this screen (it may skip the first), none shows. */
.js .hero-slides:not(.ready) .hero-slide { opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.home-hero h1 { max-width: 880px; font-size: 56px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.home-hero p { max-width: 720px; margin-left: auto; margin-right: auto; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.home-hero .hero-search { margin-top: 34px; width: 100%; max-width: 980px; text-align: left; color: var(--ink); }
.home-hero::after {
  background:
    linear-gradient(180deg, rgba(18, 18, 20, .7) 0%, rgba(18, 18, 20, .38) 30%, rgba(18, 18, 20, .34) 60%, rgba(18, 18, 20, .62) 100%);
}
.home-row { margin-top: 48px; }
.home-row:last-child { margin-bottom: 56px; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.row-head h2 a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.row-head h2 a:hover { color: var(--ocean-600); }
.row-head h2 .icon { width: 24px; height: 24px; }
.rail-arrows { display: flex; gap: 8px; flex: none; }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--ink); }
.rail-btn:hover { border-color: var(--ink-2); box-shadow: var(--shadow); }
.rail-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.rail-btn .icon { width: 20px; height: 20px; }
.home-row .rail { grid-auto-columns: minmax(260px, calc((100% - 48px) / 4)); scrollbar-width: none; }
.home-row .rail::-webkit-scrollbar { display: none; }
.row-all { margin-top: 4px; font-weight: 600; }
/* Hidden until Google confirms the home has a photo (site.js). */
.home-rail .tile.g-check { display: none; }
.tile .chips { margin-top: 2px; }
.tile-loc { font-size: 15px; }

/* ---------- Google maps (embedded) ---------- */
.map-tile #mini-map.has-map { background: var(--ocean-100); }
.detail-map iframe, .area-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.area-map-foot { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; }

/* ---------- Results ---------- */
.price-ask { color: var(--ink-2); font-size: 18px !important; font-weight: 600; }
.active-filters a.active-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ocean-600); color: var(--ocean-700); background: var(--ocean-50); border-radius: 20px; padding: 5px 12px; font-size: 15px; font-weight: 500; min-height: 36px; text-decoration: none; }
.active-filters a.active-chip:hover { background: var(--ocean-100); }
.active-filters a.active-chip .icon { width: 16px; height: 16px; }
.active-filters .clear-all { align-self: center; font-size: 15px; }
.more-counties summary { list-style: none; cursor: pointer; margin: 6px 0; display: inline-block; }
.more-counties summary::-webkit-details-marker { display: none; }
.more-counties[open] summary { display: none; }
.budget-note { margin-top: 8px; }
.pager a, .pager span.pager-step { min-width: 44px; min-height: 44px; border: 1.5px solid transparent; border-radius: 22px; background: none; font-weight: 600; color: var(--ocean-600); padding: 6px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.pager a:hover { background: var(--ocean-50); }
.pager a.on { border-color: var(--ocean-600); background: var(--ocean-50); color: var(--ocean-800); }
.pager span.pager-step[aria-disabled] { color: var(--ink-3); opacity: .5; }
.empty-results { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.empty-results h2 { font-size: 22px; margin-bottom: 8px; }
.empty-results p + p { margin-top: 10px; }

/* ---------- Home page (profile) ---------- */
.detail-license { color: var(--ink-3); font-size: 15px; margin-top: 2px; }
.detail-map { height: 380px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--ocean-100); z-index: 0; position: relative; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; background: var(--line-soft); }
.mosaic figure.first { grid-row: 1 / span 2; }
.mosaic.mosaic-1 { grid-template-columns: 1fr; }
.mosaic.mosaic-2 { grid-template-columns: 2fr 1fr; }
.mosaic.mosaic-3, .mosaic.mosaic-4 { grid-template-columns: 2fr 1fr 1fr; }
div.ftile { cursor: default; }
div.ftile:hover { filter: none; }
.ftile-key .glyph { margin-right: 6px; }
.level-name small { display: block; font-size: 13px; font-weight: 500; opacity: .85; }
.fact-list { display: grid; gap: 8px; margin: 14px 0; }
.fact-list li { display: flex; gap: 10px; align-items: flex-start; }
.fact-list .icon { margin-top: 3px; color: var(--ocean-600); }
.campus-box { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; background: var(--ocean-50); border-radius: var(--radius); }
.campus-box > .icon { width: 26px; height: 26px; color: var(--ocean-600); margin-top: 2px; }
.campus-box p { color: var(--ink-2); margin-top: 2px; }
.rating-card { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; margin-top: 14px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.rating-overall { display: flex; align-items: center; gap: 14px; }
.rating-overall > div { display: flex; flex-direction: column; gap: 2px; }
.rating-num { font-size: 44px; font-weight: 800; line-height: 1; color: var(--ocean-800); }
.rating-rows { display: grid; gap: 6px; }
.rating-rows li { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.stars { display: inline-flex; gap: 1px; }
.stars span { color: var(--line); }
.stars span.on { color: var(--gold); }
.stars .icon { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.detail-alert { display: flex; gap: 10px; margin-top: 12px; padding: 10px 14px; background: var(--alert-bg); color: var(--alert-ink); border: 1px solid var(--alert-line); border-radius: 10px; font-weight: 500; }
.detail-alert .icon { margin-top: 3px; }
.avail-line { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-weight: 600; color: var(--good-ink); }

/* Tour request */
.tour-dialog { width: min(560px, 94vw); border: 0; border-radius: 14px; padding: 0; box-shadow: var(--shadow-lg); }
.tour-dialog::backdrop { background: rgba(16, 43, 70, .55); }
.tour-form { display: grid; gap: 12px; padding: 22px 24px 24px; }
.tour-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tour-head h2 { font-size: 22px; }
.tour-x { border: 0; background: none; width: 44px; height: 44px; margin: -8px -10px 0 0; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.tour-x:hover { background: var(--panel); }
.tour-form label { display: grid; gap: 4px; font-weight: 600; font-size: 15.5px; }
.tour-form input, .tour-form select, .tour-form textarea { font-weight: 400; font-size: 17px; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); }
.tour-form textarea { min-height: 84px; resize: vertical; }
.tour-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.tour-result { padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); font-weight: 500; }

/* Saved */
.detail-actions [data-save].on { color: var(--heart); }
.detail-actions [data-save].on .icon { fill: currentColor; }

/* Claim page */
.claim-page-wrap { max-width: 720px; padding-top: 24px; padding-bottom: 64px; }
.claim-page-wrap h1 { font-size: 34px; margin: 8px 0 10px; }
.claim-lead { font-size: 18px; }
.claim-why { margin: 12px 0 14px; display: grid; grid-template-columns: 1fr; gap: 6px; }
.claim-why li { display: flex; gap: 10px; align-items: center; }
.claim-why .yes { color: var(--good-ink); }
.claim-form { margin-top: 22px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.claim-form .tour-actions { justify-content: flex-start; }

.notfound { padding-top: 40px; padding-bottom: 80px; }
.notfound h1 { font-size: 34px; margin-bottom: 10px; }
.notfound p + p { margin-top: 16px; }

@media (max-width: 900px) {
  .home-row .rail { grid-auto-columns: minmax(250px, 72%); }
  .rail-arrows { display: none; }
}
@media (max-width: 720px) {
  /* Phones: the photo fills the whole background, as on wider screens. site.js keeps the faces in the top band,
     under the logo, and the heading starts below them; a photo whose faces can't all fit this narrow is skipped. */
  .home-hero { min-height: 0; display: block; }
  .home-hero .hero-inner { padding-top: 300px; padding-bottom: 64px; }
  .home-hero::after {
    background: linear-gradient(180deg, rgba(18, 18, 20, .55) 0%, rgba(18, 18, 20, .1) 12%, rgba(18, 18, 20, .1) 36%, rgba(18, 18, 20, .62) 52%, rgba(18, 18, 20, .72) 100%);
  }
  .home-hero h1 { font-size: 36px; }
  .home-hero .search-bar { grid-template-columns: 1fr; }
  .header-links .saved-label { display: none; }
  .detail-map { height: 260px; }
}

/* Cookie settings: the consent banner (public/js/analytics.js) and its footer button, as on Yonder */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; display: flex; justify-content: center; pointer-events: none; }
.consent-inner { pointer-events: auto; display: flex; align-items: center; gap: 16px 24px; max-width: 880px; width: 100%; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px 20px; }
.consent-inner p { margin: 0; flex: 1; font-size: 15px; line-height: 1.5; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions .btn { min-width: 110px; }
.footer-cookie-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0 0 0 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .consent-banner { left: 10px; right: 10px; bottom: 10px; }
  .consent-inner { flex-direction: column; align-items: stretch; padding: 14px 16px; }
  .consent-actions .btn { flex: 1; min-width: 0; }
}
