.portal-detail{color:#123c3e;min-width:0;overflow-wrap:anywhere;font-size:16px;line-height:1.7}
.detail-heading{padding:8px 0 20px}
.portal-detail .detail-heading h1,.portal-detail .detail-heading h2{font-size:clamp(28px,3vw,42px);line-height:1.15;letter-spacing:-1px;margin:12px 0}
.portal-detail .detail-heading p{font-size:16px;margin:0;color:#597170}
.detail-status{display:inline-block;margin-top:12px;background:#eaf0e5;border-radius:8px;padding:5px 10px;font-size:13px}
.detail-gallery{margin:0 0 22px!important;min-width:0;border:1px solid #d5e1df;border-radius:14px;background:#fff;overflow:hidden}
.detail-gallery .detail-main-photo{display:block;position:relative;width:100%;padding:0;border:0;background:#edf0e8;cursor:zoom-in;color:#fff}
.detail-gallery .detail-main-photo img{display:block;width:100%;height:clamp(210px,34vw,460px);max-height:none;object-fit:contain;background:#edf0e8}
.detail-main-photo>span{position:absolute;right:12px;bottom:12px;padding:6px 12px;border-radius:8px;font-size:13px;background:#173f38eb}
.detail-gallery-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;min-height:44px;font-size:13px;color:#597170}
.detail-gallery-bar>div{display:flex;gap:6px}
.detail-gallery-bar button,.detail-thumbs button{min-width:44px;min-height:44px;border:1px solid #c4d0bf;border-radius:8px;background:#fff;color:#123c3e;cursor:pointer;font:inherit}
.detail-thumbs{display:flex;overflow:auto;gap:8px;padding:4px 12px 12px}
.detail-thumbs button{padding:3px;flex:0 0 80px}
.detail-thumbs [aria-pressed=true]{border:2px solid #123c3e;background:#edf2e6}
.detail-thumbs img{display:block;width:72px;height:52px;object-fit:cover;border-radius:4px}
.detail-gallery figcaption{font-size:12px!important;line-height:1.6!important;padding:12px 16px!important;background:#f3f5ef!important;color:#53645a!important;overflow-wrap:anywhere}
.detail-gallery figcaption a{text-decoration:underline;text-underline-offset:3px}
.detail-no-photo{display:flex;gap:14px;align-items:center;background:#edf0e8;border-radius:12px;padding:16px 20px;margin:0 0 20px;color:#597170}
.detail-no-photo span{font-size:28px}.detail-no-photo p{margin:0!important;font-size:14px!important}
.detail-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:18px;background:#eaf0e5;border-radius:12px;margin:0 0 14px}
.detail-summary span{display:block;font-size:13px;color:#597170}.detail-summary strong{display:block;font-size:28px;line-height:1.3}
.detail-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.detail-jump{font:inherit!important;font-size:14px!important;min-height:44px;padding:9px 14px!important;border:1px solid #c4d0bf!important;border-radius:9px;background:#fff!important;color:#123c3e!important;cursor:pointer}
.detail-summary .detail-jump{background:#123c3e!important;color:#fff!important;border-color:#123c3e!important}
.detail-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px;margin-top:18px}
.detail-columns>div{min-width:0}
.portal-detail .detail-card{padding:24px;background:#fff;border:1px solid #d5e1df;border-radius:14px;margin:0 0 20px;scroll-margin-top:100px}
.portal-detail h3{font-size:22px;line-height:1.3;margin:0 0 16px;letter-spacing:-.4px}
.portal-detail .detail-section-title{font-size:22px;line-height:1.3;margin:0 0 16px;letter-spacing:-.4px}
.portal-detail h3.detail-subtitle{font-size:16px;letter-spacing:0;margin:20px 0 10px}
.portal-detail h4{font-size:16px;margin:20px 0 10px}
.portal-detail p,.portal-detail li{font-size:16px;line-height:1.75}
.portal-detail p{margin:0 0 16px}.portal-detail p:last-child{margin-bottom:0}
.portal-detail ul{padding-left:22px}.portal-detail li{margin-bottom:8px}
.portal-detail .detail-text{white-space:pre-wrap}
.detail-actions{display:flex;flex-wrap:wrap;gap:10px}
.detail-actions .btn{min-height:48px;white-space:normal;max-width:100%;padding:12px 16px;font-size:15px;line-height:1.5;text-align:center;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}
.detail-contact .detail-actions{display:grid;grid-template-columns:minmax(0,1fr)}
.detail-contact{background:#f1f4eb!important}
.detail-link,.detail-more a{display:inline-block;padding:8px 0;text-decoration:underline;text-underline-offset:3px}
.detail-note{padding:20px;color:#597170}
.portal-detail .detail-note p,.portal-detail .detail-footnote{font-size:13px;line-height:1.7;color:#597170}
.detail-more{border-top:1px solid #d5e1df;padding:8px 0;margin:16px 0 0}
.detail-more summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 0;box-sizing:border-box;font-size:14px;font-weight:600}
.portal-detail :focus-visible,.detail-gallery :focus-visible,.detail-lightbox :focus-visible{outline:3px solid #d34b26;outline-offset:3px}
.place-detail:has(.portal-detail){max-width:1120px;padding:30px 30px 56px}
.place-detail:has(.portal-detail)>nav{order:0;white-space:normal;overflow:visible;margin:0 0 22px;line-height:1.7}
.place-detail .portal-detail section{border-top:1px solid #d5e1df;margin-top:0}
.routes-detail:has(.portal-detail){max-height:none;background:#ffffff}
.routes-detail .detail-columns{grid-template-columns:minmax(0,1fr)}
.routes-detail .detail-heading h2{font-size:28px}
.routes-detail .detail-main-photo img{height:300px}
.cp-dialog:has(.portal-detail),#dialog:has(.portal-detail){width:min(960px,calc(100vw - 32px));max-width:960px;max-height:92dvh;box-sizing:border-box;padding:24px;background:#ffffff;border:1px solid #d5e1df;border-radius:18px}
.cp-dialog:has(.portal-detail) .cp-close,#dialog:has(.portal-detail)>.close{position:sticky;top:0;margin-left:auto;display:block;width:44px;height:44px;z-index:2;border:1px solid #c4d0bf;border-radius:50%;background:#fff;color:#123c3e;cursor:pointer;font-size:26px}
.cp-dialog:has(.portal-detail) .cp-dialog-content{padding:0}
.detail-lightbox{box-sizing:border-box;width:min(1120px,calc(100vw - 24px));max-width:none;max-height:94dvh;padding:16px;border:0;border-radius:14px;background:#ffffff;color:#123c3e;overflow:auto}
.detail-lightbox::backdrop{background:#092b25e8}
.detail-lightbox-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:14px}
.detail-lightbox button{font:inherit;font-size:14px;min-height:44px;padding:10px 14px;cursor:pointer;border:1px solid #bac9b5;border-radius:9px;background:#fff;color:#123c3e}
.detail-lightbox-image img{display:block;width:100%;height:65dvh;object-fit:contain;margin:12px 0}
.detail-lightbox-controls{display:flex;justify-content:center;gap:12px}
.detail-lightbox-credit{font-size:12px;line-height:1.7;padding-top:12px;overflow-wrap:anywhere}.detail-lightbox-credit a{text-decoration:underline}
.detail-lightbox [hidden]{display:none!important}
@media(max-width:700px){
 .detail-columns{grid-template-columns:minmax(0,1fr);gap:0}
 .portal-detail .detail-heading h1,.portal-detail .detail-heading h2{font-size:30px}
 .portal-detail .detail-card{padding:20px 16px}
 .portal-detail h3{font-size:21px}
 .portal-detail .detail-section-title{font-size:21px}
 .detail-gallery .detail-main-photo img,.routes-detail .detail-main-photo img{height:240px}
 .detail-shortcuts{gap:6px}.detail-jump{padding:9px 11px!important}
 .detail-summary{display:block}.detail-summary .detail-jump{width:100%;margin-top:14px}
 .place-detail:has(.portal-detail){padding:24px 16px 40px}
 .cp-dialog:has(.portal-detail),#dialog:has(.portal-detail){padding:12px;width:calc(100vw - 16px);max-height:96dvh}
 .detail-actions{flex-direction:column}
 .detail-lightbox{width:calc(100vw - 16px);padding:12px}
 .detail-lightbox-image img{height:57dvh}
}
