/* THF Homepage — Divi editable structure */

body.home {
	background: #050a0e;
}

body.home #et-main-area {
	background: #050a0e;
}

body.home .et_pb_section.thf-home-v2 {
	--thf-bg: #050a0e;
	--thf-panel: #0a1217;
	--thf-panel-2: #0d171d;
	--thf-panel-3: #111d24;
	--thf-line: rgba(255,255,255,.09);
	--thf-line-strong: rgba(255,255,255,.15);
	--thf-text: #f7faf8;
	--thf-muted: #91a19b;
	--thf-accent: #27d98b;
	--thf-accent-soft: rgba(39,217,139,.13);
	--thf-gold: #f3be00;
	background: transparent !important;
	padding: 0 !important;
	min-height: 0 !important;
}

body.home .thf-divi-home-section > .et_pb_row {
	width: min(94%, 1540px) !important;
	max-width: 1540px !important;
	padding: 0 !important;
}

body.home .thf-divi-intro {
	padding-top: 20px !important;
}

body.home .thf-divi-intro > .et_pb_row {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
	gap: 28px;
	align-items: end;
	padding: 18px 4px 16px !important;
}

body.home .thf-divi-intro .et_pb_column {
	width: auto !important;
	margin: 0 !important;
}

body.home .thf-home-intro-copy,
body.home .thf-home-intro-points {
	margin: 0 !important;
}

body.home .thf-home-intro-copy .et_pb_text_inner,
body.home .thf-home-intro-points .et_pb_text_inner {
	color: inherit;
}

body.home .thf-home-intro-copy h1 {
	color: #fff;
	font-size: clamp(32px, 3.2vw, 54px);
	line-height: 1.02;
	font-weight: 800;
	letter-spacing: -.035em;
	margin: 8px 0 10px;
	padding: 0;
}

body.home .thf-home-intro-copy p {
	color: #a9b8b2;
	font-size: 15px;
	line-height: 1.65;
	margin: 0;
}

body.home .thf-home-intro-points .et_pb_text_inner {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

body.home .thf-home-intro-points span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 11px;
	border: 1px solid var(--thf-line);
	border-radius: 999px;
	color: #cbd8d3;
	font-size: 10px;
	line-height: 1;
}

body.home .thf-home-intro-points i {
	color: var(--thf-accent);
}

body.home .thf-divi-featured {
	padding: 0 0 10px !important;
}

body.home .thf-home-top-grid {
	display: grid !important;
	grid-template-columns: minmax(0, 3.15fr) minmax(285px, .9fr);
	gap: 16px;
	align-items: stretch;
}

body.home .thf-home-top-grid > .et_pb_column {
	width: auto !important;
	margin: 0 !important;
}

body.home .thf-featured-hero,
body.home .thf-sponsored-panel {
	height: 100%;
	margin: 0 !important;
	padding: 14px !important;
}

body.home .thf-featured-hero .et_pb_text_inner,
body.home .thf-sponsored-panel .et_pb_text_inner,
body.home .thf-latest-panel .et_pb_text_inner,
body.home .thf-influencer-panel .et_pb_text_inner,
body.home .thf-city-panel .et_pb_text_inner,
body.home .thf-editorial-panel .et_pb_text_inner,
body.home .thf-cuisine-panel .et_pb_text_inner,
body.home .thf-loop-panel .et_pb_text_inner,
body.home .thf-social-panel .et_pb_text_inner,
body.home .thf-business-cta .et_pb_text_inner {
	color: inherit;
}

body.home .thf-divi-trust {
	padding-bottom: 10px !important;
}

body.home .thf-trust-strip {
	display: grid !important;
	grid-template-columns: 1.35fr repeat(4, 1fr);
	gap: 0;
	padding: 13px 16px !important;
	align-items: stretch;
}

body.home .thf-trust-strip > .et_pb_column {
	width: auto !important;
	margin: 0 !important;
	padding: 0 16px;
	border-left: 1px solid var(--thf-line);
}

