/* ERN premium destination cards — modularized to keep the certified core lean. */
.wander-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.wander-card{position:relative;display:block;min-height:210px;border:1px solid rgba(255,255,255,.14);background:#123e38;color:white;border-radius:17px;overflow:hidden;text-align:left;padding:0}.wander-card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.3);box-shadow:0 18px 34px rgba(0,0,0,.24)}.wander-visual{position:absolute;inset:0;display:block;background:#285d54;overflow:hidden}.wander-visual img{width:100%;height:100%;object-fit:cover;transform:scale(1.01)}.wander-copy{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;padding:16px;min-width:0;background:linear-gradient(0deg,rgba(3,24,21,.94) 0,rgba(3,24,21,.34) 50%,rgba(3,24,21,.03) 78%)}.wander-copy small{font-size:8px;text-transform:uppercase;color:#d8e9e4}.wander-copy strong{font-family:Georgia,serif;font-weight:500;font-size:20px;line-height:1.08;margin:7px 0 5px}.wander-copy em{font-style:normal;font-size:10px;color:#d0dfdb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:980px){.wander-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.mode-switcher{padding-inline:8px}.wander-section{padding:32px 12px 36px}.wander-head{align-items:start;flex-direction:column}.wander-grid{grid-template-columns:1fr;gap:9px}.wander-card{min-height:165px}.wander-copy{padding:12px}.wander-copy strong{font-size:16px}}

/* Full-bleed visual treatment for Local Earth too. */
.local-earth-grid .wander-card{background:#123e38;color:#fff;border-color:rgba(24,61,55,.12)}
.local-earth-grid .wander-copy small,.local-earth-grid .wander-copy em{color:#d8e9e4}

/* Compact-result surfaces should feel like editorial destination cards, not narrow data rows. */
.my-earth .result-grid,.search-section .result-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.my-earth .result-card,.search-section .result-card{display:flex;flex-direction:column;min-height:0;padding:0 0 14px;overflow:hidden;border-radius:18px}
.my-earth .result-card>.result-visual,.search-section .result-card>.result-visual{width:100%;height:150px;border-radius:0;margin:0 0 11px;flex:0 0 150px}
.my-earth .result-card>.truth,.my-earth .result-card>strong,.my-earth .result-card>small,.my-earth .result-card>.verify-mini,.search-section .result-card>.truth,.search-section .result-card>strong,.search-section .result-card>small,.search-section .result-card>.verify-mini{margin-left:14px;margin-right:14px}
.my-earth .result-card>strong,.search-section .result-card>strong{font-family:Georgia,serif;font-size:19px;line-height:1.12;margin-top:7px;margin-bottom:5px}
@media(max-width:620px){.my-earth .result-grid,.search-section .result-grid{grid-template-columns:1fr 1fr}.my-earth .result-card>.result-visual,.search-section .result-card>.result-visual{height:112px;flex-basis:112px}.my-earth .result-card>strong,.search-section .result-card>strong{font-size:16px}}

/* ERN-drawn scenic fallback v2: vivid place-specific editorial art, never presented as live. */
.wander-visual[data-visual-kind="illustrative"] .scenic-poster,
.result-visual[data-visual-kind="illustrative"] .scenic-poster{filter:saturate(1.08) contrast(1.04)}
.wander-visual[data-visual-kind="illustrative"] .scenic-poster:after,
.result-visual[data-visual-kind="illustrative"] .scenic-poster:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.08),transparent 40%,rgba(2,20,18,.08));mix-blend-mode:screen}

