/* Editorial refinement layer — preserve architecture, improve rhythm */
:root{
  --surface-main:#f0f0f0;
  --surface-card:#f8f8f8;
  --surface-muted:#e5e5e5;
  --text-main:#1c1c1c;
  --text-muted:#5f5f5f;
  --border-soft:#cacaca;
  --panel-gutter:clamp(32px,4vw,72px);
  --panel-gap:clamp(32px,3.5vw,64px);
}

/* Consistent editorial scale */
.panel:not(.hero) .eyebrow{
  font-size:11px;
  line-height:1.2;
  letter-spacing:.16em;
  font-weight:650;
}
.panel:not(.hero) h2{
  line-height:.96;
  letter-spacing:-.057em;
}
.panel:not(.hero) p{
  line-height:1.65;
}
.light{background:var(--surface-main);color:var(--text-main)}
html[data-theme="light"] body{background:var(--surface-main)}

/* Horizontal rhythm: left editorial column + stronger visual field */
@media(min-width:901px){
  .residence{
    width:100vw;
    grid-template-columns:minmax(0,.31fr) minmax(0,.69fr);
    gap:var(--panel-gap);
    padding:132px var(--panel-gutter) 42px;
  }
  .residence-copy{padding-right:0}
  .residence-copy p{max-width:410px}

  .videos{
    width:100vw;
    grid-template-columns:minmax(0,.30fr) minmax(0,.70fr);
    gap:var(--panel-gap);
    padding:132px var(--panel-gutter) 42px;
  }
  .video-intro{padding-right:0}
  .video-intro h2{max-width:410px;margin-bottom:24px}
  .video-intro p{max-width:350px}
  .video-stage{padding:0 2vw 0 0}
  .video-shell{max-width:1180px}

  .atouts{
    width:100vw;
    grid-template-columns:minmax(0,.25fr) minmax(0,.36fr) minmax(0,.39fr);
    gap:var(--panel-gap);
    padding:132px var(--panel-gutter) 42px;
  }
  .atout-photo{padding-right:1vw}
  .atout-photo .photo-button{height:82%;margin-top:34px}

  .gallery{
    width:100vw;
    grid-template-columns:minmax(0,.27fr) minmax(0,.73fr);
    gap:var(--panel-gap);
    padding:132px var(--panel-gutter) 42px;
  }
  .gallery-composition{padding-right:1vw}

  .intelligence{
    width:100vw;
    grid-template-columns:minmax(0,.27fr) minmax(0,.73fr);
    gap:var(--panel-gap);
    padding:126px var(--panel-gutter) 34px;
  }
  .intelligence-intro>p{max-width:360px}
  .intel-content{padding-right:1vw}

  .details{
    width:100vw;
    grid-template-columns:minmax(0,.30fr) minmax(0,.70fr);
    gap:var(--panel-gap);
    padding:126px var(--panel-gutter) 38px;
  }
  .details-intro{padding-right:0}
  .detail-content{padding-right:1.5vw}

  .quartier{
    width:100vw;
    grid-template-columns:minmax(0,.54fr) minmax(0,.46fr);
    gap:var(--panel-gap);
    padding:122px var(--panel-gutter) 38px;
  }
  .quartier-copy{padding-right:1vw}

  .documents{
    width:82vw;
    padding:132px var(--panel-gutter) 42px;
  }

  .contact{
    width:100vw;
    grid-template-columns:minmax(0,.50fr) minmax(0,.50fr);
    gap:var(--panel-gap);
    padding:122px var(--panel-gutter) 42px;
  }
  .contact-copy{padding-right:1vw}

  /* Subtle panel entrance — only the active panel reaches full emphasis */
  .panel:not(.hero)>*{
    transition:
      opacity .42s ease,
      transform .52s cubic-bezier(.22,.61,.36,1);
  }
  .panel:not(.hero):not(.is-active)>*{
    opacity:.78;
    transform:translateY(7px);
  }
  .panel:not(.hero).is-active>*{
    opacity:1;
    transform:none;
  }
}

/* Reduce visual chrome: separators instead of boxed UI where possible */
.feature-list article,
.specs>div,
.detail-preview-links button,
.document-list a,
.walks li{
  border-color:color-mix(in srgb,var(--border-soft) 82%,transparent);
}
.finance-card{
  background:transparent;
  border:0;
  border-top:1px solid var(--border-soft);
  border-bottom:1px solid var(--border-soft);
  padding:16px 0;
}
.feature-card{
  background:rgba(229,229,229,.58);
  border:0;
  border-top:1px solid var(--border-soft);
}
.feature-pills span{
  background:rgba(248,248,248,.78);
  border-color:#d8d8d8;
}
.ceiling-bar{
  background:rgba(229,229,229,.72);
  border:0;
  border-top:1px solid var(--border-soft);
  border-bottom:1px solid var(--border-soft);
}

/* Utility text: minimal without becoming microscopic */
.image-caption,
.gallery-caption,
.video-caption,
.source-note,
.floorplan-hint,
.document-list small{
  font-size:11px;
  line-height:1.5;
}
.intel-tabs button,
.detail-tabs button,
.video-tabs button{
  font-size:13px;
}
.navigation nav a{
  font-size:12px;
  letter-spacing:.005em;
}