body.home .thf-trust-strip > .et_pb_column:first-child {
	border-left: 0;
	padding-left: 0;
}

body.home .thf-trust-strip > .et_pb_column:last-child {
	padding-right: 0;
}

body.home .thf-trust-strip .et_pb_text,
body.home .thf-trust-strip .et_pb_blurb {
	margin: 0 !important;
}

body.home .thf-trust-strip .et_pb_text_inner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #91a19b;
	font-size: 9px;
	line-height: 1.45;
}

body.home .thf-trust-strip strong {
	display: block;
	color: #fff;
	font-size: 11px;
	margin-bottom: 2px;
}

body.home .thf-trust-strip i {
	color: var(--thf-accent);
	font-size: 14px;
	margin-top: 1px;
}

body.home .thf-divi-dashboard {
	padding: 0 0 44px !important;
}

body.home .thf-home-content-grid {
	display: grid !important;
	grid-template-columns: minmax(225px, .72fr) minmax(0, 2.3fr) minmax(255px, .82fr);
	gap: 14px;
	align-items: start;
}

body.home .thf-home-content-grid > .et_pb_column {
	width: auto !important;
	margin: 0 !important;
}

body.home .thf-latest-panel,
body.home .thf-home-feed,
body.home .thf-community-rail {
	min-width: 0;
}

body.home .thf-home-feed > .et_pb_module,
body.home .thf-community-rail > .et_pb_module {
	margin-bottom: 10px !important;
}

body.home .thf-home-feed > .et_pb_module:last-child,
body.home .thf-community-rail > .et_pb_module:last-child {
	margin-bottom: 0 !important;
}

body.home .thf-influencer-panel,
body.home .thf-city-panel,
body.home .thf-editorial-panel,
body.home .thf-cuisine-panel,
body.home .thf-loop-panel,
body.home .thf-social-panel,
body.home .thf-business-cta {
	padding: 14px !important;
}

body.home .thf-city-panel {
	padding: 0 14px !important;
}

body.home .thf-section-heading,
body.home .thf-city-panel__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 10px;
}

body.home .thf-section-heading h2,
body.home .thf-city-panel__heading h2 {
	color: #fff !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
	font-weight: 800 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.home .thf-section-heading > a,
body.home .thf-city-panel__heading > a {
	color: var(--thf-accent) !important;
	font-size: 9px;
	font-weight: 750;
	white-space: nowrap;
}

body.home .thf-community-rail h2 {
	color: #fff !important;
	font-size: 16px !important;
	line-height: 1.3 !important;
	margin: 4px 0 7px !important;
}

body.home .thf-community-rail p {
	color: #8fa099;
	font-size: 10px;
	line-height: 1.5;
}

body.home .thf-community-rail .thf-solid-button,
body.home .thf-community-rail .thf-outline-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	padding: 10px 12px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 750;
	margin-top: 8px;
}

body.home .thf-community-rail .thf-solid-button {
	background: var(--thf-accent);
	color: #03100b !important;
}

body.home .thf-community-rail .thf-outline-button {
	border: 1px solid rgba(39,217,139,.35);
	color: var(--thf-accent) !important;
}

body.home .thf-social-links {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

body.home .thf-social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--thf-line);
	border-radius: 8px;
	color: var(--thf-accent) !important;
}

body.home .thf-divi-home-section .et_pb_module {
	box-shadow: none;
}

@media (max-width: 1250px) {
	body.home .thf-home-content-grid {
		grid-template-columns: 220px minmax(0,1fr);
	}
	body.home .thf-community-rail {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(3, minmax(0,1fr));
		gap: 10px;
	}
	body.home .thf-community-rail > .et_pb_module {
		margin: 0 !important;
	}
}

