/* Sun and Sage final Oct. 4, 2026 updates */

/* Balance the Rise Realty mark with the Sun and Sage brand. */
html body.ss18 #ss22-header .ss22-rise img{
  width:155px!important;
  height:auto!important;
  max-height:68px!important;
  object-fit:contain!important;
}

/* The added Considerations item should fit cleanly in the desktop navigation. */
@media (min-width:1181px){
  html body.ss18 #ss22-navigation{gap:clamp(9px,.8vw,16px)!important;}
  html body.ss18 #ss22-navigation>a,
  html body.ss18 #ss22-navigation>.ss22-group>a,
  html body.ss18 #ss22-navigation .ss22-top{
    font-size:clamp(10px,.72vw,12px)!important;
    letter-spacing:.07em!important;
  }
}
@media (min-width:1280px) and (max-width:1490px){
  html body.ss18 #ss22-header .ss22-rise img{width:128px!important;max-height:58px!important;}
  html body.ss18 #ss22-navigation{gap:10px!important;}
}

/* Question hub images are the full generated horizontal composition: no cropping. */
html body.ss18 #main.questionHubPage .loanHubItem .ss18-card-photo.v27-photo-frame{
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:4/3!important;
  overflow:hidden!important;
  background:#eee9e1!important;
}
html body.ss18 #main.questionHubPage .loanHubItem .ss18-card-photo.v27-photo-frame img.v27-natural-photo{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:4/3!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
}

/* Every card in a row finishes at the same level, including Blog and question pages. */
html body.ss18 #main.v27-review .loanHubGrid{
  align-items:stretch!important;
  grid-auto-rows:1fr!important;
}
html body.ss18 #main.v27-review .loanHubItem{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:0!important;
  align-self:stretch!important;
}
html body.ss18 #main.v27-review .loanHubItem .final-static-answer{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  height:auto!important;
}
html body.ss18 #main.v27-review .loanHubItem .loanLearn{
  margin-top:auto!important;
}

@media (max-width:760px){
  html body.ss18 #main.questionHubPage .loanHubItem .ss18-card-photo.v27-photo-frame,
  html body.ss18 #main.questionHubPage .loanHubItem .ss18-card-photo.v27-photo-frame img.v27-natural-photo{
    aspect-ratio:4/3!important;
  }
}


/* Oct 4 follow-up fix: remove the oversized white sheet effect behind Considerations cards.
   Keep only the cards white, and let the page background stay consistent across incomplete rows. */
html body.ss18 #main.questionHubPage,
html body.ss18 #main.design-hub-v28,
html body.ss18 #main.rental-hub-v40,
html body.ss18 #main.ss24-financing-questions{
  background:#f5f2eb!important;
}
html body.ss18 #main.questionHubPage .loanHubGridWrap,
html body.ss18 #main.design-hub-v28 .loanHubGridWrap,
html body.ss18 #main.rental-hub-v40 .loanHubGridWrap,
html body.ss18 #main.ss24-financing-questions .loanHubGridWrap{
  background:transparent!important;
  max-width:1380px!important;
  margin:0 auto!important;
  padding:0 32px 56px!important;
}
html body.ss18 #main.questionHubPage .loanHubGrid,
html body.ss18 #main.design-hub-v28 .loanHubGrid,
html body.ss18 #main.rental-hub-v40 .loanHubGrid,
html body.ss18 #main.ss24-financing-questions .loanHubGrid{
  width:100%!important;
}
@media (max-width:900px){
  html body.ss18 #main.questionHubPage .loanHubGridWrap,
  html body.ss18 #main.design-hub-v28 .loanHubGridWrap,
  html body.ss18 #main.rental-hub-v40 .loanHubGridWrap,
  html body.ss18 #main.ss24-financing-questions .loanHubGridWrap{
    padding:0 20px 44px!important;
  }
}


