/* V49 — polished search / fully scrollable country mega menu / self-hosted interactive atlas */
.tm49-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Desktop: preserve a real internal scrollbar, not a clipped grid */
@media(min-width:1091px){
 .tm48-continent-group>.tm48-mega{height:min(760px,calc(100dvh - 76px));display:none;flex-direction:column;max-height:calc(100dvh - 76px)!important}
 .tm48-continent-group.tm47-open>.tm48-mega,.tm48-continent-group.tm47-open:hover>.tm48-mega{display:flex!important}
 .tm48-continent-group>.tm48-mega>.tm48-mega-body{flex:1 1 0;min-height:0!important;height:auto!important;max-height:none!important}
 .tm48-panel-area{min-height:0!important;flex:1;max-height:none!important}
}
.tm48-country-panel{min-height:0!important;flex:1 1 0!important}
.tm48-countries{min-height:0!important;flex:1 1 0!important;overflow-y:scroll!important;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#b89558 #edf3f6;padding-right:9px!important}
.tm48-countries::-webkit-scrollbar{width:10px}.tm48-countries::-webkit-scrollbar-track{background:#ecf3f5;border-radius:10px}.tm48-countries::-webkit-scrollbar-thumb{background:#bd995c;border-radius:10px;border:2px solid #eaf1f3}
.tm49-country-pager{border-top:1px solid #d8e5e9;padding:7px 2px 0;margin-top:5px;display:flex;justify-content:space-between;gap:8px;align-items:center;flex-shrink:0;min-height:41px}
.tm49-country-pager span{font-size:11px;color:#546d7b;font-weight:700}
.tm49-country-pager>div{display:flex;gap:5px}
.tm49-country-pager button{font-size:15px;width:32px;height:29px;cursor:pointer;color:#14324c;border:1px solid #cbd9df;border-radius:7px;background:#f8fafb}
.tm49-country-pager button:disabled{opacity:.35;cursor:default}
.tm49-country-pager button:not(:disabled):hover{background:#f7d184;border-color:#ba9653}
@media(max-width:1090px){.tm48-continent-group>.tm48-mega{max-height:none!important}.tm48-panel-area{height:min(520px,58dvh);max-height:min(520px,58dvh)!important;min-height:260px}.tm48-countries{overflow-y:scroll!important;max-height:none!important}}
@media(max-width:620px){.tm48-panel-area{height:min(485px,57dvh);max-height:min(485px,57dvh)!important}.tm49-country-pager span{font-size:10px}.tm48-country-link>span:nth-child(2){white-space:normal!important;line-height:1.2}}
/* Global overlay search */
.tm47-header #tm47-search-panel.tm49-search-panel{position:absolute;z-index:1500;top:calc(100% + 1px);right:12px;width:min(575px,calc(100vw - 24px));padding:18px 18px 15px!important;border:1px solid #d4dfe5;border-top:3px solid #e8c06d;border-radius:0 0 19px 19px;background:#fff;color:#12334b;box-shadow:0 28px 60px #00152267;max-height:calc(100dvh - 83px);overflow-y:auto}
.tm49-search-panel[hidden]{display:none!important}
.tm49-search-form,.tm49-search-page-form{display:flex;gap:9px;align-items:center;background:#f3f7f9;border:1px solid #c9d8df;border-radius:12px;padding:6px 7px 6px 13px}.tm49-search-form:focus-within,.tm49-search-page-form:focus-within{outline:2px solid #d9b36b;outline-offset:1px}
.tm49-magnify,.tm49-search-page-form>span{font-size:25px;color:#a27a38}
.tm49-search-form input,.tm49-search-page-form input{min-width:0;flex:1;border:0!important;background:transparent!important;color:#132c43!important;outline:0!important;box-shadow:none!important;font-size:14px;padding:10px 5px!important;margin:0!important}
.tm49-search-form button,.tm49-search-page-form button{background:#f5cb78;color:#10273a;border:0;border-radius:9px;padding:12px 18px;font-weight:850;white-space:nowrap;cursor:pointer}
.tm49-search-form button:hover,.tm49-search-page-form button:hover{background:#ffe19d}
.tm49-search-hints,.tm49-trending{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:12px 0 9px;color:#637888;font-size:11px}
.tm49-search-hints a,.tm49-trending a{color:#12364d!important;background:#edf3f5;padding:6px 9px;border-radius:18px;border:1px solid #d8e4e9;font-weight:750}
.tm49-search-hints a:hover,.tm49-trending a:hover{background:#ffefd0}
.tm49-quick-status{color:#566c7b;font-size:11px;font-weight:750;min-height:23px;padding:5px 0}
.tm49-quick-results{max-height:min(45dvh,450px);overflow-y:auto;display:grid;gap:4px}
.tm49-search-all{display:block;border-top:1px solid #e0e9ed;padding:11px 4px 0;margin-top:10px;color:#9b7135!important;font-weight:850;font-size:12px}
.tm49-result-item{display:flex;align-items:center;gap:12px;padding:11px;border:1px solid #e4ebef;border-radius:12px;background:#fff;color:#142d43!important;min-width:0;transition:background .17s,border-color .17s}
.tm49-result-item:hover,.tm49-result-item:focus-visible{background:#fff6e5;border-color:#e0bb78}
.tm49-result-symbol{display:grid;place-items:center;flex:0 0 40px;height:40px;background:#eaf2f6;border-radius:10px;font-size:22px}
.tm49-result-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.tm49-result-copy strong{font-size:13px;font-weight:850;overflow-wrap:anywhere;color:#122c40}.tm49-result-copy small{font-size:10px;color:#97713a;font-style:normal;font-weight:750}.tm49-result-copy em{display:block;font-style:normal;font-size:11px;line-height:1.5;color:#587080;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.tm49-result-chevron{color:#aa8a4a;font-size:17px}
/* Full search page */
.tm49-search-page .tm49-search-main{max-width:1550px;margin:auto;background:#f7f9fa;min-height:75vh;padding-bottom:56px}
.tm49-search-hero{padding:70px clamp(18px,5vw,85px) 55px;color:#fff;background:linear-gradient(115deg,#06192ddd,#123d56b5),url('../img/v46/amalfi-travelmaps.org.webp') center 44%/cover no-repeat;border-bottom:4px solid #efc373}
.tm49-overline{display:inline-block;color:#f5cb78;font-size:11px;letter-spacing:3px;font-weight:850}
.tm49-search-hero h1{font:750 clamp(36px,5vw,70px)/1.07 Georgia,serif;color:#fff;margin:12px 0!important}.tm49-search-hero p{max-width:750px;color:#e2eef2;font-size:15px;line-height:1.7}
.tm49-search-page-form{max-width:800px;background:#fff;border:0;margin:20px 0 8px}.tm49-search-page-form input{font-size:16px!important}
.tm49-search-hero .tm49-trending{color:#e7e8e5}.tm49-search-hero .tm49-trending a{background:#f4f8f9ed}
.tm49-search-content{padding:26px clamp(15px,3.5vw,56px)}.tm49-search-bar{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:17px;margin-bottom:22px}
.tm49-search-bar strong{font:700 26px Georgia,serif;color:#102c42}.tm49-search-bar p{font-size:12px;color:#71828a;margin:4px 0}
.tm49-search-filters{display:flex;flex-wrap:wrap;gap:6px;max-width:850px}.tm49-search-filters button{padding:9px 11px;border:1px solid #d2e0e5;background:#fff;border-radius:21px;color:#234155;font-size:11px;font-weight:800;cursor:pointer}.tm49-search-filters button.is-active{background:#0e3149;border-color:#d8ac62;color:#fbd588}
.tm49-search-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tm49-empty{grid-column:1/-1;background:white;padding:34px;border-radius:16px;text-align:center;color:#627787}
.tm49-more{display:block;border:0;background:#102d43;color:#f5cf7e;border-radius:25px;padding:13px 24px;margin:28px auto;cursor:pointer;font-weight:850}.tm49-more[hidden]{display:none}
@media(max-width:900px){.tm49-search-results{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.tm49-search-results{grid-template-columns:1fr}.tm49-search-hero{padding:35px 18px}.tm49-search-hero h1{font-size:34px}.tm49-search-form input{font-size:12px}.tm49-search-form button{padding:10px 12px}}
/* Always working local SVG map, no CDN requirement for country exploration */
.tm47-map-stage{isolation:isolate}.tm47-map-canvas{background:#0b253a!important;touch-action:none}
.tm49-map-svg{display:block;width:100%;height:100%;cursor:grab;touch-action:none}.tm49-map-svg.is-dragging{cursor:grabbing}
.tm49-map-pin{cursor:pointer;transition:opacity .15s}.tm49-map-pin>circle.tm49-pin-core{stroke:#071829;stroke-width:2;fill:#f2cb77;filter:drop-shadow(0 0 3px #f7d58a55)}
.tm49-map-pin:hover .tm49-pin-core,.tm49-map-pin.is-selected .tm49-pin-core{fill:#fff5bb;stroke:#de9e44;stroke-width:4}
.tm49-map-pin:focus-visible .tm49-pin-core{stroke:#fff;stroke-width:4}
.tm49-map-tools{position:absolute;z-index:10;right:15px;top:15px;display:flex;flex-direction:column;gap:7px}
.tm49-map-tools button{width:41px;height:41px;background:#0d2f49e8;color:#ffdb8e;border:1px solid #c9a667;border-radius:10px;font-size:23px;cursor:pointer;box-shadow:0 4px 14px #071d2b77}
.tm49-map-tools button:hover{background:#24516c}.tm47-map-frame[data-mode=wind] .tm49-map-tools{display:none}
.tm49-map-help{position:absolute;left:12px;bottom:12px;background:#082639d9;color:#e8edf3;border:1px solid #bca36b;padding:8px 10px;border-radius:9px;font-size:10px;z-index:5;pointer-events:none}
.tm49-map-tooltip{position:absolute;left:12px;top:12px;color:#fbe0a4;background:#061a2bcf;border:1px solid #c69a4a;padding:8px 11px;font-size:12px;font-weight:800;border-radius:8px;pointer-events:none;z-index:6}
.tm49-map-tooltip[hidden]{display:none}
@media(max-width:700px){.tm49-map-help{font-size:9px}.tm49-map-tools button{width:36px;height:36px}}
/* Higher priority than legacy global main heading rules */
body.tm47-site main.tm49-search-main .tm49-search-hero h1{color:#ffffff!important;text-shadow:0 3px 16px #071c30a9}
