/* Page-specific proportions and layouts from the approved home and visit boards. */
.mela-homes-directory-hero { position:relative; min-height:460px; overflow:hidden; }
.mela-homes-directory-art { position:absolute; inset:0; }
.mela-homes-directory-art::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#f7f3eb 3%,#f7f3ebf5 23%,#f7f3eb00 64%); }
.mela-homes-directory-art picture,.mela-homes-directory-art img { width:100%; height:100%; object-fit:cover; }
.mela-homes-directory-intro { position:relative; max-width:1200px; margin:auto; padding:64px 50px 75px; }
.mela-homes-directory-intro h1 { font-size:clamp(3.5rem,6vw,5.5rem); line-height:1; margin:12px 0 8px; }
.mela-homes-directory-intro p:not(.eyebrow) { max-width:445px; }
.mela-homes-directory-intro .mela-homes-directory-subtitle { font:clamp(2rem,3vw,2.7rem)/1.04 var(--font-display); color:#121821; margin:0 0 18px; }
.mela-homes-directory-intro>p:last-child { font-size:19px; line-height:1.4; }
/* The place headings (SEO-19) sit above the cards, so the cards no longer
   tuck up into the hero photograph. */
.mela-homes-index #main-content>section.mela-directory-list { position:relative; padding:28px 0 24px; margin-top:0; }
.mela-home-cards { gap:16px; }
.mela-home-card { padding:12px; border:1px solid #fdfbf7; border-radius:20px; }
.mela-home-card-photo { border-radius:13px; aspect-ratio:1.36; }
.mela-home-card-copy { padding:14px 7px 0; gap:10px; }
.mela-home-card-copy .mela-home-name { font-size:2.1rem!important; line-height:1.03; }
.mela-home-card-copy>.eyebrow { margin:0; line-height:1.4; }
.mela-home-description { font-size:18px; line-height:1.4; }
.mela-home-care-list { gap:10px; margin-block:10px 0; }
.mela-home-care-list li { font-size:17px; line-height:1.35; }
.mela-home-care-list img { flex:none; }
.mela-home-card-actions { padding-top:12px; gap:8px; }
.mela-home-card-actions .btn-treasure { font-size:17px; padding-inline:10px; }
.mela-home-card-actions .btn-treasure::after { content:"→"; margin-left:10px; }
.mela-call-button { min-height:44px; gap:12px; font-size:17px; background:#fffdf8; }
.mela-directory-choosing { max-width:1200px; margin:auto; padding:0 32px 20px!important; }
.mela-directory-choosing-inner { display:grid; grid-template-columns:1.1fr 1fr; overflow:hidden; align-items:center; border-radius:24px; background:#fffdf8; box-shadow:var(--mela-lift); }
.mela-directory-choosing-inner>div:first-child { position:relative; padding:30px 0 30px 48px; z-index:1; }
.mela-directory-choosing h2 { font-size:2.6rem; line-height:1.05; margin:10px 0 6px; }
.mela-directory-choosing-subtitle { font:1.7rem/1.1 var(--font-display); color:#1f4d3a; margin-bottom:10px; }
.mela-directory-choosing-inner>div:first-child>p:last-child { font-size:18px; line-height:1.45; }
.mela-directory-choosing-art { position:relative; align-self:stretch; min-height:250px; }
.mela-directory-choosing-art picture { display:block; position:absolute; inset:0; mask-image:linear-gradient(90deg,transparent,#000 20%); }
.mela-directory-choosing-art .btn-treasure { position:absolute; right:22px; bottom:22px; min-width:230px; background:#fffdf8; }
.mela-homes-closing { max-width:1200px; margin:auto; padding:34px 58px!important; display:flex; justify-content:space-between; align-items:center; gap:35px; color:#fffdf8; border-radius:40px 40px 0 0; background:linear-gradient(110deg,#003f2e,#00513a 60%,#003526); }
.mela-homes-closing h2 { color:#fffdf8!important; font-size:2.7rem; line-height:1.07; margin:4px 0 8px; }
.mela-homes-closing p { font-size:18px; }
.mela-homes-closing>.btn-treasure { flex:none; min-width:230px; }
.mela-homes-closing .btn-treasure { background:#fffdf8; color:#153629; }
.mela-home-cards--compact .mela-home-description { display:block; }
/* Profile hero and gallery. Each home has its own composition in the boards. */
.mela-property { --property-width:1136px; }
/* Ui::HomeImageryNotice: visible information beside the proposed home images. */
.mela-property .mela-home-imagery-notice {
  display:grid;
  grid-template-columns:minmax(180px, 1fr) minmax(0, 3fr);
  gap:16px 28px;
  max-width:var(--property-width);
  margin:18px auto 26px;
  padding:20px 24px;
  border-inline-start:3px solid var(--color-gold);
  border-radius:0 12px 12px 0;
  background:var(--color-cream);
  color:var(--color-forest-deep);
}
.mela-property .mela-home-imagery-notice__title { margin:0; font:24px/1.2 var(--font-display); }
.mela-property .mela-home-imagery-notice__copy { margin:0; max-width:74ch; font-size:18px; line-height:1.55; color:var(--color-ink); }
.mela-home-imagery-notice__desktop { display:contents; }
.mela-home-imagery-notice__mobile { display:none; }
.lightbox--disclosed { display:grid; grid-template-rows:minmax(0, 1fr) auto auto; gap:12px; padding:72px 20px 20px; }
.lightbox--disclosed .lightbox-viewport { position:static; min-height:0; }
.lightbox--disclosed .lightbox-slide img { max-height:100%; }
.lightbox--disclosed .lightbox-disclosure { position:relative; z-index:2; justify-self:center; max-width:74ch; margin:0; color:var(--color-ivory); font-size:18px; line-height:1.45; }
.lightbox--disclosed .lightbox-counter { position:static; transform:none; justify-self:center; }
@media(max-width:767px) {
  .mela-property .mela-home-imagery-notice { display:block; margin-block:6px 18px; padding:10px 14px; }
  .mela-home-imagery-notice__desktop { display:none; }
  .mela-home-imagery-notice__mobile { display:block; }
  .mela-home-imagery-notice__mobile summary { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:8px 14px; min-height:48px; cursor:pointer; list-style:none; }
  .mela-home-imagery-notice__mobile summary::-webkit-details-marker { display:none; }
  .mela-property .mela-home-imagery-notice__mobile .mela-home-imagery-notice__title { font-size:20px; }
  .mela-home-imagery-notice__preview { grid-column:1/-1; font:18px/1.35 var(--font-display); color:inherit; }
  .mela-home-imagery-notice__action { display:inline-flex; align-items:center; gap:8px; flex:none; font-size:18px; font-weight:500; color:var(--color-forest); }
  .mela-home-imagery-notice__more,.mela-home-imagery-notice__less { text-decoration:underline; text-underline-offset:3px; }
  .mela-home-imagery-notice__less { display:none; }
  .mela-home-imagery-notice__mobile[open] .mela-home-imagery-notice__more { display:none; }
  .mela-home-imagery-notice__mobile[open] .mela-home-imagery-notice__less { display:inline; }
  .mela-home-imagery-notice__toggle { font-size:24px; line-height:1; }
  .mela-home-imagery-notice__mobile[open] .mela-home-imagery-notice__toggle { transform:rotate(45deg); }
  .mela-home-imagery-notice__mobile summary:focus-visible { outline:2px solid var(--color-forest); outline-offset:4px; border-radius:4px; }
  .mela-property .mela-home-imagery-notice__mobile .mela-home-imagery-notice__copy { margin-top:14px; }
}
.mela-property h1,.mela-property h2,.mela-property h3 { color:#101722; }
.mela-property p { line-height:1.4; }
.mela-property-breadcrumb { margin-bottom:26px; font-size:16px; }
.mela-property-breadcrumb ol { display:flex; flex-wrap:wrap; gap:7px; }
.mela-property-breadcrumb a { color:#124b3b; text-decoration:underline; text-underline-offset:4px; }
.mela-property-opening { max-width:var(--property-width); margin:auto; padding-top:28px; position:relative; }
.mela-property-identity { padding-right:360px; padding-bottom:20px; }
.mela-property h1 { font-size:clamp(3rem,5vw,4.3rem); line-height:1.04; }
.mela-property-location { display:flex; align-items:flex-start; gap:10px; margin:16px 0; }
.mela-property-location>img { flex:none; margin-top:3px; }
.mela-property-care-badges { display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }
.mela-property-care-badges>span,.mela-property-care-badges>a>span { font-size:15px; padding:6px 14px; }
.mela-property-keyfacts { display:flex; flex-wrap:wrap; gap:30px; margin-top:20px; color:#153629; font-weight:500; }
.mela-property-keyfacts p { display:flex; align-items:center; gap:13px; font-size:17px; }
.mela-property-keyfacts p>span { background:#eae1ca; color:#ac7f3a; }
.mela-property-contact { position:absolute; z-index:3; top:28px; right:0; width:320px; padding:25px; background:#fffdf8; border:1px solid #eee8da; border-radius:19px; box-shadow:var(--mela-lift); }
.mela-property-contact h2 { font-size:1.65rem; line-height:1.1; }
.mela-property-contact>p { margin-top:10px; font-size:16px; line-height:1.4; }
.mela-property-contact-actions { display:grid; gap:10px; margin-top:14px; }
.mela-property-phone { display:flex; align-items:center; justify-content:center; gap:12px; min-height:44px; color:#124b3b; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.mela-property-contact-address { display:flex; align-items:flex-start; gap:13px; padding-top:14px; border-top:1px solid #ddd6c8; }
.mela-property-contact-address img { flex:none; margin-top:3px; }
.mela-property-gallery { display:grid; grid-template-columns:1.4fr 1fr; gap:12px; min-width:0; }
.mela-property-gallery-main { position:relative; overflow:hidden; border-radius:19px; box-shadow:var(--mela-lift); }
.mela-property-gallery-main>a { display:block; height:100%; }
.mela-property-gallery-main img { width:100%; height:100%; object-fit:cover; aspect-ratio:1.13; transition:opacity 150ms ease; }
.mela-property-gallery-thumbs { display:grid; grid-template-rows:1fr 1fr; gap:12px; min-height:0; }
.mela-property-gallery-thumbs button { min-height:0; height:100%; border-radius:15px; border:2px solid transparent; overflow:hidden; }
.mela-property-gallery-thumbs button[aria-pressed="true"] { border-color:#1f4d3a; box-shadow:0 0 0 3px #e7ecdc; }
.mela-property-gallery-thumbs img { width:100%; height:100%; object-fit:cover; }
.mela-property-gallery--wide { grid-template-columns:1fr; gap:12px; }
.mela-property-gallery--wide .mela-property-gallery-main img { aspect-ratio:2.45; object-position:center 40%; }
.mela-property-gallery--wide .mela-property-gallery-thumbs { max-width:900px; width:82%; margin:auto; grid-template-columns:repeat(3,1fr); grid-template-rows:130px; }
.mela-gallery-arrow { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; background:#fffdf8ed; color:#153629; box-shadow:0 3px 10px #12241d30; font-size:26px; display:grid; place-items:center; }
.mela-gallery-arrow--previous { left:15px; }.mela-gallery-arrow--next { right:15px; }
.mela-gallery-count { position:absolute; right:16px; bottom:14px; color:#fffdf8; background:#1a282acc; border-radius:20px; padding:4px 12px; font-size:15px; }
.mela-property-hero { position:relative; overflow:hidden; min-height:410px; }
.mela-property-hero-art { position:absolute; inset:0 0 0 39%; }
.mela-property-hero-art picture { display:block; height:100%; mask-image:linear-gradient(90deg,transparent,#000 26%); }
.mela-property-hero-art img { width:100%; height:100%; object-fit:cover; border-radius:0; }
.mela-property-hero-copy { max-width:1200px; padding:42px 50px 78px; margin:auto; position:relative; }
.mela-property-hero-copy>h1,.mela-property-hero-copy>p,.mela-property-hero-copy>.mela-property-care-badges { max-width:49%; }
.mela-property-subtitle { font:2.4rem/1.08 var(--font-display); margin-top:10px; }
.mela-property-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:20px; }
.mela-property-actions .btn-treasure { background-color:#fffdf8; }
.mela-property-actions .btn-treasure.border-2 { background-color:#fffdf8; color:#153629; }
.mela-property-actions .btn-treasure.border-2:hover { background-color:#e9eddf; color:#153629; }
.mela-property-trust { max-width:var(--property-width); display:flex; justify-content:space-around; align-items:center; gap:20px; margin:-36px auto 28px; padding:20px 26px; position:relative; border-radius:20px; background:#fffdf8; box-shadow:var(--mela-lift); }
.mela-property-trust p { display:flex; flex:1; align-items:center; gap:18px; font:1.25rem/1.2 var(--font-display); padding-right:20px; border-right:1px solid #e7dfd2; }
.mela-property-trust p:last-child { border-right:0; }
.mela-property-trust p>span:first-child { flex:none; }
.mela-property-trust>.btn-treasure { min-width:210px; }
.mela-property-nav { display:flex; justify-content:space-evenly; max-width:var(--property-width); gap:8px; margin:26px auto 10px; padding:0 24px; border-bottom:1px solid #ded6c9; }
.mela-property-nav a { min-height:48px; display:flex; align-items:center; justify-content:center; text-align:center; padding:10px 25px; color:#202e3b; font-size:17px; border-bottom:2px solid transparent; }
.mela-property-nav a[aria-current] { border-color:#124b3b; color:#124b3b; }
.mela-property-overview,.mela-property-facilities,.mela-property-finding { max-width:var(--property-width); margin:auto; display:grid; grid-template-columns:1fr 1.2fr; align-items:center; gap:40px; padding:30px 0!important; }
.mela-property-overview h2,.mela-property-care h2,.mela-property-facilities h2,.mela-property-finding h2 { font-size:clamp(2rem,3.1vw,3rem); line-height:1.06; margin:10px 0 14px; }
.mela-property-overview-copy>.btn-treasure { margin-top:20px; }
.mela-property-prose p+p { margin-top:14px; }
.mela-property-photo { position:relative; overflow:hidden; border-radius:20px; box-shadow:var(--mela-lift); }
.mela-property-photo img { width:100%; height:100%; aspect-ratio:1.7; object-fit:cover; }
.mela-property-care { display:grid; grid-template-columns:.95fr 1.6fr; max-width:1200px; margin:auto; gap:40px; padding:30px 32px!important; border-radius:35px 35px 0 0; background:linear-gradient(115deg,#e9eddf,#eff0e5); align-items:center; }
.mela-property-care-intro>p:not(.eyebrow) { margin-top:12px; }
.mela-property-care-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.mela-property-care-cards>li { display:flex; }
.mela-property-care-cards a { display:flex; width:100%; flex-direction:column; gap:10px; text-align:center; padding:22px 18px; background:#fffdf8!important; border-radius:18px; box-shadow:var(--mela-lift); }
.mela-property-care-cards h3 { font-size:1.5rem; line-height:1.05; }
.mela-property-care-cards p { font-size:16px; line-height:1.35; }
.mela-property-care-icon { display:flex; align-items:center; justify-content:center; width:60px; height:60px; padding:13px; background:linear-gradient(130deg,#e5ebd8,#d9e0c9); border-radius:50%; margin:0 auto 4px; box-shadow:0 7px 12px #80785918; }
.mela-property-care-icon--plum { background:#4b355a; }.mela-property-care-icon--plum img { filter:brightness(0) invert(1); }
.mela-property-care-arrow { display:none; }
.mela-property-facilities { grid-template-columns:1fr .9fr .85fr; }
.mela-property-facilities .mela-property-photo { height:100%; min-height:230px; }
.mela-property-facilities .mela-property-photo img { aspect-ratio:auto; min-height:230px; }
.mela-property-facilities--without-list { grid-template-columns:1fr 1fr; }
.mela-property-facilities .mela-property-photo { order:3; }
.mela-property-facility-list { display:grid; gap:15px; }
.mela-property-facility-list li { display:flex; align-items:center; gap:12px; font-size:16px; line-height:1.4; }
.mela-property-facility-list li>span:first-child { flex:none; }
.mela-published-amenities { order:4; grid-column:1/-1; display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.mela-published-amenities h3 { font-size:1.5rem; margin-bottom:8px; }
.mela-published-amenities ul { list-style:disc; padding-left:22px; }
.mela-property-finding { padding:28px 32px!important; border-radius:30px; background:linear-gradient(115deg,#e9eddf,#f7f3eb); }
.mela-property-address-card { padding:24px; border:1px solid #ded9c9; border-radius:20px; background:#fffdf8 url("/assets/mela-botanical-paper-0c8ebfa4.webp") center/cover; box-shadow:var(--mela-lift); }
.mela-property-address-card>span { float:left; margin-right:18px; }
.mela-property-address-card h3 { font-size:1.8rem; }
.mela-property-address-card p { font-size:17px; }
.mela-property-address-card ul { margin-top:18px; border-top:1px solid #ded6c9; padding-top:15px; font-size:16px; display:grid; gap:6px; }
.mela-property-published { max-width:var(--property-width); margin:20px auto; }
.mela-property-published:empty { display:none; }
.mela-directions-button { min-height:46px; display:inline-flex; align-items:center; padding:10px 20px; border-radius:8px; background:linear-gradient(#0c6045,#003e2d); color:#fffdf8; box-shadow:0 5px 12px #37483622; }
.mela-property .mela-homes-closing { margin-top:20px; }
.mela-property .mela-homes-closing h2 { max-width:600px; font-size:2.2rem; }
.mela-property .mela-homes-closing .mela-property-actions { flex-wrap:nowrap; flex:none; margin:0; }
/* Availability is a photo-led comparison, with the status taken from live data. */
.mela-availability-index #main-content>section { padding-top:36px; padding-bottom:80px; min-height:950px; }
.mela-availability-index .sanna-availability-card { padding:0; border-radius:15px; }
.mela-availability-index .sanna-availability-card article { border-radius:15px; background:#073e2e; }
.mela-availability-index .sanna-availability-card article>div:first-child { aspect-ratio:.86; }
.mela-availability-index .sanna-availability-card article>div:first-child>img { height:83%; }
.mela-availability-index .sanna-availability-card article>div:first-child>div:nth-child(2) { height:50%; background:linear-gradient(0deg,#073e2e 8%,#073e2ec4 32%,transparent); }
.mela-availability-index .sanna-availability-name { font-size:2.1rem; line-height:1.1; }
.mela-availability-index .sanna-availability-status { top:20px; left:18px; }
.mela-availability-index .sanna-availability-card article>div:last-child { padding:0 23px 22px; }
.mela-availability-index .sanna-availability-card .btn-treasure { background:#efe5c9; border-color:#e1d0a7; color:#101a18; font-size:18px; }
@media(max-width:1199px) and (min-width:768px) {
  .mela-property { --property-width:calc(100% - 64px); }
  .mela-property-identity { padding-right:340px; }
  .mela-property-trust { gap:12px; }
  .mela-property-trust p { gap:10px; padding-right:12px; }
  .mela-property-trust>.btn-treasure { min-width:150px; }
  .mela-property-care-cards { gap:10px; }
  .mela-property-care-cards a { padding:18px 12px; }
}
@media(max-width:767px) {
  .mela-homes-directory-hero { min-height:0; padding-top:195px; }
  .mela-homes-directory-art { height:310px; }
  .mela-homes-directory-art::after { background:linear-gradient(0deg,#f7f3eb 0%,#f7f3ebcc 22%,transparent 65%); }
  .mela-homes-directory-art picture img { object-position:center 34%; }
  .mela-homes-directory-intro { padding:0 24px 24px; }
  .mela-homes-directory-intro h1 { font-size:2.8rem; margin-top:7px; }
  .mela-homes-directory-intro .mela-homes-directory-subtitle { font-size:1.9rem; margin-bottom:12px; }
  .mela-homes-directory-intro>p:last-child { font-size:18px; line-height:1.4; }
  .mela-homes-index #main-content>section.mela-directory-list { margin:0; padding:8px 0 18px; }
  .mela-directory-list>.max-w-content { padding-inline:16px; }
  .mela-home-card { padding:9px; border-radius:16px; }
  .mela-home-card-photo { aspect-ratio:2.35; border-radius:11px; }
  .mela-home-card-copy { padding:10px 5px 0; gap:6px; }
  .mela-home-card-copy .mela-home-name { font-size:1.8rem!important; }
  .mela-home-card-copy>.eyebrow { font-size:12px; }
  .mela-home-care-list { gap:6px 9px; margin-block:8px 2px; }
  .mela-home-care-list li { font-size:14px; gap:8px; align-items:center; }
  .mela-home-care-list img { width:20px; height:20px; }
  .mela-home-card-fact { display:none!important; }
  .mela-home-card-actions { padding-top:6px; gap:7px; }
  .mela-home-card-actions .btn-treasure,.mela-call-button { font-size:16px; min-height:44px; }
  .mela-directory-choosing { padding:0 16px 14px!important; }
  .mela-directory-choosing-inner { grid-template-columns:1fr; text-align:center; }
  .mela-directory-choosing-inner>div:first-child { padding:22px 18px 12px; }
  .mela-directory-choosing h2 { font-size:1.9rem; }
  .mela-directory-choosing-subtitle { font-size:1.4rem; }
  .mela-directory-choosing-inner>div:first-child>p:last-child { display:none; }
  .mela-directory-choosing-art { min-height:100px; }
  .mela-directory-choosing-art picture { mask-image:none; }
  .mela-directory-choosing-art .btn-treasure { left:40px; right:40px; bottom:17px; min-width:0; }
  .mela-homes-closing { margin-inline:10px; padding:26px 22px!important; border-radius:25px 25px 0 0; text-align:center; flex-direction:column; gap:18px; }
  .mela-homes-closing h2 { font-size:2rem; }
  .mela-homes-index .mela-homes-closing div>p:not(.eyebrow) { display:none; }
  .mela-homes-closing>.btn-treasure { width:100%; min-width:0; }
  .mela-property { --property-width:calc(100% - 40px); }
  .mela-property-opening { padding-top:0; display:flex; flex-direction:column; max-width:none; }
  .mela-property-opening-gallery { order:0; }
  .mela-property-identity { order:1; padding:24px 20px 18px; }
  .mela-property-identity .mela-property-breadcrumb { display:none; }
  .mela-property h1 { font-size:2.65rem; }
  .mela-property-location { font-size:17px; margin-block:13px; }
  .mela-property-keyfacts { gap:15px; margin-top:18px; flex-wrap:nowrap; }
  .mela-property-keyfacts p { font-size:14px; gap:8px; }
  .mela-property-keyfacts p>span { width:36px; height:36px; }
  .mela-property-care-badges { gap:6px; margin-top:14px; }
  .mela-property-care-badges>span,.mela-property-care-badges>a>span { font-size:14px; padding:5px 11px; }
  .mela-property-contact { position:static; width:auto; margin:0 20px; padding:23px; order:2; }
  .mela-property-contact h2 { font-size:1.7rem; }
  .mela-property-contact>p { font-size:18px; }
  .mela-property-gallery { display:block; }
  .mela-property-gallery-main { border-radius:16px; }
  .mela-property-gallery-main img { aspect-ratio:1.45; }
  .mela-property-gallery-thumbs { display:none; }
  .mela-property-gallery--wide .mela-property-gallery-main { border-radius:0; }
  .mela-property-gallery--wide .mela-property-gallery-main img { aspect-ratio:1.55; }
  .mela-property-gallery--wide .mela-property-gallery-thumbs { display:grid; max-width:none; width:auto; margin:12px 16px 0; grid-template-rows:76px; gap:8px; }
  .mela-property-gallery--wide .mela-property-gallery-thumbs button { border-radius:10px; }
  .mela-gallery-arrow { width:44px; height:44px; }.mela-gallery-arrow--previous { left:12px; }.mela-gallery-arrow--next { right:12px; }
  .mela-gallery-count { right:12px; bottom:12px; font-size:13px; }
  .mela-property-hero { min-height:0; }
  .mela-property-hero-art { position:relative; inset:auto; height:240px; }
  .mela-property-hero-art picture { mask-image:none; }
  .mela-property-hero-copy { padding:23px 20px; }
  .mela-property-hero-copy>h1,.mela-property-hero-copy>p,.mela-property-hero-copy>.mela-property-care-badges { max-width:none; }
  .mela-property-breadcrumb { font-size:14px; margin-bottom:20px; }
  .mela-property-subtitle { font-size:2rem; }
  .mela-property-actions { flex-direction:column; align-items:stretch; gap:10px; }
  .mela-property-actions .btn-treasure { width:100%; }
  .mela-property-trust { margin:0 20px 20px; padding:20px; gap:16px; flex-direction:column; }
  .mela-property-trust p { width:100%; gap:20px; padding:0 0 16px; border:0; border-bottom:1px solid #e7dfd2; font-size:1.35rem; }
  .mela-property-trust p:last-child { padding:0; border:0; }
  .mela-property-nav { overflow-x:auto; justify-content:flex-start; padding:0 5px; margin:25px 20px 0; max-width:none; gap:2px; }
  .mela-property-nav a { flex:none; padding:9px 12px; font-size:14px; }
  .mela-property-overview,.mela-property-facilities,.mela-property-finding { display:flex; flex-direction:column; gap:22px; align-items:stretch; padding:28px 0!important; }
  .mela-property-overview h2,.mela-property-care h2,.mela-property-facilities h2,.mela-property-finding h2 { font-size:2.3rem; }
  .mela-property-overview-copy>.btn-treasure { width:100%; }
  .mela-property-overview .mela-property-gallery { width:100%; }
  .mela-property-photo img { aspect-ratio:1.5; }
  .mela-property-care { display:block; padding:26px 22px!important; margin-inline:12px; border-radius:24px; }
  .mela-property-care-cards { display:grid; grid-template-columns:1fr; gap:10px; margin-top:20px; }
  .mela-property-care-cards a { display:grid; grid-template-columns:50px 1fr; align-items:center; gap:4px 13px; text-align:left; padding:14px; }
  .mela-property-care-icon { grid-row:span 2; width:48px; height:48px; margin:0; padding:11px; }
  .mela-property-care-cards h3 { font-size:1.4rem; }
  .mela-property-care-cards p { font-size:16px; }
  .mela-property-care .mela-property-photo { margin-top:24px; }
  .mela-property-care .mela-property-care-badges { margin-top:20px; }
  .mela-property-facilities .mela-property-photo,.mela-property-facilities .mela-property-photo img { min-height:0; }
  .mela-property-facility-list { gap:16px; }
  .mela-property-facility-list li { font-size:18px; }
  .mela-published-amenities { grid-template-columns:1fr; }
  .mela-property-finding { max-width:none; margin-inline:12px; padding:26px 22px!important; }
  .mela-property-finding .mela-property-address-card { margin-top:0; }
  .mela-property .mela-homes-closing .mela-property-actions { width:100%; }
  .mela-property .mela-homes-closing h2 { font-size:2rem; }
  .mela-property-published { margin-inline:20px; }
  .mela-availability-index #main-content>section { padding-top:25px; padding-bottom:40px; min-height:0; }
  .mela-availability-index .sanna-availability-card article>div:first-child { aspect-ratio:.98; }
  .mela-availability-index .sanna-availability-card article>div:first-child>img { height:87%; }
  .mela-availability-index .sanna-availability-card article>div:first-child>div:nth-child(2) { height:50%; }
  .mela-availability-index .sanna-availability-name { font-size:1.95rem; }
  .mela-availability-index .sanna-availability-card article>div:last-child { padding-inline:22px; }
}
@media(prefers-reduced-motion:reduce) { .mela-property-gallery-main img { transition:none; } }
/* The three viewing boards share a working request flow, with their own hero. */
.mela-viewing h1,.mela-viewing h2,.mela-viewing h3 { color:#102723; }
.mela-viewing-hero { max-width:1200px; margin:auto; position:relative; min-height:465px; }
.mela-viewing-hero-art { position:absolute; inset:35px 28px 30px 45%; overflow:hidden; border-radius:20px; }
.mela-viewing-hero-art picture { display:block; height:100%; }
.mela-viewing-hero-art img { height:100%; width:100%; object-fit:cover; }
.mela-viewing-hero-copy { position:relative; width:48%; padding:36px 24px 40px 42px; }
.mela-viewing-hero-copy h1 { font-size:clamp(2.8rem,4.4vw,4rem); line-height:1.02; margin:24px 0 16px; }
.mela-viewing-hero-copy .mela-property-breadcrumb { font-size:15px; margin-bottom:30px; }
.mela-viewing-intro { font-size:19px; line-height:1.45; }
.mela-viewing-home-contact { margin-top:27px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px; border:1px solid #e6dfd0; border-radius:17px; background:#fffdf8; box-shadow:var(--mela-lift); }
.mela-viewing-home-contact>div,.mela-viewing-home-contact>a { display:flex; gap:13px; align-items:center; }
.mela-viewing-home-contact>div { border-right:1px solid #d7cfc0; padding-right:20px; }
.mela-viewing-home-contact>div>div { display:grid; }
.mela-viewing-home-contact>div strong { font:1.4rem var(--font-display); color:#134834; }
.mela-viewing-home-contact>div span { font-size:14px; }
.mela-viewing-home-contact>a strong { font-size:17px; white-space:nowrap; }
.mela-viewing-home-contact>span { border-left:1px solid #d7cfc0; padding-left:16px; font-size:14px; line-height:1.3; }
.mela-viewing-plain-phone { display:flex; align-items:center; gap:12px; color:#124b3b; margin:14px 0; }
.mela-viewing--chippendayle-lodge .mela-viewing-hero { max-width:none; }
.mela-viewing--chippendayle-lodge .mela-viewing-hero-art { inset:0 0 0 40%; border-radius:0; mask-image:linear-gradient(90deg,transparent,#000 22%); }
.mela-viewing--chippendayle-lodge .mela-viewing-hero-copy { max-width:1200px; width:auto; margin:auto; padding:42px 52% 55px max(42px,calc((100% - 1116px)/2)); }
.mela-viewing--chippendayle-lodge .mela-viewing-hero-copy h1 { font-size:clamp(2.8rem,4.3vw,4rem); }
.mela-viewing--st-stephens .mela-viewing-hero-art { inset:30px 28px 25px 38%; mask-image:linear-gradient(90deg,transparent,#000 25%); }
.mela-viewing--st-stephens .mela-viewing-hero-copy { width:47%; }
.mela-viewing-request { padding:12px 28px 30px!important; max-width:1200px; margin:auto; }
.mela-viewing-form-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:34px; border:1px solid #ede8dc; border-radius:28px; padding:35px; background:#fffdf8; box-shadow:var(--mela-lift); }
.mela-viewing-calendar { min-width:0; }
.mela-viewing-calendar-heading { position:relative; padding-bottom:20px; }
.mela-viewing-calendar h2,.mela-viewing-details h2 { font-size:2.1rem; line-height:1.1; }
.mela-viewing-calendar-heading p { font-size:18px; margin-top:10px; }
.mela-viewing-week-controls { display:flex; align-items:center; gap:10px; margin-top:16px; font-size:14px; color:#164435; }
.mela-viewing-week-controls button { display:grid; place-items:center; width:44px; height:44px; font-size:23px; border-radius:10px; background:#eff0e7; }
.mela-viewing-week-controls button:disabled { opacity:.35; cursor:default; }
.mela-viewing-weeks { display:grid; gap:12px; }
.mela-viewing-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:7px; }
.mela-viewing-week[hidden] { display:none; }
.mela-viewing-week .cal-day { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:115px; min-width:44px; padding:13px 6px; gap:4px; background:#fffdf8; color:#14222b; border:1px solid #ddd9ce; border-radius:12px; box-shadow:0 2px 5px #5a583906; }
.mela-viewing-weekday,.mela-viewing-month { font-size:14px; }
.mela-viewing-week .cal-day strong { font-size:26px; font-weight:500; }
.mela-viewing-week .cal-day[aria-pressed="true"] { color:#fffdf8; background:linear-gradient(130deg,#076448,#003e2d); border-color:#00523a; box-shadow:0 6px 10px #16443525; }
.mela-viewing-time { border-top:1px solid #dcd8ce; padding-top:24px; margin-top:25px; }
.mela-viewing-time h3 { font-size:1.8rem; margin-bottom:17px; }
.mela-viewing-slots { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.mela-viewing-slots .cal-slot { display:flex; align-items:center; justify-content:center; gap:10px; padding:12px 9px; min-height:58px; background:#fffdf8; border:1px solid #dbd6cb; border-radius:12px; color:#15372b; font-size:16px; line-height:1.3; }
.mela-viewing-slots .cal-slot svg,.mela-viewing-slots .cal-slot img { flex:none; }
.mela-viewing-slots .cal-slot[aria-pressed="true"] { background:#e9eede; border-color:#174e3c; box-shadow:inset 0 0 0 1px #174e3c; }
.mela-viewing-slots small { display:block; margin-top:4px; font-size:13px; font-weight:400; color:#555e63; }
.mela-viewing-radio { width:23px; height:23px; border:1.5px solid #8d938d; border-radius:50%; flex:none; }
.cal-slot[aria-pressed="true"] .mela-viewing-radio { border-color:#12523b; background:radial-gradient(circle,#12523b 0 48%,transparent 53%); box-shadow:0 0 0 2px #d6dfce; }
.mela-viewing-summary { display:flex; gap:20px; align-items:center; background:#edf0e4; border-radius:16px; padding:22px; margin-top:26px; color:#123c2f; }
.mela-viewing-summary>span { flex:none; }
.mela-viewing-summary>div { display:grid; gap:7px; }
.mela-viewing-summary p { font-size:16px; }
.mela-viewing-summary strong { color:#172d32; font-size:19px; line-height:1.4; font-weight:500; }
.mela-viewing-summary div>span { font-size:15px; }
.mela-viewing-request-note { margin-top:18px; font-size:16px; color:#455064; }
.mela-viewing-details { min-width:0; border-left:1px solid #dfdacd; padding-left:32px; }
.mela-viewing .mela-viewing-details form.mela-enquiry-form { padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; gap:24px; }
.mela-viewing-details .mela-form-contact { grid-template-columns:1fr; gap:24px; }
.mela-viewing-details form label { font-weight:500; font-size:17px; }
.mela-viewing-details form input:not([type="checkbox"]):not([type="hidden"]) { background:#fff; border-color:#d9dce0; border-radius:7px; min-height:50px; }
.mela-viewing-details form button[type="submit"] { width:100%; }
.mela-viewing-details form>div:first-child p { font-size:16px; line-height:1.4; }
.mela-viewing-details label:has(input[type="checkbox"]) { font-size:15px; line-height:1.45; font-weight:400; }
.mela-viewing-details label:has(input[type="checkbox"]) input { flex:none; }
.mela-viewing--chippendayle-lodge .mela-viewing-form-grid { padding:0; gap:20px; border:0; background:transparent; box-shadow:none; }
.mela-viewing--chippendayle-lodge .mela-viewing-calendar,.mela-viewing--chippendayle-lodge .mela-viewing-details { border:1px solid #eee7d8; border-radius:24px; padding:30px; background:#fffdf8; box-shadow:var(--mela-lift); }
.mela-viewing--chippendayle-lodge .mela-viewing-slots .cal-slot { min-height:80px; text-align:left; }
.mela-viewing--chippendayle-lodge .mela-viewing-request-note { display:none; }
.mela-viewing--woodside .mela-viewing-slots .cal-slot { border-radius:40px; }
.mela-viewing--woodside .mela-viewing-slots .cal-slot[aria-pressed="true"] { color:#fffdf8; background:linear-gradient(130deg,#076448,#003e2d); }
.mela-viewing--woodside .mela-viewing-slots .cal-slot[aria-pressed="true"] img { filter:brightness(0) invert(1); }
.mela-viewing--woodside .mela-viewing-request-note { display:none; }
.mela-viewing-welcome { max-width:1144px; margin:0 auto 26px; padding:16px!important; display:grid; grid-template-columns:1fr 1.2fr; align-items:center; gap:32px; background:#fffdf8; border-radius:28px; box-shadow:var(--mela-lift); }
.mela-viewing-welcome>div { padding:22px 0 22px 30px; }
.mela-viewing-welcome h2 { font-size:3rem; line-height:1.05; margin:12px 0 14px; }
.mela-viewing-welcome p { font-size:18px; line-height:1.45; }
.mela-viewing-welcome .btn-treasure { margin-top:20px; }
.mela-viewing-welcome figure { position:relative; overflow:hidden; border-radius:19px; align-self:stretch; min-height:300px; }
.mela-viewing-welcome figure picture { display:block; height:100%; }
.mela-viewing-welcome figure img { height:100%; object-fit:cover; }
.mela-visit-benefits { display:flex; max-width:1144px; margin:0 auto 25px; padding:24px; gap:24px; border-radius:28px; background:#e9eedf; }
.mela-visit-benefits p { display:flex; align-items:center; gap:20px; flex:1; font:1.3rem/1.2 var(--font-display); padding-right:20px; border-right:1px solid #d6dacd; }
.mela-visit-benefits p>span:first-child { flex:none; }
.mela-visit-benefits p:last-child { border:0; padding-right:0; }
@media(max-width:1100px) and (min-width:768px) {
  .mela-viewing-hero-copy { padding-left:32px; }
  .mela-viewing-home-contact { flex-wrap:wrap; }
  .mela-viewing-form-grid { grid-template-columns:1.25fr 1fr; gap:24px; padding:24px; }
  .mela-viewing-details { padding-left:24px; }
  .mela-viewing-slots { grid-template-columns:1fr; }
  .mela-viewing-slots .cal-slot { justify-content:flex-start; padding-inline:16px; }
  .mela-viewing-welcome,.mela-visit-benefits { margin-inline:28px; }
  .mela-visit-benefits { gap:16px; }.mela-visit-benefits p { gap:10px; padding-right:10px; font-size:1.1rem; }
}
@media(max-width:767px) {
  .mela-viewing-hero { min-height:0; }
  .mela-viewing-hero-art,.mela-viewing--chippendayle-lodge .mela-viewing-hero-art,.mela-viewing--st-stephens .mela-viewing-hero-art { position:relative; inset:auto; height:245px; mask-image:none; border-radius:0; }
  .mela-viewing-hero-art img { border-radius:0; }
  .mela-viewing-hero-copy,.mela-viewing--chippendayle-lodge .mela-viewing-hero-copy,.mela-viewing--st-stephens .mela-viewing-hero-copy { width:auto; max-width:none; padding:24px 20px 22px; }
  .mela-viewing-hero-copy .mela-property-breadcrumb { margin-bottom:20px; font-size:14px; }
  .mela-viewing-hero-copy h1,.mela-viewing--chippendayle-lodge .mela-viewing-hero-copy h1 { font-size:2.7rem; margin:16px 0; }
  .mela-viewing-intro { font-size:18px; }
  .mela-viewing-home-contact { margin-top:18px; padding:12px; gap:10px; }
  .mela-viewing-home-contact>span { display:none; }
  .mela-viewing-home-contact>div { gap:8px; padding-right:10px; }
  .mela-viewing-home-contact>div strong { font-size:1.2rem; }
  .mela-viewing-home-contact>div span { font-size:12px; }
  .mela-viewing-home-contact>a { gap:8px; }
  .mela-viewing-home-contact>a strong { font-size:16px; }
  .mela-viewing--woodside .mela-viewing-home-contact .size-10 { width:32px; height:32px; }
  .mela-viewing-request { padding:0 14px 25px!important; }
  .mela-viewing-form-grid,.mela-viewing--chippendayle-lodge .mela-viewing-form-grid { display:block; padding:22px 16px; border-radius:22px; border:1px solid #eee7d8; background:#fffdf8; box-shadow:var(--mela-lift); }
  .mela-viewing-calendar h2,.mela-viewing-details h2 { font-size:1.9rem; }
  .mela-viewing-calendar-heading { padding-bottom:16px; }
  .mela-viewing-calendar-heading p { font-size:18px; }
  .mela-viewing-week-controls { margin-top:12px; }
  .mela-viewing-week { gap:4px; }
  .mela-viewing-week .cal-day { min-width:0; min-height:90px; padding:8px 2px; border-radius:8px; }
  .mela-viewing-weekday,.mela-viewing-month { font-size:12px; }
  .mela-viewing-week .cal-day strong { font-size:23px; }
  .mela-viewing--chippendayle-lodge .mela-viewing-week { grid-template-columns:repeat(7,70px); overflow:auto; padding-bottom:8px; scroll-snap-type:x mandatory; }
  .mela-viewing--chippendayle-lodge .cal-day { scroll-snap-align:start; }
  .mela-viewing--woodside .mela-viewing-week { grid-template-columns:repeat(4,1fr); gap:8px; }
  .mela-viewing--woodside .mela-viewing-week .cal-day { min-height:85px; }
  .mela-viewing-time { margin-top:20px; padding-top:20px; }
  .mela-viewing-time h3 { font-size:1.6rem; }
  .mela-viewing-slots { grid-template-columns:1fr; gap:9px; }
  .mela-viewing-slots .cal-slot { min-height:50px; font-size:17px; }
  .mela-viewing--chippendayle-lodge .mela-viewing-slots .cal-slot { justify-content:flex-start; min-height:65px; padding-inline:15px; }
  .mela-viewing-summary { gap:12px; padding:18px 14px; margin-top:20px; }
  .mela-viewing-summary>span { width:38px; height:38px; }
  .mela-viewing-summary strong { font-size:18px; }
  .mela-viewing-details { margin-top:26px; border-left:0; border-top:1px solid #ded8ca; padding:25px 0 0; }
  .mela-viewing .mela-viewing-details form.mela-enquiry-form { gap:20px; }
  .mela-viewing-details .mela-form-contact { gap:20px; }
  .mela-viewing-details form>div:first-child p { display:none; }
  .mela-viewing-details label:has(input[type="checkbox"]) { font-size:16px; }
  .mela-viewing--chippendayle-lodge .mela-viewing-calendar,.mela-viewing--chippendayle-lodge .mela-viewing-details { padding:0; background:transparent; box-shadow:none; border:0; border-radius:0; }
  .mela-viewing--chippendayle-lodge .mela-viewing-details { border-top:1px solid #ded8ca; padding-top:26px; }
  .mela-viewing-welcome,.mela-visit-benefits { display:none; }
  .mela-viewing .mela-homes-closing { display:none; }
}
.mela-property-nav .profile-nav-link.is-active { color:#124b3b; background:transparent; border-bottom-color:#124b3b; }
.mela-property-trust p>span:first-child,.mela-visit-benefits p>span:first-child,.mela-viewing-summary>span,.mela-viewing-home-contact a>span,.mela-viewing-home-contact>div>span { background:linear-gradient(130deg,#e7ecdc,#dce3ce); }
@media(max-width:767px) {
  .mela-viewing--st-stephens .mela-viewing-week { gap:0; grid-template-columns:repeat(7,minmax(44px,1fr)); overflow-x:auto; }
  .mela-viewing--st-stephens .mela-viewing-week .cal-day { min-width:44px; }
}
@media(max-width:767px) { .mela-property-care-cards p { font-size:18px; } }
/* Paired-image QA corrections: readable secondary actions and compact title rhythm. */
.mela-property .mela-property-subtitle { line-height:1.08; }
.mela-property-contact h2 { font-size:1.4rem; }
.mela-property-contact-actions .btn-treasure { min-height:46px; padding:8px 12px; font-size:17px; }
.mela-viewing--st-stephens .mela-viewing-hero-art img { object-position:center top; }
@media(max-width:767px) {
  .mela-property .mela-property-subtitle { font-size:1.75rem; line-height:1.1; }
  .mela-property-subtitle br { display:none; }
  .mela-property-contact h2 { font-size:1.4rem; }
}
.mela-property-trust img,.mela-visit-benefits img,.mela-viewing-home-contact img,.mela-viewing-summary img,.mela-property-contact-actions img,.mela-call-button img { filter:brightness(0) saturate(100%) invert(23%) sepia(20%) saturate(1068%) hue-rotate(106deg) brightness(87%) contrast(92%); }
.mela-interior #main-content .mela-property-actions .btn-treasure[href^="tel:"]::after,.mela-availability-index #main-content .btn-treasure::after { display:none; }
.mela-property-actions .btn-treasure[href^="tel:"]::before { content:""; width:18px; height:18px; flex:none; background:currentColor; mask:url("/assets/ui-icons/phone-380f67e9.svg") center/contain no-repeat; }
.mela-property .eyebrow,.mela-homes-directory-intro .eyebrow,.mela-home-card-copy>.eyebrow,.mela-directory-choosing .eyebrow,.mela-viewing .eyebrow { color:#98620f; }
.mela-home-card-copy .mela-home-name { color:#071c20; }
.mela-home-description,.mela-property-prose,.mela-property-care-intro>p:not(.eyebrow),.mela-property-care-cards p,.mela-property-facilities>div>p:not(.eyebrow),.mela-viewing-intro,.mela-viewing-welcome>div>p:not(.eyebrow),.mela-homes-directory-intro>p:last-child { color:#43536a; }
.mela-viewing .mela-homes-closing .eyebrow,.mela-property .mela-homes-closing .eyebrow { color:#ddc68f; }

/* Preserve the full exterior and the reference's simple care pills. */
.mela-homes-show #care .mela-property-care-badges>a { background:transparent!important; padding:0!important; border-radius:0; box-shadow:none; }

/* SEO package (5 Oct 2026). Facts from the record, said once, in the page's
   own paper-and-forest vocabulary; no new colours. */

.mela-postcode { white-space:nowrap; }

/* The H1 reads like a house sign: the name, then what and where (SEO-07). */
.mela-property-title .mela-property-name { display:block; }
/* The comma after the name, for screen readers only. Clipped in place (it
   stays inline, at the end of the name's line) so Chrome reads it straight
   after the name with no space. */
.mela-property-comma { clip-path:inset(50%); }
.mela-property-title .mela-property-kind { display:block; margin-top:12px; font:500 1.25rem/1.3 var(--font-sans); letter-spacing:0; color:#1f4d3a; }

/* Ui::KeyFacts: a quiet definition list inside the address card (SEO-17). */
.mela-key-facts-heading { font-size:1.8rem; line-height:1.1; min-height:56px; display:flex; align-items:center; }
.mela-key-facts-list { clear:both; margin-top:14px; }
.mela-key-facts-list>div { display:grid; grid-template-columns:7.5rem minmax(0,1fr); gap:4px 16px; padding:12px 0; border-top:1px solid #ded6c9; }
.mela-key-facts-list dt { font:600 15px/1.45 var(--font-sans); color:#43536a; padding-top:1px; }
.mela-key-facts-list dd { font-size:17px; line-height:1.45; color:#202e3b; }
.mela-key-facts-phone { display:inline-flex; align-items:center; min-height:44px; margin-block:-12px; color:#124b3b; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.mela-property-address-card .mela-key-facts-notes { margin-top:6px; }

/* "Our other homes in Kent" (SEO-32): the directory cards, two to a row. */
.mela-property-others { max-width:var(--property-width); margin:30px auto 10px; }
.mela-property-others h2 { font-size:clamp(2rem,3.1vw,3rem); line-height:1.06; margin-bottom:20px; }
.mela-property-others .mela-home-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
/* Keep the exterior in a landscape frame, independent of the copy length.
   The old sideways layout made it a tall sliver beside longer descriptions. */
.mela-property-others .mela-home-card { display:flex; flex-direction:column; }
.mela-property-others .mela-home-card-photo { aspect-ratio:4/3; height:auto; min-height:0; flex:none; }
.mela-property-others .mela-home-card-photo img { width:100%; height:100%; object-fit:cover; }
.mela-property-others .mela-home-card-copy { padding:18px 10px 8px; gap:10px; }
.mela-home-distance { font-size:17px; line-height:1.4; font-weight:500; color:#1f4d3a; }
/* 44px tap targets: the card's name link and the viewing hero's phone. */
.mela-home-card .mela-home-name a { display:inline-flex; align-items:center; min-height:44px; }
.mela-viewing-plain-phone { min-height:44px; }

/* /our-homes grouped by place (SEO-19): headings over their cards. Below
   1000px one group per row; from 1000px the three-up row, each group's
   cards in explicit columns matching its span, so a card can never be wider
   than its own group (the inherited 280px auto-fit minimum pushed the cards
   across each other at tablet widths). */
.mela-directory-places { display:grid; gap:26px; }
.mela-directory-place { display:grid; grid-template-rows:auto 1fr; gap:14px; min-width:0; }
/* A quiet label whose rule runs the width of its own cards, so the grouping
   reads at a glance and the card names stay the larger type. */
.mela-directory-place h2 { display:flex; align-items:flex-end; gap:14px; padding-inline:4px; font:600 1.25rem/1.3 var(--font-sans); letter-spacing:0; color:#1f4d3a; }
/* The rule runs level with the middle of the heading's last line (half the
   1.3 line height), so it reads the same when the heading wraps. */
.mela-directory-place h2::after { content:""; flex:1; min-width:32px; height:1px; margin-bottom:.65em; background:#d7cfc0; }
.mela-directory-place .mela-home-cards { gap:16px; }
/* Tablets: two cards to a row in every group, as the single list was. */
@media(min-width:768px) and (max-width:999px) {
  .mela-directory-place .mela-home-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(min-width:1000px) {
  .mela-directory-places { grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:auto 1fr; gap:14px 16px; }
  /* Every group spans the same two rows, so a heading that wraps ("Our care
     home in Harrietsham, near Maidstone") never drops its cards below the
     next group's. Browsers without subgrid keep each group's own rows. */
  .mela-directory-place { grid-row:span 2; grid-template-rows:subgrid; }
  .mela-directory-place h2 { align-self:end; }
  .mela-directory-place .mela-home-cards { grid-template-columns:minmax(0,1fr); }
  .mela-directory-place--span-2 { grid-column:span 2; }
  .mela-directory-place--span-2 .mela-home-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mela-directory-place--span-3 { grid-column:1/-1; }
  .mela-directory-place--span-3 .mela-home-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* The /our-homes comparison: the shared Ui::ComparisonTable (its table and
   phone stacking live in mela-care-fidelity.css) on the same paper surface
   as the types-of-care glance. */
.mela-directory-compare { max-width:1200px; margin:0 auto; padding:26px 32px 34px!important; }
.mela-directory-compare h2 { font-size:clamp(2rem,3vw,2.6rem); line-height:1.06; color:#101722; margin-bottom:18px; }
.mela-directory-compare-surface { padding:26px 32px 10px; background:#fffdf8; border-radius:24px; box-shadow:var(--mela-lift); }
/* The kind sits close under the name link, inside its 44px target's slack;
   taps there still reach the link. */
.mela-compare-kind { display:block; margin-top:-8px; font:400 16px/1.4 var(--font-sans); color:#43536a; pointer-events:none; }
/* The 44px phone link centres its number; lift it to the first text line. */
.mela-compare-phone { margin-top:-10px; white-space:nowrap; }

@media(max-width:767px) {
  .mela-property-title .mela-property-kind { margin-top:8px; font-size:1.125rem; }
  .mela-key-facts-list>div { grid-template-columns:1fr; gap:2px; }
  .mela-key-facts-list dd { font-size:18px; }
  .mela-key-facts-phone { margin-block:-8px; }
  .mela-property-others { margin:26px 20px 10px; max-width:none; }
  .mela-property-others h2 { font-size:2.1rem; margin-bottom:16px; }
  .mela-property-others .mela-home-cards { grid-template-columns:1fr; gap:14px; }
  .mela-home-distance { font-size:18px; }
  .mela-directory-places { gap:22px; }
  .mela-directory-place h2 { font-size:1.2rem; padding-inline:2px; }
  .mela-directory-compare { padding:18px 16px 24px!important; }
  .mela-directory-compare h2 { font-size:2rem; margin-bottom:14px; }
  .mela-directory-compare-surface { padding:6px 16px; }
  .mela-compare-kind { font-size:18px; }
  .mela-compare-phone { margin-top:-8px; }
}

/* Our Homes, 19 October: a quiet directory, one destination per home.
   Details remain on the individual home pages; shared care-page cards retain
   their existing layout through the explicit directory variant. */
.mela-directory { width:min(1160px,calc(100% - 64px)); margin:0 auto; padding:42px 0 56px; }
.mela-directory-heading { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:48px; padding-bottom:32px; }
.mela-directory-region { font:500 18px/1.4 var(--font-sans); color:#1f4d3a; margin:0 0 10px; }
.mela-directory-heading h1 { font:400 clamp(3.3rem,5.8vw,4.8rem)/1 var(--font-display); margin:0; }
.mela-directory-introduction { max-width:29em; margin:0; color:#2a2a2a; font-size:20px; line-height:1.5; }
.mela-directory-collection { padding:0; }
.mela-home-cards--directory { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.mela-home-cards--directory>.mela-home-card { padding:0; border:1px solid #d8cfbb; border-radius:23px; background:#fcfaf4; box-shadow:inset 0 1px 0 #fffdf8,0 4px 0 #e6ddc9,0 15px 25px -15px #1536294d; transform:none; }
.mela-home-cards--directory .mela-directory-card-link { display:flex; flex-direction:column; height:100%; border-radius:inherit; color:#153629; text-decoration:none; scroll-margin-block:210px 100px; }
.mela-home-cards--directory .mela-directory-card-link:focus-visible { outline:3px solid #153629; outline-offset:5px; }
.mela-directory-card-picture { aspect-ratio:4/3; margin:10px 10px 0; overflow:hidden; border-radius:15px; background:#e9ecdf; }
.mela-directory-card-picture picture { display:block; height:100%; }
.mela-directory-card-picture img { width:100%; height:100%; object-fit:cover; }
.mela-directory-card-copy { display:flex; flex:1; flex-direction:column; padding:22px 24px 16px; }
.mela-directory-card-copy .mela-directory-card-name { margin:0; font:400 clamp(1.8rem,2.8vw,2.25rem)/1.1 var(--font-display); color:#153629; }
.mela-directory-card-location { margin:8px 0 0; font:500 18px/1.4 var(--font-sans); color:#1f4d3a; }
.mela-directory-card-care { margin:17px 0 22px; font-size:18px; line-height:1.45; color:#2a2a2a; }
.mela-directory-card-action { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:14px; min-height:58px; border-top:1px solid #ded7c7; font:500 18px/1.35 var(--font-sans); }
.mela-directory-card-action>span { display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:50%; background:#e9ecdf; box-shadow:inset 0 1px 0 #fffdf8,0 2px 3px #15362917; }
.mela-directory-help { display:flex; align-items:center; justify-content:space-between; gap:28px; margin-top:38px; padding:28px 32px; border:1px solid #dce0d1; border-radius:19px; background:#e9ecdfc9; }
.mela-directory-help h2 { margin:0 0 7px; font:400 2rem/1.1 var(--font-display); color:#153629; }
.mela-directory-help p { margin:0; font-size:18px; line-height:1.45; color:#2a2a2a; }
.mela-directory-help-actions { display:flex; align-items:center; gap:24px; flex-shrink:0; }
.mela-directory-guide { display:inline-flex; align-items:center; min-height:48px; color:#153629; text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1px; font-weight:500; }
.mela-directory-guide:focus-visible { outline:3px solid #153629; outline-offset:4px; border-radius:3px; }
.mela-directory-help .btn-treasure { min-height:50px; font-size:18px; white-space:nowrap; }
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .mela-home-cards--directory>.mela-home-card { transition:transform 200ms ease,box-shadow 200ms ease,border-color 200ms ease; }
  .mela-home-cards--directory>.mela-home-card:hover { transform:translateY(-4px); border-color:#b39159; box-shadow:inset 0 1px 0 #fffdf8,0 4px 0 #e6ddc9,0 21px 29px -16px #1536295c; }
}
@media(min-width:700px) and (max-width:999px) {
  .mela-home-cards--directory { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mela-directory-card-copy .mela-directory-card-name { font-size:2rem; }
  .mela-directory-help { align-items:flex-start; flex-direction:column; gap:16px; }
}
@media(max-width:699px) {
  .mela-directory { width:calc(100% - 40px); padding:28px 0 36px; }
  .mela-directory-heading { grid-template-columns:1fr; gap:18px; padding-bottom:26px; }
  .mela-directory-heading h1 { font-size:3.1rem; }
  .mela-directory-region { margin-bottom:7px; }
  .mela-directory-introduction { font-size:18px; line-height:1.45; }
  .mela-home-cards--directory { grid-template-columns:1fr; gap:26px; }
  .mela-directory-card-copy { padding:20px 20px 14px; }
  .mela-directory-card-copy .mela-directory-card-name { font-size:2rem; }
  .mela-directory-card-care { margin:14px 0 18px; }
  .mela-directory-card-action { padding-top:12px; }
  .mela-directory-help { display:block; margin-top:30px; padding:24px 20px; }
  .mela-directory-help h2 { font-size:1.9rem; }
  .mela-directory-help-actions { display:flex; flex-direction:column; align-items:stretch; gap:10px; margin-top:18px; }
  .mela-directory-guide { justify-content:center; }
}
@media(prefers-reduced-motion:reduce) {
  .mela-home-cards--directory>.mela-home-card,
  .mela-home-cards--directory>.mela-home-card:hover { transform:none; transition:none; }
  .mela-directory-help .btn-treasure:is(:hover,:focus-visible,:active) { transform:none; translate:none; transition:none; }
}

/* Quiet framing for CQC's live display. Never target vendor internals. */
.mela-cqc-panel { padding:14px 12px 4px; border:1px solid #d8cfbb; border-radius:17px; background:#fffdf8; box-shadow:inset 0 1px 0 #fffdf8,0 7px 18px -13px #15362970; min-width:0; }
.mela-home-regulation { display:grid; grid-template-columns:minmax(0,320px) minmax(0,1fr); align-items:start; gap:36px; width:min(1136px,calc(100% - 64px)); margin:28px auto; padding:24px; border:1px solid #d8cfbb; border-radius:20px; background:#faf7ef; }
.mela-home-regulation-copy { min-width:0; }
.mela-home-regulation-copy h2 { color:#153629; margin:0 0 14px; font:400 1.9rem/1.15 var(--font-display); }
.mela-home-regulation-copy p { font-size:18px; line-height:1.55; margin:0 0 16px; }
@media(max-width:767px) { .mela-home-regulation { grid-template-columns:minmax(0,1fr); gap:22px; width:calc(100% - 40px); padding:16px; margin:22px auto; } }
.mela-cqc-panel>h2 { color:#153629; font:400 1.5rem/1.1 var(--font-display); margin:0 8px 12px; }
.mela-cqc-frame { display:block; width:100%; border:0; }
.mela-cqc-frame[hidden],.mela-cqc-unavailable[hidden] { display:none; }
.mela-cqc-report { display:flex; align-items:center; min-height:44px; padding:8px; color:#153629; font:500 16px/1.35 var(--font-sans); text-decoration:underline; text-underline-offset:4px; }
.mela-cqc-report:focus-visible { outline:3px solid #153629; outline-offset:3px; border-radius:3px; }
.mela-cqc-unavailable { margin:12px 8px; color:#2a2a2a; font-size:18px; line-height:1.4; }
@media(max-width:767px) {
  .mela-cqc-panel { width:min(100%,334px); padding:12px 10px 2px; }
  .mela-cqc-report { font-size:18px; }
}

/* The profile offers a small doorway into the longer home story. */
.mela-property-about-link { max-width:var(--property-width); margin:22px auto 8px; }
.mela-home-about-card { display:flex; align-items:center; gap:18px; padding:18px 24px; color:#153629; text-decoration:none; border:1px solid #d8cfbb; border-radius:16px; background:#fffdf8; box-shadow:0 5px 14px -11px #15362970,inset 0 1px 0 #fffdf8; }
.mela-home-about-card-icon { display:grid; place-items:center; flex:none; width:48px; height:48px; border-radius:50%; background:#e9ecdf; }
.mela-home-about-card-copy { display:grid; gap:5px; }
.mela-home-about-card-title { margin:0; font:400 1.8rem/1.1 var(--font-display); }
.mela-home-about-card-copy>span:last-child { font-size:18px; line-height:1.4; color:#2a2a2a; }
.mela-home-about-card-action { display:flex; align-items:center; gap:24px; margin-left:auto; flex-shrink:0; min-height:44px; font-size:18px; text-decoration:underline; text-underline-offset:4px; }
.mela-home-about-card:focus-visible { outline:3px solid #153629; outline-offset:4px; }
@media(hover:hover) { .mela-home-about-card:hover { border-color:#a58650; background:#fcfaf4; } }

/* Long-form home stories: paper, clear reading measures and one photograph. */
.mela-home-about { width:min(1136px,calc(100% - 64px)); margin:auto; padding:30px 0 48px; color:#2a2a2a; }
.mela-home-about-opening { display:grid; grid-template-columns:minmax(0,1fr) 300px; grid-template-rows:auto 1fr; column-gap:70px; row-gap:22px; align-items:start; }
.mela-home-about-heading { grid-column:1; grid-row:1; }
.mela-home-about .mela-property-breadcrumb { margin-bottom:26px; }
.mela-home-about-heading h1 { margin:0; max-width:13ch; color:#153629; font:400 clamp(3rem,5vw,4.3rem)/1.03 var(--font-display); }
.mela-home-about-intro { grid-column:1; grid-row:2; max-width:39em; }
.mela-home-about-intro>p { font-size:20px; line-height:1.55; margin:0; }
.mela-home-about-opening>.mela-cqc-panel { grid-column:2; grid-row:1 / span 2; width:300px; padding:10px 9px 2px; border-radius:14px; }
.mela-home-about .mela-cqc-panel>h2 { font-size:22px; margin:0 6px 8px; }
.mela-home-about-back { display:inline-flex; align-items:center; min-height:44px; padding:8px 0; color:#153629; font-size:18px; line-height:1.4; text-decoration:underline; text-underline-offset:4px; }
.mela-home-about :is(.mela-home-about-back,.mela-home-about-practical a):focus-visible { outline:3px solid #153629; outline-offset:3px; border-radius:3px; }
.mela-home-about--without-rating .mela-home-about-opening { grid-template-columns:1fr; }
.mela-home-about-photo { margin:36px 0 48px; height:340px; overflow:hidden; border:7px solid #fffdf8; border-radius:24px; box-shadow:0 12px 24px -18px #15362980; }
.mela-home-about-photo picture,.mela-home-about-photo img { display:block; width:100%; height:100%; object-fit:cover; border-radius:16px; }
.mela-home-about-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; align-items:start; gap:70px; }
.mela-home-about-section { margin:0 0 36px; }
.mela-home-about-section h2 { margin:0 0 16px; color:#153629; font:400 2.3rem/1.12 var(--font-display); }
.mela-home-about-section p { margin:0 0 16px; font-size:19px; line-height:1.65; max-width:65ch; }
.mela-home-about-practical { padding:24px; border-radius:18px; background:#e9ecdf; border:1px solid #dce0d1; }
.mela-home-about-practical h2 { margin:0 0 16px; color:#153629; font:400 1.9rem/1.1 var(--font-display); }
.mela-home-about-practical>p { color:#153629; font-size:18px; font-weight:500; margin:0 0 10px; }
.mela-home-about-practical address { font-size:18px; line-height:1.5; font-style:normal; }
.mela-home-about-practical h3 { color:#153629; font-size:18px; font-weight:600; margin:24px 0 8px; }
.mela-home-about-practical a { color:#153629; display:flex; align-items:center; min-height:44px; padding:7px 0; font-size:18px; line-height:1.4; text-decoration:underline; text-underline-offset:4px; }
.mela-home-about-practical .mela-home-about-rating-link { margin-top:22px; padding-top:14px; border-top:1px solid #cbd2bf; }
.mela-home-about-visit { display:flex; align-items:center; justify-content:space-between; gap:32px; margin-top:8px; padding:30px 36px; background:#153629; color:#f7f3eb; border-radius:23px; }
.mela-home-about-visit h2 { color:#f7f3eb; font:400 2.4rem/1.1 var(--font-display); margin:0 0 12px; }
.mela-home-about-visit p { font-size:18px; line-height:1.5; max-width:32em; margin:0; }
.mela-home-about-visit .mela-property-actions { flex-shrink:0; max-width:230px; margin:0; }
.mela-home-about-visit .mela-home-about-back { color:#f7f3eb; }
.mela-home-about-visit .mela-home-about-back:focus-visible { outline-color:#f7f3eb; }
@media(min-width:768px) and (max-width:999px) {
  .mela-home-about-opening,.mela-home-about-layout { column-gap:32px; }
  .mela-home-about-visit { align-items:flex-start; flex-direction:column; }
  .mela-home-about-visit .mela-property-actions { max-width:none; }
}
@media(max-width:767px) {
  .mela-property-about-link { margin:20px auto 4px; }
  .mela-home-about-card { display:grid; grid-template-columns:40px minmax(0,1fr); gap:12px; padding:18px 16px 12px; }
  .mela-home-about-card-icon { width:40px; height:40px; }
  .mela-home-about-card-title { font-size:1.65rem; }
  .mela-home-about-card-action { grid-column:2; margin:0; justify-content:space-between; }
  .mela-home-about { width:calc(100% - 40px); padding:24px 0 32px; }
  .mela-home-about-opening { display:flex; flex-direction:column; gap:22px; }
  .mela-home-about-heading { order:0; }
  .mela-home-about .mela-property-breadcrumb { margin-bottom:20px; font-size:16px; }
  .mela-home-about-heading h1 { font-size:2.5rem; max-width:none; }
  .mela-home-about-opening>.mela-cqc-panel { order:1; width:min(100%,300px); }
  .mela-home-about-intro { order:2; }
  .mela-home-about-intro>p { font-size:18px; line-height:1.6; }
  .mela-home-about-intro .mela-property-actions { align-items:stretch; }
  .mela-home-about-photo { height:210px; border-width:5px; border-radius:19px; margin:28px 0 34px; }
  .mela-home-about-layout { display:flex; flex-direction:column; gap:0; }
  .mela-home-about-section { margin-bottom:32px; }
  .mela-home-about-section h2 { font-size:2rem; line-height:1.13; }
  .mela-home-about-section p { font-size:18px; line-height:1.6; }
  .mela-home-about-practical { width:100%; padding:22px; margin-bottom:28px; }
  .mela-home-about-visit { display:block; margin:0; padding:26px 22px; }
  .mela-home-about-visit h2 { font-size:2.1rem; }
  .mela-home-about-visit .mela-property-actions { max-width:none; display:flex; flex-direction:column; align-items:stretch; margin-top:22px; }
  .mela-home-about-visit .mela-home-about-back { justify-content:center; }
}

/* The supplied Chippendayle exterior needs room for its roof and entrance. */
@media(min-width:768px) {
  .mela-property-gallery--wide .mela-property-gallery-main img { aspect-ratio:2; }
}