/* Oct 4 follow-up fix: valley guide city spotlight cards need a real visual, not an empty text block. */
html body.ss18 #main .catalogueSection .cityCatalogueGrid{max-width:1100px!important}
html body.ss18 #main .catalogueSection .cityEntry.active,
html body.ss18 #main .catalogueSection .cityEntry:target{
  display:grid!important;
  grid-template-columns:minmax(330px,.88fr) minmax(0,1.12fr)!important;
  grid-template-areas:
    "photo details"
    "eyebrow details"
    "title details"!important;
  column-gap:42px!important;
  row-gap:14px!important;
  align-items:start!important;
  background:#f8f5ef!important;
  border:1px solid #d9d1c4!important;
  box-shadow:none!important;
}
html body.ss18 #main .catalogueSection .cityEntry.active::before,
html body.ss18 #main .catalogueSection .cityEntry:target::before{
  content:"";
  grid-area:photo;
  display:block;
  width:100%;
  aspect-ratio:4/3;
  border:1px solid #d9d1c4;
  background-color:#e9e3d8;
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
}
html body.ss18 #main .catalogueSection .cityEntry.active > span,
html body.ss18 #main .catalogueSection .cityEntry:target > span{
  grid-area:eyebrow!important;
  margin:0!important;
}
html body.ss18 #main .catalogueSection .cityEntry.active h3,
html body.ss18 #main .catalogueSection .cityEntry:target h3{
  grid-area:title!important;
  margin:0!important;
  white-space:normal!important;
  font-style:normal!important;
  font-size:clamp(34px,3vw,46px)!important;
  line-height:1.02!important;
}
html body.ss18 #main .catalogueSection .cityEntry.active dl,
html body.ss18 #main .catalogueSection .cityEntry:target dl{
  grid-area:details!important;
  margin:0!important;
}
html body.ss18 #main .catalogueSection .cityEntry.active dl div,
html body.ss18 #main .catalogueSection .cityEntry:target dl div{
  grid-template-columns:110px minmax(0,1fr)!important;
  gap:16px!important;
}
html body.ss18 #main .catalogueSection .cityEntry#north-hollywood::before{background-image:url('assets/cities/north-hollywood.png')!important}
html body.ss18 #main .catalogueSection .cityEntry#valley-village::before{background-image:url('assets/cities/valley-village.png')!important}
html body.ss18 #main .catalogueSection .cityEntry#valley-glen::before{background-image:url('assets/cities/valley-glen.png')!important}
html body.ss18 #main .catalogueSection .cityEntry#sun-valley::before{background-image:url('assets/cities/sun-valley.png')!important}
html body.ss18 #main .catalogueSection .cityEntry#sunland::before{background-image:url('assets/cities/sunland.png')!important}
html body.ss18 #main .catalogueSection .cityEntry#tujunga::before{background-image:url('assets/cities/tujunga.png')!important}
html body.ss18 #main .catalogueSection .cityEntry#burbank::before{background-image:url('assets/cities/burbank.png')!important}
@media (max-width:900px){
  html body.ss18 #main .catalogueSection .cityEntry.active,
  html body.ss18 #main .catalogueSection .cityEntry:target{
    grid-template-columns:1fr!important;
    grid-template-areas:"photo" "eyebrow" "title" "details"!important;
    row-gap:16px!important;
  }
  html body.ss18 #main .catalogueSection .cityEntry.active dl div,
  html body.ss18 #main .catalogueSection .cityEntry:target dl div{
    grid-template-columns:1fr!important;
    gap:6px!important;
  }
}


