/* THV homepage pillar sections (card 14), ported from design/v2/home.css:
   Marketplace 5-49, Daily 105-130, Education 132-159 + 398-424, Retreat
   161-179 + 384-396, Companies 181-198, breakpoints 426-435.

   The .prod card itself already ships site-wide in shop.css — only the
   scrolling row wrapper lives here. */

/* ---------- shared ---------- */

/* /#daily-style links from any page land at the same offset the card-06
   scroll helper uses for on-page clicks. */
.mkt,
.daily,
.edu,
.ret,
.comp { scroll-margin-top: 120px; }


/* ---------- MARKETPLACE ---------- */

.mkt { background: #fff; }
.mkt__depts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.mkt__dept {
	display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px;
	border-radius: 22px; border: 1px solid var(--line); font-size: 14.5px;
	font-weight: 500; color: var(--muted); background: #fff;
	transition: all .25s var(--ease); cursor: pointer;
}
.mkt__dept svg { color: var(--blue); }
.mkt__dept:hover { border-color: var(--blue); color: var(--blue); }
.mkt__dept.is-active {
	background: var(--grad-btn); color: #fff; border-color: transparent;
	box-shadow: 0 10px 22px -12px rgba(20, 110, 160, .7);
}
.mkt__dept.is-active svg { color: #fff; }

.prod-row {
	display: flex; gap: 22px; overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x mandatory; padding: 8px var(--gutter) 20px; margin-inline: calc(-1 * var(--gutter)); scroll-padding-inline: var(--gutter);
	-webkit-overflow-scrolling: touch; scrollbar-width: thin;
	scrollbar-color: var(--blue) var(--line);
}
.prod-row::-webkit-scrollbar { height: 8px; }
.prod-row::-webkit-scrollbar-track { background: var(--line); border-radius: 4px; }
.prod-row::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--blue) 60%, #fff); border-radius: 4px; }
.prod-row::-webkit-scrollbar-thumb:hover { background: var(--blue); }
.prod-row .prod { flex: 0 0 264px; scroll-snap-align: start; }
.prod-row.is-loading { opacity: .45; transition: opacity .2s var(--ease); }
.prod-row__empty { color: var(--muted); font-weight: 300; padding: 24px 0; }

.mkt__foot { display: flex; justify-content: center; gap: 14px; margin-top: 46px; }

/* ---------- DAILY ---------- */

.daily { background: var(--pale-2); overflow: hidden; }
.daily__grid {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: clamp(30px, 5vw, 72px); align-items: center;
}
.daily__mag { position: relative; display: flex; justify-content: center; }
.mag-cover {
	width: 300px; max-width: 80%; aspect-ratio: 3/4; border-radius: 6px;
	overflow: hidden; position: relative; transform: rotate(-4deg);
	box-shadow: var(--shadow-pop); transition: transform .5s var(--ease);
}
.daily__mag:hover .mag-cover { transform: rotate(-1deg) translateY(-6px); }
.mag-cover__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mag-cover__vl { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 29, 78, .25), rgba(11, 83, 144, .7)); }
.mag-cover__ct { position: relative; height: 100%; padding: 24px; display: flex; flex-direction: column; color: #fff; }
.mag-cover__logo { font-weight: 700; font-size: 26px; letter-spacing: -.01em; }
.mag-cover__issue { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin-top: auto; }
.mag-cover__head { font-weight: 600; font-size: 26px; line-height: 1.1; margin-top: 8px; }
.daily__soon {
	position: absolute; top: 6px; right: 0; background: #46c08a; color: #06301f;
	font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
	padding: 8px 14px; border-radius: 15px; z-index: 3;
}

.daily__body .eyebrow { display: block; margin-bottom: 14px; }
.daily__body h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.01em; }
.daily__body h2 em { font-style: normal; color: var(--blue); font-weight: 600; }
.daily__body p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--muted); font-weight: 300; }
.daily__feat { display: flex; flex-direction: column; gap: 11px; margin-top: 24px; }
.daily__feat div { display: flex; align-items: center; gap: 11px; font-size: 15.5px; color: #33414e; }
.daily__feat svg { color: var(--green); flex: none; }

.daily__signup { display: flex; gap: 9px; margin-top: 28px; max-width: 440px; }
.daily__signup input {
	flex: 1; height: 52px; border-radius: 26px; border: 1.5px solid var(--line);
	background: #fff; padding: 0 20px; font-size: 15px; outline: none;
	transition: border-color .2s; min-width: 0;
}
.daily__signup input:focus { border-color: var(--blue); }
.daily__signup.ok input { border-color: var(--green); }
.daily__signup.is-busy { opacity: .6; pointer-events: none; }
/* the check only appears once the signup succeeded */
.daily__signup .thv-ico--done { display: none; }
.daily__signup.ok .thv-ico--done { display: inline-flex; }

/* ---------- EDUCATION ---------- */

.edu { background: #fff; }
.edu__feature {
	position: relative; border-radius: 20px; overflow: hidden; min-height: 420px;
	display: flex; align-items: flex-end; color: #fff;
	box-shadow: var(--shadow-card); margin-bottom: 30px;
}
.edu__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.edu__feature:hover .edu__bg { transform: scale(1.05); }
.edu__vl { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 29, 78, .15) 0%, rgba(20, 29, 78, .35) 40%, rgba(8, 12, 30, .85) 100%); }

