/* Homepage composition: existing Ranvel identity, quieter surfaces, real journeys. */
.home-page #ranvel-travel-hub .route-editorial-hero{padding:0;border:0;border-radius:0;background:var(--surface);overflow:visible}
.home-page #ranvel-travel-hub .route-editorial-intro{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,5vw,72px);padding:0;margin:0 0 26px;min-height:0;align-items:center}
.home-page #ranvel-travel-hub .route-editorial-intro::before{display:none}
.home-page #ranvel-travel-hub .route-editorial-copy{padding-block:12px;min-width:0}
.home-page #ranvel-travel-hub .route-editorial-copy>.rh-kicker{font-size:13px;letter-spacing:.14em;color:var(--accent-text);font-weight:700}
.home-page #ranvel-travel-hub .route-editorial-intro h1{font-size:clamp(40px,4.7vw,68px);line-height:1.07;letter-spacing:-.045em;font-weight:750;max-width:11ch;margin:18px 0 22px;text-wrap:balance}
.home-page #ranvel-travel-hub .route-editorial-intro .route-intro-copy{font-size:17px;line-height:1.65;color:var(--subtle);max-width:45ch;padding:0}
.home-page #ranvel-travel-hub .route-hero-actions{display:flex;align-items:center;gap:14px 22px;flex-wrap:wrap;margin-top:22px}
.home-page #ranvel-travel-hub #journey-finder{scroll-margin-top:110px}
.home-page #ranvel-travel-hub .route-hero-start{min-height:48px;padding:12px 18px;border-radius:8px;font-size:14px}
.home-page #ranvel-travel-hub .route-hero-signature{display:flex;align-items:center;gap:8px;color:var(--subtle);font-size:12px;margin:0}
.home-page #ranvel-travel-hub .route-hero-signature svg{width:15px;height:15px}
.home-page #ranvel-travel-hub .route-editorial-intro .route-character{display:flex;flex-direction:row;align-items:center;gap:12px;position:static;max-width:400px;margin-top:20px;transform:none;animation:none}
.home-page #ranvel-travel-hub .route-editorial-intro .route-character>.rh-cat{width:62px;height:74px;flex:none;object-fit:contain}
.home-page #ranvel-travel-hub .route-editorial-intro .route-tip-bubble{border:0;border-radius:0;background:transparent;padding:0;gap:14px;min-height:60px;box-shadow:none;flex:1;width:auto}
.home-page #ranvel-travel-hub .route-editorial-intro .route-tip-copy{min-width:0;padding:0}
.home-page #ranvel-travel-hub .route-editorial-intro .route-tip-copy strong{font-size:12px}
.home-page #ranvel-travel-hub .route-editorial-intro .route-tip-copy span{font-size:12px;line-height:1.5;padding:0}
.home-page #ranvel-travel-hub .route-editorial-intro .route-tip-next{width:44px;height:44px;min-width:44px;border:1px solid var(--border);background:var(--surface);color:var(--accent-text);border-radius:50%}
.home-page #ranvel-travel-hub .route-hero-scene{display:block;position:relative;align-self:stretch;min-width:0;min-height:430px;overflow:hidden;border-radius:12px;background:var(--surface-alt)}
.home-page #ranvel-travel-hub .route-hero-scene>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.home-page #ranvel-travel-hub .route-hero-caption{position:absolute;bottom:0;left:0;right:0;display:grid;grid-template-columns:1fr 24px;gap:4px 18px;padding:18px 22px;background:#17181cf2;color:#fff}
.home-page #ranvel-travel-hub .route-hero-caption>span{font-size:11px;color:#e1e1e5;grid-column:1}
.home-page #ranvel-travel-hub .route-hero-caption strong{font-size:18px;line-height:1.35;grid-column:1;font-weight:600}
.home-page #ranvel-travel-hub .route-hero-caption svg{grid-column:2;grid-row:1/3;align-self:center}
.home-page #ranvel-travel-hub .route-editorial-hero .rh-finder{border-radius:12px;background:var(--surface-alt);box-shadow:none;border:1px solid var(--border);padding:16px 24px}
.home-page #ranvel-travel-hub .rh-shortcuts{margin:12px 0 34px;padding-bottom:18px;border-bottom:1px solid var(--border);gap:8px 24px}
.home-page #ranvel-travel-hub .rh-shortcuts a{font-size:13px}
.home-page #ranvel-travel-hub .home-module:not(.module-hero):not(.module-discovery){padding-block:44px}
.home-page #ranvel-travel-hub .home-module>.wrap>.rh-section-top h2,.home-page #ranvel-travel-hub .route-partners h2{font-size:clamp(27px,3vw,36px);line-height:1.2;letter-spacing:-.03em;text-wrap:balance}
#ranvel-travel-hub .rh-campaign-heading{flex-wrap:wrap;align-items:center}
#ranvel-travel-hub .rh-carousel-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#ranvel-travel-hub .route-carousel-picker{display:grid;gap:4px;font-size:11px;color:var(--subtle);margin-right:12px;min-width:0}
#ranvel-travel-hub .route-carousel-picker select{font-size:14px;width:250px;max-width:100%;min-height:44px;padding:10px 32px 10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-raised);color:var(--text);text-overflow:ellipsis}
#ranvel-travel-hub .route-carousel-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:900px){.home-page #ranvel-travel-hub .route-editorial-intro{gap:28px}.home-page #ranvel-travel-hub .route-hero-scene{min-height:400px}.home-page #ranvel-travel-hub .route-editorial-intro h1{font-size:44px}}
@media(max-width:700px){
 .home-page #ranvel-travel-hub .route-editorial-intro{grid-template-columns:1fr;gap:20px;margin-bottom:20px}
 .home-page #ranvel-travel-hub .route-editorial-copy{padding:0}
 .home-page #ranvel-travel-hub .route-editorial-intro h1{font-size:40px;max-width:15ch;margin:12px 0 16px;letter-spacing:-.035em}
 .home-page #ranvel-travel-hub .route-editorial-intro .route-intro-copy{font-size:16px;line-height:1.6;max-width:42ch}
 .home-page #ranvel-travel-hub .route-editorial-copy>.rh-kicker{font-size:11px}
 .home-page #ranvel-travel-hub .route-hero-signature{margin:0;font-size:11px}
 .home-page #ranvel-travel-hub .route-editorial-intro .route-character{margin-top:12px;max-width:none}
 .home-page #ranvel-travel-hub .route-editorial-intro .route-character>.rh-cat{width:48px;height:58px}
 .home-page #ranvel-travel-hub .route-hero-scene{min-height:166px;height:166px;border-radius:10px}
 .home-page #ranvel-travel-hub .route-hero-scene>img{object-position:50% 52%}
 .home-page #ranvel-travel-hub .route-hero-caption{padding:12px 14px;background:#17181ce8;gap:2px 12px}
 .home-page #ranvel-travel-hub .route-hero-caption>span{font-size:10px}
 .home-page #ranvel-travel-hub .route-hero-caption strong{font-size:14px}
 .home-page #ranvel-travel-hub .route-editorial-hero .rh-finder{padding:12px 16px}
 .home-page #ranvel-travel-hub .rh-shortcuts{gap:4px 16px;margin-bottom:22px;padding-bottom:14px}
 .home-page #ranvel-travel-hub .home-module:not(.module-hero):not(.module-discovery){padding-block:32px}
 #ranvel-travel-hub .rh-carousel-tools{width:100%}
 #ranvel-travel-hub .route-carousel-picker{width:100%;margin:0 0 5px}
 #ranvel-travel-hub .route-carousel-picker select{width:100%;font-size:16px}
 #ranvel-travel-hub .rh-carousel-tools>.count{margin-right:auto}
}