/* Tablet: stop treating the homepage like a squeezed desktop dashboard. */
@media (max-width: 980px) {
	body.home .thf-divi-home-section > .et_pb_row {
		width: calc(100% - 28px) !important;
		max-width: 860px !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	body.home .thf-divi-intro > .et_pb_row,
	body.home .thf-home-top-grid {
		display: block !important;
	}

	body.home .thf-home-content-grid {
		display: flex !important;
		flex-direction: column;
		gap: 12px;
	}

	body.home .thf-home-top-grid > .et_pb_column,
	body.home .thf-home-content-grid > .et_pb_column,
	body.home .thf-divi-intro > .et_pb_row > .et_pb_column {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 12px !important;
	}

	body.home .thf-home-feed { order: 1; }
	body.home .thf-latest-panel { order: 2; }
	body.home .thf-community-rail { order: 3; }

	body.home .thf-home-intro-points .et_pb_text_inner {
		justify-content: flex-start;
	}

	/* Featured listings become a touch-friendly swipe rail. */
	body.home .thf-featured-hero .swiper.ListingSwiper {
		overflow: visible !important;
		width: 100% !important;
	}
	body.home .thf-featured-hero ul.directory-listing.full {
		display: flex !important;
		grid-template: none !important;
		height: auto !important;
		gap: 10px !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding: 0 2px 8px !important;
		scrollbar-width: none;
	}
	body.home .thf-featured-hero ul.directory-listing.full::-webkit-scrollbar { display: none; }
	body.home .thf-featured-hero ul.directory-listing.full > li,
	body.home .thf-featured-hero ul.directory-listing.full > li:nth-child(n) {
		grid-area: auto !important;
		flex: 0 0 min(78vw, 540px) !important;
		width: min(78vw, 540px) !important;
		min-width: min(78vw, 540px) !important;
		height: 300px !important;
		scroll-snap-align: start;
	}

	/* Sponsored cards also swipe instead of making a very tall column. */
	body.home .thf-sponsored-content {
		display: flex !important;
		grid-template-columns: none !important;
		gap: 10px !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
		scrollbar-width: none;
	}
	body.home .thf-sponsored-content::-webkit-scrollbar { display: none; }
	body.home .thf-sponsored-content .ad-wrapper {
		flex: 0 0 min(64vw, 360px);
		min-width: min(64vw, 360px);
		scroll-snap-align: start;
	}

	body.home .thf-trust-strip {
		grid-template-columns: repeat(2, minmax(0,1fr)) !important;
		gap: 0;
		padding: 10px 12px !important;
	}
	body.home .thf-trust-strip > .et_pb_column,
	body.home .thf-trust-strip > .et_pb_column:first-child {
		width: auto !important;
		margin: 0 !important;
		border-left: 0;
		border-top: 1px solid var(--thf-line);
		padding: 10px !important;
	}
	body.home .thf-trust-strip > .et_pb_column:first-child {
		grid-column: 1 / -1;
		border-top: 0;
	}

	body.home .thf-community-rail {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0,1fr));
		gap: 10px;
	}
	body.home .thf-community-rail > .et_pb_module {
		margin: 0 !important;
	}
	body.home .thf-community-rail > .et_pb_module:last-child {
		grid-column: 1 / -1;
	}
}