/* the design's whole-card click, as a real link: a transparent anchor over
   the card, with .edu__ct's own links raised above it. */
.edu__hit { position: absolute; inset: 0; z-index: 3; }
.edu__feature:hover .edu__play,
.edu__hit:focus-visible ~ .edu__play { transform: translate(-50%, -50%) scale(1.08); background: rgba(255, 255, 255, .3); }
.edu__hit:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

.edu__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 84px; height: 84px; border-radius: 50%; z-index: 2;
	background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
	border: 1.5px solid rgba(255, 255, 255, .5); display: grid; place-items: center;
	transition: transform .3s var(--ease), background .3s;
}
.edu__play::before {
	content: ""; position: absolute; inset: -10px; border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .4); animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

.edu__free {
	position: absolute; top: 18px; left: 18px; z-index: 4; display: inline-flex;
	align-items: center; gap: 8px; background: #46c08a; color: #06301f;
	font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
	padding: 8px 14px; border-radius: 15px;
}

/* pointer-events pass through the copy so the whole card stays clickable */
.edu__ct { position: relative; z-index: 4; padding: clamp(28px, 4vw, 48px); max-width: 620px; pointer-events: none; }
.edu__ct .row a { pointer-events: auto; }
.edu__ct .eyebrow { color: #bfe0f3; }
.edu__ct h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 600; line-height: 1.08; margin-top: 12px; }
.edu__ct p { margin-top: 14px; font-size: 17px; line-height: 1.55; opacity: .92; font-weight: 300; }
.edu__ct .row { display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.edu__enroll { color: #fff; border-color: rgba(255, 255, 255, .5); }
.edu__enroll:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.edu__modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.emod {
	display: flex; align-items: center; gap: 0; border: 1px solid var(--line);
	border-radius: 14px; overflow: hidden; cursor: pointer; color: inherit;
	transition: border-color .3s, box-shadow .3s, transform .3s;
}
.emod:hover { border-color: transparent; box-shadow: var(--shadow-card); transform: translateY(-4px); }
.emod__img { width: 96px; height: 96px; flex: none; background-size: cover; background-position: center; }
.emod__body { flex: 1; padding: 14px 8px 14px 16px; min-width: 0; }
.emod__n { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); display: block; }
.emod__t { font-size: 17px; font-weight: 600; line-height: 1.15; margin-top: 4px; display: block; }
.emod__teacher { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: block; }
.emod__go { flex: none; width: 42px; display: grid; place-items: center; color: var(--blue); }

.edu__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 30px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.edu__stat { padding: 24px 26px; border-right: 1px solid var(--line); }
.edu__stat:last-child { border-right: none; }
.edu__stat b { font-size: 30px; font-weight: 600; color: var(--navy); display: block; line-height: 1; }
.edu__stat span { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-top: 10px; }
.edu__stat em { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 5px; font-weight: 300; }

/* ---------- RETREAT ---------- */

.ret { background: var(--pale-2); }
.rfeat {
	display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; background: #fff;
	border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
	box-shadow: var(--shadow-card);
}
.rfeat__img { position: relative; min-height: 400px; background-size: cover; background-position: center; }
.rfeat__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 29, 78, 0), rgba(20, 29, 78, .4)); }
.rcard__loc {
	position: absolute; bottom: 13px; left: 13px; z-index: 2; display: flex;
	align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 600;
	background: rgba(5, 8, 20, .4); backdrop-filter: blur(4px); padding: 6px 12px; border-radius: 14px;
}
.rcard__nights { position: absolute; top: 13px; right: 13px; z-index: 2; background: #fff; color: var(--navy); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 13px; }
.rfeat__body { padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; }
.rfeat__title { font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; line-height: 1.08; }
.rfeat__blurb { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--muted); font-weight: 300; }
.rfeat__inc { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.rfeat__inc li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; color: #33414e; }
.rfeat__inc svg { color: var(--green); flex: none; }
.rfeat__datesrow { margin-top: 24px; }
.rfeat__label { font-size: 13.5px; font-weight: 600; color: var(--navy); display: block; margin-bottom: 10px; }
.rcard__dates { display: flex; gap: 7px; flex-wrap: wrap; }
.rcard__date {
	display: inline-flex; align-items: center; min-height: 44px;
	font-size: 12.5px; font-weight: 500; border: 1px solid var(--line);
	border-radius: 22px; padding: 0 14px; color: var(--blue); cursor: pointer;
	background: #fff; transition: all .2s;
}
.rcard__date:hover,
.rcard__date.sel { background: var(--grad-btn); color: #fff; border-color: transparent; }
.rfeat__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rcard__price { font-size: 14px; color: var(--muted); }
.rcard__price b { font-size: 21px; color: var(--navy); font-weight: 600; display: block; }
.rcard__price small { font-size: 13px; font-weight: 400; color: var(--muted); }

/* ---------- COMPANIES BAND ---------- */

.comp { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.comp::before { content: ""; position: absolute; inset: 0; background-image: url('../img/brand-gradient.webp'); background-size: cover; opacity: .3; }
.comp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20, 29, 78, .78), rgba(11, 83, 144, .5)); }
.comp .shell { position: relative; z-index: 2; }
.comp .eyebrow { color: #bfe0f3; }
.comp__head { max-width: 640px; margin-bottom: 42px; }
.comp__head h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; line-height: 1.06; margin-top: 12px; letter-spacing: -.01em; }
.comp__head p { margin-top: 16px; font-size: 18px; line-height: 1.55; opacity: .9; font-weight: 300; }
.comp__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.coff { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; border-radius: var(--r-surface); overflow: hidden; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); isolation: isolate; }
.coff--stand { grid-column: span 7; min-height: 420px; }
.coff--sell { grid-column: span 5; }
.coff--magazine { grid-column: span 5; }
.coff--partner { grid-column: span 7; }
.coff__img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .7s var(--ease); }
.coff--sell .coff__img { background-position: center 30%; }
.coff--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(25, 30, 75, .1) 10%, rgba(25, 30, 75, .93) 100%); }
.coff:hover .coff__img { transform: scale(1.04); }
.coff__body { display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 32px); }
.coff__t { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
.coff--stand .coff__t { font-size: clamp(28px, 3.2vw, 42px); }
.coff__x { font-size: 16px; line-height: 1.5; opacity: 1; margin-top: 10px; font-weight: 400; max-width: 480px; }
.coff__cta { margin-top: 16px; font-size: 15.5px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .5); }
.coff:hover .coff__cta { text-decoration-color: #fff; }

/* ---------- booking modal contact fields (card 14 addition) ---------- */

.modal__fields { display: grid; gap: 12px; margin-top: 18px; }
.modal__field { display: flex; flex-direction: column; gap: 6px; }
.modal__field > span { font-size: 13px; font-weight: 600; color: var(--navy); }
.modal__field > span small { font-weight: 400; color: var(--muted); }
.modal__field input {
	height: 46px; border-radius: 12px; border: 1.5px solid var(--line);
	background: #fff; padding: 0 14px; font-size: 15px; font-family: inherit;
	outline: none; transition: border-color .2s;
}
.modal__field input:focus { border-color: var(--blue); }
/* the travellers stepper sits on its label's line, not under it */
.modal__field--row { flex-direction: row; align-items: center; justify-content: space-between; }

/* ---------- breakpoints (home.css 426-435) ---------- */

@media (max-width: 1080px) {
	.comp__grid { grid-template-columns: repeat(2, 1fr); }
	.coff--stand, .coff--partner { grid-column: 1 / -1; }
	.coff--sell, .coff--magazine { grid-column: span 1; }
	.rfeat { grid-template-columns: 1fr; }
	.edu__modules { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.daily__grid { grid-template-columns: 1fr; }
	.edu__feature { min-height: 340px; }
	.edu__stats { grid-template-columns: 1fr; }
	.edu__stat { border-right: none; border-bottom: 1px solid var(--line); }
	.edu__stat:last-child { border-bottom: none; }
	.rfeat__img { min-height: 240px; }
}

@media (max-width: 520px) {
	.prod-row .prod { flex-basis: 78vw; }
	.comp__grid { grid-template-columns: 1fr; }
	.coff--stand, .coff--partner, .coff--sell, .coff--magazine { grid-column: 1 / -1; min-height: 260px; }
	/* `flex:1` on the input sizes the MAIN axis: once this row stacks, that is
	   the block direction, and flex-basis:0 collapsed the field to 24px tall.
	   Explicit height + auto basis keeps it a usable target on a phone. */
	.daily__signup { flex-direction: column; }
	.daily__signup input { flex: none; width: 100%; height: 52px; }
	.daily__signup .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.edu__play::before { animation: none; }
	.mag-cover,
	.edu__bg,
	.emod,
	.coff__img { transition: none; }
}
