/* City landing (D26). Photo hero, glance, rules, links, companies. */

.city-crumb { background: var(--white); border-bottom: 1px solid var(--rule); }
.city-crumb .hv-wrap { padding-top: 12px; padding-bottom: 12px; font-size: 13px; color: var(--stone); }
.city-crumb a { color: var(--stone); text-decoration: none; }
.city-crumb a:hover { color: var(--ink); }
.city-crumb b { color: var(--ink); font-weight: 600; }
.city-crumb .sep { margin: 0 8px; color: var(--mist); }
.city-place { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); }

.city-hero {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.city-hero .bg { position: absolute; inset: 0; }
.city-hero .bg picture,
.city-hero .bg img { width: 100%; height: 100%; display: block; }
.city-hero .bg img { object-fit: cover; object-position: var(--focal, 50% 42%); }
.city-hero .bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(26,26,24,0.98) 0%,
      rgba(26,26,24,0.95) 28%,
      rgba(26,26,24,0.88) 38%,
      rgba(26,26,24,0.55) 52%,
      rgba(26,26,24,0.22) 68%,
      rgba(26,26,24,0.08) 100%),
    linear-gradient(180deg,
      rgba(26,26,24,0.28) 0%,
      rgba(26,26,24,0.06) 48%,
      rgba(26,26,24,0.42) 100%);
}
.city-hero.is-fallback .bg {
  background:
    radial-gradient(circle at 82% 18%, rgba(26,107,74,.34), transparent 46%),
    radial-gradient(circle at 18% 88%, rgba(26,107,74,.2), transparent 48%),
    linear-gradient(100deg, #141412 0%, #1A1A18 42%, #24362c 100%);
}
.city-hero .hv-wrap { position: relative; z-index: 2; padding-top: 36px; padding-bottom: 32px; }
.city-kicker {
  display: inline-block; background: rgba(255,255,255,0.14); color: #fff;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 12px;
}
.city-hero h1 {
  font-family: var(--display, 'Archivo', 'DM Sans', sans-serif);
  font-style: normal; font-weight: 800; letter-spacing: -0.03em;
  font-size: 46px; line-height: 1.05; color: #fff; margin: 0 0 12px; max-width: 16ch;
}
.city-hero .lede {
  color: rgba(255,255,255,0.78); font-size: 16px; max-width: 640px;
  margin: 0 0 4px; line-height: 1.5;
}
.city-hero .hv-search { margin-top: 20px; }
.city-hero .hv-search-in::placeholder { color: var(--stone); }

.photo-credit {
  margin: 8px auto 0; max-width: 1180px; padding: 0 28px 4px;
  font-size: 11px; color: var(--stone); line-height: 1.45;
}
.photo-credit a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }

