/* Custom editable Gutenberg homepage for Todays Management. */

.home .site-content > .ast-container,
.home .site-main,
.home .content-area,
.home .entry-content {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

.home #primary {
	margin-block: 0 !important;
}

.home .entry-header,
.home .post-thumb,
.home .entry-footer {
	display: none;
}

.home article.page {
	padding: 0;
}

.tm-home {
	overflow: hidden;
	max-width: none !important;
	padding: 0 !important;
	background: var(--tm-cream);
	color: var(--tm-ink);
}

.tm-home *,
.tm-home *::before,
.tm-home *::after {
	box-sizing: border-box;
}

.tm-home > .wp-block-group,
.editor-styles-wrapper .tm-home > .wp-block-group {
	width: 100%;
	max-width: none !important;
	margin-block-start: 0 !important;
	padding-inline: clamp(22px, 5vw, 76px);
}

.tm-home > .wp-block-group > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.tm-home .wp-block-group__inner-container,
.editor-styles-wrapper .tm-home > .wp-block-group > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 1240px;
	margin-inline: auto;
}

.tm-section {
	padding-block: clamp(78px, 10vw, 150px);
}

.tm-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	color: var(--tm-caramel-deep);
	font-size: .69rem;
	font-weight: 700;
	letter-spacing: .19em;
	line-height: 1.4;
	text-transform: uppercase;
}

.tm-eyebrow::before {
	content: "";
	width: 36px;
	height: 1px;
	background: currentColor;
}

.tm-display-heading,
.tm-section-title,
.tm-home h1,
.tm-home h2,
.tm-home h3 {
	color: var(--tm-ink);
	font-family: var(--tm-serif);
	font-weight: 400;
	letter-spacing: -.035em;
}

.tm-display-heading {
	max-width: 800px;
	margin: 0;
	font-size: clamp(2.65rem, 5.1vw, 5.25rem);
	line-height: .98;
}

.tm-section-title {
	margin: 0;
	font-size: clamp(2.3rem, 4vw, 4rem);
	line-height: 1;
}

.tm-copy-large {
	margin: 0;
	color: rgba(35, 48, 43, .76);
	font-size: clamp(1rem, 1.35vw, 1.18rem);
	line-height: 1.8;
}

.tm-text-link {
	margin: 0;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.tm-text-link a {
	border-bottom: 1px solid currentColor;
	color: var(--tm-ink);
	text-decoration: none;
}

.tm-text-link span,
.wp-block-button span {
	display: inline-block;
	margin-left: 7px;
	transition: transform .25s ease;
}

.tm-text-link a:hover span,
.wp-block-button__link:hover span {
	transform: translate(3px, -3px);
}

.tm-home .wp-block-button__link {
	border-radius: 0;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .14em;
	padding: 17px 25px;
	text-transform: uppercase;
	transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.tm-home .is-style-tm-primary .wp-block-button__link {
	position: relative;
	border: 1px solid var(--tm-caramel-deep);
	background: var(--tm-caramel-deep);
	color: var(--tm-white);
}

.tm-home .is-style-tm-primary .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 6px -7px -7px 6px;
	z-index: -1;
	border: 1px solid var(--tm-caramel);
}

.tm-home .is-style-tm-primary .wp-block-button__link:hover {
	background: var(--tm-caramel-deep);
}

.tm-home .is-style-tm-text .wp-block-button__link {
	border-bottom: 1px solid var(--tm-ink);
	background: transparent;
	color: var(--tm-ink);
	padding-inline: 2px;
}

.tm-home .is-style-tm-outline .wp-block-button__link {
	border: 1px solid var(--tm-ink);
	background: transparent;
	color: var(--tm-ink);
}

.tm-home .is-style-tm-outline .wp-block-button__link:hover {
	background: var(--tm-ink);
	color: var(--tm-white);
}

.tm-home .is-style-tm-light .wp-block-button__link {
	border: 1px solid var(--tm-white);
	background: var(--tm-white);
	color: var(--tm-ink-deep);
}

/* Hero */
.tm-home-hero {
	position: relative;
	overflow: hidden;
	padding-top: 0;
	background: var(--tm-ink-deep);
}

.tm-home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(12, 20, 17, .7), rgba(12, 20, 17, .46) 52%, rgba(12, 20, 17, .12));
}

