.he-front{max-width:1200px;width:100%;margin:0 auto 45px;color:#34465a;font-family:inherit;font-size:14px;line-height:1.4}.he-front *{box-sizing:border-box}.he-search-panel{margin:0 0 16px}.he-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 15px}.he-heading h2{font-size:25px!important;font-weight:700!important;color:#607089!important;margin:0!important;line-height:1.3!important}.he-heading p{font-size:15px;margin:0;color:#607089}.he-divider{height:22px;width:1px;background:#cdd6df}.he-fields{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,3fr) minmax(0,2fr);gap:15px;padding:16px 17px;background:#fff;border:1px solid #e5eaf0;border-radius:14px;box-shadow:0 4px 16px #203c5a0a}.he-field{min-width:0;display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}.he-field input,.he-field select,.he-actions select{height:43px!important;width:100%;max-width:none!important;min-width:0!important;padding:8px 11px!important;border:1px solid #d6e0e9!important;border-radius:7px!important;background:#f8fafc!important;color:#38536e!important;font:inherit!important;font-weight:400!important}.he-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 20px}.he-toolbar strong{font-weight:700;font-size:14px}.he-actions{display:flex;align-items:center;gap:9px}.he-actions label{display:flex;align-items:center;gap:9px;white-space:nowrap;font-weight:600}.he-actions select{width:205px}.he-submit,.he-reset{height:43px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px!important;padding:0 15px!important;font:inherit!important;font-weight:600!important;text-decoration:none!important;cursor:pointer;white-space:nowrap}.he-submit{background:#ff7900!important;border:1px solid #ff7900!important;color:#fff!important}.he-reset{background:#fff!important;border:1px solid #ff7900!important;color:#d65f00!important}.he-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.he-card{position:relative;min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e5eaf0;border-radius:12px;box-shadow:0 4px 13px rgba(25,55,86,.08)}.he-image{display:block;position:relative;width:100%;aspect-ratio:3/2;overflow:hidden;background:#f3f5f7}.he-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.he-image-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#a0acb7}.he-image-empty svg{width:58px;height:58px}.he-category{position:absolute;top:9px;left:9px;max-width:calc(100% - 18px);display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:20px;border:1px solid #ffffffc9;background:var(--he-bg);color:var(--he-fg);font-size:11px;font-weight:700;line-height:1.2;box-shadow:0 2px 6px #0002}.he-category svg{width:15px;height:15px;flex-shrink:0}.he-card-body{position:relative;flex:1;min-height:130px;padding:12px 12px 38px}.he-card h3{font-size:17px!important;font-weight:700!important;line-height:1.25!important;margin:0 0 10px!important}.he-card h3 a{color:#bd4a0b!important;text-decoration:none!important}.he-meta{display:flex;align-items:flex-start;gap:7px;margin:0 0 7px!important;color:#38536e;overflow-wrap:anywhere;font-size:13px}.he-meta span{flex:0 0 16px;color:#f58220;font-size:18px;line-height:1}.he-arrow{position:absolute;right:10px;bottom:10px;width:29px;height:29px;border-radius:50%;background:#f58220;color:#fff!important;display:flex;align-items:center;justify-content:center;text-decoration:none!important;font-size:25px;line-height:1}.he-arrow:hover{background:#dc6900}.he-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:25px 0}.he-pagination .page-numbers{min-width:37px;height:37px;padding:6px 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dce3e9;border-radius:9px;background:#fff;color:#425c77;text-decoration:none!important}.he-pagination .current{background:#f58220;color:#fff;border-color:#f58220}.he-intro{background:#fff;border:1px solid #e5eaf0;border-radius:12px;padding:18px 23px;margin:18px 0 25px;box-shadow:0 3px 10px #203c5a08}.he-intro h3{margin:0 0 12px!important;font-size:20px!important;color:#607089}.he-intro p{margin:0 0 12px}.he-intro ul{padding-left:20px;margin:8px 0}.he-intro li{margin-bottom:8px}.he-detail{background:#fff;border:1px solid #e5eaf0;border-radius:12px;padding:20px;margin:15px 0}.he-detail h2{font-size:24px}.he-detail h3{font-size:18px;margin:20px 0 8px}.he-detail-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.he-detail-gallery img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:7px}.he-back{display:inline-block;margin-bottom:12px}.he-empty{padding:25px;text-align:center}@media(max-width:900px){.he-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.he-fields{grid-template-columns:1fr 2fr}.he-fields .he-field:last-child{grid-column:1/-1}.he-toolbar{flex-wrap:wrap}.he-actions{flex-wrap:wrap}}@media(max-width:600px){.he-grid{grid-template-columns:1fr}.he-fields{grid-template-columns:1fr}.he-fields .he-field:last-child{grid-column:auto}.he-heading{gap:6px}.he-divider{display:none}.he-heading p{width:100%}.he-actions{width:100%}.he-actions label{width:100%}.he-actions select{flex:1}.he-submit,.he-reset{flex:1}.he-detail-gallery{grid-template-columns:repeat(2,1fr)}}


/* 1.9 – compact controls based on Programnaptar 4.1; one authoritative style layer. */
.he-front{width:min(1200px,calc(100vw - 32px))!important;max-width:1200px!important;position:relative;left:50%;transform:translateX(-50%);margin:0 0 45px!important;font-family:inherit!important;font-size:14px!important;color:#626c7d!important;line-height:1.4!important}
.he-front *{box-sizing:border-box!important}
.he-front .he-heading{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:12px!important;margin:0 0 12px!important;padding:0!important;border:0!important}
.he-front .he-heading h2{font-family:inherit!important;font-size:24px!important;font-weight:700!important;color:#667185!important;line-height:1.25!important;letter-spacing:0!important;text-transform:none!important;white-space:normal!important;margin:0!important;padding:0!important}
.he-front .he-heading p{font-family:inherit!important;font-size:13px!important;font-weight:400!important;color:#667185!important;line-height:1.35!important;margin:0!important;padding:0!important}
.he-front .he-divider{height:18px!important;width:1px!important;align-self:center!important;background:#cdd3dd!important}
.he-front .he-fields{display:grid!important;grid-template-columns:minmax(0,18fr) minmax(0,50fr) minmax(0,32fr)!important;align-items:end!important;gap:14px!important;padding:15px 17px!important;background:#fff!important;border:1px solid #e7eaf0!important;border-radius:13px!important;box-shadow:0 5px 22px rgba(40,55,80,.075)!important}
.he-front .he-field{display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0!important;gap:7px!important;margin:0!important;font-family:inherit!important;font-size:13px!important;font-weight:650!important;color:#586476!important;line-height:1.35!important}
.he-front .he-field>span{display:block!important;line-height:1.35!important;margin:0!important;padding:0!important}
.he-front .he-field input[type=search],.he-front .he-field input[name=he_q]{display:block!important;box-sizing:border-box!important;appearance:none!important;-webkit-appearance:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:0 12px!important;border:1px solid #d5dce6!important;border-radius:9px!important;background:#fafbfe!important;box-shadow:none!important;color:#515c6f!important;font-family:inherit!important;font-size:13px!important;font-weight:400!important;line-height:normal!important;outline-offset:0!important}
.he-front .he-field input[type=search]:focus{border-color:#ff7900!important;outline:2px solid rgba(255,121,0,.16)!important}
.he-front .he-select-wrap{position:relative!important;display:block!important;width:100%!important;min-width:0!important;margin:0!important}
.he-front select.he-native-hidden{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.he-front .he-select-trigger{display:block!important;position:relative!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:0 32px 0 13px!important;border:1px solid #d5dce6!important;border-radius:9px!important;background:#fafbfe!important;box-shadow:none!important;color:#515c6f!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-family:inherit!important;font-size:13px!important;font-weight:400!important;line-height:42px!important;cursor:pointer!important}
.he-front .he-select-trigger::after{content:'';position:absolute;right:15px;top:16px;width:7px;height:7px;border-right:2px solid #68758a;border-bottom:2px solid #68758a;transform:rotate(45deg)}
.he-front .he-open .he-select-trigger,.he-front .he-select-trigger:focus-visible{border-color:#ff7900!important;outline:2px solid rgba(255,121,0,.16)!important}
.he-front .he-select-dropdown{position:absolute;z-index:100;left:0;right:0;top:calc(100% + 5px);background:#fff;border:1px solid #e1e6ed;border-radius:10px;padding:8px;box-shadow:0 12px 30px rgba(35,48,70,.17)}
.he-front .he-select-dropdown[hidden]{display:none!important}
.he-front .he-select-search{box-sizing:border-box!important;width:100%!important;height:36px!important;min-height:36px!important;margin:0 0 7px!important;padding:0 10px!important;border:1px solid #d5dce6!important;border-radius:7px!important;background:#fff!important;font:inherit!important;font-size:13px!important}
.he-front .he-select-options{max-height:235px;overflow-y:auto}
.he-front .he-select-option{display:block!important;width:100%!important;border:0!important;border-radius:6px!important;margin:0!important;padding:9px 10px!important;background:#fff!important;text-align:left!important;color:#596477!important;font:inherit!important;font-size:13px!important;cursor:pointer!important}
.he-front .he-select-option:hover,.he-front .he-select-option.is-selected{background:#fff1e6!important;color:#bf5700!important}
.he-front .he-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:10px!important;margin:14px 0 18px!important}
.he-front .he-toolbar strong{font-size:13px!important;font-weight:700!important;color:#586476!important}
.he-front .he-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:9px!important;min-width:0!important}
.he-front .he-actions label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;white-space:nowrap!important;margin:0!important;font-size:13px!important;font-weight:650!important;color:#586476!important}
.he-front .he-actions .he-select-wrap{width:180px!important;max-width:180px!important}
.he-front .he-actions .he-select-trigger{height:38px!important;min-height:38px!important;max-height:38px!important;line-height:36px!important}
.he-front .he-actions .he-select-trigger::after{top:13px}
.he-front .he-submit,.he-front .he-reset{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;box-sizing:border-box!important;width:auto!important;min-width:0!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:0 13px!important;border-radius:7px!important;font-family:inherit!important;font-size:13px!important;font-weight:650!important;line-height:1!important;white-space:nowrap!important;text-decoration:none!important;cursor:pointer!important}
.he-front .he-submit{background:#ff7900!important;border:1px solid #ff7900!important;color:#fff!important}
.he-front .he-reset{background:#fff!important;border:1px solid #ff7900!important;color:#d65f00!important}
.he-front .he-submit svg,.he-front .he-reset svg{display:block!important;width:15px!important;height:15px!important;flex:none!important}
.he-front .he-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.he-front .he-card h3{font-size:17px!important;line-height:1.28!important}
.he-front .he-card h3 a{color:#093e2c!important}
.he-front .he-category{font-size:11px!important}
@media(max-width:850px){.he-front .he-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.he-front .he-fields{grid-template-columns:minmax(0,1fr) minmax(0,2fr)!important}.he-front .he-field:last-child{grid-column:1/-1}.he-front .he-heading p{font-size:12px!important}}
@media(max-width:520px){.he-front{width:calc(100vw - 24px)!important}.he-front .he-grid{grid-template-columns:1fr}.he-front .he-fields{grid-template-columns:minmax(0,1fr)!important}.he-front .he-field:last-child{grid-column:auto}.he-front .he-divider{display:none!important}.he-front .he-heading p{width:100%}.he-front .he-actions{justify-content:flex-start!important}.he-front .he-actions label{width:100%}.he-front .he-actions .he-select-wrap{width:100%!important;max-width:none!important}}

/* Unified header and search panel, matching the compact Tour Finder layout. */
.he-front .he-search-panel{background:#fff;border:1px solid #e5eaf0;border-radius:13px;box-shadow:0 4px 16px rgba(32,60,90,.06);padding:17px 19px 0;margin-bottom:16px}
.he-front .he-heading{margin:0 0 14px;gap:10px;align-items:baseline}
.he-front .he-heading h2{font-size:22px!important;line-height:1.25!important}
.he-front .he-heading p{font-size:13px;line-height:1.45}
.he-front .he-divider{height:17px;align-self:center}
.he-front .he-fields{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;grid-template-columns:minmax(0,1.15fr) minmax(0,3fr) minmax(0,1.9fr);gap:12px}
.he-front .he-field{gap:5px}
.he-front .he-field input,.he-front .he-field select{height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;line-height:normal!important;box-sizing:border-box!important}
.he-front .he-toolbar{margin:14px 0 15px}
.he-front .he-intro{padding:30px 38px;margin:20px 0 30px;line-height:1.7;font-size:15px}
.he-front .he-intro h3{font-size:23px!important;line-height:1.3!important;color:#344e68!important;margin:0 0 20px!important;padding-bottom:13px;border-bottom:1px solid #e8edf2}
.he-front .he-intro p{margin:0 0 19px!important;line-height:1.75}
.he-front .he-intro p:nth-of-type(2){margin-top:24px!important;padding:12px 16px;border-left:4px solid #f58220;background:#fff8f0;border-radius:0 7px 7px 0}
.he-front .he-intro ul{list-style:none;padding:0;margin:14px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 20px}
.he-front .he-intro li{padding:12px 14px;margin:0!important;border:1px solid #e8edf2;border-radius:8px;background:#fafbfd;line-height:1.6}
.he-front .he-intro li strong{display:block;color:#3c5972;margin-bottom:4px}
@media(max-width:900px){.he-front .he-intro ul{grid-template-columns:1fr}}
@media(max-width:600px){.he-front .he-search-panel{padding:14px 12px 0}.he-front .he-intro{padding:20px 16px}.he-front .he-heading{align-items:flex-start}}

/* 1.11: single value page, matching the Programnaptár detail panels. */
.he-front .he-intro ul{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
.he-front--detail{max-width:1200px!important;margin:12px auto 40px!important;color:#38536e;font-size:15px;line-height:1.6}
.he-value-detail{display:flex;flex-direction:column;gap:13px}
.he-value-heading,.he-value-panel,.he-value-gallery{border:1px solid #e3eaf0;background:#fff;border-radius:13px;box-shadow:0 2px 8px rgba(25,55,86,.035)}
.he-value-heading{padding:18px 20px;display:flex;justify-content:space-between;align-items:flex-start;gap:15px}
.he-value-heading h1{font-size:27px!important;font-weight:750!important;line-height:1.3!important;color:#193b5a!important;margin:0 0 10px!important}
.he-value-title{min-width:0}.he-value-category{display:inline-flex;align-items:center;gap:6px;border-radius:18px;padding:5px 11px;background:var(--he-bg);color:var(--he-fg);font-size:12px;font-weight:700}.he-value-category svg{height:16px;width:16px}
.he-value-back{display:flex;flex:0 0 35px;align-items:center;justify-content:center;width:35px;height:35px;border:1px solid #f2c9ac;border-radius:9px;color:#f58220!important;text-decoration:none!important}.he-value-back svg{width:20px;height:20px}
.he-value-top{display:grid;grid-template-columns:1fr 1fr;gap:13px}.he-value-panel{padding:17px 19px;min-width:0}
.he-value-panel h2{display:flex;align-items:center;gap:9px;margin:0 0 12px!important;font-size:15px!important;line-height:1.3!important;font-weight:750!important;color:#193b5a!important;text-transform:uppercase}
.he-value-panel h2 svg{width:19px;height:19px;flex:0 0 19px;color:#f58220}.he-value-panel p{margin:0 0 10px!important;overflow-wrap:anywhere}.he-value-panel p:last-child{margin-bottom:0!important}.he-value-panel a{color:#28577d;text-decoration:none}.he-value-muted{color:#6c8091}
.he-value-prose{line-height:1.75}.he-value-prose p{margin:0 0 12px!important}.he-value-bottom{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.85fr);gap:13px;align-items:start}.he-value-bottom-left{display:flex;flex-direction:column;gap:13px}.he-value-gallery{padding:7px;min-width:0}.he-value-gallery-main{display:block}.he-value-gallery-main img{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:8px}.he-value-thumbnails{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:8px}.he-value-thumbnails img{width:100%;height:72px;object-fit:cover;border-radius:6px;display:block}.he-value-map-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.he-value-map-actions a{display:inline-block;padding:7px 11px;background:#f58220;color:white!important;border-radius:8px;font-size:13px;font-weight:700}.he-value-map iframe{border:0;width:100%;height:290px;border-radius:8px}.he-value-language{margin:0;color:#66798a;font-size:13px}
@media(max-width:700px){.he-value-top,.he-value-bottom{grid-template-columns:1fr}.he-value-heading h1{font-size:22px!important}.he-value-heading{padding:15px}.he-value-panel{padding:15px}}

/* 1.12 – readable value detail, compact map and bottom gallery */
.he-front.he-front--detail{font-size:16px!important;line-height:1.65!important}
.he-front--detail .he-value-heading h1{font-size:28px!important;line-height:1.3!important}
.he-front--detail .he-value-panel{font-size:16px!important;line-height:1.7!important;padding:20px 22px!important}
.he-front--detail .he-value-panel h2,.he-front--detail .he-value-gallery h2{font-size:16px!important;line-height:1.35!important;letter-spacing:.01em;font-weight:750!important;color:#193b5a!important}
.he-front--detail .he-value-panel h2 svg,.he-front--detail .he-value-gallery h2 svg{width:20px!important;height:20px!important;flex:0 0 20px!important;color:#f58220}
.he-front--detail .he-value-panel p,.he-front--detail .he-value-panel a{font-size:16px!important}
.he-front--detail .he-value-category{font-size:13px!important}.he-front--detail .he-value-category svg{width:17px;height:17px}
.he-front--detail .he-value-back{width:40px;height:40px;flex-basis:40px}.he-front--detail .he-value-back svg{width:22px;height:22px}
.he-front--detail .he-value-prose-map{display:flex;align-items:flex-start;gap:18px}
.he-front--detail .he-value-prose-content{flex:1;min-width:0}
.he-front--detail .he-value-mini-map{display:block;position:relative;flex:0 0 100px;width:100px;height:100px;overflow:hidden;border-radius:8px;border:1px solid #dce5ed;text-decoration:none!important;background:#f0f3f5;cursor:pointer}
.he-front--detail .he-value-mini-map iframe{display:block;width:100px!important;height:100px!important;border:0;pointer-events:none}
.he-front--detail .he-value-mini-map span{position:absolute;right:4px;bottom:4px;background:#fff;border-radius:5px;color:#f58220;padding:3px;box-shadow:0 1px 5px #0002;line-height:0}
.he-front--detail .he-value-mini-map span svg{width:17px;height:17px}
.he-front--detail .he-value-gallery{order:99;padding:18px 20px;margin-top:3px}
.he-front--detail .he-value-gallery h2{display:flex;align-items:center;gap:8px;margin:0 0 14px!important}
.he-front--detail .he-value-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.he-front--detail .he-value-gallery-grid a{display:block;overflow:hidden;border-radius:8px;border:1px solid #e2e8ef;background:#f5f7f9}
.he-front--detail .he-value-gallery-grid img{display:block;width:100%;height:155px;object-fit:cover;transition:transform .2s}
.he-front--detail .he-value-gallery-grid a:hover img{transform:scale(1.035)}
@media(max-width:700px){.he-front--detail .he-value-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.he-front--detail .he-value-gallery-grid img{height:125px}.he-front--detail .he-value-prose-map{gap:10px}.he-front--detail .he-value-panel{padding:16px!important}.he-front--detail .he-value-heading h1{font-size:24px!important}}

/* 1.14: approved value detail layout */
.he-front--detail .he-value-description-row{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px;align-items:start}
.he-front--detail .he-value-description-row>.he-value-panel{height:100%;min-width:0}
.he-front--detail .he-value-map-card{display:flex;flex-direction:column;align-items:stretch;padding:17px 19px!important}
.he-front--detail .he-value-map-card h2{margin-bottom:12px!important}
.he-front--detail .he-value-map-link{display:block;width:250px;max-width:100%;height:250px;overflow:hidden;border:1px solid #e0e8ee;border-radius:10px;background:#eef5f1;cursor:pointer;text-decoration:none!important}
.he-front--detail .he-value-map-link iframe{display:block;width:100%!important;height:100%!important;border:0;pointer-events:none}
.he-front--detail .he-value-gallery{order:99;border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;margin:12px 0 0!important;border-radius:0!important}
.he-front--detail .he-value-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.he-front--detail .he-value-gallery-grid a{border-radius:9px;overflow:hidden;border:1px solid #dce5eb;box-shadow:0 2px 8px #1a375011}
.he-front--detail .he-value-gallery-grid img{height:155px;object-fit:cover}
@media(max-width:700px){.he-front--detail .he-value-description-row{grid-template-columns:1fr}.he-front--detail .he-value-map-card{height:auto!important}.he-front--detail .he-value-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Fullscreen gallery, aligned with the Tour Guide lightbox behavior. */
body.he-lightbox-open{overflow:hidden}
.he-lightbox[hidden],.he-lightbox [hidden]{display:none!important}
.he-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(9,18,34,.94);display:flex;align-items:center;justify-content:center;padding:64px 82px;color:#fff}
.he-lightbox__image{display:block;max-width:100%;max-height:calc(100vh - 130px);width:auto;height:auto;object-fit:contain;box-shadow:0 8px 32px #0006}
.he-lightbox button{position:absolute;border:0;border-radius:50%;width:46px;height:46px;background:rgba(255,255,255,.16);color:#fff;font-size:36px;line-height:1;cursor:pointer;display:grid;place-items:center}
.he-lightbox button:hover,.he-lightbox button:focus-visible{background:#ff7900;outline:2px solid white;outline-offset:2px}
.he-lightbox__close{top:20px;right:24px}
.he-lightbox__prev{left:20px;top:50%;transform:translateY(-50%)}
.he-lightbox__next{right:20px;top:50%;transform:translateY(-50%)}
.he-lightbox__count{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);font-size:15px;letter-spacing:.04em}
@media(max-width:650px){.he-lightbox{padding:65px 42px}.he-lightbox button{width:36px;height:36px;font-size:28px}.he-lightbox__prev{left:4px}.he-lightbox__next{right:4px}}

/* Exact Tour Guide 4.4 back button */
.he-front--detail .he-value-back{width:44px!important;height:44px!important;flex:0 0 44px!important;border:1px solid #dfe7ed!important;border-radius:12px!important;background:#fff!important;color:#f58220!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;text-decoration:none!important}
.he-front--detail .he-value-back svg{display:block!important;width:34px!important;height:34px!important;flex:0 0 34px!important}
.he-front--detail .he-value-back:hover{background:#fff4e9!important;color:#dc6900!important}

/* 1.17: explicit location pin sizing, independent of theme icon fonts */
.he-front .he-meta .he-location-pin {display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;vertical-align:middle;color:#f97316}
.he-front .he-meta .he-location-pin svg {width:15px;height:15px;display:block}
.he-front .he-value-source a {overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:2px}

/* 1.18: category SVGs, including large missing-image illustrations */
.he-front .he-image-empty{background:color-mix(in srgb,var(--he-bg) 50%,#f3f5f7);color:var(--he-fg)}
.he-front .he-image-empty svg{width:65px!important;height:65px!important;stroke-width:1.7}
.he-front .he-category svg,.he-front .he-value-category svg{width:16px!important;height:16px!important;display:inline-block;flex-shrink:0}
.he-front .he-meta .he-location-pin{flex:0 0 16px!important;font-size:0!important;color:#f58220!important}
.he-front .he-meta .he-location-pin svg{width:15px!important;height:15px!important;display:block!important}

/* Strong, clearly recognizable category symbols on image-free cards */
.he-front .he-card-placeholder svg {stroke-width:2.3}
.he-front .he-card-placeholder svg path[fill="currentColor"] {stroke:none}

/* 1.21: exact silhouettes extracted from the two approved icon references.
   CSS masks use current category color and preserve admin color customization. */
.he-front .he-reference-icon {
  display:inline-block!important;
  width:18px!important;height:18px!important;
  flex:0 0 18px!important;
  background-color:var(--he-fg,currentColor)!important;
  -webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain;
  mask-position:center;mask-repeat:no-repeat;mask-size:contain;
}
.he-front .he-reference-icon--wheat {
  -webkit-mask-image:url("wheat-reference.png");mask-image:url("wheat-reference.png");
}
.he-front .he-reference-icon--drafting-compass {
  -webkit-mask-image:url("drafting-compass-reference.png");mask-image:url("drafting-compass-reference.png");
}
.he-front .he-image-empty .he-reference-icon {
  width:58px!important;height:58px!important;flex:0 0 58px!important;
}
.he-front--detail .he-value-category .he-reference-icon {
  width:17px!important;height:17px!important;flex:0 0 17px!important;
}

/* 1.22: uncropped gallery thumbnails with fixed height and intrinsic width */
.he-front--detail .he-value-gallery-grid {display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;justify-content:flex-start!important;gap:12px!important;grid-template-columns:none!important;}
.he-front--detail .he-value-gallery-grid a {display:inline-flex!important;flex:0 0 auto!important;width:auto!important;max-width:100%!important;align-items:center!important;justify-content:center!important;overflow:visible!important;}
.he-front--detail .he-value-gallery-grid img {display:block!important;height:160px!important;width:auto!important;max-width:100%!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;transform:none!important;}
.he-front--detail .he-value-gallery-grid a:hover img {transform:none!important;}

.he-front .he-card-language-note{margin:0 0 9px!important;padding:7px 9px;border-radius:6px;background:#fff7ed;color:#9a4d13;font-size:12px;line-height:1.4;font-weight:600}