.scenic-poster[data-scene="earth"]{background:
radial-gradient(circle at 72% 18%,rgba(255,220,146,.82) 0 4%,rgba(255,220,146,.20) 10%,transparent 22%),
linear-gradient(180deg,#8fc8c2 0%,#6ba99d 42%,#315f52 100%)}
.scenic-poster[data-scene="earth"] .scene-back{background:#477d69;clip-path:polygon(0 76%,11% 58%,21% 68%,34% 39%,47% 65%,60% 48%,73% 70%,86% 51%,100% 66%,100% 100%,0 100%)}
.scenic-poster[data-scene="earth"] .scene-front{background:#173f35;clip-path:polygon(0 78%,15% 63%,29% 73%,44% 52%,58% 75%,74% 57%,88% 69%,100% 61%,100% 100%,0 100%)}

.scenic-poster[data-scene="water"]{background:
radial-gradient(circle at 74% 16%,rgba(255,226,151,.92) 0 4%,rgba(255,226,151,.24) 11%,transparent 23%),
linear-gradient(180deg,#8ed3e4 0 43%,#2d98b5 44%,#0d6178 72%,#073b4b 100%)}
.scenic-poster[data-scene="water"] .scene-back{bottom:20%;height:16%;background:rgba(238,249,246,.56);clip-path:polygon(0 70%,14% 58%,28% 72%,43% 51%,57% 67%,72% 49%,86% 65%,100% 53%,100% 100%,0 100%)}
.scenic-poster[data-scene="water"] .scene-front{bottom:-3%;height:24%;background:#0a4c5b;clip-path:polygon(0 44%,16% 55%,31% 40%,48% 57%,64% 42%,80% 54%,100% 36%,100% 100%,0 100%)}

.scenic-poster[data-scene="island"]{background:
radial-gradient(circle at 72% 17%,rgba(255,229,158,.94) 0 4%,rgba(255,229,158,.25) 11%,transparent 22%),
linear-gradient(180deg,#8edbea 0 46%,#35a5bf 47%,#08738a 100%)}
.scenic-poster[data-scene="island"] .scene-back{bottom:10%;height:31%;background:#3b8c6d;clip-path:polygon(0 76%,16% 68%,25% 50%,38% 61%,51% 36%,61% 56%,72% 47%,85% 65%,100% 58%,100% 100%,0 100%)}
.scenic-poster[data-scene="island"] .scene-front{bottom:-8%;height:23%;background:#0a665f;clip-path:polygon(0 40%,20% 55%,42% 44%,64% 61%,82% 45%,100% 57%,100% 100%,0 100%)}

.scenic-poster[data-scene="mountain"]{background:
radial-gradient(circle at 76% 17%,rgba(255,220,149,.88) 0 4%,rgba(255,220,149,.21) 11%,transparent 24%),
linear-gradient(180deg,#a8c8cf 0%,#789b9d 49%,#3d5f59 100%)}
.scenic-poster[data-scene="mountain"] .scene-back{background:#6b8e88;clip-path:polygon(0 84%,13% 66%,24% 73%,39% 23%,53% 70%,64% 47%,77% 73%,90% 53%,100% 68%,100% 100%,0 100%)}
.scenic-poster[data-scene="mountain"] .scene-front{background:#294d45;clip-path:polygon(0 79%,16% 61%,31% 74%,48% 48%,64% 72%,80% 52%,100% 67%,100% 100%,0 100%)}

.scenic-poster[data-scene="snow"]{background:
radial-gradient(circle at 75% 16%,rgba(255,244,210,.94) 0 4%,rgba(255,244,210,.22) 12%,transparent 24%),
linear-gradient(180deg,#c9e0e9 0%,#9cbecb 50%,#627f89 100%)}
.scenic-poster[data-scene="snow"] .scene-back{background:#eaf2f2;clip-path:polygon(0 83%,15% 64%,27% 72%,42% 19%,56% 68%,67% 42%,82% 72%,92% 51%,100% 66%,100% 100%,0 100%)}
.scenic-poster[data-scene="snow"] .scene-front{background:#668389;clip-path:polygon(0 80%,19% 61%,37% 75%,52% 48%,67% 72%,83% 54%,100% 65%,100% 100%,0 100%)}

.scenic-poster[data-scene="volcano"]{background:
radial-gradient(circle at 70% 17%,rgba(255,205,137,.67) 0 4%,rgba(255,205,137,.16) 12%,transparent 24%),
linear-gradient(180deg,#aab7bc 0%,#77878b 45%,#504744 100%)}
.scenic-poster[data-scene="volcano"] .scene-back{background:#6d6059;clip-path:polygon(0 83%,17% 74%,31% 68%,47% 28%,57% 51%,68% 63%,83% 70%,100% 62%,100% 100%,0 100%)}
.scenic-poster[data-scene="volcano"] .scene-front{background:#332f2d;clip-path:polygon(0 80%,20% 66%,40% 73%,58% 56%,75% 71%,100% 60%,100% 100%,0 100%)}

.scenic-poster[data-scene="city"]{background:
radial-gradient(circle at 75% 16%,rgba(255,191,112,.82) 0 3%,rgba(255,191,112,.18) 10%,transparent 21%),
linear-gradient(180deg,#7899ad 0%,#486c81 48%,#193744 100%)}
.scenic-poster[data-scene="city"] .scene-back{height:53%;background:#214755;box-shadow:0 -1px 0 rgba(255,255,255,.15) inset}
.scenic-poster[data-scene="city"] .scene-front{height:27%;bottom:-7%;background:
repeating-linear-gradient(90deg,#102c35 0 9%,#173942 9% 13%,#102c35 13% 22%);clip-path:none}
.scenic-poster[data-scene="city"] .scene-front:before{content:"";position:absolute;inset:18% 4% 25%;background:radial-gradient(circle,#e8c37b 0 1px,transparent 1.4px);background-size:17px 13px;opacity:.6}

.scenic-poster[data-scene="wildlife"]{background:
radial-gradient(circle at 73% 18%,rgba(255,221,145,.80) 0 4%,rgba(255,221,145,.18) 11%,transparent 23%),
linear-gradient(180deg,#b9c28e 0%,#7f9363 50%,#3d593d 100%)}
.scenic-poster[data-scene="wildlife"] .scene-back{background:#5f794e;clip-path:polygon(0 78%,9% 57%,17% 72%,25% 49%,34% 72%,42% 40%,51% 70%,60% 48%,70% 73%,80% 44%,90% 68%,100% 50%,100% 100%,0 100%)}
.scenic-poster[data-scene="wildlife"] .scene-front{background:#28452f;clip-path:polygon(0 75%,13% 55%,26% 72%,39% 48%,55% 74%,68% 52%,83% 71%,100% 54%,100% 100%,0 100%)}

.scenic-poster[data-scene="farm"]{background:
radial-gradient(circle at 73% 17%,rgba(255,225,150,.86) 0 4%,rgba(255,225,150,.20) 11%,transparent 23%),
linear-gradient(180deg,#bfd1a5 0%,#91ad76 49%,#55724c 100%)}
.scenic-poster[data-scene="farm"] .scene-back{background:#77935e;clip-path:polygon(0 68%,16% 60%,31% 67%,49% 49%,65% 62%,82% 52%,100% 61%,100% 100%,0 100%)}
.scenic-poster[data-scene="farm"] .scene-front{background:repeating-linear-gradient(165deg,#3e673b 0 9px,#557b45 9px 18px);clip-path:polygon(0 57%,100% 38%,100% 100%,0 100%)}

.scenic-poster[data-scene="science"]{background:
radial-gradient(circle at 74% 16%,rgba(193,224,255,.72) 0 3%,rgba(193,224,255,.13) 12%,transparent 23%),
linear-gradient(180deg,#728ca3 0%,#4a687d 50%,#233c4c 100%)}
.scenic-poster[data-scene="science"] .scene-back{background:#35586d}
.scenic-poster[data-scene="science"] .scene-front{background:#1b3543}

.scenic-poster[data-night="true"]{filter:saturate(.9) brightness(.82) contrast(1.07)}
.scenic-poster[data-night="true"] .scene-sun{background:radial-gradient(circle,rgba(247,248,224,.95) 0 13%,rgba(205,222,226,.28) 35%,transparent 72%)}
.wander-visual[data-visual-kind="illustrative"] .wander-copy{background:linear-gradient(0deg,rgba(3,24,21,.91) 0,rgba(3,24,21,.24) 48%,rgba(3,24,21,0) 76%)}

/* Container-level scenic safety net: guarantees visible fallback art even if nested layers are suppressed. */
.wander-visual[data-visual-kind="illustrative"][data-scene="water"],.result-visual[data-visual-kind="illustrative"][data-scene="water"]{background:linear-gradient(180deg,#8ed3e4 0 43%,#2d98b5 44%,#0d6178 72%,#073b4b 100%)!important}
.wander-visual[data-visual-kind="illustrative"][data-scene="island"],.result-visual[data-visual-kind="illustrative"][data-scene="island"]{background:linear-gradient(180deg,#8edbea 0 46%,#35a5bf 47%,#08738a 100%)!important}
.wander-visual[data-visual-kind="illustrative"][data-scene="mountain"],.result-visual[data-visual-kind="illustrative"][data-scene="mountain"]{background:linear-gradient(180deg,#a8c8cf,#789b9d 49%,#3d5f59)!important}
.wander-visual[data-visual-kind="illustrative"][data-scene="snow"],.result-visual[data-visual-kind="illustrative"][data-scene="snow"]{background:linear-gradient(180deg,#c9e0e9,#9cbecb 50%,#627f89)!important}
.wander-visual[data-visual-kind="illustrative"][data-scene="volcano"],.result-visual[data-visual-kind="illustrative"][data-scene="volcano"]{background:linear-gradient(180deg,#aab7bc,#77878b 45%,#504744)!important}
.wander-visual[data-visual-kind="illustrative"][data-scene="city"],.result-visual[data-visual-kind="illustrative"][data-scene="city"]{background:linear-gradient(180deg,#7899ad,#486c81 48%,#193744)!important}
.wander-visual[data-visual-kind="illustrative"][data-scene="wildlife"],.result-visual[data-visual-kind="illustrative"][data-scene="wildlife"]{background:linear-gradient(180deg,#b9c28e,#7f9363 50%,#3d593d)!important}
.wander-visual[data-visual-kind="illustrative"][data-scene="farm"],.result-visual[data-visual-kind="illustrative"][data-scene="farm"]{background:linear-gradient(180deg,#bfd1a5,#91ad76 49%,#55724c)!important}
.wander-visual[data-visual-kind="illustrative"][data-scene="science"],.result-visual[data-visual-kind="illustrative"][data-scene="science"]{background:linear-gradient(180deg,#728ca3,#4a687d 50%,#233c4c)!important}
.wander-visual[data-visual-kind="illustrative"][data-scene="earth"],.result-visual[data-visual-kind="illustrative"][data-scene="earth"]{background:linear-gradient(180deg,#8fc8c2,#6ba99d 42%,#315f52)!important}

/* Restore bounded badges and full-card fallback layers without changing card geometry. */
.wander-card>.wander-visual{position:absolute;inset:0}
.result-visual[data-visual-kind]::before,.wander-visual[data-visual-kind]::before{right:auto;bottom:auto;max-width:calc(100% - 28px);pointer-events:none}
.scenic-poster .scene-sun{display:none}
.editorial-card{display:flex;flex-direction:column;min-width:0}
.editorial-card>.result-card,.editorial-card>.wander-card{width:100%;flex:1}
.editorial-card>.photo-credit{margin:5px 3px 8px;font:10px/1.4 system-ui;color:inherit}
.photo-credit a{color:inherit;text-decoration:underline}
[data-visual-kind="editorial"]>.scenic-poster{visibility:hidden}

.window-grid>.editorial-card{min-width:0}.editorial-card>.window-card{width:100%;min-height:230px}@media(max-width:700px){.window-grid>.editorial-card{flex:0 0 80vw}.editorial-card>.window-card{min-height:245px}}