/* Search comes before inspiration, in source order and in the first viewport. */
.home-page #ranvel-travel-hub .route-search-first{padding:26px 28px;background:var(--surface-alt);border:1px solid var(--border);border-radius:16px}
.home-page #ranvel-travel-hub .route-search-heading{margin-bottom:22px}
.home-page #ranvel-travel-hub .route-search-heading>.rh-kicker{font-size:11px;letter-spacing:.12em;color:var(--accent-text)}
.home-page #ranvel-travel-hub .route-search-heading h1{font-size:clamp(30px,3.2vw,42px);line-height:1.15;letter-spacing:-.035em;margin:10px 0;max-width:none;text-wrap:balance}
.home-page #ranvel-travel-hub .route-search-prompt{font-size:15px;line-height:1.5;color:var(--subtle)}
.home-page #ranvel-travel-hub .route-search-first #journey-finder{padding:8px 22px 22px;background:var(--surface-raised);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px #00000006}
.home-page #ranvel-travel-hub .route-search-first .rh-finder-tabs{display:flex;gap:24px;margin-bottom:18px;border-color:var(--border)}
.home-page #ranvel-travel-hub .route-search-first .rh-finder-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:12px 10px;border-radius:0;background:transparent;border-bottom:3px solid transparent;color:var(--subtle);font-size:15px;line-height:1.4;white-space:normal}
.home-page #ranvel-travel-hub .route-search-first .rh-finder-tabs button[aria-selected=true]{background:transparent;color:var(--accent-text);border-color:var(--accent-text)}
.home-page #ranvel-travel-hub .route-search-first .rh-finder-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 180px;gap:14px;align-items:end}
.home-page #ranvel-travel-hub .route-search-first .rh-finder-form label{display:grid;gap:6px;border:0;padding:0;min-width:0}
.home-page #ranvel-travel-hub .route-search-first .rh-finder-form label>span{font-size:13px;font-weight:600;color:var(--subtle)}
.home-page #ranvel-travel-hub .route-search-first .rh-finder-form select{width:100%;min-width:0;min-height:52px;font-size:16px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text)}
.home-page #ranvel-travel-hub .route-search-first .rh-finder-form .rh-primary{min-height:52px;font-size:16px;border-radius:8px;margin:0;grid-column:auto}
.home-page #ranvel-travel-hub .route-search-first .route-editorial-intro{margin:24px 0 0;gap:36px;grid-template-columns:1.1fr 1fr}
.home-page #ranvel-travel-hub .route-search-first .route-editorial-copy{padding:0}
.home-page #ranvel-travel-hub .route-search-first .route-intro-copy{font-size:14px;line-height:1.6;max-width:58ch}
.home-page #ranvel-travel-hub .route-search-first .route-hero-signature{margin-top:12px}
.home-page #ranvel-travel-hub .route-search-first .route-character{margin-top:14px;max-width:460px}
.home-page #ranvel-travel-hub .route-search-first .route-character>.rh-cat{width:48px;height:58px}
.home-page #ranvel-travel-hub .route-search-first .route-hero-scene{height:190px;min-height:190px;align-self:center}
.home-page #ranvel-travel-hub .route-search-first .route-hero-caption{padding:12px 16px}
.home-page #ranvel-travel-hub .route-search-first .route-hero-caption strong{font-size:15px}
@media(max-width:700px){
 .home-page #ranvel-travel-hub .route-search-first{padding:0;border:0;border-radius:0;background:var(--surface)}
 .home-page #ranvel-travel-hub .route-search-heading{margin-bottom:18px}
 .home-page #ranvel-travel-hub .route-search-heading h1{font-size:30px;margin:8px 0 10px;line-height:1.15}
 .home-page #ranvel-travel-hub .route-search-prompt{font-size:14px;max-width:42ch}
 .home-page #ranvel-travel-hub .route-search-first #journey-finder{padding:6px 14px 16px;border-radius:12px}
 .home-page #ranvel-travel-hub .route-search-first .rh-finder-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-bottom:14px}
 .home-page #ranvel-travel-hub .route-search-first .rh-finder-tabs button{flex-direction:column;gap:4px;min-height:66px;font-size:12px;line-height:1.25;text-align:center;padding:7px 2px;min-width:0}
 .home-page #ranvel-travel-hub .route-search-first .rh-finder-tabs svg{width:18px;height:18px}
 .home-page #ranvel-travel-hub .route-search-first .rh-finder-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 10px}
 .home-page #ranvel-travel-hub .route-search-first .rh-finder-form select{min-height:50px;padding:10px 8px;font-size:16px}
 .home-page #ranvel-travel-hub .route-search-first .rh-finder-form .rh-primary{grid-column:1/-1;min-height:50px}
 .home-page #ranvel-travel-hub .route-search-first .route-editorial-intro{grid-template-columns:1fr;gap:18px;margin-top:24px}
 .home-page #ranvel-travel-hub .route-search-first .route-hero-scene{height:166px;min-height:166px}
}