/* Media gets priority */
.residence-visual,
.video-stage,
.gallery-composition,
.quartier-photo,
.contact-photo{
  min-width:0;
}
.video-frame,
.gallery-composition .photo-button,
.large-photo{
  box-shadow:none;
}
.photo-button img,
.video-frame video{
  transition:transform .65s cubic-bezier(.22,.61,.36,1),opacity .35s ease;
}

/* Selected states share one restrained language */
.video-tabs button[aria-selected=true],
.intel-tabs button[aria-selected=true],
.detail-tabs button[aria-selected=true]{
  border-bottom-color:var(--red);
}
.text-link,
.download-label{
  transition:color .18s ease,border-color .18s ease,opacity .18s ease;
}

/* Light theme surface refinements */
html[data-theme="light"] .light,
html[data-theme="light"] .floorplan{
  background:var(--surface-main);
  color:var(--text-main);
}
html[data-theme="light"] .feature-card{
  background:rgba(229,229,229,.62);
}
html[data-theme="light"] .finance-card,
html[data-theme="light"] .ceiling-bar{
  border-color:var(--border-soft);
}

/* Preserve dense screens without squeezing typography */
@media(max-height:760px) and (min-width:901px){
  .residence,.videos,.atouts,.gallery,.intelligence,.details,.quartier,.contact{
    padding-top:102px;
    padding-bottom:24px;
  }
  .panel:not(.hero) h2{font-size:clamp(44px,4.1vw,64px)!important}
}

/* Mobile keeps the existing stacked architecture, but with cleaner rhythm */
@media(max-width:900px){
  .panel:not(.hero){
    padding-left:24px!important;
    padding-right:24px!important;
  }
  .panel:not(.hero) h2{
    line-height:.98;
    margin:20px 0 22px;
  }
  .panel:not(.hero) p{
    font-size:14.5px;
  }
  .feature-card{
    padding:16px 0;
    background:transparent;
    border-top:1px solid var(--border-soft);
  }
}

@media(prefers-reduced-motion:reduce){
  .panel:not(.hero)>*,
  .photo-button img,
  .video-frame video{
    transition:none!important;
    transform:none!important;
  }
}


/* 2026-10-27 — premium contact / visit panel */
.contact-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.contact-copy .contact-intro{
  max-width:520px;
  margin-bottom:30px;
  font-size:15px;
  color:#bebebe;
}
.visit-actions-premium{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:12px;
  margin:0 0 34px;
  max-width:650px;
}
.visit-choice{
  min-height:82px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:15px 17px;
  text-align:left;
  border:1px solid #515151;
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    color .18s ease;
}
.visit-choice:hover{
  transform:translateY(-2px);
}
.visit-choice-primary{
  background:#f0f0f0;
  color:#1a1a1a;
  border-color:#f0f0f0;
}
.visit-choice-primary:hover{
  background:#fff;
  border-color:#fff;
}
.visit-choice-secondary{
  background:transparent;
  color:#f0f0f0;
  border-color:#636363;
}
.visit-choice-secondary:hover{
  background:#242424;
  border-color:#919191;
}
.visit-choice-icon{
  display:grid;
  place-items:center;
}
.visit-choice .google-calendar-mark{
  width:30px;
  height:30px;
  flex:0 0 30px;
}
.visit-choice-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.visit-choice-copy small{
  font-size:11px;
  line-height:1.2;
  letter-spacing:.13em;
  font-weight:700;
  color:#8e8e8e;
}
.visit-choice-secondary .visit-choice-copy small{
  color:#969696;
}
.visit-choice-copy strong{
  font-size:13.5px;
  line-height:1.25;
  font-weight:650;
}
.visit-choice-arrow{
  font-size:17px;
  font-weight:300;
  opacity:.8;
}

