/* Mobile brand and homeowner shortlist enhancements */
@media(max-width:520px){.site-header .mec-brand-logo{width:clamp(180px,48vw,194px);max-width:calc(100vw - 135px)}.site-header .brand{min-width:0;flex-shrink:1}.site-header .header-inner{column-gap:10px}}
.mec-tools{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:15px}.mec-tool{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 15px;border:1px solid #b8c2b7;border-radius:10px;background:#fff;color:#294639;font:inherit;font-size:13px;font-weight:650;cursor:pointer;transition:background .15s,border-color .15s}.mec-tool:hover,.mec-tool:focus-visible{background:#edf2ec;border-color:#345742}.mec-tool[aria-pressed=true]{background:#e8eee5;border-color:#345742}.mec-shortlist-pill{position:fixed;right:20px;bottom:20px;z-index:45;padding:13px 18px;background:#294638;color:#fff;border-radius:999px;box-shadow:0 6px 22px #0002;text-decoration:none;font-size:14px;font-weight:700}.mec-shortlist-pill:hover{background:#3d5b49}.mec-shortlist-pill[hidden]{display:none}.mec-shortlist-head{padding:65px 0 20px}.mec-shortlist-head h1{font-size:clamp(36px,5vw,64px);letter-spacing:-.04em;line-height:1.05;text-wrap:balance}.mec-shortlist-intro{color:#57665d;max-width:650px;line-height:1.7}.mec-shortlist-actions{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0 40px}.mec-shortlist-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:18px;padding-bottom:70px}.mec-shortlist-card{background:#fff;border:1px solid #d6ded5;border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:13px}.mec-shortlist-card h2{font-size:23px;line-height:1.15;margin:0;text-wrap:balance}.mec-shortlist-card p{margin:0;color:#59675e;font-size:14px;line-height:1.6}.mec-shortlist-card .mec-tools{margin-top:auto}.mec-shortlist-card a:not(.mec-tool){color:#244b39}.mec-shortlist-empty{padding:35px;border:1px solid #d6ded5;border-radius:16px;background:white;margin-bottom:80px}.mec-toast{position:fixed;left:50%;bottom:80px;transform:translateX(-50%);background:#243d31;color:white;padding:11px 18px;border-radius:10px;z-index:60;max-width:90vw;text-align:center;font-size:14px}
@media(max-width:600px){.mec-shortlist-pill{right:12px;bottom:88px}.mec-shortlist-head{padding-top:40px}}

/* Compact homeowner shortlist */
.mec-shortlist-head{padding:43px 0 8px}.mec-shortlist-head h1{font-size:clamp(34px,4.3vw,54px)}
.mec-shortlist-actions{margin:20px 0 25px;align-items:center}.mec-shortlist-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding-bottom:55px}
.mec-shortlist-card{padding:19px;gap:11px;min-width:0}.mec-shortlist-card-heading{display:flex;align-items:center;gap:13px;min-width:0}.mec-shortlist-title-wrap{min-width:0}.mec-shortlist-card h2{font-size:19px;line-height:1.25;margin:0 0 4px}.mec-shortlist-card p{line-height:1.45}.mec-shortlist-logo{width:64px;height:64px;flex:0 0 64px;display:flex;align-items:center;justify-content:center;background:#f5f3ec;border:1px solid #e1e5dd;border-radius:10px;color:#31503d;font-size:28px;font-weight:600;overflow:hidden}.mec-shortlist-logo img{max-width:90%;max-height:90%;width:auto;height:auto;object-fit:contain}.mec-shortlist-logo[data-background=dark]{background:#294638}.mec-shortlist-logo[data-background=white]{background:#fff}.mec-shortlist-logo[data-background=light]{background:#f4f3ed}
.mec-shortlist-card .mec-shortlist-specialties{font-weight:650;color:#385646}.mec-shortlist-areas{font-size:13px!important}.mec-shortlist-card .mec-tools{margin-top:auto;padding-top:4px}.mec-shortlist-card .mec-tool{padding:8px 11px}.mec-share-icon{width:16px;height:16px;flex-shrink:0}.mec-shortlist-pill{background:#294638;border:1px solid #d2a756;color:#f4dfb5}.mec-shortlist-pill:hover{background:#355744;color:#fff0d2}.mec-clear-link{background:transparent;border:0;color:#59675e;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:13px;cursor:pointer;padding:9px}.mec-clear-link:hover{color:#233e30}.mec-shortlist-actions #mec-share-list{border-color:#d2a756}.mec-shortlist-actions #mec-share-list:hover{background:#fbf6eb}
@media(max-width:740px){.mec-shortlist-grid{grid-template-columns:1fr}.mec-shortlist-head{padding-top:32px}}
@media(max-width:380px){.mec-shortlist-card{padding:15px}.mec-shortlist-logo{width:54px;height:54px;flex-basis:54px}.mec-shortlist-card h2{font-size:17px}}

/* Neutral, consistent button treatment and legible matched-size action symbols. */
.mec-shortlist-pill{background:#294638;color:#fff;border:1px solid #294638}
.mec-shortlist-pill:hover{background:#355744;color:#fff}
.mec-shortlist-actions #mec-share-list{border-color:#b8c2b7}
.mec-shortlist-actions #mec-share-list:hover{background:#edf2ec}
.mec-save-icon{display:inline-block;font-size:21px;line-height:1;vertical-align:-1px;font-family:Arial, sans-serif;font-weight:400}
.mec-share-icon{width:19px;height:19px}

/* Mobile shortlist: introduce the full label, then reduce its footprint on scroll. */
.mec-shortlist-pill{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;box-sizing:border-box}
.mec-shortlist-count{font-variant-numeric:tabular-nums}
@media(max-width:600px){
 .mec-shortlist-pill{min-height:48px;min-width:48px;transition:width .25s ease,padding .25s ease,border-radius .25s ease,background-color .2s ease;overflow:hidden}
 .mec-shortlist-pill.mec-shortlist-compact{width:52px;min-width:52px;height:52px;padding:0;gap:2px;border-radius:50%}
 .mec-shortlist-pill.mec-shortlist-compact .mec-shortlist-label{display:none}
 .mec-shortlist-pill:focus-visible{outline:3px solid #d2a756;outline-offset:3px}
}
@media(prefers-reduced-motion:reduce){.mec-shortlist-pill{transition:none!important}}

/* Floating shortlist: muted brand gold, gentle elevation and smooth mobile collapse. */
.mec-shortlist-pill,
.mec-shortlist-pill:hover{
  background:#c6a66d;
  color:#253c30;
  border:1px solid #b9975d;
  box-shadow:0 4px 12px rgba(25,42,33,.10),0 12px 28px rgba(25,42,33,.08);
}
.mec-shortlist-pill:hover{background:#d2b47f;box-shadow:0 6px 16px rgba(25,42,33,.12),0 14px 30px rgba(25,42,33,.09)}
@media(max-width:600px){
  .mec-shortlist-pill{
    width:174px;
    min-width:52px;
    height:52px;
    min-height:52px;
    padding:0 14px;
    gap:5px;
    transition:width 350ms cubic-bezier(.22,1,.36,1),padding 350ms cubic-bezier(.22,1,.36,1),border-radius 350ms cubic-bezier(.22,1,.36,1),background-color 200ms ease,box-shadow 250ms ease;
  }
  .mec-shortlist-pill .mec-shortlist-label{
    display:inline-block;
    overflow:hidden;
    max-width:100px;
    opacity:1;
    transition:max-width 350ms cubic-bezier(.22,1,.36,1),opacity 200ms ease;
  }
  .mec-shortlist-pill.mec-shortlist-compact{width:52px;min-width:52px;height:52px;padding:0;gap:2px;border-radius:50%}
  .mec-shortlist-pill.mec-shortlist-compact .mec-shortlist-label{display:inline-block;max-width:0;opacity:0}
  .mec-shortlist-pill:focus-visible{outline:3px solid #294638;outline-offset:3px}
}
@media(prefers-reduced-motion:reduce){
 .mec-shortlist-pill,.mec-shortlist-pill .mec-shortlist-label{transition:none!important}
}

/* Refined mobile utility sizing; preserve the approved easing and timing. */
@media(max-width:600px){
 .mec-shortlist-pill{width:150px;height:49px;min-height:49px;min-width:48px;padding:0 11px;font-size:13px;right:16px;bottom:92px}
 .mec-shortlist-pill.mec-shortlist-compact{width:48px;min-width:48px;height:48px}
}

/* Shortlist: white lettering on muted gold for a distinct floating utility. */
.mec-shortlist-pill,.mec-shortlist-pill:hover,.mec-shortlist-pill:visited{color:#fff;}
.mec-shortlist-pill .mec-shortlist-heart,.mec-shortlist-pill .mec-shortlist-count,.mec-shortlist-pill .mec-shortlist-label{color:inherit;}

/* Shortlist feedback: place the confirmation below the floating utility, not over it. */
.mec-toast{
  background:#f8f3e8;
  color:#294638;
  border:1px solid #c6a66d;
  border-radius:12px;
  box-shadow:0 5px 18px rgba(25,42,33,.13);
  font-weight:650;
  line-height:1.35;
  pointer-events:none;
}
@media(max-width:600px){
  .mec-toast{
    left:auto;
    right:16px;
    bottom:22px;
    transform:none;
    width:max-content;
    max-width:min(290px,calc(100vw - 32px));
    padding:10px 14px;
    font-size:12px;
    text-align:center;
  }
}

body:has(#mec-shortlist-grid) .mec-shortlist-pill{display:none!important}
.mec-shortlist-load-error{padding:20px;border:1px solid #c6b28b;border-radius:12px;background:#faf5e9;color:#294638}
