/* World experience v1.3: searchable favorites and visible storage feedback. */
.world-experience .skip-link:not(:focus) { left: 0; top: 0; clip-path: inset(50%); white-space: nowrap; }
.world-experience [hidden] { display: none !important; }
.world-experience { background: radial-gradient(ellipse at 8% 7%, #eaf2e6 0, transparent 30rem), radial-gradient(ellipse at 94% 20%, #ffecd8 0, transparent 35rem), #fffaf2; }
.world-experience .site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,250,242,.97); box-shadow: 0 4px 24px #1c423208; }
.world-experience .site-header-inner { position: relative; }
.world-experience .discovery-hero { gap: 48px; padding-top: 34px; padding-bottom: 50px; }
.world-experience .discovery-hero h1 { font-size: clamp(2.8rem, 5vw, 4.7rem); line-height: 1.06; }
.world-experience .discovery-hero__intro { font-size: 1.02rem; }
.world-experience .discovery-search__row { border-color: #cddbcf; border-radius: 21px; padding: 9px 9px 9px 20px; box-shadow: 0 16px 40px #1a40300c; }
.world-experience .discovery-search button { border-radius: 13px; }
.world-experience .discovery-hero__photo { max-height: 500px; border: 7px solid #fffdf7; box-shadow: 0 24px 60px #193d331c; }
.world-experience .discovery-postmark { top: 24px; right: -1px; width: 128px; min-height: 128px; padding: 20px 8px; font-size: .73rem; overflow-wrap: normal; }
.world-quick-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.world-quick-ideas a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #dce4d6; border-radius: 30px; background: #fffdf7c9; color: #365e50; font-size: .72rem; font-weight: 650; text-decoration: none; }
.world-quick-ideas a > span { color: #b95c42; font-size: 1rem; line-height: 1; }
.world-quick-ideas a:hover { background: #e7efdc; border-color: #b8ceb9; }
.world-postcards { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin: -7px 12px 0 -30px; }
.world-postcard { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px; border: 1px solid #e3e8db; border-radius: 18px; background: #fffdf8; color: #203b35; text-decoration: none; box-shadow: 0 12px 30px #204e3b15; transform: rotate(-3deg); }
.world-postcard:nth-child(2) { transform: rotate(3deg); }
.world-postcard img, .world-postcard__initial { width: 62px; height: 68px; flex: 0 0 62px; border-radius: 11px; object-fit: cover; }
.world-postcard__initial { display: grid; place-items: center; background: #e2e9cf; font: 2rem Georgia,serif; }
.world-postcard > span:not(.world-postcard__arrow):not(.world-postcard__initial) { min-width: 0; }
.world-postcard small { display: block; color: #637367; font-size: .61rem; line-height: 1.4; }
.world-postcard strong { display: block; margin-top: 3px; font: 650 1.15rem/1.15 Georgia,serif; overflow-wrap: anywhere; }
.world-postcard__arrow { margin-left: auto; font-size: 1.2rem; }
.world-experience .discovery-ribbon { padding: 22px 30px; border-radius: 22px; background: #234f42; box-shadow: 0 10px 30px #214b3712; }
.world-experience .discovery-place { position: relative; border-radius: 25px; background: #fffdf7; border-color: #e3e6d8; box-shadow: 0 5px 18px #234c3d06; }
.world-experience .discovery-place__media { aspect-ratio: 5/4; }
.world-experience .discovery-place__body { padding: 23px 24px 27px; }
.world-experience .discovery-theme { border-radius: 25px; }
.world-experience .discovery-host { border: 1px solid #dfe7d3; box-shadow: 0 12px 34px #264f3810; }
.world-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.world-icon-button, .world-language > summary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid #dce3d5; border-radius: 13px; background: #fffdf8; color: #234f42; font: 700 .78rem/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; cursor: pointer; }
.world-icon-button { position: relative; flex-shrink: 0; font-size: 1.35rem; }
.world-icon-button:hover, .world-language > summary:hover { background: #eaf0df; }
.world-language { position: relative; }
.world-language > summary { list-style: none; padding-inline: 11px; }
.world-language > summary::-webkit-details-marker { display: none; }
.world-language > summary::marker { content: ''; }
.world-chevron { width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin: -3px 2px 0; }
.world-language[open] .world-chevron { transform: rotate(225deg); margin-top: 3px; }
.world-language[open] > summary { border-color: #739f84; background: #eaf0df; }
.world-language__panel { position: absolute; top: calc(100% + 13px); right: 0; z-index: 45; width: 390px; max-width: calc(100vw - 30px); max-height: calc(100dvh - 110px); padding: 22px; overflow-y: auto; border: 1px solid #dce4d5; border-radius: 24px; background: #fffdf8; box-shadow: 0 24px 65px #1a3d3426; }
.world-panel-kicker { margin: 0 0 8px; color: #65806e; font: 750 .62rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; letter-spacing: .12em; }
.world-language__panel h2 { margin: 0 0 20px; color: #234f42; font: 650 1.6rem/1.16 Georgia,serif; }
.world-panel-label { margin: 16px 0 9px; font-size: .76rem; line-height: 1.45; font-weight: 750; color: #344f43; }
.world-language__panel .language-switcher { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; width: 100%; margin: 0; padding: 5px; border: 0; border-radius: 13px; background: #edf1e5; }
.world-language__panel .language-switcher button { width: 100%; min-height: 42px; padding: 8px 4px; font-size: .73rem; }
.world-language__translation { border-top: 1px solid #e4e9db; margin-top: 19px; }
.world-language__panel input[type=search] { width: 100%; margin: 1px 0 11px; min-height: 44px; padding: 10px 13px; border: 1px solid #d7dfd0; border-radius: 12px; background: #fff; font-size: 16px; }
.world-language__list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; max-height: 190px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 5px 2px 0; scrollbar-width: thin; }
.world-language-option { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; min-height: 40px; padding: 9px 10px; border-radius: 10px; color: #284e41; font-size: .77rem; line-height: 1.4; text-decoration: none; }
.world-language-option:hover { background: #edf2e4; }
.world-language-option > span:first-child { overflow-wrap: anywhere; }
.world-language-option > span:last-child { opacity: .6; }
.world-all-languages { display: inline-flex; margin-top: 10px; color: #2b604b; font-size: .72rem; font-weight: 700; }
.world-language__note, .world-language__no-results { margin: 13px 0 0; font-size: .7rem; line-height: 1.6; color: #657266; }
.world-saved-count { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 12px; background: #e77e5c; color: #163a30; font-size: .64rem; font-weight: 800; }
.world-save-button { position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid #ffffffb5; border-radius: 50%; background: #fffdf5f2; color: #234f42; box-shadow: 0 4px 14px #173e3024; cursor: pointer; }
.world-save-button[aria-pressed=true] { color: #a63f2d; background: #fff1e8; border-color: #f1bda8; }
.world-save-button[aria-pressed=true] svg { fill: #ee9479; }
.world-save-button--detail { position: static; border-radius: 30px; box-shadow: none; margin: 0 0 18px; padding: 10px 16px; border-color: #c9d9c6; font: 650 .82rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; }
.world-saved-dialog { width: min(700px,calc(100vw - 32px)); max-height: min(85dvh,850px); margin: auto; padding: 28px; border: 1px solid #e2e6d9; border-radius: 28px; background: #fffaf2; color: #203b35; box-shadow: 0 30px 100px #132f304d; }
.world-saved-dialog::backdrop { background: #183a345e; backdrop-filter: blur(5px); }
.world-saved-dialog__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.world-saved-dialog__header h2 { margin: 0; font: 650 clamp(1.8rem,4vw,2.4rem)/1.12 Georgia,serif; }
.world-saved-dialog__intro { margin: 16px 0 22px; max-width: 48ch; color: #637064; font-size: .9rem; line-height: 1.7; }
.world-saved-empty { text-align: center; padding: 16px 15px 25px; }
.world-saved-empty > span { display: inline-grid; place-items: center; width: 75px; height: 75px; margin-bottom: 15px; border-radius: 50%; background: #e4edda; color: #32634e; font: 3rem/1 Georgia,serif; }
.world-saved-empty h3 { margin: 0 0 12px; font: 650 1.5rem/1.2 Georgia,serif; }
.world-saved-empty p { max-width: 36ch; margin: 0 auto 20px; color: #667264; font-size: .85rem; line-height: 1.7; }
.world-saved-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.world-saved-list > li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px; border: 1px solid #e0e7d6; border-radius: 18px; background: #fffdf8; }
.world-saved-list a { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; color: #244d3e; text-decoration: none; }
.world-saved-list img, .world-saved-initial { display: grid; place-items: center; width: 76px; height: 76px; flex: 0 0 76px; border-radius: 12px; object-fit: cover; background: #e2eaca; font: 2rem Georgia,serif; }
.world-saved-list strong { display: block; font: 650 1.3rem/1.2 Georgia,serif; overflow-wrap: anywhere; }
.world-saved-list small { display: block; margin-bottom: 5px; color: #677765; font-size: .72rem; }
.world-saved-remove { align-self: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: #f5e9dd; color: #754c3b; font: 500 1.4rem/1 Arial,sans-serif; cursor: pointer; }
.world-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (hover:hover) {
    .world-postcard { transition: transform .25s ease,box-shadow .25s ease; }
    .world-postcard:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 18px 35px #204e3b20; }
    .world-save-button:hover { transform: scale(1.06); }
}
@media (min-width:1101px) and (max-width:1300px) {
    .world-experience .site-header-inner { gap: 12px; padding-inline: 28px; }
    .world-experience .site-nav a { padding-inline: 8px; font-size: .78rem; }
    .world-experience .site-brand { font-size: 1.65rem; }
}
@media (max-width:1100px) {
    .world-experience .site-header { position: relative; }
    .world-tools { grid-area: language; }
    .world-language { position: static; }
    .world-language__panel { left: 16px; right: 16px; top: calc(100% - 2px); width: auto; max-width: 420px; margin-left: auto; }
    .world-experience .discovery-hero { gap: 28px; }
    .world-postcards { margin-left: -10px; gap: 8px; }
    .world-postcard { gap: 7px; padding: 7px; }
    .world-postcard img { width: 48px; height: 60px; flex-basis: 48px; }
    .world-postcard strong { font-size: 1rem; }
}
@media (max-width:900px) {
    .world-experience .discovery-hero { grid-template-columns: minmax(0,1fr); }
    .world-experience .discovery-hero__visual { width: 100%; max-width: 680px; justify-self: center; margin-inline: 0; }
    .world-postcards { margin-inline: 0; }
}
@media (max-width:700px) {
    .world-experience .site-header-inner { padding: 12px 15px; gap: 0 7px; grid-template-columns: minmax(0,1fr) auto auto; grid-template-areas: "brand language toggle" "navigation navigation navigation"; }
    .world-experience .site-brand { font-size: 1.5rem; gap: 2px; }
    .world-experience .brand-spark { font-size: 1.1rem; }
    .world-tools { gap: 5px; }
    .world-language > summary { gap: 6px; padding-inline: 9px; }
    .world-language > summary svg { width: 17px; }
    .world-experience .site-menu-toggle { min-width: 44px; width: 44px; padding: 10px; }
    .world-experience .site-menu-toggle__text { display: none; }
    .world-language__panel { padding: 18px; max-height: calc(100dvh - 100px); }
    .world-language__list { max-height: 170px; }
    .world-experience .discovery-hero { padding-top: 24px; padding-bottom: 34px; }
    .world-experience .discovery-hero h1 { font-size: clamp(2.8rem,10.8vw,4.1rem); }
    .world-experience .discovery-hero__photo { max-height: 430px; }
    .world-experience .discovery-postmark { width: 104px; min-height: 104px; top: 24px; font-size: .62rem; padding: 14px 8px; }
    .world-quick-ideas { gap: 7px; }
    .world-quick-ideas a { font-size: .68rem; padding: 7px 9px; }
    .world-postcards { margin: -3px 7px 0; gap: 10px; }
    .world-postcard img { width: 48px; height: 56px; flex-basis: 48px; }
    .world-postcard__arrow { display: none; }
    .world-postcard small { font-size: .58rem; }
    .world-experience .discovery-ribbon { padding: 22px 18px; }
    .world-saved-dialog { padding: 20px; border-radius: 22px; }
    .world-saved-list img, .world-saved-initial { width: 58px; height: 64px; flex-basis: 58px; }
    .world-saved-list strong { font-size: 1.12rem; }
}
@media (max-width:360px) {
    .world-experience .site-header-inner { padding-inline: 12px; column-gap: 5px; }
    .world-experience .site-brand { font-size: 1.3rem; }
    .world-tools { gap: 4px; }
    .world-language > summary { padding-inline: 8px; }
    .world-chevron { display: none; }
}
@media (prefers-reduced-motion:reduce) {
    .world-experience *, .world-experience *::before, .world-experience *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Favorites: filtering never changes the saved collection. */
.world-saved-search { margin: 0 0 18px; }
.world-saved-search > label { display: block; margin-bottom: 8px; color: #234f42; font-size: .82rem; font-weight: 700; }
.world-saved-search__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.world-saved-search input { flex: 1 1 240px; min-width: 0; width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #b4c7b8; border-radius: 12px; background: #fffefb; color: #203b35; font: inherit; font-size: 16px; }
.world-saved-search input::placeholder { color: #69776c; opacity: 1; }
.world-saved-search__clear { min-height: 44px; padding: 9px 12px; border: 1px solid #b4c7b8; border-radius: 12px; background: #f3f5e9; color: #244d3e; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.world-saved-results { margin: 9px 0 0; color: #52695b; font-size: .78rem; line-height: 1.5; }
.world-saved-no-match { margin: 0 0 18px; padding: 20px; border: 1px dashed #b9cbb4; border-radius: 16px; background: #f1f5e8; color: #48604f; font-size: .88rem; line-height: 1.6; }
.world-saved-feedback { margin: 0 0 16px; padding: 13px 15px; border: 1px solid #cddabf; border-radius: 12px; background: #eef3e4; color: #294d38; font-size: .85rem; line-height: 1.55; overflow-wrap: anywhere; }
.world-saved-toast { position: fixed; z-index: 80; inset-inline: 16px; bottom: max(20px,env(safe-area-inset-bottom)); display: flex; align-items: flex-start; gap: 12px; width: min(600px,calc(100% - 32px)); margin-inline: auto; padding: 15px 16px; border: 1px solid #cbaf6c; border-radius: 16px; background: #fff5d9; color: #473b1b; box-shadow: 0 10px 40px #183a3430; }
.world-saved-toast p { flex: 1; min-width: 0; margin: 0; font: 500 .9rem/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; overflow-wrap: anywhere; }
.world-saved-toast button { flex: 0 0 44px; min-width: 44px; min-height: 44px; margin: -7px -7px -7px 0; border: 0; border-radius: 10px; background: transparent; color: inherit; font: 500 1.5rem/1 Arial,sans-serif; cursor: pointer; }
.world-saved-search input:focus-visible, .world-saved-search__clear:focus-visible, .world-saved-toast button:focus-visible { outline: 3px solid #be6846; outline-offset: 3px; }
.world-saved-remove:disabled, .world-save-button:disabled { opacity: .55; cursor: wait; }
@media (max-width:420px) {
    .world-saved-search__clear { width: 100%; }
    .world-saved-toast { inset-inline: 10px; width: calc(100% - 20px); padding: 13px 14px; }
}
.world-saved-toast[hidden], .world-saved-dialog [hidden] { display: none !important; }

/* Favorites transfer: explicit preview, scoped controls, no layout changes outside the dialog. */
.world-saved-backup { margin: 0 0 22px; padding: 18px; border: 1px solid #cddcc4; border-radius: 18px; background: #f1f5e8; }
.world-saved-backup h3 { margin: 0 0 9px; font: 650 1.2rem/1.3 Georgia,serif; color: #234f42; }
.world-saved-backup p { margin: 8px 0; font-size: .8rem; line-height: 1.65; color: #405d4c; overflow-wrap: anywhere; }
.world-saved-backup__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.world-saved-backup button { min-height: 44px; max-width: 100%; padding: 10px 13px; border: 1px solid #b4c7a9; border-radius: 11px; background: #fffdf7; color: #244d3e; font: 700 .78rem/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; cursor: pointer; overflow-wrap: anywhere; }
.world-saved-backup [data-saved-backup-confirm] { background: #214f42; border-color: #214f42; color: #fffdf7; }
.world-saved-backup button:disabled { opacity: .55; cursor: default; }
.world-saved-backup button:focus-visible, .world-saved-backup h3:focus, .world-saved-backup h4:focus, .world-saved-backup__preview ul:focus-visible { outline: 3px solid #be6846; outline-offset: 3px; }
.world-saved-backup__preview { margin-top: 17px; padding-top: 16px; border-top: 1px solid #cddcc4; }
.world-saved-backup h4 { margin: 0 0 10px; font: 650 1.1rem/1.35 Georgia,serif; color: #234f42; }
.world-saved-backup__preview ul { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; margin: 14px 0; padding: 0; list-style: none; border: 1px solid #d9e2ce; border-radius: 12px; background: #fffdf7; }
.world-saved-backup__preview li { padding: 10px 12px; border-bottom: 1px solid #e1e8d8; overflow-wrap: anywhere; }
.world-saved-backup__preview li:last-child { border-bottom: 0; }
.world-saved-backup__preview li > span { display: block; font-size: .86rem; font-weight: 700; line-height: 1.5; }
.world-saved-backup__preview li > small { display: inline-block; margin: 2px 10px 0 0; color: #52695b; font-size: .72rem; line-height: 1.5; }
.world-saved-backup [data-saved-backup-notice] { font-weight: 650; }
@media (max-width:420px) {
    .world-saved-backup { padding: 14px; }
    .world-saved-backup__actions > button { width: 100%; }
}
