/* Hyperlocal location pages */

.loc-layout{display:block}

/* --- On-this-page contents rail --------------------------------------- */
.loc-toc{
  margin:26px 0 0;
  padding:18px 22px 20px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
}
.loc-toc-title{
  margin:0 0 10px;
  font-size:12px!important;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--ink-3);
}
.loc-toc-list{
  margin:0;
  padding:0 0 0 18px;
  columns:2;
  column-gap:32px;
  font-size:14.5px;
}
@media(max-width:640px){.loc-toc-list{columns:1}}
.loc-toc-list li{margin:0 0 7px;break-inside:avoid;color:var(--ink-3)}
.loc-toc-list a{
  color:var(--ink-2);
  text-decoration:none;
  font-weight:600;
  border-bottom:1px solid transparent;
}
.loc-toc-list a:hover{color:var(--green-deep);border-bottom-color:var(--green-2)}

/* --- Two-column reading layout (must follow the base rules above) ------ */
@media(min-width:1180px){
  .loc-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 248px;
    column-gap:48px;
    align-items:start;
  }
  .loc-main{min-width:0}
  .loc-toc{
    position:sticky;
    top:96px;
    margin:38px 0 0;
    max-height:calc(100vh - 132px);
    overflow-y:auto;
  }
  .loc-toc-list{columns:1;font-size:13px;padding-left:16px}
  .loc-toc-list li{margin-bottom:9px;line-height:1.35}
}

.loc-section-intro{
  margin:0 0 18px;
  color:var(--ink-2);
  max-width:66ch;
}
/* The container is wider now for the rail; prose still needs a readable measure. */
.loc-main .ill-section > p{max-width:70ch}

/* --- Category guidance (NOT businesses - deliberately unlike a card) --- */
.loc-fac-cats{
  margin-top:22px;
  padding:18px 22px 20px;
  border:1px dashed var(--line);
  border-radius:var(--radius-sm);
  background:transparent;
}
.loc-fac-cats-title{
  margin:0 0 4px;
  font-size:15px;
  font-weight:800;
  letter-spacing:-0.02em;
  color:var(--ink);
}
.loc-fac-cats-lead{
  margin:0 0 12px;
  font-size:14px;
  color:var(--ink-3);
  max-width:64ch;
}
.loc-fac-cats-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.loc-fac-cats-list li{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:4px 10px;
  padding-left:16px;
  position:relative;
  font-size:14.5px;
  line-height:1.45;
}
.loc-fac-cats-list li::before{
  content:"";
  position:absolute;
  left:0;top:.62em;
  width:6px;height:6px;
  border-radius:50%;
  background:var(--line);
}
.loc-fac-cat-name{font-weight:650;color:var(--ink)}
.loc-fac-cat-note{color:var(--ink-3);font-size:13.5px}

.loc-fac-detail-muted .loc-fac-v{color:var(--ink-3);font-style:italic}

.loc-page .loc-article{
  max-width:1120px;
  margin:0 auto;
  padding:28px 32px 40px;
}
@media(max-width:640px){
  .loc-page .loc-article{padding:20px 16px 28px}
}
.loc-page .ill-hero h1{max-width:22ch}
.loc-page .ill-tagline{max-width:62ch;font-size:clamp(16px,1.8vw,18.5px);line-height:1.55}
.loc-page .ill-section{margin-top:40px}
.loc-page .ill-section h2{
  font-size:clamp(21px,2.6vw,26px);
  margin-bottom:18px;
  letter-spacing:-0.03em;
}
.loc-section-facilities h2{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:8px 12px;
}

/* Checklist / evaluation lists */
.loc-check-list{
  list-style:none;
  padding:0;
  margin:14px 0 0;
  display:grid;
  gap:10px;
  max-width:68ch;
}
.loc-check-list li{
  position:relative;
  padding:12px 14px 12px 40px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:14px;
  line-height:1.5;
  color:var(--ink-2);
}
.loc-check-list li::before{
  content:"";
  position:absolute;
  left:14px;top:15px;
  width:14px;height:14px;
  border-radius:5px;
  background:var(--green-soft);
  border:1.5px solid var(--green);
  box-shadow:inset 0 0 0 2px var(--card);
}
.loc-check-list a{color:var(--green-deep);font-weight:700}
.loc-check-list a:hover{text-decoration:underline}