.city-stats { padding-top: 56px; padding-bottom: 28px; }
.statgrid {
  display: grid;
  grid-template-columns: minmax(140px, 1.15fr) repeat(var(--price-n, 5), minmax(0, 1fr));
  gap: 12px;
}
.statgrid-count-only { grid-template-columns: minmax(180px, 280px); }
.statcard {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  padding: 18px 16px 20px;
}
.statcard .num {
  font-family: var(--display, 'Archivo', 'DM Sans', sans-serif);
  font-weight: 800; font-style: normal; font-size: 40px; color: var(--forest);
  letter-spacing: -0.03em; line-height: 1;
}
.statcard .lbl { margin-top: 8px; font-size: 13px; color: var(--stone); line-height: 1.35; }
.statcard.price .lbl {
  font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.statcard.price .lbl span { font-weight: 500; color: var(--stone); font-size: 12px; }
.statcard.price .val { margin-top: 12px; font-size: 18px; font-weight: 700; color: var(--forest); }
.price-note, .size-gap-note {
  margin-top: 14px; text-align: center; font-size: 12px; color: var(--stone);
}
.hv-weight { font-size: 12px; color: var(--stone); padding: 0 2px 4px; line-height: 1.35; }
.city-permit, .city-faq, .city-nearby, .about-page { padding-top: 48px; padding-bottom: 48px; }
.permit-card { background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; max-width: 760px; }
.permit-card p { color: var(--ink); font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.permit-card .verified, .about-copy p { color: var(--stone); }
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.faq-item { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin: 10px 0 0; color: var(--ink); line-height: 1.5; }
.nearby-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nearby-row a { display: inline-block; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px; color: var(--forest); font-weight: 600; text-decoration: none; }
.about-copy { max-width: 680px; }
.about-copy p { font-size: 17px; line-height: 1.55; margin: 0 0 14px; }

.city-rules { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-top: 56px; padding-bottom: 56px; }
.rulegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rulecard {
  background: var(--bg); border: 1px solid var(--rule); border-radius: 14px;
  padding: 22px 22px 24px;
}
.rulecard .tag, .linkcard .tag {
  font-size: 11px; font-weight: 700; color: var(--forest);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.rulecard h3 { margin: 10px 0; font-size: 22px; letter-spacing: -0.03em; }
.rulecard p { color: var(--stone); font-size: 14px; line-height: 1.5; }
.rulecard p.more { margin-top: 10px; }

.city-links { padding-top: 56px; padding-bottom: 56px; }
.linkgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.linkcard {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 8px;
  min-height: 180px; text-decoration: none; color: inherit;
}
.linkcard:hover { border-color: var(--forest); }
.linkcard h3 { font-size: 17px; line-height: 1.25; letter-spacing: -0.03em; }
.linkcard p { color: var(--stone); font-size: 13px; flex: 1; line-height: 1.4; }
.linkcard .go { font-weight: 700; color: var(--forest); font-size: 13px; }

.city-sizes .hv-sgrid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.size-gap-note { margin-top: 16px; }

.city-companies { background: var(--white); border-top: 1px solid var(--rule); padding-top: 56px; padding-bottom: 40px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co {
  background: var(--bg); border: 1px solid var(--rule); border-radius: 14px;
  padding: 16px 18px; display: grid; grid-template-columns: 48px 1fr; gap: 14px;
  align-items: center; text-decoration: none; color: inherit;
}
.co:hover { border-color: var(--forest); }
.co-av {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; letter-spacing: -0.02em;
  font-family: var(--sans, 'DM Sans', sans-serif); line-height: 1;
}
.co-av.dc-autologo-3 { font-size: 12px; letter-spacing: -0.04em; }
.co-av.has-img {
  background: #fff !important; color: transparent !important;
  border: 1px solid var(--rule); overflow: hidden; padding: 4px;
  box-shadow: none !important;
}
.co-av.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.co h3 { font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.co .meta { margin-top: 3px; font-size: 13px; color: var(--stone); }
.co .open { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--forest); }
.city-empty { color: var(--stone); font-size: 15px; }

.acc-toggle {
  display: none; width: 100%; background: transparent; border: 0; padding: 0 0 12px;
  font-family: var(--display, 'Archivo', 'DM Sans', sans-serif); font-weight: 800;
  font-size: 28px; letter-spacing: -0.03em; color: var(--ink);
  text-align: left; cursor: pointer; align-items: center; justify-content: space-between; gap: 12px;
}
.acc-toggle .chev {
  width: 28px; height: 28px; border-radius: 999px; flex: none;
  border: 1.5px solid var(--rule); background: #fff; position: relative;
}
.acc-toggle .chev::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px;
  background: var(--ink); border-radius: 2px;
}
.acc-toggle .chev::after {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 13px; width: 2px;
  background: var(--ink); border-radius: 2px;
}
.accordion-sec.is-open .acc-toggle .chev::after { transform: scaleY(0); }
.acc-sub { display: none; color: var(--stone); font-size: 15px; margin: 0 0 18px; line-height: 1.45; }

.lc-logo.dc-autologo,
.lp-head-logo.dc-autologo,
.lc-u .lc-logo.dc-autologo,
.lc-p .lc-logo.dc-autologo {
  font-size: 18px !important;
  letter-spacing: -0.03em;
  line-height: 1;
  color: inherit;
}
.lc-p .lc-logo.dc-autologo { font-size: 20px !important; }
.lp-head-logo.dc-autologo { font-size: 26px !important; }
.lc-logo.dc-autologo-3,
.lp-head-logo.dc-autologo-3 { font-size: 14px !important; letter-spacing: -0.04em; }
.lp-head-logo.dc-autologo-3 { font-size: 18px !important; }

@media (max-width: 1100px) {
  .statgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .linkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-sizes .hv-sgrid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rulegrid, .co-grid { grid-template-columns: 1fr; }
  .city-hero h1 { font-size: 34px; }
}
@media (max-width: 700px) {
  .city-hero { min-height: 500px; }
  .city-hero .bg img { object-position: var(--focal-m, 50% 38%); }
  .city-hero .bg::after {
    background:
      linear-gradient(90deg,
        rgba(26,26,24,0.98) 0%,
        rgba(26,26,24,0.96) 48%,
        rgba(26,26,24,0.88) 68%,
        rgba(26,26,24,0.55) 84%,
        rgba(26,26,24,0.22) 100%),
      linear-gradient(180deg,
        rgba(26,26,24,0.38) 0%,
        rgba(26,26,24,0.14) 48%,
        rgba(26,26,24,0.52) 100%);
  }
  .city-hero:not(.browse-hero) {
    min-height: 0;
    height: auto;
    overflow: visible;
    background: transparent;
    color: var(--ink);
  }
  .city-hero:not(.browse-hero) .bg {
    position: relative;
    inset: auto;
    height: 200px;
  }
  .city-hero:not(.browse-hero) .bg picture,
  .city-hero:not(.browse-hero) .bg img { height: 200px; }
  .city-hero:not(.browse-hero) .bg img { object-position: 50% 50%; }
  .city-hero:not(.browse-hero) .bg::after { content: none; display: none; }
  .city-hero:not(.browse-hero).is-fallback .bg { height: 200px; }
  .city-hero:not(.browse-hero) .hv-wrap { padding-top: 20px; padding-bottom: 4px; }
  .city-hero:not(.browse-hero) .city-kicker {
    background: var(--frost);
    color: var(--forest);
    border-color: transparent;
  }
  .city-hero:not(.browse-hero) h1 { color: var(--ink); max-width: none; }
  .city-hero:not(.browse-hero) .lede { color: var(--stone); }
  .city-hero:not(.browse-hero) .city-place { color: var(--stone); }
  .city-crumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .city-hero .hv-wrap, .photo-credit, .city-crumb .hv-wrap { padding-left: 16px; padding-right: 16px; }
  .photo-credit { padding-bottom: 8px; }
  .statgrid, .linkgrid, .statgrid-count-only { grid-template-columns: 1fr; }
  .city-sizes .hv-sgrid,
  .city-sizes .hv-sgrid-5 { grid-template-columns: 1fr 1fr; }
  .acc-toggle { display: flex; }
  .accordion-sec .sh-desk { display: none; }
  .accordion-sec .acc-sub { display: block; }
  .accordion-sec:not(.is-open) .acc-panel { display: none; }
  .accordion-sec.is-open .acc-panel { display: block; }
  .accordion-sec { padding-top: 28px; padding-bottom: 20px; }
  .accordion-sec + .accordion-sec { border-top: 1px solid var(--rule); }
  .hv-guides { grid-template-columns: 1fr; }
}
@media (min-width: 701px) {
  .acc-toggle { display: none !important; }
  .acc-sub { display: none !important; }
  .accordion-sec .acc-panel { display: block !important; }
  .accordion-sec .sh-desk { display: block; }
}
