:root{--ink:#232d2b;--muted:#7a8079;--paper:#f5f3eb;--gold:#b59665;--line:#dedfd5;--serif:Prata,Georgia,serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Manrope,Arial,sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}.top{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 6%;background:#f8f7f1}.brand{display:flex;align-items:center;gap:12px;font-family:var(--serif);letter-spacing:.13em;font-size:22px;line-height:1}.brand small{display:block;font:600 8px Manrope,sans-serif;letter-spacing:.19em;margin-top:7px}.brand-mark{color:var(--gold);font-size:35px}.top nav{display:flex;gap:42px;font-size:12px;font-weight:600}.top nav a:hover,.top-link:hover{color:var(--gold)}.top-link{font-size:11px;letter-spacing:.08em;text-transform:uppercase;border-bottom:1px solid var(--gold);padding-bottom:8px}.top-link span{padding-left:22px}.hero{height:min(720px,calc(100vh - 82px));min-height:590px;position:relative;color:white;overflow:hidden;background:#2d4444}.hero-image{position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,30,29,.45),rgba(16,30,29,.05)),url('assets/simonopetra-reconstruction.png') center 47%/cover}.hero-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(10,24,23,.62),transparent 38%),linear-gradient(90deg,rgba(16,30,29,.7),transparent 75%)}.hero-content{position:absolute;left:10%;top:23%;max-width:800px}.eyebrow{font-size:10px;letter-spacing:.2em;font-weight:700;color:#8d816b;display:flex;align-items:center;gap:12px}.eyebrow span{display:inline-block;width:27px;height:1px;background:#b69a70}.eyebrow.light{color:#e5d1ac}.hero h1,.section-heading h2,.intro h2,.closing h2{font:400 clamp(42px,6.2vw,84px)/1.16 var(--serif);letter-spacing:-.045em;margin:27px 0}.hero h1 em,.intro h2 i,.section-heading h2 i,.closing h2 i{font-weight:400;color:#d4bd97}.hero-copy{font-size:14px;line-height:1.9;max-width:440px;color:#e3e7df}.hero-button{display:inline-flex;gap:52px;align-items:center;background:#e9e3d3;color:#26312e;padding:19px 24px;margin-top:24px;font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:700}.hero-button:hover{background:#fff}.hero-bottom{position:absolute;left:6%;right:6%;bottom:35px;display:flex;justify-content:space-between;font-size:9px;letter-spacing:.17em;color:#e0e2d9}.hero-bottom b{font-size:17px;margin-left:18px}.hero-side{position:absolute;right:3%;top:40%;writing-mode:vertical-rl;font-size:9px;letter-spacing:.25em}.intro,.section-heading{display:grid;grid-template-columns:1fr 1fr;gap:10%;align-items:start}.intro{padding:125px 10% 120px}.intro h2,.section-heading h2{font-size:clamp(38px,4.4vw,62px);margin:22px 0}.intro h2 i,.section-heading h2 i{color:#9c8d74}.intro-copy{max-width:570px;font-size:15px;line-height:1.9;color:#68736c}.intro-copy p:first-child{color:#333e38;font:20px/1.7 var(--serif);margin-top:0}.stats{display:flex;gap:50px;border-top:1px solid var(--line);margin-top:38px;padding-top:30px}.stats strong{font:26px var(--serif);color:#43534b;display:block}.stats small{font-size:8px;letter-spacing:.12em;white-space:nowrap}.atlas-section{padding:100px 6% 100px;background:#eaece4}.section-heading{margin:0 4% 45px}.section-heading>p{font-size:13px;line-height:1.9;color:#778179;max-width:410px;align-self:end}.atlas-shell{display:grid;grid-template-columns:310px 1fr;height:650px;background:#f9f9f3;box-shadow:0 15px 50px #33463c0d}.atlas-sidebar{padding:26px 0 0;min-width:0;display:flex;flex-direction:column}.side-head{padding:0 25px;display:flex;justify-content:space-between}.side-head small,.side-label,.side-head>span{color:#999f93;font-size:9px;letter-spacing:.13em}.side-head h3{font:22px var(--serif);margin:10px 0 20px}.side-head sup{font:9px Manrope;color:#b29464}.side-head>span{font-size:24px;color:#b49a70}.search{display:flex;align-items:center;gap:10px;margin:0 24px 25px;border-bottom:1px solid #d9ddd3;padding-bottom:10px;color:#8c968c}.search input{border:0;outline:0;background:none;width:100%;font-size:11px}.side-label{display:flex;justify-content:space-between;padding:0 25px 14px}.monastery-list{overflow:auto;border-top:1px solid #e6e8e0}.list-item{display:flex;width:100%;align-items:center;gap:14px;border:0;border-bottom:1px solid #eceee7;background:transparent;text-align:left;padding:15px 24px;color:#48554d}.list-item:hover,.list-item.selected{background:#e9eee4}.list-item .num{font:11px var(--serif);color:#b6a07d}.list-item strong{font-size:11px;font-weight:600;flex:1}.list-item .arrow{color:#ad9a7b}.map-wrap{position:relative;overflow:hidden;background:#bdcdc0}#map{height:100%;width:100%;z-index:0}.map-top{position:absolute;z-index:500;top:20px;left:20px;right:20px;display:flex;justify-content:space-between;pointer-events:none;font-size:9px;letter-spacing:.12em;color:#51665b}.map-top span{background:#f8f8efdc;padding:9px 12px}.map-top b{color:#b4945e}.map-controls{position:absolute;z-index:500;left:20px;bottom:20px;background:#fbfbf5ed;padding:10px;display:flex;align-items:center;gap:4px;box-shadow:0 3px 20px #31483e1c}.map-controls span{font-size:8px;letter-spacing:.12em;color:#8a978c;padding:0 10px}.route{border:0;background:transparent;color:#68756b;padding:10px 11px;font-size:10px}.route.active{background:#40584c;color:#fff}.map-note{position:absolute;z-index:500;right:12px;bottom:8px;font-size:9px;color:#536a60;background:#f9faf1cc;padding:4px}.leaflet-control-zoom{margin-top:65px!important;border:0!important}.leaflet-control-zoom a{border:0!important;color:#43564c!important;background:#f8f9f3!important}.map-pin{width:26px;height:26px;border:1px solid white;background:#b79560;color:#fff;border-radius:50%;display:grid;place-items:center;font:10px Manrope;box-shadow:0 2px 8px #1b302d70}.map-pin.selected{background:#344e42;transform:scale(1.2)}.map-caption{display:flex;justify-content:space-between;font-size:9px;letter-spacing:.12em;color:#96a099;margin-top:18px}.collection{padding:110px 10%}.collection .section-heading{margin-left:0;margin-right:0}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#dfe2d8;border:1px solid #dfe2d8}.card{background:#f5f3eb;text-align:left;border:0;padding:24px;min-height:150px;color:var(--ink);transition:background .2s}.card:hover{background:#e8ece1}.card-top{display:flex;justify-content:space-between;color:#ab9775;font:11px var(--serif)}.card h3{font:17px/1.45 var(--serif);margin:23px 0 8px}.card p{font-size:10px;color:#879087;margin:0}.closing{background:#344940;color:#ecede3;padding:95px 10%;display:grid;grid-template-columns:1fr 1fr;gap:12%}.closing h2{font-size:clamp(35px,4vw,55px)}.closing>div:last-child{font-size:13px;line-height:1.9;color:#c3d0c6}.closing a{display:inline-block;border-bottom:1px solid #c6b088;padding-bottom:8px;margin-top:20px;color:#f6f5ec;font-size:11px;text-transform:uppercase;letter-spacing:.1em}footer{padding:35px 6%;display:flex;align-items:center;justify-content:space-between}footer>span,footer>a:last-child{font-size:9px;letter-spacing:.13em;color:#89928a}.detail{display:none;position:fixed;inset:0;z-index:1000}.detail.open{display:block}.detail-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:#14221f99}.detail-panel{position:absolute;right:0;top:0;bottom:0;width:min(590px,100%);background:#f7f6ef;overflow:auto;box-shadow:-10px 0 50px #0002}.close{position:absolute;right:22px;top:20px;z-index:2;width:40px;height:40px;border:1px solid #ffffff8a;background:#24362c66;color:white;font-size:25px}.detail-image{height:310px;background:#708075 center/cover;position:relative}.image-overlay{position:absolute;inset:0;background:linear-gradient(0deg,#182d24d9,transparent 85%)}.detail-image-text{position:absolute;bottom:34px;left:35px;color:white}.detail-image-text span,.photo-label{font-size:9px;letter-spacing:.15em}.detail-image-text h2{font:38px var(--serif);margin:12px 0}.detail-image-text p{margin:0;color:#e2d4b9;font:14px var(--serif)}.photo-label{position:absolute;right:15px;bottom:12px;color:#ffffffa9;font-size:7px}.detail-body{padding:35px}.detail-meta{display:flex;gap:70px;border-bottom:1px solid var(--line);padding-bottom:27px;margin-bottom:32px}.detail-meta small,.model-copy small{display:block;font-size:9px;letter-spacing:.15em;color:#9b9f91;margin-bottom:8px}.detail-meta strong{font:16px var(--serif)}.history{font:16px/1.85 var(--serif);color:#465249}.model-box{background:#e9ece2;display:flex;min-height:200px;margin-top:30px;overflow:hidden}.model-copy{padding:25px;width:55%;position:relative;z-index:1}.model-copy h3{font:19px var(--serif);margin:0}.model-copy p{font:11px/1.7 Manrope;color:#7d897e}.model{position:relative;width:45%;perspective:500px;transform:scale(.9)}.model-base{position:absolute;width:150px;height:100px;background:#a8ad91;left:30px;top:75px;transform:rotateX(60deg) rotateZ(-25deg);box-shadow:0 15px #7b856f}.building{position:absolute;background:#d4c6a7;border:2px solid #a49475;box-shadow:inset -12px -8px #b2a281}.b1{width:105px;height:55px;top:72px;left:40px;transform:skewY(-8deg)}.b2{width:55px;height:70px;top:57px;left:80px;transform:skewY(9deg)}.b3{width:45px;height:50px;top:80px;left:130px;transform:skewY(8deg)}.tower{position:absolute;width:34px;height:86px;top:35px;left:49px;background:#c4b394;border:2px solid #998b70}.tower:before{content:'';position:absolute;top:-17px;left:-5px;border-left:20px solid transparent;border-right:20px solid transparent;border-bottom:17px solid #785f51}.dome{position:absolute;top:47px;left:94px;width:26px;height:20px;background:#796d59;border-radius:50% 50% 0 0}.source{display:inline-block;margin-top:28px;font-size:11px;color:#637b69;border-bottom:1px solid #a8b5a5;padding-bottom:5px}.no-results{padding:20px;font-size:12px;color:#929b90}@media(max-width:800px){.top{height:68px;padding:0 5%}.top nav{display:none}.top-link{font-size:9px}.hero{min-height:560px;height:75vh}.hero-content{left:7%;right:7%;top:24%}.hero-side{display:none}.intro,.section-heading,.closing{grid-template-columns:1fr;gap:20px}.intro{padding:75px 7%}.stats{gap:25px;flex-wrap:wrap}.atlas-section,.collection{padding:70px 5%}.section-heading{margin:0 2% 25px}.atlas-shell{display:flex;flex-direction:column-reverse;height:auto}.atlas-sidebar{height:350px}.map-wrap{height:500px}.map-controls{right:10px;left:10px;bottom:25px;flex-wrap:wrap}.map-controls span{display:none}.map-note{bottom:4px}.cards{grid-template-columns:repeat(2,1fr)}.closing{padding:70px 7%}footer>span{display:none}.map-caption span:last-child{display:none}}@media(max-width:420px){.hero h1{font-size:42px}.stats{gap:20px}.stats strong{font-size:22px}.stats small{font-size:7px}.map-wrap{height:410px}.route{font-size:9px}.detail-body{padding:25px}.detail-image{height:260px}.detail-image-text h2{font-size:30px}.detail-meta{gap:30px}.model-copy{width:60%}.model{transform:scale(.7);transform-origin:left center}}
:root .model{min-height:200px;transform:none;touch-action:none}:root .model canvas{display:block;width:100%;height:100%;cursor:grab}:root .model canvas:active{cursor:grabbing}

.model{min-height:200px;transform:none;touch-action:none}.model canvas{display:block;width:100%;height:100%;cursor:grab}.model canvas:active{cursor:grabbing}
.photo-archive{border-top:1px solid var(--line);margin-top:32px;padding-top:25px}.archive-heading{display:flex;align-items:end;justify-content:space-between;gap:12px}.archive-heading h3{font:22px var(--serif);margin:14px 0}.archive-controls{display:flex;gap:5px}.archive-controls button{width:36px;height:36px;border:1px solid #cbd2c6;background:transparent;color:#53685a}.archive-controls button:hover{background:#40584c;color:white}.archive-description{font-size:11px;line-height:1.7;color:#7d897e}.photo-strip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding:10px 0 16px;min-height:110px}.photo-strip>p,.photo-strip>a>p{font-size:12px;color:#748178}.archive-photo{flex:0 0 185px;scroll-snap-align:start;min-width:0}.archive-photo img{display:block;width:185px;height:125px;object-fit:cover;background:#e1e6dc}.archive-photo span{display:block;color:#758177;font-size:9px;line-height:1.5;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.archive-photo:hover span{color:#344f40}
.reconstruction{border-top:1px solid var(--line);margin-top:32px;padding-top:25px}.reconstruction[hidden]{display:none}.reconstruction h3{font:22px var(--serif);margin:14px 0}.reconstruction p:not(.eyebrow){font-size:11px;line-height:1.7;color:#738075}.reconstruction>a{display:inline-block;font-size:10px;margin-top:10px;color:#536e5d;border-bottom:1px solid #aab9a9}.panorama-window{height:220px;overflow-x:auto;overflow-y:hidden;cursor:grab;touch-action:pan-x;scrollbar-color:#93a394 #e1e6de}.panorama-window:active{cursor:grabbing}.panorama-window img{height:100%;width:auto;max-width:none;display:block;user-select:none;pointer-events:none}

.panorama-window img{min-width:100%;object-fit:cover}

.atlas-sidebar{min-height:0}.monastery-list{min-height:0;flex:1 1 auto}
.model-expand{border:1px solid #9caa9c;background:transparent;padding:9px 12px;color:#43594c;font-size:10px;letter-spacing:.05em}.model-expand:hover{background:#40584c;color:white}.model-box.expanded{position:fixed;z-index:1200;inset:5vh 5vw;margin:0;display:flex;flex-direction:column;box-shadow:0 0 0 100vmax #17251fe8;background:#e9ece2}.model-box.expanded .model-copy{width:100%;padding:18px 25px}.model-box.expanded .model-copy p{max-width:650px}.model-box.expanded .model{width:100%;flex:1;min-height:0}.model-box.expanded .model canvas{touch-action:none}@media(max-width:600px){.model-box.expanded{inset:0}.model-box.expanded .model-copy{padding:15px}.model-box.expanded .model-copy h3{font-size:17px}}
.map-marker{position:relative;width:38px;height:40px}.map-marker .map-pin{position:absolute;left:6px;bottom:0;z-index:2}.map-marker.selected .map-pin{background:#344e42;transform:scale(1.15)}.map-mini{display:none;position:absolute;left:2px;top:-4px;width:34px;height:26px;transform-style:preserve-3d;transform:rotateX(55deg) rotateZ(-35deg);filter:drop-shadow(2px 3px 2px #1d332b88)}.show-miniatures .map-mini{display:block}.show-miniatures .map-marker .map-pin{width:19px;height:19px;left:10px;bottom:-4px;font-size:8px}.mini-ground,.mini-wing,.mini-tower,.mini-roof{display:block;position:absolute;transform-style:preserve-3d}.mini-ground{inset:0;background:#80937c;transform:translateZ(-3px)}.mini-wing{left:3px;top:3px;width:27px;height:19px;background:#d4c4a7;transform:translateZ(6px)}.mini-wing:before{content:"";position:absolute;width:100%;height:8px;left:0;bottom:0;background:#a5967e;transform-origin:bottom;transform:rotateX(-90deg)}.mini-wing:after{content:"";position:absolute;width:8px;height:100%;right:0;top:0;background:#b2a38a;transform-origin:right;transform:rotateY(90deg)}.mini-tower{left:7px;top:6px;width:8px;height:8px;background:#c3b293;transform:translateZ(var(--tower))}.mini-tower:before{content:"";position:absolute;left:0;bottom:0;width:100%;height:12px;background:#a6947a;transform-origin:bottom;transform:rotateX(-90deg)}.mini-roof{left:3px;top:3px;width:27px;height:19px;background:var(--roof);transform:translateZ(8px);clip-path:polygon(0 0,100% 0,95% 100%,5% 100%)}
.immersive-entry{border-top:1px solid var(--line);margin-top:32px;padding-top:25px}.immersive-entry[hidden],.immersive[hidden]{display:none}.immersive-entry h3{font:22px var(--serif);margin:14px 0}.immersive-entry p:not(.eyebrow){font-size:11px;line-height:1.7;color:#738075}.immersive-entry button{border:0;background:#40584c;color:white;padding:13px 17px;font-size:10px;letter-spacing:.08em;text-transform:uppercase}.immersive{position:fixed;inset:0;z-index:2000;background:#152620;color:#fff}.immersive-toolbar{position:absolute;z-index:2;top:0;left:0;right:0;display:flex;align-items:start;justify-content:space-between;padding:22px;background:linear-gradient(#10211dbb,transparent)}.immersive-toolbar strong{font:22px var(--serif)}.immersive-toolbar small{display:block;font-size:10px;letter-spacing:.08em;margin-top:7px}.immersive-toolbar button{border:1px solid #ffffff88;background:#24362c88;color:#fff;width:44px;height:44px;font-size:25px}.immersive-help{position:absolute;bottom:22px;left:0;right:0;text-align:center;font-size:9px;letter-spacing:.13em;text-shadow:0 1px 5px #000}#immersive-canvas{position:absolute;inset:0;cursor:grab;touch-action:none;outline-offset:-5px}#immersive-canvas:active{cursor:grabbing}#immersive-canvas canvas{width:100%;height:100%;display:block}

#map canvas{display:block;touch-action:none;cursor:grab}#map canvas:active{cursor:grabbing}.terrain-controls{position:absolute;top:65px;left:20px;z-index:501;display:flex;flex-direction:column;box-shadow:0 3px 12px #263c3033}.terrain-controls button{width:37px;height:37px;border:0;border-bottom:1px solid #ddd;background:#f8f9f2;color:#40564b;font-size:22px}.terrain-popup{position:absolute;z-index:502;left:70px;top:75px;width:min(290px,70%);padding:18px;background:#f9f8f0;box-shadow:0 8px 30px #273b3260;font-size:12px;line-height:1.5}.terrain-popup strong{font:18px Georgia}.terrain-popup button{float:right;border:0;background:none;font-size:20px}.terrain-popup a{color:#617d6b;text-decoration:underline}.map-note{max-width:50%;text-align:right}.map-top,.map-controls,.map-note{pointer-events:none}.map-controls button{pointer-events:auto}

.list-section{background:#e5eae0;color:#66796b;font-size:9px;letter-spacing:.13em;padding:16px 24px;display:flex;justify-content:space-between}.extra-item .num{color:#4d8272}.terrain-popup small{display:block;color:#779085;font-size:9px;letter-spacing:.12em;margin-bottom:8px}.terrain-popup strong{display:block;padding-right:18px}.terrain-popup{top:115px}.terrain-popup p{color:#596a61}.map-wrap{background:#648f98}

.type-filters{padding:0 20px 15px;display:flex;gap:5px;flex-wrap:wrap}.type-filters button{border:1px solid #d9e0d5;border-radius:14px;background:transparent;padding:6px 9px;font-size:9px;color:#617166}.type-filters button[aria-pressed="true"]{background:#40584c;border-color:#40584c;color:white}.coordinates{font-size:10px;color:#72827a}.monastery-list{min-height:0}.terrain-popup{max-height:60%;overflow:auto}

.route-picker{position:absolute;z-index:500;left:20px;bottom:18px;width:min(330px,calc(100% - 40px));padding:14px;background:#fbfaf4ed;box-shadow:0 4px 18px #243a3040;display:grid;gap:7px}.route-picker label{font-size:9px;letter-spacing:.13em;color:#6c8072}.route-picker select{width:100%;padding:8px;border:1px solid #d5ded2;background:white;color:#344c40;font-size:11px}.route-picker a{color:#547766;font-size:10px;text-decoration:underline}.route-picker small{font-size:9px;line-height:1.4;color:#738377}.map-note{max-width:37%;bottom:8px}@media(max-width:800px){.route-picker{left:10px;bottom:12px;width:calc(100% - 20px);padding:9px}.route-picker small{display:none}.map-note{display:none}}

/* Локальный атлас: карта — главный и единственный раздел. */
.top{height:72px;padding:0 4%;border-bottom:1px solid #d8ded3}.brand-emblem{width:45px;height:40px;object-fit:cover;border:1px solid #b89a60;border-radius:50%;background:#dfbd59}.top-subtitle{font-size:10px;letter-spacing:.14em;color:#78877b}.atlas-section{padding:28px 4% 30px}.atlas-section .section-heading{display:none}.atlas-shell{height:calc(100vh - 160px);min-height:560px;grid-template-columns:320px 1fr}.map-caption{margin-top:12px}.model-box[hidden],#reconstruction[hidden],#immersive-entry[hidden]{display:none}.object-glyph{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#8b5839;color:#fff;font-size:15px}.archive-restored{margin:0;min-width:220px}.archive-restored img{width:220px}.archive-restored figcaption{font-size:10px;line-height:1.4}.detail-meta strong{font-size:14px;overflow-wrap:anywhere}@media(max-width:800px){.top{height:64px}.top-subtitle{display:none}.atlas-section{padding:10px 0}.atlas-shell{min-height:0;height:auto}.map-wrap{height:55vh;min-height:400px}.atlas-sidebar{height:340px}.map-caption{padding:0 12px}}

.glyph-church{background:#4b6e82}.glyph-skete{background:#477462}.glyph-cell{background:#806a8d}.extra-item .object-glyph{flex:none}.detail-image-text{right:35px}.detail-image-text h2{font-size:clamp(23px,3vw,38px);overflow-wrap:anywhere;line-height:1.15}.archive-photo img,.archive-restored img{object-fit:cover}.archive-restored figcaption{max-width:220px}.list-item.selected{box-shadow:inset 4px 0 #a87942;background:#e7eee3}.photo-label{max-width:60%;text-align:right;line-height:1.4}

/* Показываем полные подписи источников и весь кадр архивного снимка. */
.archive-photo span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.archive-photo img,.archive-restored img{object-fit:contain;background:#e1e6dc}

.archive-source{display:inline-block;margin-top:5px;color:#536e5d;font-size:10px;text-decoration:underline}.archive-photo>a:first-child{display:block}

.history-reference{display:inline-block;color:#536e5d;font-size:11px;text-decoration:underline}.history-reference[hidden]{display:none}

.panorama-status{position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%);padding:12px 16px;background:#182b25dc;color:#fff;font-size:13px;text-align:center}.panorama-status[hidden]{display:none}

/* Светлая карта остаётся видна, пока открыта справка. */
.detail-backdrop{background:transparent}
.detail-panel{box-shadow:-8px 0 28px #1c312d26}
.image-overlay{display:none}
.detail-image-text{background:#263f36;color:#f7f6ef;padding:15px 19px;left:0;right:auto;bottom:0;max-width:calc(100% - 45px)}
.photo-label{background:#263f36;color:#f7f6ef;padding:5px 7px}
.brand-emblem{width:46px;height:46px;object-fit:contain;border:0;border-radius:0;background:transparent}
.object-glyph{width:30px;height:30px;border-radius:9px;background:#654c3d;color:#fff9ea}
.object-glyph svg{display:block;width:22px;height:22px}
.glyph-church{background:#365967}.glyph-skete{background:#426151}.glyph-cell{background:#6a5c70}
.list-item.selected .object-glyph{background:#dfb977;color:#273b32;outline:2px solid #8b6c39;outline-offset:2px}

/* Выделяется пиктограмма, а не вся строка списка. */
.list-item.selected{box-shadow:none;background:transparent}

/* Карточка не блокирует работу с картой и списком. */
.detail{pointer-events:none}.detail-backdrop{pointer-events:none}.detail-panel{pointer-events:auto}.detail-header{display:flex;align-items:center;gap:14px;padding:22px 25px;background:#f7f6ef}.detail-header .object-glyph{flex:none}.detail-heading{flex:1;min-width:0}.detail-heading span{font-size:9px;letter-spacing:.14em;color:#8b8b7b}.detail-heading h2{font:26px/1.15 var(--serif);margin:5px 0;color:#344940}.detail-heading p{font:13px var(--serif);margin:0;color:#8a8e7c}.detail-header .close{position:static;flex:none;color:#344940;background:transparent;border:1px solid #d7dbd0}.detail-image{height:310px}.photo-zoom{position:absolute;right:15px;bottom:15px;width:42px;height:42px;background:#23372ed9;color:white;border:1px solid #ffffff90;font-size:24px}.detail-sources{border-top:1px solid var(--line);margin-top:32px;padding-top:20px}.detail-sources h3{font:20px var(--serif);margin:0 0 12px}.detail-sources a{display:block;width:fit-content;font-size:11px;line-height:1.6;color:#637b69;margin:9px 0}.detail-sources [hidden]{display:none}.photo-viewer{position:fixed;inset:0;background:#15231cf2;z-index:2500;display:flex;align-items:center;justify-content:center;padding:55px}.photo-viewer[hidden]{display:none}.photo-viewer img{max-width:100%;max-height:100%;object-fit:contain}.photo-viewer button{position:absolute;right:20px;top:15px;border:1px solid #ffffff77;background:transparent;color:#fff;font-size:32px;width:46px;height:46px}@media(max-width:600px){.detail-header{padding:15px}.detail-heading h2{font-size:21px}.photo-viewer{padding:45px 12px}}
@media(max-width:600px){.detail-panel{top:auto;bottom:0;height:min(70dvh,680px);border-radius:16px 16px 0 0}.detail-header{position:sticky;top:0;z-index:3}}

/* Card imagery and panorama controls */
#reconstruction,.model-box{display:none!important}.detail-image{aspect-ratio: 16 / 9;height:auto;background-size:cover;background-position:center}#open-immersive{position:absolute;right:65px;bottom:15px;height:42px;padding:0 14px;background:#23372ed9;color:#fff;border:1px solid #ffffff90;font-weight:700;cursor:pointer}#open-immersive[hidden]{display:none}

.map-caption a{text-decoration:underline;text-underline-offset:2px}

.reset-filters{align-self:flex-start;margin:0 24px 12px;padding:0 0 3px;border:0;border-bottom:1px solid #b5c1b3;background:none;color:#617769;font-size:10px}.reset-filters:hover{color:#263d32}.compass{position:absolute;z-index:500;top:68px;right:20px;width:76px;height:76px;pointer-events:none;border-radius:50%;background:#f8f8eff0;box-shadow:0 3px 14px #263c3033}.compass-dial{position:absolute;inset:7px;border:1px solid #a9b8aa;border-radius:50%;color:#465c4f;font-size:10px;font-weight:700}.compass-dial span{position:absolute}.compass-dial .north{top:2px;left:50%;transform:translateX(-50%);color:#a16a42}.compass-dial .south{bottom:2px;left:50%;transform:translateX(-50%)}.compass-dial .east{right:4px;top:50%;transform:translateY(-50%)}.compass-dial .west{left:4px;top:50%;transform:translateY(-50%)}.compass-dial i{position:absolute;left:50%;top:50%;width:0;height:0;transform:translate(-50%,-70%);border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:13px solid #a16a42}.detail-image{background-size:contain!important;background-repeat:no-repeat;background-color:#dce3d9} @media(max-width:800px){.compass{top:58px;right:10px;width:60px;height:60px}.compass-dial{inset:5px;font-size:9px}}

/* Equal image area for every card; show the complete image over a matching soft backdrop. */
.detail-header{min-height:128px}.detail-image{position:relative;display:block;width:100%;height:auto;aspect-ratio:16/9;overflow:hidden;background-color:#dce3d9;background-size:contain!important;background-position:center;background-repeat:no-repeat;isolation:isolate}.detail-image::before{content:"";position:absolute;inset:-12px;background-image:inherit;background-size:cover;background-position:center;filter:blur(12px) brightness(.82);z-index:0;pointer-events:none}.detail-image::after{content:"";position:absolute;inset:0;background-image:inherit;background-position:center;background-size:contain;background-repeat:no-repeat;z-index:1;pointer-events:none}.detail-image .photo-zoom,.detail-image #open-immersive{z-index:2}@media(max-width:600px){.detail-header{min-height:104px}}

.reset-filters[hidden]{display:none}.list-copy{flex:1;min-width:0}.list-copy strong,.list-copy small{display:block}.list-copy small{font-size:10px;color:#697b6e;margin-top:4px}.object-glyph,.glyph-church,.glyph-skete,.glyph-cell{background:transparent;color:#263f33;border-radius:0}.object-glyph svg{width:28px;height:28px;stroke-width:2}.list-item.selected .object-glyph{background:transparent;color:#b52e13;outline:0;filter:drop-shadow(0 0 1px #fff);transform:scale(1.22)}.list-item.selected{background:#e4ece1;box-shadow:inset 4px 0 #b52e13}.detail-heading #detail-type{font-size:11px;letter-spacing:0;color:#617769}.detail-heading #detail-type a{text-decoration:underline;text-underline-offset:3px}.detail-facts{font-size:13px;line-height:1.6;color:#56665b}.detail-facts p{margin:8px 0}.detail-facts strong{font-weight:600}.detail-facts a{color:#315f4a;text-decoration:underline;text-underline-offset:3px}.terrain-controls button:disabled{color:#aab3aa;background:#e6eae3;cursor:not-allowed;opacity:.65}

/* Thin, crisp icons; align the card icon with the title. */
.object-glyph svg{stroke-width:1.5}.detail-header{display:grid;grid-template-columns:30px minmax(0,1fr) 40px;grid-template-rows:auto auto auto;column-gap:14px;row-gap:0}.detail-heading{display:contents}.detail-heading #detail-type{grid-column:2;grid-row:1}.detail-heading h2{grid-column:2;grid-row:2}.detail-heading p{grid-column:2;grid-row:3}.detail-header .object-glyph{grid-column:1;grid-row:2;align-self:center}.detail-header .close{grid-column:3;grid-row:1 / 4;align-self:center}

/* Clear, distinct line icons at native SVG resolution. */
.object-glyph{width:32px;height:32px;flex:none;color:#263f33}.object-glyph svg{width:32px;height:32px;stroke-width:1.5;overflow:visible}.glyph-church{color:#214c67}.glyph-skete{color:#20543c}.glyph-cell{color:#58416a}.list-item.selected .object-glyph{color:#b02d14;transform:none;filter:none}.list-item.selected .object-glyph svg{stroke-width:1.8}.detail-header{grid-template-columns:32px minmax(0,1fr) 40px}
