/* hub.css: Travel Products hub (port step: Travel Products). Loaded ONLY on the page using page-travel-products.php.
   Every rule is scoped under .tp-hub, so nothing leaks to other pages. Values come from the locked prototype
   (prototypes/travel-products-hub-prototype.html) and from the live hubs: head + chips = Destinations hub, New on Traveleak =
   Destinations editorial grid (2 | large + small | 2), the end-of-hub stream is the shared component in hub-components.css.
   Breakpoints: structure >= 1024 / 641-1023 / <= 640 (title size keeps the hub 1040 / 640 steps). */

.tp-hub{padding-bottom:24px}
.tp-hub [hidden]{display:none!important}
.tp-hub .tp-block{margin:0 0 56px}

/* ---- Shared small parts (same values as the article system) ---- */
.tp-hub .journey-eyebrow{display:flex;align-items:baseline;gap:4px;margin:0 0 9px;font-family:var(--text-label-family);font-size:10px;font-weight:var(--text-label-weight);line-height:var(--text-label-line);letter-spacing:.14em;text-transform:var(--text-label-transform);overflow:hidden;min-width:0}
.tp-hub .journey-eyebrow .cat{color:var(--color-accent);white-space:nowrap}
.tp-hub .discovery-head{margin:0 0 28px}
.tp-hub .discovery-label{margin:0;font-family:var(--text-label-family);font-size:15px;font-weight:var(--text-label-weight);line-height:1.4;letter-spacing:var(--text-label-tracking,.2em);text-transform:uppercase;color:var(--color-text)}
.tp-hub .discovery-rule{display:block;width:40px;height:2px;margin-top:8px;background:var(--color-accent)}
.tp-hub .d-title{margin:0;font-family:var(--font-editorial);font-weight:400;font-size:var(--card-title-compact-size,20px);line-height:var(--card-title-compact-line,1.3)}
.tp-hub .d-title a:hover{text-decoration:underline}
.tp-hub .d-thumb{display:block;position:relative;aspect-ratio:3/2;overflow:hidden;border-radius:var(--radius,2px);background:#f1f1f0}
.tp-hub .d-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tp-hub ul{margin:0;padding:0;list-style:none}
.tp-hub .foryou-card{min-width:0}
.tp-hub .foryou-card .d-thumb{margin-bottom:16px}
.tp-hub .tp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.tp-hub .tp-head{display:flex;justify-content:space-between;align-items:flex-end}
.tp-hub .tp-seeall{font:500 12px var(--font-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--color-accent);padding-bottom:2px}
.tp-hub .tp-seeall:hover{text-decoration:underline}

/* ---- Page head: H1, gold rule, introduction, chips (Destinations hub grammar) ---- */
.tp-hub .tp-pagehead{text-align:center;margin-top:28px;padding:0 0 28px;position:relative;margin-bottom:48px}
.tp-hub .tp-pagehead::after{content:'';position:absolute;bottom:0;left:0;right:0;height:1px;background:var(--color-border)}
.tp-hub .journeys-page-title{margin:0;font-family:var(--font-editorial);font-size:66px;font-weight:400;line-height:1.15;letter-spacing:-.01em}
.tp-hub .accent-rule--gold{width:40px;height:2px;background:var(--color-accent);border:0;margin:8px auto 28px}
.tp-hub .journeys-page-subtitle{max-width:640px;margin:10px auto 0;color:var(--color-text-muted);font-family:var(--text-body-lg-family);font-size:16px;font-weight:300;line-height:1.75}
.tp-hub .flying-taxonomy-pills{display:flex;flex-wrap:wrap;gap:10px;margin:26px 0 0;justify-content:center}
.tp-hub .flying-taxonomy-pills a{display:inline-flex;align-items:center;padding:9px 22px;border-radius:999px;border:1px solid var(--color-border);background:#fff;color:var(--color-text);font-family:var(--font-sans);font-size:12px;font-weight:500;line-height:1;white-space:nowrap;transition:background .2s,border-color .2s,color .2s}
.tp-hub .flying-taxonomy-pills a:hover{border-color:var(--color-accent)}
.tp-hub .flying-taxonomy-pills a.is-active{background:var(--color-accent);border-color:var(--color-accent);color:#fff}

/* Introduction width: 80% of the standard site container from 1024px (about 980px at 1440, 3 lines); below 1024 the original 640px max applies and the text wraps freely. */
@media (min-width:1024px){.tp-hub .journeys-page-subtitle{max-width:80%}}

/* ---- New on Traveleak: 2 mini-cards | large card + small horizontal story | 2 mini-cards (6 stories) ---- */
.tp-hub .tp-opening-wrap{padding-bottom:48px;border-bottom:1px solid var(--color-border)}
.tp-hub .tp-newon{display:grid;grid-template-columns:1fr 1.8fr 1fr;gap:32px;margin-top:0}
.tp-hub .tp-newon--no-right{grid-template-columns:1fr 1.8fr}
.tp-hub .tp-newon--solo{grid-template-columns:minmax(0,1fr)}
.tp-hub .tp-newon .dest-col-stack{display:flex;flex-direction:column;gap:32px;min-width:0}
.tp-hub .tp-newon .dest-hero{min-width:0}
.tp-hub .tp-newon .tl-media-link{display:block;color:inherit}
.tp-hub .tp-newon img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:var(--radius,2px);background:var(--color-border)}
.tp-hub .tp-newon .journeys-mini-card{display:flex;flex-direction:column}
.tp-hub .tp-newon .journeys-mini-card img{margin-bottom:12px}
.tp-hub .tp-newon .journeys-mini-card h3{margin:0 0 10px;font-family:var(--font-editorial);font-weight:400;font-size:20px;line-height:26px}
.tp-hub .tp-newon .mini-card-text{min-height:116px}
.tp-hub .tp-newon .story-excerpt{margin:0;color:#4f4f4b;font-family:var(--font-sans);font-size:14px;font-weight:300;line-height:1.75;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.tp-hub .tp-newon .dest-hero img{margin-bottom:12px}
.tp-hub .tp-newon .dest-hero h2{margin:0 0 12px;font-family:var(--font-editorial);font-weight:400;font-size:24px;line-height:1.25;letter-spacing:normal}
.tp-hub .tp-newon .dest-hero>.story-excerpt{max-width:58ch}
.tp-hub .tp-newon .dest-small-horiz{display:grid;grid-template-columns:1fr 1.334fr;gap:16px;align-items:start;margin-top:26px;padding-top:26px;border-top:1px solid var(--color-border)}
.tp-hub .tp-newon .dest-small-horiz h3{margin:0 0 8px;font-family:var(--font-editorial);font-weight:400;font-size:20px;line-height:26px}
.tp-hub .tp-newon .tl-title-link:hover{text-decoration:underline}
.tp-hub .tp-newon .journey-eyebrow{margin:0 0 9px}

/* ---- Editors' Picks band (own block, full-bleed tint) ---- */
.tp-hub .tp-picks{position:relative;padding:44px 0 48px;clip-path:inset(0 -100vmax);box-shadow:0 0 0 100vmax var(--color-surface);background:var(--color-surface)}

/* ---- Empty state ---- */
.tp-hub .tp-empty{padding:48px 0 72px;max-width:640px;margin:0 auto;text-align:center}
.tp-hub .tp-empty-title{margin:0 0 10px;font-family:var(--font-editorial);font-size:26px;line-height:1.25}
.tp-hub .tp-empty-text{margin:0;font-weight:300;line-height:1.7;color:var(--color-text-muted)}
.tp-hub .tp-empty-text a{color:var(--color-text);text-decoration:underline}

/* ---- Tablet (641-1023) ---- */
@media (max-width:1040px){.tp-hub .journeys-page-title{font-size:48px}}
@media (max-width:1023px){
	.tp-hub .tp-block{margin-bottom:44px}
	.tp-hub .tp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px}
}
/* ---- Mobile (<= 640) ---- */
@media (max-width:640px){
	.tp-hub .tp-block{margin-bottom:36px}
	.tp-hub .journeys-page-title{font-size:28px}
	.tp-hub .tp-pagehead{margin-bottom:36px}
	.tp-hub .flying-taxonomy-pills{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:calc(var(--gutter) * -1);margin-right:calc(var(--gutter) * -1);padding:0 var(--gutter)}
	.tp-hub .flying-taxonomy-pills::-webkit-scrollbar{display:none}
	.tp-hub .tp-grid{grid-template-columns:1fr;gap:28px}
	.tp-hub .tp-picks{padding:32px 0 36px}
	.tp-hub .tp-newon,.tp-hub .tp-newon--no-right{grid-template-columns:1fr;gap:28px}
	.tp-hub .tp-newon>.dest-hero{order:-1}
	.tp-hub .tp-newon .dest-col-stack{gap:28px}
	.tp-hub .tp-newon .dest-hero h2{font-size:22px;line-height:1.25}
	.tp-hub .tp-newon .mini-card-text{min-height:0}
	.tp-hub .tp-newon .dest-small-horiz{display:flex;flex-direction:column;gap:10px;margin-top:28px;padding-top:0;border-top:0}
	.tp-hub .tp-newon .dest-small-horiz>.tl-media-link{order:-1;width:100%}
}

/* =====================================================================================================================
   Visual pass (2026-10-06, approved scope only)
   ===================================================================================================================== */
/* Hero image: first block of the hub, 6px under the header (live .tl-hub-hero padding-top), then the page head 28px below it (the .tp-pagehead margin-top already is the live 28px). */
.tp-hub .container>.hub-hero{margin-top:6px}

/* Six taxonomy sections: the card is the For You card = Secondary tier, 20px / 1.3 at every breakpoint (Typography Reference section 4).
   The mobile compact geometry below does not change this role. */
.tp-hub .tp-section .d-title{font-size:20px;line-height:1.3}

/* Six taxonomy sections at 640px and below: story 1 large, stories 2-4 = shared horizontal compact geometry (.hub-compact in hub-components.css),
   SEE ALL after story 4. Layout only: no typography is defined here. */
@media (max-width:640px){
	.tp-hub :is(.tp-section,.tp-picks){display:flex;flex-direction:column}
	.tp-hub :is(.tp-section,.tp-picks) .tp-head{display:contents}
	.tp-hub :is(.tp-section,.tp-picks) .tp-head>div{order:1;margin-bottom:28px}
	.tp-hub :is(.tp-section,.tp-picks) .foryou-grid{order:2;gap:0}
	.tp-hub :is(.tp-section,.tp-picks) .tp-seeall{order:3;margin-top:28px;align-self:flex-start;padding-bottom:2px}
	.tp-hub :is(.tp-section,.tp-picks) .foryou-card:first-child{padding-bottom:14px}
	.tp-hub :is(.tp-section,.tp-picks) .foryou-card.hub-compact .d-thumb{margin-bottom:0}
	/* Typography by card role (Typography Reference): the large card = Secondary 20px / 1.3, compact cards = Compact 18px / 1.3 */
	.tp-hub :is(.tp-section,.tp-picks) .foryou-card:first-child .d-title{font-size:20px;line-height:1.3}
	.tp-hub :is(.tp-section,.tp-picks) .foryou-card.hub-compact .d-title{font-size:18px;line-height:1.3}
}