.tm-home-hero__grid {
	position: relative;
	z-index: auto;
	align-items: center !important;
	width: calc(100% + (2 * clamp(22px, 5vw, 76px)));
	max-width: none !important;
	min-height: clamp(700px, 84vh, 880px);
	margin: 0 calc(-1 * clamp(22px, 5vw, 76px)) !important;
	padding: 170px max(32px, calc((100vw - 1240px) / 2)) 120px;
}

.tm-home-hero__copy {
	position: relative;
	z-index: 3;
	flex-basis: min(760px, 68%) !important;
	padding-bottom: 0;
}

.tm-home-hero__title {
	max-width: 810px;
	margin: 0 0 30px;
	font-size: clamp(3.2rem, 5vw, 5rem);
	line-height: .94;
	color: var(--tm-white) !important;
}

.tm-home-hero__title em,
.tm-home-cta__title em {
	color: #f1c8aa;
	font-weight: 400;
}

.tm-home-hero__lede {
	max-width: 590px;
	margin: 0 0 36px;
	color: rgba(255, 253, 249, .84);
	font-size: clamp(1rem, 1.4vw, 1.22rem);
	line-height: 1.75;
}

.tm-home-hero__actions {
	gap: 32px;
}

.tm-home-hero__visual {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	padding: 0;
}

.tm-home-hero__visual::before {
	display: none;
}

.tm-home-hero__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	margin: 0;
	height: 100%;
	overflow: hidden;
}

.tm-home-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tm-home-hero__caption {
	display: none;
}

.tm-home-hero .tm-eyebrow { color: #f1c8aa; }
.tm-home-hero .is-style-tm-text .wp-block-button__link { border-color: var(--tm-white); color: var(--tm-white); }

/* Search bar */
.tm-home > .tm-home-search-wrap {
	position: relative;
	z-index: 6;
	width: 100%;
	margin-top: -58px !important;
	padding: 0 clamp(22px, 5vw, 76px);
	background: linear-gradient(to bottom, transparent 58px, var(--tm-white) 58px);
}

.tm-stay-search {
	position: relative;
	z-index: 5;
	display: grid;
	grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(140px, 1fr)) auto;
	margin: 0 auto;
	padding: 20px;
	max-width: 1240px;
	border: 1px solid rgba(35, 48, 43, .13);
	background: var(--tm-cream);
	box-shadow: 0 24px 65px rgba(20, 29, 25, .18);
}

.tm-stay-search__intro,
.tm-stay-search__field {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 70px;
	padding: 4px 22px;
	border-right: 1px solid var(--tm-rule);
}

.tm-stay-search__eyebrow,
.tm-stay-search__field > span {
	margin-bottom: 7px;
	color: var(--tm-caramel-deep);
	font-size: .61rem;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.tm-stay-search__intro strong {
	font-family: var(--tm-serif);
	font-size: 1.2rem;
	font-weight: 400;
}

.tm-stay-search input,
.tm-stay-search select {
	width: 100%;
	min-height: 32px;
	margin: 0;
	padding: 0 2px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--tm-ink);
	font-family: var(--tm-sans);
	font-size: .88rem;
}

.tm-stay-search input:focus,
.tm-stay-search select:focus {
	outline: 2px solid var(--tm-caramel-deep);
	outline-offset: 4px;
}

.tm-stay-search__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 164px;
	border: 1px solid var(--tm-ink) !important;
	border-radius: 0 !important;
	background: var(--tm-ink) !important;
	color: var(--tm-white) !important;
	font-size: .68rem !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.tm-stay-search__submit:hover {
	background: var(--tm-caramel-deep) !important;
	border-color: var(--tm-caramel-deep) !important;
}

/* Intro + featured stays */
.tm-home-intro {
	padding-top: clamp(105px, 10vw, 150px);
	background: var(--tm-white);
}

.tm-home-intro__grid {
	gap: clamp(44px, 8vw, 130px);
	margin-bottom: 0;
}