/* Phone: compact, swipeable discovery UI rather than a long stack of desktop cards. */
@media (max-width: 680px) {
	body.home .thf-divi-home-section > .et_pb_row {
		width: calc(100% - 20px) !important;
		max-width: none !important;
	}

	body.home .thf-divi-intro {
		padding-top: 4px !important;
	}
	body.home .thf-divi-intro > .et_pb_row {
		padding: 10px 0 12px !important;
	}
	body.home .thf-home-intro-copy h1 {
		font-size: clamp(29px, 9vw, 35px);
		line-height: 1.03;
		margin-top: 6px;
	}
	body.home .thf-home-intro-copy p {
		font-size: 13px;
		line-height: 1.5;
	}

	body.home .thf-home-intro-points .et_pb_text_inner {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		padding-bottom: 3px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	body.home .thf-home-intro-points .et_pb_text_inner::-webkit-scrollbar { display: none; }
	body.home .thf-home-intro-points span {
		flex: 0 0 auto;
		font-size: 9px;
		white-space: nowrap;
		padding: 7px 9px;
	}

	body.home .thf-featured-hero,
	body.home .thf-sponsored-panel,
	body.home .thf-influencer-panel,
	body.home .thf-editorial-panel,
	body.home .thf-cuisine-panel,
	body.home .thf-loop-panel,
	body.home .thf-social-panel,
	body.home .thf-business-cta {
		padding: 10px !important;
	}

	body.home .thf-section-heading,
	body.home .thf-city-panel__heading {
		align-items: flex-start;
		gap: 7px;
		margin-bottom: 9px;
	}
	body.home .thf-section-heading h2,
	body.home .thf-city-panel__heading h2 {
		font-size: 15px !important;
		line-height: 1.25 !important;
	}
	body.home .thf-section-heading > a,
	body.home .thf-city-panel__heading > a {
		font-size: 9px;
	}

	body.home .thf-featured-hero ul.directory-listing.full > li,
	body.home .thf-featured-hero ul.directory-listing.full > li:nth-child(n) {
		flex-basis: 86% !important;
		width: 86% !important;
		min-width: 86% !important;
		height: 255px !important;
	}
	body.home .thf-featured-hero li:first-child .listing-wrapper::before {
		top: 10px;
		left: 10px;
		font-size: 7px;
		padding: 5px 7px;
	}
	body.home .thf-featured-hero .avatar-container {
		top: 10px;
		right: 10px;
	}
	body.home .thf-featured-hero li:first-child .avatar-wrapper {
		width: 48px !important;
		height: 48px !important;
	}
	body.home .thf-featured-hero li:first-child .location {
		left: 11px;
		bottom: 76px;
	}
	body.home .thf-featured-hero li:first-child .location + .google-rating {
		left: 110px;
		bottom: 76px;
	}
	body.home .thf-featured-hero li:first-child h3.listing-title {
		left: 11px;
		right: 11px;
		bottom: 39px;
		font-size: 21px !important;
		max-width: 88%;
	}
	body.home .thf-featured-hero li:first-child .listing-wrapper > p {
		left: 11px;
		right: 11px;
		bottom: 11px;
		max-width: 90%;
		font-size: 9px !important;
	}

	body.home .thf-sponsored-content .ad-wrapper {
		flex-basis: 82%;
		min-width: 82%;
	}
	body.home .thf-sponsored-panel .ad-wrapper,
	body.home .thf-sponsored-panel .ad-overlay {
		min-height: 150px;
	}

	/* Five trust items = one full-width brand card + a compact 2x2 grid. */
	body.home .thf-trust-strip {
		grid-template-columns: repeat(2, minmax(0,1fr)) !important;
		padding: 6px 8px !important;
	}
	body.home .thf-trust-strip > .et_pb_column,
	body.home .thf-trust-strip > .et_pb_column:first-child {
		padding: 9px 6px !important;
	}
	body.home .thf-trust-strip .et_pb_text_inner {
		gap: 7px;
		font-size: 8px;
	}
	body.home .thf-trust-strip strong {
		font-size: 10px;
	}

	body.home .thf-home-content-grid {
		gap: 10px;
	}
	body.home .thf-home-feed > .et_pb_module,
	body.home .thf-community-rail > .et_pb_module {
		margin-bottom: 10px !important;
	}

	/* Influencers: swipe row. */
	body.home .thf-influencer-strip {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}
	body.home .thf-influencer-strip::-webkit-scrollbar { display: none; }
	body.home .thf-influencer-strip ul.directory-listing {
		display: flex !important;
		grid-template-columns: none !important;
		width: max-content !important;
		max-width: none !important;
		gap: 8px !important;
	}
	body.home .thf-influencer-strip ul.directory-listing > li {
		flex: 0 0 124px !important;
		width: 124px !important;
		min-width: 124px !important;
		scroll-snap-align: start;
	}

	/* City section stays light and flexible, matching the approved pill treatment. */
	body.home .thf-city-panel {
		padding: 0 0 4px !important;
	}
	body.home .thf-city-panel__heading {
		padding: 0 2px;
	}
	body.home .thf-city-panel .thf-all-locations {
		padding: 0 !important;
	}
	body.home .thf-city-panel .thf-all-locations ul {
		display: flex !important;
		grid-template-columns: none !important;
		flex-wrap: wrap !important;
		gap: 7px !important;
	}
	body.home .thf-city-panel .thf-all-locations li {
		flex: 0 0 auto !important;
		width: auto !important;
	}
	body.home .thf-city-panel .thf-all-locations a {
		width: auto !important;
		min-width: 0 !important;
		white-space: nowrap !important;
		padding-left: 11px !important;
		padding-right: 11px !important;
	}

	/* Editorial cards swipe horizontally to avoid four giant stacked cards. */
	body.home .thf-editorial-grid {
		display: flex !important;
		grid-template-columns: none !important;
		gap: 10px !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 5px;
	}
	body.home .thf-editorial-grid::-webkit-scrollbar { display: none; }
	body.home .thf-editorial-card {
		flex: 0 0 82%;
		min-width: 82%;
		scroll-snap-align: start;
	}
	body.home .thf-editorial-image {
		min-height: 175px;
		height: 175px;
	}

	/* Cuisine cards become a compact swipe carousel. */
	body.home .thf-cuisine-grid {
		display: flex !important;
		grid-template-columns: none !important;
		gap: 8px !important;
		overflow-x: auto !important;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 5px;
	}
	body.home .thf-cuisine-grid::-webkit-scrollbar { display: none; }
	body.home .thf-cuisine-card {
		flex: 0 0 44%;
		min-width: 145px !important;
		min-height: 160px;
		scroll-snap-align: start;
	}

	body.home .thf-latest-panel {
		padding: 10px !important;
	}
	body.home .thf-latest-panel .latest-news li {
		grid-template-columns: 68px minmax(0,1fr) !important;
		gap: 9px !important;
	}
	body.home .thf-latest-panel .news-thumbnail,
	body.home .thf-latest-panel .news-thumbnail img {
		width: 68px !important;
		height: 60px !important;
	}

	body.home .thf-community-rail {
		display: block !important;
	}
	body.home .thf-community-rail > .et_pb_module,
	body.home .thf-community-rail > .et_pb_module:last-child {
		grid-column: auto;
		margin-bottom: 10px !important;
	}

	body.home .thf-divi-dashboard {
		padding-bottom: 26px !important;
	}
}

@media (max-width: 420px) {
	body.home .thf-divi-home-section > .et_pb_row {
		width: calc(100% - 14px) !important;
	}
	body.home .thf-home-intro-copy h1 {
		font-size: 28px;
	}
	body.home .thf-featured-hero ul.directory-listing.full > li,
	body.home .thf-featured-hero ul.directory-listing.full > li:nth-child(n) {
		flex-basis: 89% !important;
		width: 89% !important;
		min-width: 89% !important;
		height: 245px !important;
	}
	body.home .thf-editorial-card {
		flex-basis: 88%;
		min-width: 88%;
	}
	body.home .thf-cuisine-card {
		flex-basis: 47%;
		min-width: 138px !important;
	}
	body.home .thf-latest-panel .latest-news li {
		grid-template-columns: 60px minmax(0,1fr) !important;
	}
	body.home .thf-latest-panel .news-thumbnail,
	body.home .thf-latest-panel .news-thumbnail img {
		width: 60px !important;
		height: 56px !important;
	}
}
