.wtd-world{--accent:#865c29;--ink:#342d25;--line:#e4ddd0;--paper:#fff;max-width:1280px;margin:22px auto;color:var(--ink);font-family:inherit;font-size:16px;line-height:1.5;box-sizing:border-box}.wtd-world *{box-sizing:border-box}.wtd-world [hidden]{display:none!important}.wtd-world-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:22px 0 14px}.wtd-world-header h2{font-size:clamp(24px,4vw,36px);margin:0;color:var(--ink);line-height:1.25}.wtd-world-header p{margin:6px 0}.wtd-world-kicker{font-size:12px;letter-spacing:.12em;color:var(--accent);font-weight:700}.wtd-world-controls{border:1px solid var(--line);border-radius:14px;padding:16px;background:#fbf9f5}.wtd-world label{display:block;font-size:14px;font-weight:600}.wtd-world input,.wtd-world select{display:block;width:100%;min-width:0;margin:4px 0 0;padding:10px 12px;border:1px solid #c9c1b4;border-radius:8px;background:white;color:#342d25;font:inherit;font-size:16px;min-height:44px}.wtd-world-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.wtd-world-actions,.wtd-world-row-actions,.wtd-world-detail-actions{display:flex;flex-wrap:wrap;gap:7px}.wtd-world button,.wtd-world a[data-directory],.wtd-world-row-actions a,.wtd-world-detail-actions a,.wtd-world-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px 13px;border:1px solid #bca88c;border-radius:8px;background:#fff;color:#63431e;text-decoration:none;font:inherit;font-size:14px;line-height:1.3;min-height:40px;cursor:pointer}.wtd-world [data-near],.wtd-world-detail-actions a:first-child{background:var(--accent);color:white;border-color:var(--accent)}.wtd-world button:focus-visible,.wtd-world a:focus-visible,.wtd-world input:focus-visible,.wtd-world select:focus-visible{outline:3px solid #2874b9;outline-offset:2px}.wtd-world-status{font-size:14px;font-weight:600;padding:12px 0}.wtd-world-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(250px,1fr);gap:12px}.wtd-world-map{height:clamp(430px,65vh,750px);border:1px solid var(--line);border-radius:13px;z-index:0;background:#dce8eb}.wtd-world-sidebar{min-width:0;max-height:clamp(430px,65vh,750px);overflow:auto;border:1px solid var(--line);border-radius:13px;padding:10px;background:white}.wtd-world-row{padding:11px 4px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.wtd-world-row strong,.wtd-world-row small{display:block;margin:3px 0}.wtd-world-row small,.wtd-world-note{font-size:13px;color:#655d52}.wtd-world-detail{padding:12px;border:1px solid #d4bf9a;border-radius:10px;background:#fbf9f4;overflow-wrap:anywhere}.wtd-world-detail h3{margin:5px 0;font-size:19px}.wtd-world-detail p{font-size:14px;margin:6px 0}.wtd-world-detail img{width:100%;max-height:150px;object-fit:cover;border-radius:8px}.wtd-world-detail-actions{margin-top:12px}.wtd-world-pin-wrap{background:none;border:0}.wtd-world-pin{display:flex;align-items:center;justify-content:center;width:29px;height:29px;background:var(--pin);border:2px dashed white;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 2px 5px #0005;color:white;font-size:16px}.wtd-world-pin.is-verified{border-style:solid}.wtd-world-pin span{transform:rotate(45deg)}.wtd-world-cluster{display:flex;align-items:center;justify-content:center;border:5px solid #e7d6ba;border-radius:50%;background:#805727;color:white;font-size:14px;font-weight:700;box-shadow:0 1px 4px #0004}.wtd-world-legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:13px}.wtd-world-legend span:before{content:'';display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:50%;background:var(--pin)}.wtd-world-expanded{position:fixed!important;inset:0!important;max-width:none!important;z-index:99999;background:white;overflow:auto;padding:12px 20px;margin:0!important}.wtd-world-expanded .wtd-world-map,.wtd-world-expanded .wtd-world-sidebar{height:65vh;max-height:65vh}.wtd-world-link{font-weight:600;margin:4px}.wtd-world .leaflet-container a{color:#165c91}.wtd-world .leaflet-popup-content p{margin:4px 0}.wtd-world .leaflet-control-attribution{font-size:11px}.wtd-world-map[hidden]+.wtd-world-sidebar{grid-column:1/-1;max-height:none}.wtd-world-sidebar [data-more]{width:100%;margin-top:8px}
@media(max-width:800px){.wtd-world-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.wtd-world-grid{grid-template-columns:1fr}.wtd-world-map{height:55vh;min-height:320px}.wtd-world-sidebar{max-height:500px}.wtd-world-header{padding:12px 0}.wtd-world-expanded{padding:10px}.wtd-world-actions button,.wtd-world-actions a{flex:1 1 auto}}@media(prefers-reduced-motion:reduce){.wtd-world *{scroll-behavior:auto!important}}

/* World map is standalone: no dependency on directory.css for the language switch. */
.wtd-world .wtd-language-switch{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px;font-size:14px}.wtd-world .wtd-language-switch a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;color:var(--ink);background:#fff;text-decoration:none}.wtd-world .wtd-language-switch a[aria-current="true"]{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:700}

/* 1.16.2: centered compact heading, language row above filters. */
.wtd-world{margin:0 auto 22px}
.wtd-world-header{display:block;text-align:center;padding:4px 0 8px;margin:0}
.wtd-world-header>div{width:100%}
.wtd-world-header h2{margin:3px 0 6px}
.wtd-world-language{display:flex;justify-content:flex-end;margin:0 0 8px}
.wtd-world-language .wtd-language-switch{margin:0;justify-content:flex-end}
.wtd-world-expanded,.wtd-world:fullscreen{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;z-index:2147483647!important;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;padding:12px 20px!important;margin:0!important;background:#fff;color:var(--ink);isolation:isolate}
.wtd-world-expanded .wtd-world-header{padding:0;flex-shrink:0}
.wtd-world-expanded .wtd-world-header h2{font-size:clamp(20px,3vw,28px)}
.wtd-world-expanded .wtd-world-language,.wtd-world-expanded .wtd-world-controls,.wtd-world-expanded .wtd-world-status{flex-shrink:0}
.wtd-world-expanded .wtd-world-controls{padding:10px}
.wtd-world-expanded .wtd-world-grid{flex:1 0 auto;min-height:320px;height:clamp(320px,calc(100dvh - 280px),1200px)}
.wtd-world-expanded .wtd-world-map,.wtd-world-expanded .wtd-world-sidebar{height:100%;max-height:none;min-height:0}
.wtd-world-expanded [data-full]{background:var(--accent);color:#fff;border-color:var(--accent)}
.wtd-world [data-full]:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:800px){.wtd-world-header{padding:4px 0 8px}.wtd-world-expanded{padding:10px!important}.wtd-world-expanded .wtd-world-grid{height:auto;min-height:0;flex:1 0 auto}.wtd-world-expanded .wtd-world-map{height:clamp(320px,60dvh,800px)}.wtd-world-expanded .wtd-world-sidebar{height:auto;max-height:420px}}

/* Do not display a second, non-localized theme page title above the map. */
body.wtd-world-page .entry-header .entry-title,body.wtd-world-page .wp-block-post-title,body.wtd-world-page h1.entry-title{display:none!important}
body.wtd-world-page .entry-header:has(.entry-title):not(:has(.entry-meta)){margin-block:0;padding-block:0;min-height:0}

/* 1.16.3: compact directory-style controls; native selects remain keyboard and touch accessible. */
body.wtd-world-page main:has(.wtd-world),body.wtd-world-page .entry-content:has(.wtd-world),body.wtd-world-page .wp-block-post-content:has(.wtd-world){margin-block-start:0!important;padding-block-start:0!important}
body.wtd-world-page .entry-content > .wtd-world,body.wtd-world-page .wp-block-post-content > .wtd-world{margin-block-start:0!important}
.wtd-world-header{padding:2px 0 4px;margin:0!important}
.wtd-world-header h2{margin:0 0 5px;line-height:1.25;color:#46311f}
.wtd-world-header p{margin:0;font-size:clamp(14px,1.5vw,16px);color:#756d62}
.wtd-world-language{margin:0 0 6px}
.wtd-world-controls{background:#fff;border-color:#e8decc;border-radius:16px;padding:12px;box-shadow:0 5px 18px rgba(55,39,22,.04)}
.wtd-world-search,.wtd-world-filter{position:relative;min-width:0}
.wtd-world-search-icon,.wtd-world-filter-icon,.wtd-world-filter-caret{position:absolute;top:50%;transform:translateY(-50%);pointer-events:none;line-height:1}
.wtd-world-search-icon{left:16px;font-size:1.65rem;color:#46311f}
.wtd-world .wtd-world-search input{margin:0;min-height:54px;padding:10px 14px 10px 48px;border:1px solid #bdb4a7;border-radius:14px;background:#fff;color:#302a22;font-size:16px;font-weight:400;box-shadow:none}
.wtd-world-filters{gap:12px;margin:12px 0 0}
.wtd-world-filter-icon{left:13px;font-size:1.25rem;z-index:1}
.wtd-world-filter-caret{right:14px;color:#5d6e79;font-size:1rem;z-index:1}
.wtd-world .wtd-world-filter select{appearance:none;-webkit-appearance:none;margin:0;min-height:54px;padding:9px 35px 9px 44px;border:1px solid #385b72;border-radius:14px;background:#fff;color:#243f53;font:inherit;font-size:1rem;font-weight:650;cursor:pointer;text-overflow:ellipsis;box-shadow:none}
.wtd-world .wtd-world-filter select:hover,.wtd-world .wtd-world-filter select:focus-visible{border-color:#c79c2b;box-shadow:0 0 0 3px rgba(199,156,43,.16)}
.wtd-world-actions{justify-content:center;margin-top:12px;gap:8px}
.wtd-world-actions button,.wtd-world-actions a[data-directory]{border-radius:999px;min-height:44px;padding:8px 17px;font-weight:650}
@media(max-width:520px){.wtd-world-controls{padding:10px}.wtd-world-filters{gap:9px}.wtd-world .wtd-world-filter select{padding-left:34px;padding-right:25px;font-size:.92rem}.wtd-world-filter-icon{left:9px;font-size:1.1rem}.wtd-world-filter-caret{right:9px}.wtd-world-header h2{font-size:clamp(22px,5vw,30px)}.wtd-world-actions button,.wtd-world-actions a[data-directory]{padding:8px 12px}}

/* 1.16.4: directory-style icon options and clickable temple rows. */
.wtd-world-filter{z-index:1}.wtd-world-filter.is-open{z-index:40}
.wtd-world .wtd-world-filter-trigger{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:54px;padding:9px 13px;border:1px solid #385b72;border-radius:14px;background:#fff;color:#243f53;font:inherit;font-size:1rem;font-weight:650;text-align:left;touch-action:manipulation}
.wtd-world .wtd-world-filter-trigger:disabled{opacity:.65;cursor:wait}
.wtd-world .wtd-world-filter-trigger:hover,.wtd-world .wtd-world-filter-trigger:focus-visible,.wtd-world-filter.is-open .wtd-world-filter-trigger{border-color:#c79c2b;box-shadow:0 0 0 3px rgba(199,156,43,.16)}
.wtd-world-filter-trigger .wtd-world-filter-icon,.wtd-world-filter-trigger .wtd-world-filter-caret{position:static;transform:none;flex:0 0 auto;pointer-events:none}
.wtd-world-filter-trigger .wtd-world-filter-icon,.wtd-world-option-icon{display:inline-flex;align-items:center;justify-content:center;min-width:1.5em;font-size:1.25rem;line-height:1}
.wtd-world-filter-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.wtd-world-filter-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:41;max-height:min(52vh,360px);overflow:auto;overscroll-behavior:contain;padding:6px;border:1px solid #d7c79f;border-radius:14px;background:#fff;box-shadow:0 12px 30px rgba(38,45,48,.2)}
.wtd-world .wtd-world-filter-option{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:44px;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:#302a22;font:inherit;font-size:.98rem;text-align:left;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}
.wtd-world .wtd-world-filter-option:hover,.wtd-world .wtd-world-filter-option:focus-visible{background:#f5f0e4;outline:2px solid #c79c2b;outline-offset:-2px}
.wtd-world .wtd-world-filter-option.is-selected{background:#f4e7bf;color:#49311c;font-weight:750}
.wtd-world-row{cursor:pointer;padding:11px 8px;border-radius:8px;transition:background-color .15s,box-shadow .15s}
.wtd-world-row:hover,.wtd-world-row:focus-within{background:#fbf7ee}
.wtd-world-row.is-active{background:#f4e7bf;box-shadow:inset 3px 0 #865c29}
@media(max-width:520px){.wtd-world .wtd-world-filter-trigger{gap:6px;padding:8px;font-size:.92rem}.wtd-world-filter-trigger .wtd-world-filter-icon,.wtd-world-option-icon{font-size:1.1rem}.wtd-world .wtd-world-filter-option{padding:8px 5px;gap:6px;font-size:.92rem}}
