/* City & Urban International — V13.1 homepage-only editorial patch, 17 Nov 2026.
   Scoped to .home-page. Keep all existing V13 search, slideshow and shared templates. */

/* Exact horizontal alignment with the inner featured-property grid, across viewport sizes. */
.home-page .homepage-content > .ley-home-feature {
  box-sizing: border-box;
  width: calc(100vw - 2 * max(36px, calc((100vw - 1280px)/2 + 36px))) !important;
  max-width:1280px !important;
  margin:28px auto 0 !important;
}
.home-page .homepage-content > .featured-section { padding-bottom:0; }
@media (min-width:1200px) {
  /* Desktop banner retains its measured 531px height from the signed-off live V13. */
  .home-page .homepage-content > .ley-home-feature { height:531px; min-height:531px; }
}
@media (max-width:820px) {
  /* Match existing 20px inset of the featured grid within the mobile .content padding. */
  .home-page .homepage-content > .ley-home-feature {
    width:calc(100% - 40px) !important;
    margin:24px auto 0 !important;
  }
}

/* Two deliberately quiet editorial sections: separate, not full-bleed dark panels. */
.home-page .cui-home-local-insight,
.home-page .cui-home-expertise {
  box-sizing:border-box;
  width:calc(100vw - 2 * max(36px, calc((100vw - 1280px)/2 + 36px)));
  max-width:1280px;
  margin-inline:auto;
}
.home-page .cui-home-local-insight { margin-top:76px; }
.home-page .cui-home-local-insight-inner {
  display:grid;
  grid-template-columns:minmax(0, 1.07fr) minmax(0, .93fr);
  align-items:stretch;
  min-height:360px;
  background:#f4f1ec;
}
.home-page .cui-home-local-insight-media {
  position:relative;
  min-height:360px;
  overflow:hidden;
  background:#eae6df;
}
.home-page .cui-home-local-insight-media img {
  display:block;
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  object-fit:cover;
  object-position:center;
}
.home-page .cui-home-local-insight-caption {
  position:absolute;
  bottom:21px;
  left:25px;
  color:#fff;
  font:500 10px/1.4 Inter,Arial,sans-serif;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-shadow:0 1px 8px rgba(0,0,0,.6);
}
.home-page .cui-home-local-insight-copy {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:clamp(32px,4.2vw,65px);
}
.home-page .cui-home-editorial-label {
  margin:0 0 18px;
  color:var(--red,#c60932);
  font:600 10px/1.45 Inter,Arial,sans-serif;
  letter-spacing:.2em;
  text-transform:uppercase;
}
.home-page .cui-home-local-insight-copy h2,
.home-page .cui-home-expertise-intro h2 {
  margin:0;
  color:#202722;
  font:400 clamp(43px,4.3vw,70px)/.98 "Cormorant Garamond",Georgia,serif;
  letter-spacing:-.026em;
}
.home-page .cui-home-local-insight-copy h2 em,
.home-page .cui-home-expertise-intro h2 em {
  font-weight:400;
  color:var(--red,#c60932);
}
.home-page .cui-home-local-insight-copy > p:not(.cui-home-editorial-label) {
  max-width:440px;
  margin:22px 0 20px;
  color:#535853;
  font:400 15px/1.75 Inter,Arial,sans-serif;
}
.home-page .cui-home-editorial-link {
  display:inline-flex;
  align-items:center;
  gap:16px;
  color:#26342c;
  font:600 10px/1.4 Inter,Arial,sans-serif;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-decoration:none;
  border-bottom:1px solid #9ba69b;
  padding-bottom:9px;
}
.home-page .cui-home-editorial-link:hover,
.home-page .cui-home-editorial-link:focus-visible {
  color:var(--red,#c60932);
  border-bottom-color:currentColor;
}

.home-page .cui-home-expertise { margin-top:74px; margin-bottom:38px; }
.home-page .cui-home-expertise-inner { border-top:1px solid #dedbd7; }
.home-page .cui-home-expertise-intro {
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:end;
  gap:55px;
  padding:44px 0 38px;
}
.home-page .cui-home-expertise-intro > p {
  max-width:520px;
  margin:0 0 7px;
  color:#5b5e5b;
  font:400 15px/1.75 Inter,Arial,sans-serif;
}
.home-page .cui-home-expertise-list { border-top:1px solid #e4e2df; }
.home-page .cui-home-expertise-item {
  display:grid;
  grid-template-columns:150px minmax(0,1fr) minmax(0,1.1fr) 30px;
  gap:24px;
  align-items:center;
  color:#202722;
  padding:20px 0;
  border-bottom:1px solid #e4e2df;
  text-decoration:none;
  transition:background-color .2s ease;
}
.home-page .cui-home-expertise-item:hover { background:#f8f6f3; }
.home-page .cui-home-expertise-index {
  color:#a84a44;
  font:600 10px/1.45 Inter,Arial,sans-serif;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.home-page .cui-home-expertise-item strong {
  font:400 clamp(27px,2.6vw,37px)/1.05 "Cormorant Garamond",Georgia,serif;
  letter-spacing:-.015em;
}
.home-page .cui-home-expertise-detail {
  color:#656b65;
  font:400 13px/1.65 Inter,Arial,sans-serif;
}
.home-page .cui-home-expertise-arrow {
  color:var(--red,#c60932);
  font-size:19px;
  justify-self:end;
}
.home-page .cui-home-expertise-item:focus-visible { outline:2px solid var(--red,#c60932); outline-offset:2px; }

@media(max-width:1050px) {
  .home-page .cui-home-local-insight-copy { padding:35px; }
  .home-page .cui-home-expertise-item { grid-template-columns:105px minmax(0,1fr) minmax(0,1.05fr) 22px; gap:14px; }
}
@media(max-width:820px) {
  .home-page .cui-home-local-insight,
  .home-page .cui-home-expertise { width:calc(100% - 40px); }
  .home-page .cui-home-local-insight { margin-top:48px; }
  .home-page .cui-home-local-insight-inner { grid-template-columns:1fr; }
  .home-page .cui-home-local-insight-media { min-height:270px; }
  .home-page .cui-home-local-insight-media img { position:absolute; }
  .home-page .cui-home-local-insight-copy { padding:32px 27px 36px; }
  .home-page .cui-home-local-insight-copy h2,
  .home-page .cui-home-expertise-intro h2 { font-size:clamp(46px,10vw,62px); }
  .home-page .cui-home-expertise { margin-top:48px; margin-bottom:30px; }
  .home-page .cui-home-expertise-intro { grid-template-columns:1fr; gap:20px; padding:35px 0 26px; }
  .home-page .cui-home-expertise-intro > p { margin:0; }
  .home-page .cui-home-expertise-item { grid-template-columns:1fr 26px; gap:8px 16px; padding:19px 0; }
  .home-page .cui-home-expertise-index { grid-column:1; }
  .home-page .cui-home-expertise-item strong { grid-column:1; font-size:33px; }
  .home-page .cui-home-expertise-detail { grid-column:1; }
  .home-page .cui-home-expertise-arrow { grid-column:2; grid-row:1 / 4; }
}
@media(prefers-reduced-motion:reduce) {
  .home-page .cui-home-expertise-item { transition:none; }
}

/* V13.2 — matched editorial proportions, breathing room and restrained rounding. */
.home-page .homepage-content > .ley-home-feature {
  margin-top:72px !important;
  border-radius:4px;
  overflow:hidden;
}
.home-page .cui-home-local-insight { margin-top:72px; }
.home-page .cui-home-local-insight-inner {
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  border-radius:4px;
  overflow:hidden;
}
@media (min-width:1200px) {
  /* Match the signed-off Ley Street height exactly, without resizing Ley Street. */
  .home-page .cui-home-local-insight-inner { height:531px; min-height:531px; }
}
@media (min-width:851px) and (max-width:1199px) {
  .home-page .cui-home-local-insight-inner { min-height:474px; }
}

/* Copy-first DOM order puts the photograph on the right on desktop.
   Mobile stacks copy followed by photograph, contrasting with Ley Street. */
.home-page .cui-home-local-insight-media { grid-column:2; grid-row:1; }
.home-page .cui-home-local-insight-copy { grid-column:1; grid-row:1; }
.home-page .cui-home-local-insight-copy > p:not(.cui-home-editorial-label) {
  max-width:455px;
}

/* Featured-property introduction: editorial context in place of an oversized CTA. */
.home-page .featured-section .featured-head {
  align-items:flex-end;
  gap:clamp(28px,5vw,88px);
  margin-bottom:30px;
}
.home-page .featured-section .cui-featured-editorial-aside {
  width:min(100%,335px);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:17px;
  padding:0 0 5px;
}
.home-page .featured-section .cui-featured-editorial-aside p {
  margin:0;
  max-width:320px;
  color:#656868;
  font:400 14px/1.75 Inter,Arial,sans-serif;
}
@media (min-width:821px) {
  .home-page .featured-section .cui-featured-editorial-aside .view-all {
    box-sizing:border-box;
    display:inline-flex !important;
    width:auto !important;
    min-height:0 !important;
    padding:0 0 9px !important;
    background:transparent !important;
    border:0 !important;
    border-bottom:1px solid #9fa4a0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    font:600 10px/1.35 Inter,Arial,sans-serif !important;
    letter-spacing:.16em !important;
    color:#242b26 !important;
    text-decoration:none !important;
  }
  .home-page .featured-section .cui-featured-editorial-aside .view-all span:last-child {
    font-size:18px !important;
    color:var(--red,#c60932) !important;
  }
  .home-page .featured-section .cui-featured-editorial-aside .view-all:hover,
  .home-page .featured-section .cui-featured-editorial-aside .view-all:focus-visible {
    border-bottom-color:var(--red,#c60932) !important;
  }
}
@media (max-width:850px) {
  .home-page .homepage-content > .ley-home-feature { margin-top:48px !important; }
  .home-page .cui-home-local-insight { margin-top:48px; }
  .home-page .cui-home-local-insight-inner { grid-template-columns:1fr; height:auto; }
  .home-page .cui-home-local-insight-copy { grid-column:1; grid-row:1; }
  /* Photograph balances the two stacked editorial panels without blank filler. */
  .home-page .cui-home-local-insight-media { grid-column:1; grid-row:2; min-height:430px; }
}
@media (min-width:821px) and (max-width:850px) {
  .home-page .cui-home-local-insight-media { min-height:465px; }
}
@media (max-width:600px) {
  .home-page .cui-home-local-insight-media { min-height:395px; }
}
@media (max-width:820px) {
  .home-page .featured-section .featured-head { gap:12px; }
  .home-page .featured-section .cui-featured-editorial-aside { width:100%; padding:0; gap:0; }
  .home-page .featured-section .cui-featured-editorial-aside p { display:none; }
}

/* V13.3: position only. Preserve image-right layout and signed-off banner sizes. */
.home-page .cui-home-local-insight-media .cui-home-local-insight-caption {
  left:auto;
  right:25px;
  text-align:right;
}
@media (min-width:851px) {
  .home-page .cui-home-local-insight-copy {
    /* Shift the editorial heading, body and CTA nearer the photograph. */
    padding-left:clamp(55px,6.6vw,105px);
    padding-right:clamp(22px,2.7vw,42px);
  }
}
@media (max-width:850px) {
  .home-page .cui-home-local-insight-copy {
    padding-left:clamp(31px,5vw,45px);
    padding-right:clamp(23px,3vw,34px);
  }
}

/* V13.4: One City text has a flush right rag, facing the image. */
@media (min-width:851px) {
 .home-page .cui-home-local-insight-copy { text-align:right; align-items:flex-end; }
 .home-page .cui-home-local-insight-copy h2,
 .home-page .cui-home-local-insight-copy p,
 .home-page .cui-home-local-insight-copy .cui-home-local-insight-eyebrow { text-align:right; }
}

/* V13.5: mirror Ley Street's photo-to-copy gutter (5vw, max 76px). */
@media (min-width:851px) {
 .home-page .cui-home-local-insight-copy {
   padding-right:clamp(45px,5vw,76px);
 }
}