.tm-home-featured {
	padding-top: 30px;
	background: var(--tm-white);
}

.tm-section-heading {
	align-items: end;
	gap: 30px;
	margin-bottom: 52px;
}

.tm-section-heading .tm-eyebrow {
	margin-bottom: 14px;
}

.tm-stay-grid {
	gap: clamp(22px, 3vw, 38px);
	margin-bottom: 0;
}

.tm-stay-card {
	height: 100%;
}

.tm-stay-card__image {
	margin: 0 0 20px;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--tm-sand);
}

.tm-stay-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.tm-stay-card__image > a {
	display: block;
	width: 100%;
	height: 100%;
}

.tm-stay-card:hover .tm-stay-card__image img {
	transform: scale(1.035);
}

.tm-stay-card__meta {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 10px;
	color: var(--tm-caramel-deep);
	font-size: .65rem;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.tm-stay-card__rating {
	color: var(--tm-ink);
	letter-spacing: .06em;
}

.tm-stay-card__title {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 2.3vw, 2.2rem);
	line-height: 1.05;
}

.tm-stay-card__title a {
	color: inherit;
	text-decoration: none;
}

.tm-stay-card__facts {
	margin: 0 0 16px;
	color: rgba(35, 48, 43, .72);
	font-size: .84rem;
}

/* Editorial story */
.tm-home-experience {
	background: var(--tm-sand);
}

.tm-home-story {
	gap: clamp(48px, 9vw, 135px);
	margin-bottom: 0;
}

.tm-home-story__visual {
	position: relative;
	padding-left: 34px;
}

.tm-home-story__visual::before {
	content: "";
	position: absolute;
	inset: 42px 30px -28px 0;
	border: 1px solid var(--tm-caramel);
}

.tm-home-story__photo {
	position: relative;
	z-index: 1;
	height: clamp(470px, 50vw, 680px);
	margin: 0;
	overflow: hidden;
}

.tm-home-story__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tm-home-story__number { display: none; }

.tm-home-story__copy {
	padding-block: 40px;
}

.tm-home-story__copy .tm-display-heading {
	margin-bottom: 30px;
}

.tm-detail-list {
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
}

.tm-detail-list li {
	position: relative;
	margin: 0;
	padding: 14px 0 14px 28px;
	border-bottom: 1px solid var(--tm-rule);
	font-size: .92rem;
}

.tm-detail-list li::before {
	content: "✦";
	position: absolute;
	left: 0;
	color: var(--tm-caramel-deep);
}

/* Pillars */
.tm-home-pillars {
	background: var(--tm-ink);
	color: rgba(255, 253, 249, .72);
}

.tm-pillar-grid {
	gap: 0;
	margin: 0;
}

.tm-pillar-grid > .wp-block-column {
	padding: 10px clamp(22px, 3vw, 42px) 26px;
	border-left: 1px solid rgba(255, 253, 249, .18);
}

.tm-pillar-grid > .wp-block-column:first-child {
	padding-left: 0;
	border-left: 0;
}

.tm-pillar-grid h3 {
	margin: 0 0 17px;
	color: var(--tm-white);
	font-size: 1.65rem;
	line-height: 1.05;
}

.tm-pillar-grid p:last-child {
	margin: 0;
	font-size: .88rem;
	line-height: 1.7;
}

.tm-pillar__number {
	margin: 0 0 38px;
	color: #f1c8aa;
	font-family: var(--tm-serif);
	font-size: 1.05rem;
}

/* Lifestyle */
.tm-home-life {
	background: var(--tm-white);
}

.tm-home-life__grid {
	gap: clamp(52px, 9vw, 140px);
	margin-bottom: 0;
}

.tm-home-life__copy .tm-display-heading {
	margin-bottom: 30px;
}

.tm-home-life__copy .wp-block-buttons {
	margin-top: 36px;
}

.tm-home-life__visual {
	position: relative;
	padding: 28px 0 0 28px;
}

.tm-home-life__visual::before {
	content: "";
	position: absolute;
	inset: 0 28px 30px 0;
	background: var(--tm-sand);
}