.agent-signature{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(260px,1.1fr);
  gap:36px;
  margin-top:0;
  padding:25px 0 23px;
  border-top:1px solid #4d4d4d;
  border-bottom:1px solid #4d4d4d;
}
.agent-identity{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.agent-identity small{
  margin-bottom:8px;
  color:#8f8f8f;
  font-size:11px;
  letter-spacing:.14em;
  font-weight:700;
}
.agent-identity strong{
  font-size:22px;
  line-height:1.15;
  font-weight:500;
  letter-spacing:-.025em;
}
.agent-identity span{
  max-width:280px;
  margin:0;
  color:#a3a3a3;
  font-size:11.5px;
  line-height:1.45;
}
.agent-contact{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
}
.agent-contact a{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding-bottom:9px;
  border-bottom:1px solid #3e3e3e;
  transition:border-color .18s ease,color .18s ease;
}
.agent-contact a:last-child{
  padding-bottom:0;
  border-bottom:0;
}
.agent-contact a:hover{
  color:#fff;
  border-color:#818181;
}
.agent-contact span{
  margin:0;
  color:#888888;
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.agent-contact strong{
  font-size:13.5px;
  line-height:1.3;
  font-weight:500;
}

.contact-footer{
  margin-top:20px;
  padding-top:0;
  border-top:0;
  color:#868686;
}
.contact-footer>span{
  font-size:11px;
  line-height:1.75;
  letter-spacing:.13em;
}
.contact-footer details{
  font-size:12px;
}
.contact-footer summary{
  color:#939393;
}

@media(min-width:901px){
  .contact-copy{
    justify-content:flex-start;
    padding-top:0;
    padding-bottom:8px;
  }
  .contact h2{
    max-width:600px;
    margin-top:24px;
    margin-bottom:26px;
  }
}

@media(max-width:1100px) and (min-width:901px){
  .visit-actions-premium{
    grid-template-columns:1fr;
    max-width:520px;
  }
  .agent-signature{
    grid-template-columns:1fr;
    gap:20px;
  }
}

@media(max-width:900px){
  .contact-copy .contact-intro{
    margin-bottom:24px;
  }
  .visit-actions-premium{
    grid-template-columns:1fr;
    max-width:none;
    margin-bottom:28px;
  }
  .visit-choice{
    min-height:76px;
  }
  .agent-signature{
    grid-template-columns:1fr;
    gap:22px;
    padding:22px 0;
  }
}


/* Broker signature refinement */
.agent-identity .agent-agency{
  margin-top:5px;
  color:#868686;
  font-size:10px;
  line-height:1.45;
  letter-spacing:.025em;
}

/* 2026-10-27 — readable content within each horizontal panel */
.panel>*{min-width:0;min-height:0}
.navigation nav a[aria-current]{font-weight:700;box-shadow:inset 0 -3px var(--red)}
.document-thumbnail{width:96px;height:74px;flex:0 0 96px;background:#fff;border:1px solid var(--border-soft);padding:5px}
.document-thumbnail img{object-fit:contain}
.document-list a>span:nth-child(2){min-width:0}
.document-list strong{overflow-wrap:anywhere}
.document-list small{font-size:13px;color:var(--text-muted)}
.document-list .download-label{flex:0 0 auto;font-size:14px}
.document-list a:hover .document-thumbnail{border-color:var(--red)}
.visit-choice-copy strong{font-size:15px;line-height:1.4}
.visit-choice-copy small{line-height:1.4}
.visit-choice-primary .visit-choice-copy small{color:#5f5f5f}
.finance-grid span,.finance-grid small,.specs-grid dt{color:var(--text-muted)}
.agent-contact strong{overflow-wrap:anywhere}

html[data-theme="light"] .visit-choice-secondary{color:#202020;border-color:#717171}
html[data-theme="light"] .visit-choice-secondary:hover{background:#dcdcdc;border-color:#474747}
html[data-theme="light"] .visit-choice-copy small,
html[data-theme="light"] .agent-identity small,
html[data-theme="light"] .agent-identity span,
html[data-theme="light"] .agent-contact span,
html[data-theme="light"] .contact-footer,
html[data-theme="light"] .contact-footer summary{color:#5f5f5f}
html[data-theme="light"] .agent-contact a:hover{color:#141414}
html[data-theme="light"] .agent-signature,
html[data-theme="light"] .agent-contact a{border-color:#bdbdbd}

@media(min-width:901px){
  .panel:not(.hero) h2{font-size:clamp(40px,3.8vw,64px)}
  .residence-copy,.quartier-copy,.contact-copy,.details-intro{overflow-y:auto;scrollbar-width:thin}
  .gallery-composition{grid-template-columns:minmax(0,.62fr) minmax(0,.38fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr)}
  .video-stage,.detail-content,.intel-content,.contact-copy,.quartier-copy,.gallery-composition{padding-right:0}
  .floorplan{display:grid;width:100vw;grid-template-columns:minmax(0,.27fr) minmax(0,.73fr);gap:var(--panel-gap);padding-left:var(--panel-gutter);padding-right:var(--panel-gutter)}
  .floorplan-stage{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);padding-right:0;gap:20px}
  .panel.details h2{font-size:clamp(38px,3.4vw,58px);margin:20px 0}
  .specs-grid{grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--border-soft)}
  .specs-grid>div,.specs-grid>div:first-child{padding:12px 10px;border-left:0;border-bottom:1px solid var(--border-soft)}
  .specs-grid dt,.finance-grid span,.finance-grid small{font-size:12px}
  .specs-grid dd{font-size:16px;line-height:1.4}
  .feature-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .feature-card h3{font-size:14px}
  .feature-card li{font-size:14px;line-height:1.5}
  .feature-pills span{font-size:12px}
  .detail-preview{grid-template-columns:minmax(0,.45fr) minmax(0,.55fr)}
  .ceiling-bar{flex-wrap:wrap;gap:10px}
  .ceiling-bar span{font-size:12px;min-width:100px}
  .rooms{table-layout:fixed;width:100%;font-size:14px}
  .rooms th,.rooms td{overflow-wrap:anywhere;padding:12px 6px}
  .rooms th:nth-child(1){width:24%}
  .rooms th:nth-child(2){width:20%}
  .rooms th:nth-child(3){width:23%}
  .rooms th:nth-child(4){width:14%}
  .rooms th:nth-child(5){width:19%}
  .agent-signature{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
}

@media(min-width:901px) and (max-width:1450px){
  .feature-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .feature-card.proximity-card{grid-column:1/-1;min-height:0}
  .detail-preview{grid-template-columns:minmax(0,1fr)}
  .visit-actions-premium,.agent-signature{grid-template-columns:minmax(0,1fr);max-width:none;gap:14px}
  .visit-actions-premium{margin-bottom:24px}
  .visit-choice{min-height:70px;padding:12px 15px}
  .agent-signature{padding:18px 0}
  .agent-contact{gap:8px}
  .panel.contact h2{font-size:clamp(40px,3.8vw,58px);margin-top:16px;margin-bottom:18px}
}

@media(min-width:901px) and (max-height:760px){
  .panel:not(.hero) h2{font-size:clamp(36px,3.4vw,54px)!important}
}

@media(max-width:900px){
  .panel:not(.hero) p{font-size:16px}
  .document-thumbnail{width:76px;height:62px;flex-basis:76px}
  .document-list a{gap:14px;padding:18px 0}
  .document-list small{font-size:12px}
  .feature-card li{font-size:14px;line-height:1.5}
}

/* Clear labels for factual Centris data; values and counts are retained. */
.feature-card li{padding:10px 0;border-bottom:1px solid var(--border-soft)}
.feature-card li:last-child{border-bottom:0}
.feature-card li:before{content:none}
.feature-type{display:block;font-size:12px;line-height:1.5;color:var(--text-muted);margin-bottom:2px}
.feature-values{display:block;line-height:1.5;overflow-wrap:anywhere;color:var(--text-main)}
.rooms-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.rooms-scroll:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.rooms-scroll-hint{display:none}
.mobile-visit-button{display:none}

@media(max-width:900px){
  body{padding-bottom:calc(var(--footer) + env(safe-area-inset-bottom,0px))}
  .panel{scroll-margin-top:var(--header)}
  .navigation{height:calc(var(--footer) + env(safe-area-inset-bottom,0px));padding:0 12px env(safe-area-inset-bottom,0px);gap:12px}
  .navigation nav{min-width:0;gap:18px;overscroll-behavior-x:contain}
  .navigation nav a{min-height:44px;display:flex;align-items:center;padding:12px 0;font-size:12px}
  .mobile-visit-button{display:block;flex:0 0 auto;background:var(--red);color:#fff;min-height:44px;padding:10px 18px;font-size:13px;font-weight:650}
  .detail-tabs button,.intel-tabs button{min-height:44px}
  .detail-tabs{position:relative;z-index:1}
  .detail-content{min-width:0}
  .rooms-scroll-hint{display:block;margin:0 0 12px;font-size:13px!important;color:var(--text-muted)}
  .rooms{min-width:620px;font-size:14px;table-layout:fixed}
  .rooms th,.rooms td{padding:12px 10px;overflow-wrap:anywhere}
  .rooms th:nth-child(1){width:25%}
  .rooms th:nth-child(2){width:19%}
  .rooms th:nth-child(3){width:23%}
  .rooms th:nth-child(4){width:16%}
  .rooms th:nth-child(5){width:17%}
  .feature-type{font-size:13px}
  .feature-values{font-size:15px}
  .feature-card-grid{gap:18px}
  .feature-card h3{font-size:17px}
  .feature-pills span{font-size:13px;line-height:1.5}
}

@media(max-width:600px){
  .masthead{padding:12px;height:80px}
  .brand{width:clamp(112px,35vw,148px);flex-shrink:0}
  .brand-name{font-size:clamp(16px,4.5vw,20px)}
  .brand-small{font-size:8px;letter-spacing:.3em}
  .brand-agency{font-size:6.5px;letter-spacing:.12em}
  .header-actions{gap:8px}
  .language-toggle{height:44px}
  .language-toggle a{min-width:30px;padding:0 6px}
  .theme-toggle{height:44px;width:40px;padding:0;justify-content:center}
  .menu-button{min-width:40px;min-height:44px;padding:0;justify-content:center;gap:0}
  .menu-button-label{display:none}
  .hero-street{font-size:clamp(40px,10vw,60px);overflow-wrap:anywhere}
  .hero-meta{flex-wrap:wrap}
  .document-list a{gap:10px}
  .document-list .download-label{font-size:12px}
  .document-list strong{font-size:14px}
  .document-list small{font-size:11px}
  .document-thumbnail{width:64px;height:56px;flex-basis:64px}
  .lightbox .dialog-close,.lightbox-prev,.lightbox-next{min-width:44px;min-height:44px}
}

/* The original transparent wordmark sits directly in a continuous, neutral masthead. */
html[data-theme] .masthead,
html[data-theme] .masthead.on-light{height:88px;padding:16px var(--panel-gutter);background:rgba(242,242,242,.94);color:#191919;border-bottom:1px solid rgba(0,0,0,.08);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.masthead .official-brand{width:clamp(230px,21vw,310px);padding:0;background:transparent;color:#191919;display:flex;flex-direction:column;gap:5px;text-shadow:none}
.official-brand .brand-logo{display:block;width:100%;height:auto;aspect-ratio:1500.1/177.59;object-fit:contain}
.brand-agency-text{display:block;font-size:8px;font-weight:500;line-height:1.4;letter-spacing:.17em;color:#555;text-shadow:none}
html[data-theme] .masthead .header-actions .menu-button,
html[data-theme] .masthead .header-actions .theme-toggle{color:#292929;text-shadow:none}
html[data-theme] .masthead .header-actions .theme-toggle,
html[data-theme] .masthead .header-actions .language-toggle{border-color:#999}
html[data-theme] .masthead .header-actions .language-toggle{color:#292929}
html[data-theme] .masthead .header-actions .language-toggle a+a{border-left-color:#bbb}
html[data-theme] .masthead .header-actions .language-toggle a.is-active{background:rgba(0,0,0,.055)}
.footer-brand{display:flex;flex-direction:column;gap:8px}
.footer-brand img{display:block;width:230px;max-width:100%;height:auto;background:#fff;padding:10px 12px;box-sizing:border-box;object-fit:contain}
.footer-brand>span{font-size:9px;letter-spacing:.1em;line-height:1.5}

/* The modes and time legend stay above the map, within the content flow. */
.mobility-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 16px;background:#252525;border:1px solid #555;border-bottom:0}
.mobility-mode-control,.mobility-time-control{display:flex;flex-direction:column;gap:8px;min-width:0}
.mobility-control-label{font-size:12px;line-height:1.4;color:#ccc}
.mobility-modes{display:flex;gap:2px;align-items:center;padding:3px;border:1px solid #666;border-radius:999px;background:#303030}
.mobility-modes button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 14px;border-radius:999px;background:transparent;color:#eee;font-size:13px;line-height:1.3;white-space:nowrap;transition:background .15s ease,color .15s ease}
.mobility-modes button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.mobility-modes button[aria-pressed="true"]{background:#f1f1f1;color:#191919;font-weight:700}
.mobility-modes button:hover{background:#494949;color:#fff}
.mobility-modes button[aria-pressed="true"]:hover{background:#fff;color:#191919}
.mobility-toolbar .iso-legend{display:flex;gap:7px;align-items:center;padding:0;margin:0;color:#eee;font-size:14px;letter-spacing:0;flex-wrap:wrap}
.mobility-toolbar .iso-legend>span{display:flex;gap:7px;align-items:center;padding:10px 12px;min-height:44px;background:#303030;border:1px solid #666;border-radius:999px}
.mobility-toolbar .iso-legend strong{font-size:14px;line-height:1.3;font-weight:650}
.mobility-toolbar .iso-legend i{width:13px;height:13px;border-radius:3px;border:1px solid #ddd;flex:0 0 auto}
.iso-5{background:#404040}.iso-10{background:#777}.iso-15{background:#b0b0b0}
.mobility-expand,.mobility-dialog-close{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;background:transparent;border:1px solid #888;border-radius:4px;color:inherit;font-size:13px;line-height:1.4;white-space:nowrap}
.mobility-expand{margin-left:auto}
.mobility-expand[hidden]{display:none}
.mobility-expand:hover,.mobility-dialog-close:hover{background:rgba(128,128,128,.15)}
.mobility-expand svg,.mobility-dialog-close svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.mobility-legends{padding:10px 0 0}
.transit-legend{font-size:12px}
html[data-theme="light"] .mobility-toolbar{background:#f2f2f2;border-color:#c4c4c4}
html[data-theme="light"] .mobility-control-label{color:#595959}
html[data-theme="light"] .mobility-modes{background:#fff;border-color:#c4c4c4}
html[data-theme="light"] .mobility-modes button{color:#303030}
html[data-theme="light"] .mobility-modes button:hover{background:#e3e3e3;color:#191919}
html[data-theme="light"] .mobility-modes button[aria-pressed="true"]{background:#303030;color:#fff}
html[data-theme="light"] .mobility-toolbar .iso-legend{color:#303030}
html[data-theme="light"] .mobility-toolbar .iso-legend>span{background:#fff;border-color:#c4c4c4}
html[data-theme="light"] .mobility-toolbar .iso-legend i{border-color:#999}

@media(min-width:901px){
  .intel-content{overflow-y:auto;scrollbar-width:thin}
  .mobility-shell{grid-template-rows:auto auto minmax(420px,1fr) auto;height:100%;gap:12px}
  .mobility-shell .commute-topbar{grid-row:1;grid-template-columns:repeat(2,minmax(0,1fr))}
  .mobility-shell .commute-result-slot{grid-row:2}
  .mobility-shell .mobility-map-wrap{grid-row:3;min-height:420px}
  .mobility-shell .mobility-presets{grid-row:4}
  .mobility-shell .mobility-map{height:auto;min-height:280px;flex:1 1 auto}
}
@media(max-width:900px){
  html[data-theme] .masthead{height:80px;padding:14px 24px}
  .masthead .official-brand{width:220px}
  .mobility-map-wrap{margin-top:18px}
  .mobility-toolbar{padding:14px 12px;gap:14px}
  .mobility-modes button{font-size:13px;padding:10px 12px}
  .mobility-shell .mobility-map{height:430px;min-height:0}
}
@media(max-width:600px){
  html[data-theme] .masthead{height:76px;padding:12px}
  .masthead .official-brand{width:clamp(132px,38vw,180px);padding:0;gap:0;background:transparent;flex-shrink:0}
  .official-brand .brand-logo{width:100%;height:auto;aspect-ratio:1500.1/177.59;object-fit:contain}
  .official-brand .brand-agency-text{display:none}
  .mobility-mode-control,.mobility-time-control{width:100%}
  .mobility-modes{align-self:start;max-width:100%}
  .mobility-modes button{gap:5px;padding:10px 8px;font-size:12px}
  .mobility-modes button svg{width:17px;height:17px}
  .mobility-toolbar .iso-legend{gap:7px}
  .mobility-toolbar .iso-legend>span{flex:1;justify-content:center;padding:10px}
}

/* Keep the same interactive map and controls when opening the larger view. */
html.mobility-map-open,html.mobility-map-open body{overflow:hidden}
html.mobility-map-open .rail{overflow:hidden}
.mobility-map-placeholder{grid-row:3;min-height:0}
.mobility-map-dialog{position:fixed;inset:0;margin:auto;width:94vw;height:94vh;height:94dvh;max-width:none;max-height:none;background:#202020;color:#eee;border:1px solid #555;border-radius:10px;box-shadow:0 24px 90px rgba(0,0,0,.4);overflow:hidden}
.mobility-map-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.mobility-map-dialog::backdrop{background:rgba(0,0,0,.62);backdrop-filter:blur(6px)}
.mobility-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #555}
.mobility-dialog-header>div{min-width:0}
.mobility-map-dialog .mobility-dialog-title{font-size:23px!important;line-height:1.2;letter-spacing:-.035em;font-weight:500;margin:0}
.mobility-dialog-header p{font-size:13px;line-height:1.4;margin:5px 0 0;color:#bdbdbd;overflow-wrap:anywhere}
.mobility-dialog-close{flex:0 0 auto}
.mobility-dialog-content{min-height:0;min-width:0;padding:16px 22px 18px;overflow:auto;overscroll-behavior:contain}
.mobility-map-dialog .mobility-map-wrap{display:grid;grid-template-rows:auto minmax(160px,1fr) auto;height:100%;min-height:320px;margin:0}
.mobility-map-dialog .mobility-map{height:100%;min-height:0}
.mobility-map-dialog .mobility-expand{display:none}
html[data-theme="light"] .mobility-map-dialog{background:#f2f2f2;color:#202020;border-color:#c4c4c4}
html[data-theme="light"] .mobility-dialog-header{border-color:#c4c4c4}
html[data-theme="light"] .mobility-dialog-header p{color:#595959}
@media(max-width:600px){
  .mobility-dialog-header{padding:14px 12px;gap:10px;align-items:start}
  .mobility-map-dialog .mobility-dialog-title{font-size:18px!important}
  .mobility-dialog-header p{font-size:12px}
  .mobility-dialog-close{padding:10px;gap:5px}
  .mobility-dialog-content{padding:10px 10px 12px}
  .mobility-map-dialog .mobility-toolbar{gap:10px;padding:10px}
}


/* 2026-10-29 — neighbourhood profile + interactive mobility detail */
.quartier-visual{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  border-right:1px solid #383838;
}
.neighborhood-map{
  position:relative;
  width:100%;
  min-height:420px;
  height:100%;
  overflow:hidden;
  background:#202020;
}
.quartier-map-caption{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:15px 2px 0;
  color:#8f8f8f;
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.quartier-map-caption strong{
  color:#d9d9d9;
  font-size:10px;
  font-weight:600;
  text-align:right;
}
.neighborhood-poi-marker{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#f1f1ef;
  color:#222;
  border:2px solid #222;
  box-shadow:0 3px 12px rgba(0,0,0,.25);
  font-size:9px;
  font-weight:800;
}
.quartier-copy .quartier-lead{
  max-width:600px;
  margin-bottom:20px;
  color:#c2c2c2;
  font-size:15px;
}
.neighborhood-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:20px 0 24px;
  border-top:1px solid #444;
  border-bottom:1px solid #444;
}
.neighborhood-metrics>div{
  min-width:0;
  padding:14px 14px 14px 0;
}
.neighborhood-metrics>div:nth-child(odd){
  border-right:1px solid #444;
  padding-right:18px;
}
.neighborhood-metrics>div:nth-child(even){
  padding-left:18px;
}
.neighborhood-metrics>div:nth-child(n+3){
  border-top:1px solid #444;
}
.neighborhood-metrics span,
.neighborhood-story>span,
.neighborhood-columns section>span{
  display:block;
  margin-bottom:6px;
  color:#858585;
  font-size:10px;
  line-height:1.3;
  letter-spacing:.12em;
  font-weight:700;
}
.neighborhood-metrics strong{
  display:block;
  color:#f0f0ee;
  font-size:15px;
  line-height:1.45;
  font-weight:550;
}
.neighborhood-story{
  padding:0 0 19px;
}
.neighborhood-story p,
.neighborhood-columns p{
  margin:0;
  color:#c0c0c0;
  font-size:13px;
  line-height:1.6;
}
.neighborhood-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  padding:18px 0 20px;
  border-top:1px solid #3e3e3e;
}
.quartier-actions{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-top:18px;
}
.neighborhood-sources{
  max-width:55%;
  color:#999;
  font-size:11px;
}
.neighborhood-sources summary{
  cursor:pointer;
  color:#aaa;
}
.neighborhood-sources ul{
  margin:8px 0 0;
  padding:0;
  list-style:none;
}
.neighborhood-sources li+li{margin-top:5px}
.neighborhood-sources a{
  text-decoration:underline;
  text-decoration-color:#666;
  text-underline-offset:3px;
}
.neighborhood-sources a:hover{color:#fff}

.mobility-toolbar .iso-legend>button{
  display:flex;
  gap:7px;
  align-items:center;
  min-height:44px;
  padding:10px 12px;
  background:#303030;
  color:#eee;
  border:1px solid #666;
  border-radius:999px;
  cursor:pointer;
}
.mobility-toolbar .iso-legend>button[aria-pressed="true"]{
  background:#f1f1f1;
  color:#191919;
  border-color:#f1f1f1;
  font-weight:700;
}
.mobility-toolbar .iso-legend>button:hover{
  border-color:#999;
}
html[data-theme="light"] .mobility-toolbar .iso-legend>button{
  background:#fff;
  color:#303030;
  border-color:#c4c4c4;
}
html[data-theme="light"] .mobility-toolbar .iso-legend>button[aria-pressed="true"]{
  background:#303030;
  color:#fff;
  border-color:#303030;
}

@media(min-width:901px){
  .quartier{
    grid-template-columns:minmax(0,.52fr) minmax(0,.48fr);
  }
  .quartier-copy{
    overflow-y:auto;
    scrollbar-width:thin;
    padding-bottom:12px;
  }
}
@media(max-width:900px){
  .quartier-visual{
    min-height:480px;
    border-right:0;
    border-bottom:1px solid #3d3d3d;
    margin-bottom:26px;
  }
  .neighborhood-map{
    min-height:420px;
  }
  .quartier-map-caption{
    padding:12px 0 0;
  }
  .neighborhood-columns{
    grid-template-columns:1fr;
    gap:16px;
  }
  .quartier-actions{
    display:block;
  }
  .neighborhood-sources{
    max-width:none;
    margin-top:14px;
  }
}
@media(max-width:600px){
  .neighborhood-metrics{
    grid-template-columns:1fr;
  }
  .neighborhood-metrics>div,
  .neighborhood-metrics>div:nth-child(odd),
  .neighborhood-metrics>div:nth-child(even){
    padding:12px 0;
    border-right:0;
  }
  .neighborhood-metrics>div+div{
    border-top:1px solid #444;
  }
  .neighborhood-map{
    min-height:340px;
  }
}


/* 2026-10-29 — ShadeMap: readable premium controls and nearly full-screen exploration */
.shade-controls-top{
  display:flex;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:12px 16px;
}
.shade-controls-top>label:first-child{flex:0 0 190px;min-width:0}
.shade-controls-top>.shade-time-control{flex:1 1 220px;min-width:175px}
.shade-controls-top .shade-actions{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  flex-wrap:wrap;
  gap:10px;
}
.shade-controls-top .shade-actions .shade-pill{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  min-height:44px;
  height:44px;
  padding:10px 16px;
  margin:0;
  border-radius:999px;
  border:1px solid #b9b9b9;
  background:#f8f8f8;
  color:#1c1c1c;
  font-size:13px;
  font-weight:650;
  line-height:1.25;
  white-space:nowrap;
  box-shadow:none;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.shade-controls-top .shade-actions .shade-pill svg{
  display:block;
  width:19px;
  height:19px;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.7;
}
.shade-controls-top .shade-actions .shade-exposure-button svg{color:#EA002A}
.shade-controls-top .shade-actions .shade-pill:hover{
  border-color:#666;
  background:#fff;
  transform:translateY(-1px);
}
.shade-controls-top .shade-actions .shade-pill:focus-visible,
.shade-dialog-close:focus-visible{
  outline:3px solid #EA002A;
  outline-offset:3px;
}
.shade-controls-top .shade-actions .shade-exposure-button[aria-pressed="true"]{
  background:#232323;
  color:#fff;
  border-color:#232323;
}
.shade-controls-top .shade-actions .shade-exposure-button[aria-pressed="true"] svg{color:#ff6d80}
.shade-controls-top .shade-actions .shade-expand{
  background:transparent;
  border-color:#999;
}
.shade-controls-top #shade-status{
  flex:0 1 165px;
  align-self:center;
  margin:0;
  line-height:1.45;
  font-size:12px;
}
.shade-controls-top #shade-time-label{color:#333}
html[data-theme="light"] .shade-controls-top .shade-actions .shade-pill{color:#202020}
html[data-theme="light"] .shade-controls-top .shade-actions .shade-exposure-button[aria-pressed="true"]{color:#fff}
html[data-theme="dark"] .shade-controls-top .shade-actions .shade-pill{
  background:#292929;
  color:#f1f1f1;
  border-color:#777;
}
html[data-theme="dark"] .shade-controls-top .shade-actions .shade-pill:hover{background:#383838;border-color:#aaa}
html[data-theme="dark"] .shade-controls-top .shade-actions .shade-exposure-button[aria-pressed="true"]{
  background:#f1f1f1;
  color:#242424;
  border-color:#f1f1f1;
}
html[data-theme="dark"] .shade-controls-top .shade-actions .shade-exposure-button[aria-pressed="true"] svg{color:#EA002A}
html[data-theme="dark"] .shade-controls-top #shade-time-label{color:#eee}

/* Dialog: 98% of viewport, same live canvas moved into it */
html.shade-map-open,html.shade-map-open body{overflow:hidden}
.shade-map-placeholder{height:420px;min-height:0}
.shade-map-dialog{
  position:fixed;
  inset:0;
  margin:auto;
  width:98vw;
  height:98vh;
  height:98dvh;
  max-width:none;
  max-height:none;
  box-sizing:border-box;
  padding:0;
  border:1px solid #c8c8c8;
  border-radius:12px;
  background:#f2f2f2;
  color:#242424;
  box-shadow:0 28px 90px rgba(0,0,0,.38);
  overflow:hidden;
}
.shade-map-dialog[open]{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
}
.shade-map-dialog::backdrop{
  background:rgba(9,11,13,.68);
  backdrop-filter:blur(5px);
}
.shade-dialog-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px clamp(16px,2vw,34px);
  background:#f2f2f2;
  border-bottom:1px solid #d0d0d0;
}
.shade-dialog-heading{min-width:0}
.shade-dialog-heading>span{
  color:#af1530;
  display:block;
  font-size:10px;
  letter-spacing:.13em;
  font-weight:700;
  line-height:1.3;
  margin-bottom:5px;
}
.shade-map-dialog .shade-dialog-heading h2{
  margin:0!important;
  color:inherit;
  font-size:clamp(21px,2vw,32px)!important;
  font-weight:400;
  letter-spacing:-.035em;
  line-height:1.08;
}
.shade-dialog-heading p{font-size:12px;line-height:1.4;color:#626262;margin:6px 0 0}
.shade-dialog-close{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  flex:0 0 auto;
  gap:12px;
  height:44px;
  padding:0 14px;
  background:#fff;
  color:#222;
  border:1px solid #b8b8b8;
  border-radius:999px;
  font-size:13px;
  font-weight:650;
  cursor:pointer;
}
.shade-dialog-close:hover{background:#e5e5e5}
.shade-dialog-close svg{
  width:18px;height:18px;fill:none;
  stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
.shade-dialog-content{
  display:grid;
  grid-template-rows:minmax(0,1fr);
  min-height:0;
  min-width:0;
  padding:16px clamp(14px,1.65vw,28px) 18px;
  overflow:hidden;
}
.shade-map-dialog .shade-map-wrap{
  display:grid;
  min-width:0;
  min-height:0;
  height:100%;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:12px;
}
.shade-map-dialog .shade-map{height:100%;min-height:0;min-width:0}
.shade-map-dialog .shade-actions .shade-expand{display:none}
.shade-map-dialog .source-note{font-size:11px;line-height:1.45;margin:0}
.shade-map-dialog .shade-controls-top #shade-status{flex-basis:auto}
html[data-theme="dark"] .shade-map-dialog{
  background:#202020;
  border-color:#595959;
  color:#f2f2f2;
}
html[data-theme="dark"] .shade-dialog-header{background:#202020;border-color:#545454}
html[data-theme="dark"] .shade-dialog-heading p{color:#b6b6b6}
html[data-theme="dark"] .shade-dialog-close{background:#303030;color:#f3f3f3;border-color:#777}
html[data-theme="dark"] .shade-dialog-close:hover{background:#424242}
@media(max-width:900px){
  .shade-controls-top>label:first-child{flex-basis:175px}
  .shade-controls-top>.shade-time-control{flex-basis:195px}
  .shade-controls-top #shade-status{flex-basis:auto}
  .shade-map-dialog{width:98vw;height:98dvh;border-radius:8px}
  .shade-dialog-content{padding:10px 12px 12px}
  .shade-map-dialog .shade-map-wrap{gap:9px}
}
@media(max-width:600px){
  .shade-controls-top{gap:10px}
  .shade-controls-top>label:first-child{flex:1 1 155px}
  .shade-controls-top>.shade-time-control{flex:1 1 160px}
  .shade-controls-top .shade-actions{width:100%;flex:1 1 100%}
  .shade-controls-top .shade-actions .shade-pill{padding:8px 12px;font-size:12px}
  .shade-controls-top #shade-status{font-size:11px}
  .shade-dialog-header{padding:12px}
  .shade-dialog-heading>span{font-size:8px}
  .shade-map-dialog .shade-dialog-heading h2{font-size:21px!important}
  .shade-dialog-close{padding:0 11px;font-size:12px}
  .shade-dialog-close span{display:none}
  .shade-dialog-content{padding:8px}
  .shade-map-dialog .shade-map-wrap{overflow:auto;grid-template-rows:auto minmax(220px,1fr) auto}
}
@media(prefers-reduced-motion:reduce){
  .shade-controls-top .shade-actions .shade-pill{transition:none}
}