/* Photographs sit behind search, without adding another block above the form. */
.home-page #ranvel-travel-hub .route-search-first{padding:0;border:0;background:var(--surface)}
.home-page #ranvel-travel-hub .route-search-banner{position:relative;isolation:isolate;overflow:hidden;padding:26px 28px;border-radius:16px;background:#193246}
.home-page #ranvel-travel-hub .route-search-backdrop{position:absolute;inset:0;z-index:0;pointer-events:none}
.home-page #ranvel-travel-hub .route-backdrop-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 650ms ease-in-out}
.home-page #ranvel-travel-hub .route-backdrop-image.is-current{opacity:1}
.home-page #ranvel-travel-hub .route-search-backdrop::after{content:'';position:absolute;inset:0;background:rgba(8,17,27,.62)}
.home-page #ranvel-travel-hub .route-search-banner .route-search-heading,.home-page #ranvel-travel-hub .route-search-banner #journey-finder,.home-page #ranvel-travel-hub .route-photo-caption{position:relative;z-index:1}
.home-page #ranvel-travel-hub .route-search-banner .route-search-heading h1,.home-page #ranvel-travel-hub .route-search-banner .route-search-prompt,.home-page #ranvel-travel-hub .route-search-banner .route-search-heading>.rh-kicker{color:#fff}
.home-page #ranvel-travel-hub .route-search-banner .route-search-heading>.rh-kicker{display:flex;align-items:center;min-height:44px;padding-inline-end:150px}
.home-page #ranvel-travel-hub .route-search-banner .route-search-heading{position:relative}
.home-page #ranvel-travel-hub .route-photo-controls{position:absolute;right:0;top:0;display:flex;gap:6px;z-index:2}
.home-page #ranvel-travel-hub .route-photo-controls button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid #ffffff66;background:#08111b99;color:#fff;border-radius:8px}
.home-page #ranvel-travel-hub .route-photo-controls button:hover{background:#08111be6;color:#fff}
.home-page #ranvel-travel-hub .route-photo-controls button:disabled{cursor:default;opacity:.8}
.home-page #ranvel-travel-hub .route-photo-controls svg{width:20px;height:20px}
.home-page #ranvel-travel-hub [data-photo-prev] svg{transform:rotate(180deg)}
.home-page #ranvel-travel-hub .route-photo-caption{display:flex;align-items:center;gap:12px;min-height:18px;margin:12px 0 0;font-size:12px;line-height:1.5;color:#fff}
.home-page #ranvel-travel-hub [data-photo-count]{font-variant-numeric:tabular-nums;min-width:40px}
.home-page #ranvel-travel-hub .route-background-credits{color:var(--subtle);font-size:12px;margin:4px 0 0}
.home-page #ranvel-travel-hub .route-background-credits summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.home-page #ranvel-travel-hub .route-background-credits p{max-width:85ch;padding:4px 0 16px}
.home-page #ranvel-travel-hub .route-background-credits a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){.home-page #ranvel-travel-hub .route-search-banner{padding:12px;border-radius:12px}.home-page #ranvel-travel-hub .route-photo-caption{font-size:11px}}
@media(max-width:380px){.home-page #ranvel-travel-hub .route-search-banner .route-search-heading h1{font-size:28px}}
@media(prefers-reduced-motion:reduce){.home-page #ranvel-travel-hub .route-backdrop-image{transition:none}}

/* Practical help belongs to the finder, after its primary action. */
.home-page #ranvel-travel-hub .route-search-heading{margin-bottom:16px}
.home-page #ranvel-travel-hub .route-finder-guide{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:44px;margin-top:8px;padding-top:8px;border-top:1px solid var(--border);color:var(--text)}
.home-page #ranvel-travel-hub .route-finder-guide>.rh-cat{width:36px;height:44px;object-fit:contain}
.home-page #ranvel-travel-hub .route-finder-guide-copy{min-width:0;font-size:12px;line-height:1.5}
.home-page #ranvel-travel-hub .route-finder-guide-copy strong{display:block;color:var(--accent-text);font-size:12px;line-height:1.4}
.home-page #ranvel-travel-hub .route-finder-guide-copy span{display:block;color:var(--subtle)}
.home-page #ranvel-travel-hub .route-finder-guide>a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:58px;padding:6px 0 6px 4px;color:var(--text);font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.home-page #ranvel-travel-hub .route-finder-guide>a svg{width:16px;height:16px}
@media(max-width:700px){.home-page #ranvel-travel-hub .route-search-heading{margin-bottom:12px}.home-page #ranvel-travel-hub .route-finder-guide{gap:8px;grid-template-columns:32px minmax(0,1fr) auto}.home-page #ranvel-travel-hub .route-finder-guide>.rh-cat{width:32px;height:40px}}

/* Reserve two lines for the headline so changing words never move the form. */
.home-page #ranvel-travel-hub .route-search-banner .route-living-headline{display:block;line-height:1.15}
.home-page #ranvel-travel-hub .route-headline-prefix{display:block;white-space:nowrap}
.home-page #ranvel-travel-hub .route-headline-word{display:grid;width:max-content;max-width:100%;color:inherit}
.home-page #ranvel-travel-hub .route-headline-word>[data-hero-word]{grid-area:1/1;white-space:nowrap;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity 180ms ease-out,transform 180ms ease-out}
.home-page #ranvel-travel-hub .route-headline-word>[data-hero-word].is-current{opacity:1;visibility:visible;transform:translateY(0)}
.home-page #ranvel-travel-hub [data-finder-mascot]{transform-origin:50% 85%;filter:none}
@media(max-width:700px){.home-page #ranvel-travel-hub .route-search-heading{margin-bottom:8px}.home-page #ranvel-travel-hub .route-search-first #journey-finder{padding-bottom:12px}}
@media(max-width:380px){.home-page #ranvel-travel-hub .route-search-banner .route-living-headline{font-size:26px}}
@media(prefers-reduced-motion:reduce){.home-page #ranvel-travel-hub .route-headline-word>[data-hero-word]{transition:none;transform:none}}

/* A peeking character sits on the finder rim; its hit area never covers a field. */
.home-page #ranvel-travel-hub #journey-finder{position:relative}
.home-page #ranvel-travel-hub .route-search-first .route-finder-guide{grid-template-columns:minmax(0,1fr) auto;gap:12px}
.home-page #ranvel-travel-hub .route-peek-cat{--cat-ease:cubic-bezier(.23,1,.32,1);position:absolute;top:-76px;right:14px;z-index:3;width:88px;height:80px;min-width:88px;min-height:80px;padding:0;border:0;border-radius:12px 12px 0 0;background:transparent;box-shadow:none;cursor:pointer;touch-action:manipulation}
.home-page #ranvel-travel-hub .route-peek-cat:hover{background:transparent}
.home-page #ranvel-travel-hub .route-peek-cat:focus-visible{outline:2px solid var(--accent-text);outline-offset:3px}
.home-page #ranvel-travel-hub .route-cat-window{position:absolute;inset:0 0 4px;overflow:hidden;pointer-events:none}
.home-page #ranvel-travel-hub .route-cat-body{position:absolute;top:0;left:4px;width:80px;height:80px;transform:translateY(3px);transition:transform 240ms var(--cat-ease);transform-origin:50% 100%}
.home-page #ranvel-travel-hub .route-cat-body img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none}
.home-page #ranvel-travel-hub [data-cat-state=lift] .route-cat-body{transform:translateY(3px) rotate(2deg)}
.home-page #ranvel-travel-hub [data-cat-state=duck] .route-cat-body{transform:translateY(100%);transition-duration:180ms}
.home-page #ranvel-travel-hub .route-headline-word{overflow:clip;perspective:800px;padding-block:3px;margin-block:-3px}
.home-page #ranvel-travel-hub .route-headline-word>[data-hero-word]{transition:none;transform:none;backface-visibility:hidden;transform-origin:50% 50%}
.home-page #ranvel-travel-hub .route-headline-word>[data-hero-word].is-leaving{visibility:visible;pointer-events:none}
#ranvel-travel-hub .rh-footer-top .route-japan-link{display:flex;align-items:center;gap:8px;min-height:44px}
#ranvel-travel-hub .route-japan-mascot{display:block;width:28px;height:32px;flex:none;overflow:hidden}
#ranvel-travel-hub .route-japan-mascot img{display:block;width:auto;height:32px;max-width:none;object-fit:initial}
@media(max-width:380px){.home-page #ranvel-travel-hub .route-peek-cat{top:-60px;right:2px;width:72px;min-width:72px;height:64px;min-height:64px}.home-page #ranvel-travel-hub .route-cat-body{width:64px;height:64px}.home-page #ranvel-travel-hub .route-headline-prefix{font-size:24px}}
@media(prefers-reduced-motion:reduce){.home-page #ranvel-travel-hub .route-cat-body{transition:none}}

.home-page #ranvel-travel-hub [data-hero-interactive-motion=false] .route-cat-body{transition:none}