.tm-home-life__photo {
	position: relative;
	z-index: 1;
	margin: 0;
	height: clamp(440px, 46vw, 630px);
	overflow: hidden;
}

.tm-home-life__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Rating and story */
.tm-home-trust {
	background: var(--tm-sand);
}

.tm-home-trust .wp-block-columns {
	gap: clamp(60px, 11vw, 160px);
	margin: 0;
}

.tm-home-trust__score {
	display: flex;
	align-self: stretch !important;
	flex-direction: column;
	justify-content: center;
	padding: 45px 0 45px clamp(35px, 6vw, 90px);
	border-left: 1px solid var(--tm-caramel);
}

.tm-home .tm-home-trust__stars {
	margin: 0 0 12px;
	color: var(--tm-caramel-deep);
	font-size: 1rem;
	letter-spacing: .28em;
}

.tm-home .tm-home-trust__number {
	margin: 0 0 8px;
	font-size: clamp(4.5rem, 8vw, 7.5rem);
	line-height: .9;
}

.tm-home-trust__number small {
	font-family: var(--tm-sans);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.tm-home .tm-home-trust__score > p:last-child {
	margin: 0;
	color: rgba(35, 48, 43, .72);
	font-size: .84rem;
}

.tm-home-about {
	background: var(--tm-cream);
}

/* Recent guest reviews */
.tm-home-reviews { background: var(--tm-white); }
.tm-home-reviews .tm-section-heading { margin-bottom: 56px; }
.tm-guest-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tm-guest-review { display: flex; flex-direction: column; min-height: 330px; padding: 34px; border: 1px solid var(--tm-rule); background: var(--tm-cream); }
.tm-guest-review__stars { margin: 0 0 28px; color: var(--tm-caramel-deep); font-size: .86rem; letter-spacing: .13em; }
.tm-guest-review blockquote { flex: 1; margin: 0; padding: 0; border: 0; }
.tm-guest-review blockquote p { margin: 0; color: var(--tm-ink); font-family: var(--tm-serif); font-size: clamp(1.25rem, 1.8vw, 1.65rem); line-height: 1.42; }
.tm-guest-review footer { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--tm-rule); }
.tm-guest-review footer strong { color: var(--tm-ink); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.tm-guest-review footer span { color: var(--tm-muted); font-size: .72rem; }

.tm-home-about__grid {
	gap: clamp(55px, 10vw, 155px);
	margin: 0;
}

.tm-home-about__statement {
	margin: 0 0 34px;
	font-family: var(--tm-serif);
	font-size: clamp(1.65rem, 3.1vw, 3.2rem);
	letter-spacing: -.025em;
	line-height: 1.25;
}

/* Closing CTA */
.tm-home-cta {
	position: relative;
	overflow: hidden;
	padding-block: clamp(100px, 13vw, 180px);
	background: var(--tm-ink-deep);
	color: var(--tm-white);
	text-align: center;
}

.tm-home-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(12, 20, 17, .72);
}

.tm-home-cta__photo { position: absolute; inset: 0; z-index: 0; width: 100%; max-width: none !important; height: 100%; margin: 0 !important; }
.tm-home-cta__photo img { width: 100%; height: 100%; object-fit: cover; }
.tm-home-cta > :not(.tm-home-cta__photo) { position: relative; z-index: 2; }

.tm-home-cta .tm-eyebrow {
	justify-content: center;
	color: #fff4ec;
}

.tm-home-cta__title {
	margin: 0 auto 28px;
	max-width: 980px;
	color: var(--tm-white) !important;
	font-size: clamp(3.2rem, 7vw, 7rem);
	line-height: .92;
}

.tm-home-cta__copy {
	margin: 0 auto 38px;
	max-width: 590px;
	color: rgba(255, 253, 249, .9);
	font-size: 1.05rem;
	line-height: 1.75;
}

