/* RC46: ficha de box con mapa lateral y portada nacional */
.box-grid-with-map{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px, 36%);gap:22px;align-items:start}
.box-grid-with-map>article{min-width:0}
.box-grid-with-map .box-side-map{min-width:0;align-self:start;position:relative;z-index:0}
.box-grid-with-map .box-side-map .box-map{height:280px;margin:0}
.box-grid-with-map .box-side-map .box-map-section{margin:0}
.box-grid-with-map .rating-card{grid-column:1 / -1}
.box-description{margin:12px 0 20px;overflow-wrap:anywhere}
.box-ai-disclosure{color:#667085;font-size:.85em}
.box-province-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-bottom:35px}
.box-province-link{display:flex;align-items:center;justify-content:space-between;padding:14px;border:1px solid #d5dce5;border-radius:10px;text-decoration:none}
.box-province-link span{color:#637287;margin-left:10px}
@media(max-width:760px){.box-grid-with-map{grid-template-columns:1fr}.box-grid-with-map .box-side-map .box-map{height:280px}.box-grid-with-map .rating-card{grid-column:auto}}

.box-ai-disclosure{font-style:italic!important;color:#67716b!important;font-size:.8rem!important;border:0!important;background:transparent!important;padding:0!important;margin-top:7px!important}

/* RC51: two columns only. Rating and map share the right-hand card. */
.box-grid-with-map{grid-template-columns:minmax(0,1fr) minmax(280px,36%)!important;align-items:stretch!important}
.box-grid-with-map > article,.box-grid-with-map > .box-map-rating-panel{min-width:0;align-self:stretch}
.box-map-rating-panel{display:flex;flex-direction:column;gap:16px;background:#fff;border:1px solid #e0d7c6;border-radius:20px;padding:20px;position:relative;z-index:0;isolation:isolate}
.box-map-rating-panel .rating-card{grid-column:auto!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;background:transparent!important;min-width:0}
.box-map-rating-panel .rating-card h2{font-size:1.15rem;margin:0 0 12px}
.box-map-rating-panel .box-side-map{min-height:0;position:relative;z-index:0;overflow:hidden;border-radius:12px}
.box-map-rating-panel .box-side-map .box-map{height:280px!important;max-height:280px;min-height:280px;margin:0!important;width:100%!important}
.box-map-rating-panel .box-side-map .box-map-section{margin:0!important}
.box-grid-with-map .box-hours{font-size:.94rem;line-height:1.55;overflow-wrap:anywhere}
.box-ai-disclosure{font-style:italic!important;color:#69716e!important;font-weight:400!important}
/* Leaflet panes must never cover fixed site navigation. */
.box-page .box-map,.box-page .leaflet-container{z-index:0!important;position:relative}
.box-page .leaflet-pane{z-index:1!important}
.box-page .leaflet-top,.box-page .leaflet-bottom{z-index:2!important}
body > header,body > .site-header,header.site-header,.site-header,.site-nav,.main-header{z-index:5000!important}
@media(max-width:760px){.box-grid-with-map{grid-template-columns:minmax(0,1fr)!important}.box-map-rating-panel{padding:14px}.box-map-rating-panel .box-side-map .box-map{height:260px!important;min-height:260px}}

/* RC52: confine all maps to their cards; never escape over the sticky nav */
.box-map-rating-panel{overflow:hidden;isolation:isolate}
.box-map-rating-panel .box-side-map,.box-side-map .box-map-section{width:100%;max-width:100%;overflow:hidden}
.box-page .box-map{z-index:0!important;isolation:isolate;contain:paint}
.box-page .box-map .leaflet-pane{z-index:400!important}
.box-page .box-map .leaflet-top,.box-page .box-map .leaflet-bottom{z-index:1000!important}
.box-page .box-map-rating-panel{align-self:start;min-height:0!important}
.box-page .box-grid-with-map{align-items:start!important}
.box-page .box-map-rating-panel .box-side-map .box-map{height:290px!important;min-height:290px!important;max-height:290px!important}
.box-page .box-hero-photo{display:none!important}

/* RC54: fallback for missing images; hidden before image load/error */
.box-logo-fallback[hidden],.box-hero-logo-fallback[hidden]{display:none!important}
.box-hero-logo-fallback{display:inline-flex;align-items:center;justify-content:center;flex:none;width:180px;height:180px;border-radius:18px;background:#e8e0d1;color:#664b31;font-size:3rem;font-weight:700}