/* City hub blocks */
.loc-block{margin:40px 0}
.loc-block h2{font-size:clamp(22px,3vw,28px);margin-bottom:16px}
.loc-link-cols{list-style:none;padding:0;margin:0;columns:2;gap:24px}
@media(max-width:700px){.loc-link-cols{columns:1}}
.loc-link-cols li{break-inside:avoid;padding:6px 0}
.loc-link-cols a{font-weight:600;color:var(--ink)}
.loc-link-cols a:hover{color:var(--green-deep);text-decoration:underline}
.loc-fineprint{color:#8E866F;font-size:12.5px;max-width:90ch;margin:16px 0 0;line-height:1.5}

/* Facility directory */
.loc-fac-block{margin-top:4px}
.loc-fac-toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 16px;
  margin:0 0 14px;
  padding:10px 14px;
  background:var(--green-soft);
  border:1px solid #d5e5c4;
  border-radius:14px;
}
.loc-fac-count{font-size:14px;color:var(--green-deep);font-weight:600}
.loc-fac-count strong{font-weight:800;font-size:15px}
.loc-fac-toolbar-hint{font-size:13px;color:var(--ink-3);font-weight:500}
.loc-fac-empty{color:var(--ink-2);line-height:1.55}

.loc-facility-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:14px;
  counter-reset:none;
}

.loc-fac-card{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:0 14px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px 16px 16px 12px;
  box-shadow:var(--shadow-soft);
  transition:border-color .15s ease, box-shadow .2s ease, transform .15s ease;
}
.loc-fac-card:hover{
  border-color:#cfc0a0;
  box-shadow:0 12px 28px -16px rgba(34,30,20,.4);
  transform:translateY(-1px);
}
@media(max-width:540px){
  .loc-fac-card{grid-template-columns:32px minmax(0,1fr);gap:0 10px;padding:14px 12px 14px 10px;border-radius:16px}
}

.loc-fac-index{
  width:36px;height:36px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:800;
  color:var(--green-deep);
  background:linear-gradient(160deg,var(--green-soft),#dcebc8);
  border:1px solid #cfe0b8;
  margin-top:2px;
  flex:none;
}
@media(max-width:540px){.loc-fac-index{width:30px;height:30px;font-size:12.5px;border-radius:10px}}

.loc-fac-main{min-width:0}
.loc-fac-head{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px 12px;
  margin-bottom:2px;
}
.loc-fac-title-block{min-width:0;flex:1 1 220px}
.loc-fac-name{
  margin:0;
  font-size:clamp(16.5px,1.6vw,18.5px);
  font-weight:800;
  letter-spacing:-0.025em;
  line-height:1.2;
  color:var(--ink);
}
.loc-fac-name a{
  color:inherit;
  text-decoration:none;
  background:linear-gradient(transparent 70%, var(--green-soft) 0);
  background-size:0% 100%;
  background-repeat:no-repeat;
  transition:background-size .2s ease, color .15s ease;
}
.loc-fac-name a:hover{
  color:var(--green-deep);
  background-size:100% 100%;
}
.loc-fac-area{
  flex:none;
  font-weight:700;
  color:var(--green-deep);
  font-size:12.5px;
  background:var(--green-soft);
  padding:5px 11px;
  border-radius:999px;
  border:1px solid #d2e3bf;
  white-space:nowrap;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
}
.loc-fac-notes{
  margin:6px 0 0;
  color:var(--ink-2);
  font-size:14.5px;
  line-height:1.45;
  max-width:58ch;
}

.loc-fac-details{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:10px 16px;
  margin-top:12px;
  padding:12px 12px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:14px;
}
@media(max-width:700px){
  .loc-fac-details{grid-template-columns:1fr}
}
.loc-fac-detail{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:10px;
  align-items:flex-start;
  min-width:0;
}
.loc-fac-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;height:22px;
  flex:0 0 22px;
  margin-top:2px;
  color:var(--green-deep);
  overflow:hidden;
}
.loc-fac-svg{
  width:16px !important;
  height:16px !important;
  max-width:16px !important;
  max-height:16px !important;
  min-width:16px;
  min-height:16px;
  flex:0 0 16px !important;
  display:block;
  overflow:visible;
}
.loc-fac-detail-text{min-width:0;display:grid;gap:2px}
.loc-fac-k{
  font-size:11px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--ink-3);
}
.loc-fac-v{
  font-size:14.5px;
  line-height:1.4;
  color:var(--ink);
  font-weight:600;
  word-break:break-word;
}
a.loc-fac-v{
  color:var(--green-deep);
  font-weight:700;
  text-decoration:none;
}
a.loc-fac-v:hover{text-decoration:underline}