/* Search directory redesign */
html body.ss18 #main.valleyCatalogue{background:#f5f2eb!important;}
html body.ss18 #main.valleyCatalogue .catalogueHero{padding-bottom:44px!important;}
html body.ss18 #main .ss-directory-search{max-width:1320px!important;margin:0 auto!important;padding:38px 32px 24px!important;background:transparent!important;}
html body.ss18 #main .ss-directory-search .homeSearchBelowStoryInner{max-width:1220px!important;margin:0 auto!important;}
html body.ss18 #main .ss-directory-search h2{font-size:clamp(28px,3vw,42px)!important;margin-bottom:18px!important;}
html body.ss18 #main .ss-city-directory{max-width:1320px;margin:0 auto;padding:20px 32px 80px;background:transparent;}
html body.ss18 #main .ss-city-directory-intro{text-align:center;max-width:760px;margin:0 auto 30px;}
html body.ss18 #main .ss-city-directory-intro h2{font:400 clamp(36px,4vw,58px)/1.02 Georgia,serif;color:#292724;margin:0 0 10px;}
html body.ss18 #main .ss-city-directory-intro p{font:400 15px/1.7 Arial,sans-serif;color:#625d54;margin:0;}
html body.ss18 #main .ss-city-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch;}
html body.ss18 #main .ss-city-card{display:flex;flex-direction:column;background:#fff;border:1px solid #d7d0c4;text-decoration:none;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease;}
html body.ss18 #main .ss-city-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px #2c292318;}
html body.ss18 #main .ss-city-card img{display:block;width:100%;height:auto;aspect-ratio:3/1;object-fit:cover;object-position:center bottom;background:#e7e1d6;}
html body.ss18 #main .ss-city-card-action{display:block;text-align:center;padding:15px 18px;font:700 10px/1 Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#4f5b47;border-top:1px solid #e0d9ce;}
html body.ss18 #ss22-navigation .ss22-search-group .ss22-panel-content{min-width:220px!important;}
@media(max-width:820px){
 html body.ss18 #main .ss-directory-search{padding:28px 18px 18px!important;}
 html body.ss18 #main .ss-city-directory{padding:15px 18px 55px;}
 html body.ss18 #main .ss-city-card-grid{grid-template-columns:1fr;gap:18px;}
}


/* Search / city directory follow-up: one clean photo per city; label below, no text overlay. */
html body.ss18 #main .ss-city-card img{
  display:block!important;
  width:100%!important;
  aspect-ratio:16/9!important;
  height:auto!important;
  object-fit:cover!important;
  object-position:center center!important;
  background:#e7e1d6!important;
}
html body.ss18 #main .ss-city-card-meta{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:17px 20px!important;
  border-top:1px solid #e0d9ce!important;
  background:#fff!important;
}
html body.ss18 #main .ss-city-card-city{
  color:#292724!important;
  font:500 19px/1.2 Georgia,serif!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
html body.ss18 #main .ss-city-card-action{
  padding:0!important;
  border:0!important;
  color:#4f5b47!important;
  font:700 9px/1 Arial,sans-serif!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
/* Search belongs at the very end of region/city pages. */
html body.ss18 #main .ss-directory-search{
  margin-top:54px!important;
  padding:58px 32px 72px!important;
  border-top:1px solid #d8d1c6!important;
  background:#f5f2eb!important;
}
html body.ss18 #main.valleyCatalogue > .ss-directory-search{
  order:99!important;
  width:100%!important;
  max-width:none!important;
}
html body.ss18 #main .ss-directory-search .homeSearchBelowStoryInner{
  max-width:1220px!important;
  margin:0 auto!important;
}
html body.ss18 #main .ss-directory-search .heroSearch,
html body.ss18 #main .ss-directory-search .searchBar{
  position:static!important;
  transform:none!important;
  margin:0 auto!important;
}
@media(max-width:760px){
  html body.ss18 #main .ss-city-card-meta{padding:15px 16px!important;}
  html body.ss18 #main .ss-city-card-city{font-size:18px!important;}
  html body.ss18 #main .ss-directory-search{padding:46px 18px 56px!important;}
}


/* Region guide header cleanup */
html body.ss18 #main .catalogueHero.region-hero-clean{
  display:block!important;
  min-height:0!important;
  padding:40px 24px 34px!important;
  text-align:center!important;
}
html body.ss18 #main .catalogueHero.region-hero-clean>div{display:block!important;text-align:center!important;}
html body.ss18 #main .catalogueHero.region-hero-clean h1{
  text-align:center!important;
  margin:0 auto 18px!important;
  max-width:900px!important;
}
html body.ss18 #main .catalogueHero.region-hero-clean>p{
  text-align:center!important;
  margin:0 auto!important;
  max-width:760px!important;
}


/* City directory card footer: centered city name with centered action below. */
html body.ss18 #main .ss-city-card-meta{
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  gap:8px!important;
  padding:18px 20px 17px!important;
}
html body.ss18 #main .ss-city-card-city{
  display:block!important;
  width:100%!important;
  text-align:center!important;
  margin:0!important;
}
html body.ss18 #main .ss-city-card-action{
  display:block!important;
  width:100%!important;
  text-align:center!important;
  margin:0!important;
}
