/* TWG Snoozer Collections — full-width collection pages. Everything is scoped under .twgc */

/* ---------- Let full-width bands escape the theme's boxed wrapper ----------
   Legenda clips .page-wrapper on one axis, which forces the other to clip too.
   flow-root keeps floats contained without clipping. */
body.twgc-active { overflow-x: hidden; }
body.twgc-active .page-wrapper { overflow: visible !important; display: flow-root; }
/* Our hero carries the title and breadcrumb, so the theme's grey title bar is not needed. */
body.twgc-active .page-heading { display: none !important; }

/* ---------- Tokens ---------- */
.twgc {
	--ink: #2a201a; --esp: #211913; --body: #4a3d33; --muted: #6b5d51; --line: #e2d7c6;
	--cream: #f4ede3; --sand: #efe8dd; --gold: #c9985f; --gold-txt: #8a6232; --link: #2d5877;
	--serif: 'Bitter', Georgia, serif; --sans: 'Open Sans', Arial, Helvetica, sans-serif; --label: Arial, Helvetica, sans-serif;
	--top: var(--wp-admin--admin-bar--height, 0px);
	width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0;
	background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6;
	-webkit-font-smoothing: antialiased; text-align: left;
}

/* ---------- Resets against theme styles ---------- */
.twgc, .twgc *, .twgc *::before, .twgc *::after { box-sizing: border-box; }
.twgc img { display: block; max-width: 100%; height: auto; border: 0; box-shadow: none; margin: 0; padding: 0; }
.twgc a { color: inherit; text-decoration: none; background: none; border: 0; box-shadow: none; transition: none; }
.twgc a:hover, .twgc a:focus { color: inherit; text-decoration: none; }
.twgc p { margin: 0; }
.twgc ul { margin: 0; padding: 0; list-style: none; }
.twgc li { margin: 0; padding: 0 !important; list-style: none; }
.twgc li::before { content: none !important; }
.twgc h1, .twgc h2, .twgc .twgc-h3 {
	font-family: var(--serif) !important; font-weight: 700 !important; line-height: 1.1 !important;
	text-transform: none !important; letter-spacing: normal !important; color: inherit !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; text-wrap: balance;
}
.twgc button {
	appearance: none; -webkit-appearance: none; border: 0; border-radius: 0; box-shadow: none; margin: 0; padding: 0;
	font: inherit; letter-spacing: normal; text-transform: none; min-height: 0; height: auto; width: auto;
	cursor: pointer; text-shadow: none; float: none;
	/* The Snoozer child theme forces a blue button background with !important. */
	background-color: transparent !important; color: inherit !important; line-height: inherit !important;
}
.twgc select {
	appearance: auto; -webkit-appearance: menulist; height: auto !important; min-height: 0; margin: 0 !important;
	box-shadow: none; text-transform: none; letter-spacing: normal; width: auto; max-width: 100%;
}
.twgc label { margin: 0; }
.twgc table { margin: 0; }
.twgc details, .twgc summary { margin: 0; }
.twgc [hidden] { display: none !important; }
.twgc :focus-visible { outline: 3px solid var(--gold) !important; outline-offset: 2px; }
.twgc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.twgc-wrap { max-width: 1280px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.twgc .twgc-eyebrow { font-family: var(--label); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-txt); }
.twgc .twgc-link { color: var(--link); }
.twgc .twgc-link:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.twgc-hero { background: var(--esp); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.twgc-hero-copy { padding: 56px 56px 56px max(24px, calc(50vw - 640px)); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.twgc .twgc-crumbs { font: 600 12px var(--label); letter-spacing: .06em; color: #a8998a; text-transform: uppercase; }
.twgc .twgc-crumbs a:hover { color: #fff; }
.twgc .twgc-hero h1 { font-size: clamp(40px, 4.4vw, 64px) !important; letter-spacing: -.01em !important; color: #fff !important; }
.twgc .twgc-lede { font-size: 18px; line-height: 1.65; color: #d9cdbd; max-width: 560px; }
.twgc-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 700 13px var(--label); color: #f1e6d6; }
.twgc-proof li { display: inline-flex; align-items: center; gap: 7px; }
.twgc .twgc-proof a { text-decoration: underline; text-decoration-color: rgba(201, 152, 95, .6); text-underline-offset: 3px; }
.twgc .twgc-proof a:hover { color: #fff; }
.twgc-star { color: var(--gold); font-size: 16px; }
.twgc-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.twgc .twgc-btn { display: inline-flex; align-items: center; gap: 8px; font: 700 14px var(--label); letter-spacing: .04em; padding: 14px 22px; border-radius: 6px; }
.twgc .twgc-btn--gold { background: var(--gold); color: var(--esp); }
.twgc .twgc-btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #6b5a4a; }
.twgc .twgc-btn:hover { filter: brightness(1.06); }
.twgc .twgc-btn--gold:hover { color: var(--esp); }
.twgc .twgc-btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--gold); }
.twgc-hero-img { position: relative; min-height: 440px; }
.twgc .twgc-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* ---------- Sticky quick filters ---------- */
.twgc-pills { position: sticky; top: var(--top); z-index: 50; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.twgc-pills .twgc-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.twgc-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.twgc-seg::-webkit-scrollbar { display: none; }
.twgc .twgc-seg button { color: #5a4c40 !important; font: 700 12.5px var(--label); letter-spacing: .06em; text-transform: uppercase; padding: 9px 15px; border-radius: 999px; white-space: nowrap; }
.twgc .twgc-seg button:hover { color: var(--ink) !important; background-color: var(--cream) !important; }
.twgc .twgc-seg button[aria-pressed="true"] { background-color: var(--esp) !important; color: #fff !important; }

/* ---------- Steps ---------- */
.twgc-step { padding: 64px 0 24px; }
.twgc-step--2 { padding-top: 40px; }
.twgc-step-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.twgc .twgc-step-head h2, .twgc-band h2, .twgc-faq h2 { font-size: clamp(30px, 3vw, 42px) !important; color: var(--ink) !important; }
.twgc .twgc-step-head p { margin: 6px 0 0; color: var(--muted); max-width: 600px; }
.twgc-num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--esp); color: var(--gold); font: 700 14px var(--serif); align-items: center; justify-content: center; margin-right: 10px; vertical-align: 4px; }
.twgc .twgc-ast { color: var(--gold-txt); font-weight: 800; padding: 0 2px; text-decoration: none; }
.twgc .twgc-ast:hover { color: var(--ink); }

.twgc-rides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.twgc .twgc-ride { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; color: var(--ink); }
.twgc .twgc-ride:hover { border-color: #cbb896; box-shadow: 0 12px 30px rgba(42, 32, 26, .10); transform: translateY(-2px); color: var(--ink); }
.twgc .twgc-ride[aria-pressed="true"] { border-color: var(--esp); box-shadow: 0 0 0 2px var(--esp); }
.twgc-ride .twgc-ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.twgc .twgc-ride .twgc-ph img { width: 100%; height: 100%; object-fit: cover; }
.twgc-ride .twgc-tx { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.twgc .twgc-ride .twgc-h3 { font-size: 22px !important; display: block; }
.twgc-for { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.twgc-from { margin-top: auto; padding-top: 8px; font: 700 13px var(--label); color: var(--ink); }
.twgc .twgc-footnote { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.twgc .twgc-footnote a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.twgc-where { align-self: flex-start; font: 800 11px var(--label); letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 4px; background: var(--cream); color: var(--gold-txt); line-height: 1.4; }
.twgc-where--console { background: #e6eef5; color: var(--link); }
.twgc-where--back { background: #f6e3df; color: #9a3b2a; }

.twgc-comfort { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.twgc .twgc-opt { display: flex; gap: 20px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.twgc .twgc-opt:hover { border-color: #cbb896; box-shadow: 0 12px 30px rgba(42, 32, 26, .08); color: var(--ink); }
.twgc .twgc-opt[aria-pressed="true"] { border-color: var(--esp); box-shadow: 0 0 0 2px var(--esp); }
.twgc .twgc-opt img { width: 120px; height: 120px; border-radius: 10px; object-fit: cover; flex: none; }
.twgc .twgc-opt .twgc-h3 { font-size: 21px !important; display: block; margin-bottom: 4px !important; }
.twgc-opt .twgc-p { display: block; margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.twgc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.twgc-chips span { font: 700 11.5px var(--label); padding: 4px 9px; border-radius: 999px; background: var(--cream); color: #5a4c40; }

/* ---------- Filter bar ---------- */
.twgc-fbar { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--top) + 72px); }
.twgc-fbar-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.twgc .twgc-fbar label { font: 700 12px var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.twgc .twgc-fbar select { font: 600 14px var(--sans); color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 30px 8px 12px; background: #fff; }
.twgc .twgc-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 600 14px var(--sans); background-color: #fff !important; color: var(--ink) !important; }
.twgc .twgc-toggle[aria-pressed="true"] { border-color: var(--esp); background-color: var(--esp) !important; color: #fff !important; }
.twgc-count { margin-left: auto; font: 700 13px var(--label); color: var(--muted); }
.twgc-chipsbar { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
.twgc-chipsbar:empty { display: none; }
.twgc .twgc-chipsbar button { background-color: var(--cream) !important; color: var(--ink) !important; font: 700 12.5px var(--label); padding: 7px 10px 7px 12px; border-radius: 999px; }
.twgc .twgc-chipsbar button::after { content: " \2715"; color: var(--muted); }
.twgc .twgc-chipsbar .twgc-clear { color: var(--link) !important; background-color: transparent !important; text-decoration: underline; }
.twgc .twgc-chipsbar .twgc-clear::after { content: ""; }

/* ---------- Grid ---------- */
.twgc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 22px; padding: 32px 0 72px; }
.twgc .twgc-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--ink); }
.twgc .twgc-card:hover { color: var(--ink); }
.twgc-card .twgc-ph { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--sand); }
.twgc .twgc-card .twgc-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.twgc .twgc-card:hover .twgc-ph img { transform: scale(1.03); }
.twgc-card .twgc-where { position: absolute; left: 10px; top: 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); background: #fff; }
.twgc-name { font: 700 19px/1.2 var(--serif); }
.twgc .twgc-card:hover .twgc-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.twgc-fab { font-size: 13.5px; color: var(--muted); margin-top: -6px; }
.twgc-sw { display: flex; align-items: center; gap: 5px; }
.twgc-sw i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); display: block; }
.twgc-sw small { font: 700 12px var(--label); color: var(--muted); margin-left: 4px; }
.twgc-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.twgc-price { font: 700 16px var(--sans); color: var(--ink); }
.twgc-price del { font-weight: 600; color: var(--muted); margin-right: 4px; }
.twgc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.twgc-tags span { font: 700 11px var(--label); letter-spacing: .04em; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--line); color: #5a4c40; }
.twgc-tags .twgc-oos { border-color: #e7c9c2; color: #9a3b2a; }

/* Reviews.io stars inside cards: compact, on-brand */
.twgc .twgc-meta .ruk_rating_snippet { margin: 0 !important; font-size: 13px !important; line-height: 1 !important; white-space: nowrap; cursor: inherit; }
.twgc .twgc-meta .ruk_rating_snippet i { color: var(--gold) !important; font-size: 13px !important; }
.twgc .twgc-meta .ruk_rating_snippet .ruk-rating-snippet-count { font: 600 12.5px var(--label) !important; color: var(--muted) !important; margin-left: 4px !important; display: inline !important; }
.twgc .twgc-meta .ruk_rating_snippet br { display: none; }

.twgc .twgc-tile { grid-column: span 2; border-radius: 12px; overflow: hidden; position: relative; min-height: 340px; background: var(--esp); color: #fff; display: flex; align-items: flex-end; }
.twgc .twgc-tile:hover { color: #fff; }
.twgc .twgc-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.twgc-tile .twgc-tx { position: relative; padding: 30px; display: flex; flex-direction: column; gap: 10px; max-width: 460px; align-items: flex-start; }
.twgc .twgc-tile .twgc-eyebrow { color: var(--gold); }
.twgc .twgc-tile .twgc-h3 { font-size: 30px !important; display: block; color: #fff !important; }
.twgc-tile .twgc-p { color: #eadfd0; }
.twgc-empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--muted); }
.twgc .twgc-empty button { color: var(--link) !important; text-decoration: underline; font-weight: 700; }

/* ---------- Compare ---------- */
.twgc-band { background: var(--sand); padding: 72px 0; }
.twgc-band h2, .twgc-faq h2 { margin-bottom: 10px !important; }
.twgc-tbl { overflow-x: auto; margin-top: 28px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.twgc .twgc-tbl table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; border: 0; background: #fff; }
.twgc .twgc-tbl th, .twgc .twgc-tbl td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); text-align: center; background: none; color: var(--ink); vertical-align: middle; }
.twgc .twgc-tbl thead th, .twgc .twgc-tbl thead td { font: 700 13px var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #fbf8f3; }
.twgc .twgc-tbl tbody th { text-align: left; font: 700 15px var(--sans); text-transform: none; letter-spacing: normal; }
.twgc .twgc-tbl td.twgc-yes { color: #2f6b3c; font-weight: 800; }
.twgc .twgc-tbl td.twgc-no { color: #b5a898; }
.twgc .twgc-tbl tr:last-child th, .twgc .twgc-tbl tr:last-child td { border-bottom: 0; }

/* ---------- Good to know ---------- */
.twgc-faq { padding: 72px 0 88px; }
.twgc-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.twgc-seo { color: var(--muted); font-size: 15px; }
.twgc-seo p + p { margin-top: 12px; }
.twgc-links { margin-top: 28px; }
.twgc-links ul { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.twgc .twgc-links a { color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(45, 88, 119, .35); text-underline-offset: 3px; }
.twgc .twgc-links a:hover { color: var(--ink); }
.twgc details { border-top: 1px solid var(--line); padding: 18px 0; scroll-margin-top: calc(var(--top) + 90px); }
.twgc details:last-child { border-bottom: 1px solid var(--line); }
.twgc summary { cursor: pointer; font: 700 18px var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.twgc summary::-webkit-details-marker { display: none; }
.twgc summary::after { content: "+"; color: var(--gold-txt); font-size: 22px; line-height: 1; }
.twgc details[open] summary::after { content: "\2013"; }
.twgc details p { margin: 10px 0 0; color: var(--body); }
.twgc details.twgc-flash { animation: twgc-flash 1.6s ease-out; }
@keyframes twgc-flash { 0% { background: #fbf1df; } 100% { background: transparent; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.twgc-rides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.twgc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
	.twgc-hero { grid-template-columns: 1fr; }
	.twgc-hero-img { min-height: 260px; order: -1; }
	.twgc-hero-copy { padding: 32px 24px 36px; }
	.twgc-comfort { grid-template-columns: 1fr; }
	.twgc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
	.twgc .twgc-tile { grid-column: 1 / -1; }
	.twgc-faq-grid { grid-template-columns: 1fr; gap: 24px; }
	.twgc-fbar { margin-top: 32px; }
	.twgc-fbar-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; align-items: end; }
	.twgc .twgc-fbar label { flex-direction: column; align-items: stretch; gap: 4px; font-size: 11px; }
	.twgc .twgc-fbar select { width: 100%; }
	.twgc .twgc-toggle { justify-content: center; padding-top: 9px; padding-bottom: 9px; }
	.twgc-count { margin-left: 0; grid-column: 1 / -1; }
	.twgc-card .twgc-where { font-size: 10px; letter-spacing: .06em; left: 8px; top: 8px; padding: 4px 7px; }
	.twgc-pills .twgc-wrap { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; }
	.twgc-pills .twgc-wrap::-webkit-scrollbar { display: none; }
	.twgc-seg { flex: none; max-width: none; overflow: visible; }
	.twgc-step { padding-top: 48px; }
	.twgc-name { font-size: 17px; }
}
@media (max-width: 480px) {
	.twgc-rides { grid-template-columns: 1fr; }
	.twgc .twgc-opt { flex-direction: column; align-items: flex-start; }
	.twgc .twgc-opt img { width: 100%; height: 160px; }
	.twgc-meta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.twgc * { transition: none !important; animation: none !important; }
}