.loc-fac-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.loc-fac-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:8px 14px;
  border-radius:999px;
  font-size:13.5px;
  font-weight:700;
  letter-spacing:-0.01em;
  text-decoration:none;
  border:1.5px solid transparent;
  transition:background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.loc-fac-btn .loc-fac-svg{
  width:15px !important;
  height:15px !important;
  max-width:15px !important;
  max-height:15px !important;
  min-width:15px;
  min-height:15px;
  flex:0 0 15px !important;
}
.loc-fac-btn-primary{
  background:var(--green-deep);
  color:#fff;
  box-shadow:0 6px 16px -8px rgba(53,107,62,.65);
}
.loc-fac-btn-primary:hover{
  background:#2c5a33;
  box-shadow:0 10px 20px -10px rgba(53,107,62,.7);
}
.loc-fac-btn-ghost{
  background:var(--card);
  color:var(--green-deep);
  border-color:var(--line);
}
.loc-fac-btn-ghost:hover{
  background:var(--green-soft);
  border-color:#b9d39a;
}
.loc-fac-btn:active{transform:translateY(1px)}

/* Must beat .ill-section ul { display:grid } from illness.css */
.loc-page .ill-section ul.loc-fac-tags,
.loc-fac-tags{
  list-style:none !important;
  display:flex !important;
  flex-wrap:wrap;
  gap:6px;
  margin:12px 0 0;
  padding:0 !important;
  max-width:none !important;
  color:inherit;
}
.loc-page .ill-section ul.loc-fac-tags li,
.loc-fac-tags li{
  font-size:11px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--ink-3);
  background:var(--paper-2);
  border:1px solid var(--line);
  padding:4px 9px;
  border-radius:999px;
  width:auto;
  max-width:none;
  line-height:1.2;
  padding-left:9px;
}
.loc-page .ill-section ul.loc-fac-tags li::before,
.loc-page .ill-section ul.loc-fac-tags li::marker,
.loc-fac-tags li::before,
.loc-fac-tags li::marker{
  content:none !important;
  display:none;
}
.loc-page .ill-section ul.loc-check-list{
  list-style:none;
  padding:0;
  margin:14px 0 0;
  display:grid;
  gap:10px;
  max-width:68ch;
}
.loc-page .ill-section ul.loc-check-list li{
  position:relative;
  padding:12px 14px 12px 40px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:14px;
  line-height:1.5;
  color:var(--ink-2);
  max-width:none;
}
.loc-page .ill-section ul.loc-check-list li::before{
  content:"";
  position:absolute;
  left:14px;top:15px;
  width:14px;height:14px;
  border-radius:5px;
  background:var(--green-soft);
  border:1.5px solid var(--green);
  box-shadow:inset 0 0 0 2px var(--card);
}
.loc-page .ill-section ul.loc-check-list li::marker{content:none}
.loc-fac-note{
  font-size:13px;
  color:var(--ink-3);
  margin:14px 0 0;
  line-height:1.5;
  max-width:70ch;
}

/* Hero */
.loc-hero{
  margin:0 0 24px;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  background:var(--paper-2);
  width:100%;
}
.loc-hero img{
  width:100%;
  height:170px;
  object-fit:cover;
  object-position:center center;
  display:block;
}
@media(min-width:720px){.loc-hero img{height:210px}}
.loc-hero figcaption{
  font-size:12.5px;
  color:var(--ink-3);
  padding:10px 14px;
  background:var(--card);
  border-top:1px solid var(--line);
}

/* City cards on hubs */
.loc-city-card{overflow:hidden;padding:0}
.loc-city-card .loc-card-img{width:100%;height:140px;object-fit:cover;object-position:center;display:block}
.loc-city-card h2,.loc-city-card p,.loc-city-card .ill-card-link{padding-left:20px;padding-right:20px}
.loc-city-card h2{margin-top:14px}
.loc-city-card .ill-card-link{display:block;padding-bottom:18px}

/* Hub featured facilities sit on paper, not inside white article padding mess */
.loc-page .loc-block .loc-fac-block{max-width:920px}