@media (max-width: 1100px) {
	.tm-stay-search {
		grid-template-columns: 1fr 1fr 1fr;
	}
	.tm-stay-search__intro {
		grid-column: 1 / -1;
		border-right: 0;
		border-bottom: 1px solid var(--tm-rule);
	}
	.tm-stay-search__field:nth-of-type(3) {
		border-right: 0;
	}
	.tm-stay-search__submit {
		grid-column: 1 / -1;
		min-height: 58px;
	}
	.tm-pillar-grid {
		flex-wrap: wrap !important;
	}
	.tm-pillar-grid > .wp-block-column {
		flex-basis: 50% !important;
		margin-bottom: 48px;
	}
}

@media (max-width: 781px) {
	.tm-guest-reviews { grid-template-columns: 1fr; }
	.tm-guest-review { min-height: 0; }
	.tm-home-hero {
		padding-top: 0;
	}
	.tm-home-hero__grid { min-height: 720px; padding: 150px 24px 100px; }
	.tm-home-hero__grid,
	.tm-home-intro__grid,
	.tm-home-story,
	.tm-home-life__grid,
	.tm-home-trust .wp-block-columns,
	.tm-home-about__grid {
		gap: 48px;
	}
	.tm-home-hero__copy {
		padding-bottom: 0;
	}
	.tm-home-hero__title {
		font-size: clamp(3rem, 11vw, 4.2rem);
	}
	.tm-home-hero__visual {
		padding-right: 0;
	}
	.tm-home-hero__photo {
		height: 100%;
	}
	.tm-home > .tm-home-search-wrap {
		margin-top: -44px !important;
		padding-inline: 24px;
		background: linear-gradient(to bottom, transparent 44px, var(--tm-white) 44px);
	}
	.tm-stay-search {
		grid-template-columns: 1fr 1fr;
	}
	.tm-stay-search__field:nth-of-type(2) {
		border-right: 0;
	}
	.tm-stay-search__field:nth-of-type(3) {
		grid-column: 1 / -1;
		border-top: 1px solid var(--tm-rule);
	}
	.tm-home-intro {
		padding-top: 105px;
	}
	.tm-section-heading {
		align-items: flex-start;
	}
	.tm-stay-grid {
		gap: 56px;
	}
	.tm-stay-card__image {
		aspect-ratio: 5 / 4;
	}
	.tm-home-story__visual {
		padding-left: 20px;
	}
	.tm-home-story__copy {
		padding-top: 65px;
	}
	.tm-home-life__copy {
		order: 2;
	}
	.tm-home-life__visual {
		order: 1;
	}
	.tm-home-trust__score {
		padding: 35px 0 0;
		border-top: 1px solid var(--tm-caramel);
		border-left: 0;
	}
}

@media (max-width: 560px) {
	.tm-home > .wp-block-group,
	.editor-styles-wrapper .tm-home > .wp-block-group {
		padding-inline: 20px;
	}
	.tm-home > .tm-home-search-wrap {
		padding-inline: 20px !important;
	}
	.tm-section {
		padding-block: 76px;
	}
	.tm-home-hero__title {
		font-size: clamp(2.8rem, 11.5vw, 3.7rem);
	}
	.tm-home-hero__grid {
		width: calc(100% + 40px);
		margin-inline: -20px !important;
		padding-inline: 20px;
	}
	.tm-home-hero__actions {
		align-items: flex-start;
	}
	.tm-stay-search {
		display: block;
		padding: 14px;
	}
	.tm-stay-search__intro,
	.tm-stay-search__field {
		min-height: 74px;
		border-right: 0;
		border-bottom: 1px solid var(--tm-rule);
	}
	.tm-stay-search__field:nth-of-type(3) {
		border-top: 0;
	}
	.tm-stay-search__submit {
		width: 100%;
		min-height: 58px;
		margin-top: 14px;
	}
	.tm-home-intro {
		padding-top: 165px;
	}
	.tm-display-heading {
		font-size: 2.75rem;
	}
	.tm-pillar-grid > .wp-block-column {
		flex-basis: 100% !important;
		padding: 0 0 38px;
		border-bottom: 1px solid rgba(255, 253, 249, .18);
		border-left: 0;
	}
	.tm-pillar__number {
		margin-bottom: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tm-home *,
	.tm-home *::before,
	.tm-home *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
