/* Public reading experience: shared server/client layouts. */
:root{--green:#145944;--dark:#243b32;--muted:#506357;--gold:#85631d}
body{font-family:var(--site-font)}
img{max-width:100%}.card-media{display:block}.card-media img{height:100%;object-fit:cover}.card-summary{font-size:1rem;color:var(--muted);line-height:1.7}.card-summary p{margin:0 0 12px}.photo-pending{min-height:180px;display:grid;place-items:center;background:#edf1eb;color:#66796b;text-align:center;font-size:1rem;padding:30px}.card h3{font-size:1.25rem}.section-more{text-align:center;margin:30px 0 0}.route-heading{max-width:960px}.route-heading h1{font-size:clamp(28px,3.6vw,45px);line-height:1.25;letter-spacing:-1px}.route-heading .breadcrumbs{margin-bottom:24px;line-height:1.8}.inner-page #route-view{padding-top:36px}.project-gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:180px 180px;gap:10px;border-radius:18px;overflow:hidden;margin:0 0 32px}.project-gallery>a{display:block;overflow:hidden;background:#e8eee7}.project-gallery>a:first-child{grid-row:1/3}.project-gallery>a:only-child{grid-column:1/-1}.project-gallery>a:nth-last-child(2):first-child{grid-column:1/3}.project-gallery>a:nth-child(2):last-child{grid-row:1/3}.project-gallery img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.project-gallery a:hover img{transform:scale(1.025)}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:36px;align-items:start}.detail-main{min-width:0}.detail-main>figure{margin:0 0 28px}.detail-main>figure img{display:block;border-radius:14px;width:100%;height:auto;max-height:560px;object-fit:cover}.detail-aside{position:sticky;top:110px;background:#f2f5ef;border:1px solid #dce5da;border-radius:14px;padding:25px}.detail-aside h2{font-size:1.4375rem}.detail-aside .button{width:100%}.detail-aside .text-button{display:block;margin-top:14px}.detail-aside p{font-size:1rem}.detail-aside hr{border:0;border-top:1px solid #dce4d8;margin:24px 0}.aside-link{display:block;border-top:1px solid #dce4d8;padding:10px 0;font-size:1rem}.project-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 0 25px;gap:0;border:1px solid #e0e6de;border-radius:12px;background:#fafbf8;overflow:hidden}.project-facts>div{padding:16px 20px;border-bottom:1px solid #e0e6de}.project-facts dt{color:#6a7a70;font-size:0.9375rem;margin-bottom:6px}.project-facts dd{margin:0;font-weight:600;font-size:1.0625rem}.review-notice{background:#faf4e5;border:1px solid #ead7a9;padding:18px;border-radius:10px;font-size:1rem;line-height:1.8}.prose{white-space:normal!important;line-height:1.7;font-size:1.125rem;color:#34493e;overflow-wrap:anywhere}.prose p{margin:0 0 20px}.prose h2{margin:36px 0 18px;font-size:1.6875rem;letter-spacing:-.5px;line-height:1.35}.prose h3{margin-top:24px;font-size:1.25rem}.prose ul{padding-left:24px}.prose li{margin:8px 0}.prose a{color:#0f6547;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.prose figure{margin:30px 0}.prose img{width:100%;height:auto;max-height:580px;object-fit:cover;border-radius:12px}.prose figcaption,figcaption{font-size:1rem;color:#738176;text-align:center;margin-top:9px;line-height:1.6}.article-toc{display:block!important;position:static!important;background:#f3f6f0;box-shadow:none;border:1px solid #dde6d9;border-radius:12px;padding:24px!important;margin:28px 0}.article-toc h2{font-size:1.25rem;margin:0 0 14px}.article-toc ol{margin:0;padding-left:24px}.article-toc li{margin:7px 0}.article-toc a{padding:2px 0!important;white-space:normal;display:inline;font-size:1.0625rem;font-weight:400}.article-toc a:after{display:none}.prose section{scroll-margin-top:110px}.related-content{margin-top:55px;padding-top:32px;border-top:1px solid #dfe7dc}.related-content>h2{font-size:1.75rem;margin:30px 0 24px}.related-content .card h3{font-size:1.1875rem}.updated-note{font-size:1rem;color:#6a786e;margin-top:24px}.album-links{display:grid;gap:10px;margin:20px 0}.album-links a{padding:14px;background:#f2f5ef;border-radius:8px;color:var(--green)}.detail-actions{display:flex;align-items:center;gap:20px}.detail-actions .compare-button{margin:0;padding:12px 16px;font-size:1rem}.catalogue-filter{display:grid;grid-template-columns:2fr 1fr auto auto;align-items:end;gap:16px;padding:22px;background:#f3f6f0;border:1px solid #dee6da;border-radius:14px;margin:24px 0}.catalogue-filter label{display:grid;gap:7px;font-size:1rem;color:#4d6858}.catalogue-filter input,.catalogue-filter select{height:46px;border:1px solid #cddacb;border-radius:7px;padding:0 12px;width:100%;min-width:0;background:white;font:inherit;font-size:1.0625rem}.catalogue-filter .button{height:46px}.catalogue-filter .text-button{padding-bottom:14px}#catalogue-count{font-size:1rem;color:#607064}.directory-columns{columns:2;column-gap:45px}.directory-columns section{break-inside:avoid;margin-bottom:32px}.directory-columns ul{padding-left:22px}.directory-columns li{margin:12px 0}.directory-columns a{color:var(--green);font-size:1.0625rem}.public-photo-grid img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}.public-photo-grid figure{margin:0}.region-column .region-button{margin-bottom:8px}.header .brand-icon{display:none}.price-table caption{text-align:left;padding:18px;font-weight:700;background:#eef3eb}.price-table th{text-align:left}.price-table a{color:var(--green)}
@media(max-width:950px){.detail-layout{grid-template-columns:minmax(0,1fr) 240px;gap:22px}.detail-aside{padding:18px}.project-gallery{grid-template-rows:150px 150px}.catalogue-filter{grid-template-columns:1fr 1fr}.catalogue-filter .text-button{padding:12px}.directory-columns{columns:1}}
@media(max-width:700px){.detail-layout{grid-template-columns:1fr}.detail-aside{position:static}.route-heading .breadcrumbs{font-size:0.9375rem}.project-gallery{grid-template-columns:1fr 1fr;grid-template-rows:220px 110px 110px;gap:6px}.project-gallery>a:first-child{grid-column:1/-1;grid-row:1}.project-gallery>a:only-child{grid-row:1/4}.project-gallery>a:nth-last-child(2):first-child{grid-column:1/-1}.project-gallery>a:nth-child(2):last-child{grid-column:1/-1;grid-row:2/4}.project-facts>div{padding:14px}.prose{font-size:1.125rem;line-height:1.7}.prose h2{font-size:1.5rem}.article-toc{padding:20px!important}.catalogue-filter{padding:16px;gap:12px}.catalogue-filter label:first-child{grid-column:1/-1}.catalogue-filter label:nth-child(2){grid-column:1/-1}.catalogue-filter .button{font-size:1rem}.inner-page #route-view{padding-top:25px}.route-heading{margin-bottom:24px}.related-content .cards{grid-template-columns:1fr}.detail-aside h2{font-size:1.5rem}.site-footer{margin-bottom:0}.card-summary{font-size:1rem}.project-gallery:has(>a:only-child){grid-template-rows:230px;}.project-gallery:has(>a:only-child)>a{grid-row:1}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.project-gallery>a{position:relative}.gallery-caption{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,#10291edb);color:#fff;padding:28px 12px 12px;font-size:0.875rem;line-height:1.4;text-align:left}.project-gallery>a:first-child .gallery-caption{font-size:1rem;padding:35px 20px 16px}.project-gallery a:focus-visible{outline:3px solid #cbaa65;outline-offset:-3px}.catalogue-card[hidden]{display:none!important}

/* Keep the labels and the source row visible on maps and document excerpts. */
:is(.card-media, .project-gallery, .map-result-card) img:is([src*="/ho-so-dia-phuong/"], [src*="/tu-lieu-quy-hoach/"]) {
  object-fit: contain;
  background: #f6f5eb;
}
.project-gallery > a:has(img:is([src*="/ho-so-dia-phuong/"], [src*="/tu-lieu-quy-hoach/"])) {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.project-gallery > a:has(img:is([src*="/ho-so-dia-phuong/"], [src*="/tu-lieu-quy-hoach/"])) .gallery-caption {
  position: static;
  padding: 6px 12px;
  background: #e8eee7;
  color: #294936;
}
.project-gallery a:hover img:is([src*="/ho-so-dia-phuong/"], [src*="/tu-lieu-quy-hoach/"]) {
  transform: none;
}


/* Limit the line length of reading text while allowing wide figures and tables. */
.prose :is(p, ul, ol, h2, h3), .guide-prose :is(p, ul, ol), .service-reading > section {
  max-inline-size: 68ch;
}
.prose p, .guide-prose p { margin-block-end: 1em; }
.search-bar :is(input, select), .ruler-inputs input { font-size: 1rem; }
:where(.detail-main, .route-heading, .section-heading, .site-footer, .card-content) {
  overflow-wrap: break-word;
}
.contact-copy, .feng-cta > * { min-width: 0; max-width: 100%; }
.feng-cta .button { white-space: normal; overflow-wrap: anywhere; }
:is(.contact-copy .hotline, .site-footer .footer-phone) { overflow-wrap: anywhere; }
@media (max-width: 53rem) {
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
}
.detail-aside .text-button { white-space: normal; }
.site-footer .footer-cta { white-space: normal; max-width: 100%; }
.portrait-wrap { min-width: 0; max-width: 100%; }
.site-footer a.footer-phone { white-space: normal; overflow-wrap: anywhere; }
