/* Homepage styles. Measurements are copied from Main.dc.html (1280px-wide design). */

.tdid-home { overflow: hidden; }
.tdid-home > p:empty { display: none; }

.tdid-wrap { max-width: var(--tdid-max-width); margin: 0 auto; }

.tdid-section-title {
	margin: 0 0 24px;
	font-family: var(--tdid-font-heading);
	font-weight: 400;
	font-size: 40px;
	line-height: 1.15;
	color: var(--tdid-accent);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}
.tdid-section-title--center { text-align: center; margin-bottom: 32px; }
.tdid-strong-link { font-weight: 700; }

.tdid-button--white,
.tdid-button--white:visited { background: var(--tdid-white); color: var(--tdid-button); font-weight: 800; font-size: 14px; }
.tdid-button--white:hover,
.tdid-button--white:focus { background: var(--tdid-chip); color: var(--tdid-text); }
.tdid-button--large { padding: 14px 32px; font-size: 16px; }

/* ---------- Hero ---------- */
.tdid-hero {
	position: relative;
	height: 700px;
	background: var(--tdid-hero-fallback);
	/* Clip the sides and top, but let the wave hang 6px below the edge. On some screen
	   scales a hard bottom edge shows a hairline of photo under the wave. */
	overflow: visible;
	clip-path: inset(0 0 -8px 0);
}
.tdid-hero + section { position: relative; z-index: 0; }
.tdid-hero__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0;
	animation: tdidHeroFade 30s infinite;
}
.tdid-hero__slide--1 { animation-delay: -1s; }
.tdid-hero__slide--2 { animation-delay: 5s; }
.tdid-hero__slide--3 { animation-delay: 11s; }
.tdid-hero__slide--4 { animation-delay: 17s; }
.tdid-hero__slide--5 { animation-delay: 23s; }
/* Delays start 1s early so the first photo shows immediately on page load. */
@keyframes tdidHeroFade { 0% { opacity: 0; } 3% { opacity: 1; } 20% { opacity: 1; } 23% { opacity: 0; } 100% { opacity: 0; } }

.tdid-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.34)); }
.tdid-hero .tdid-palms { z-index: 1; }
.tdid-hero__text {
	position: absolute;
	left: 0;
	right: 0;
	top: 190px;
	text-align: center;
	padding: 0 24px;
	z-index: 2;
}
.tdid-hero__script {
	font-family: var(--tdid-font-script);
	font-size: 60px;
	line-height: 1;
	color: var(--tdid-white);
	text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.tdid-hero__title {
	margin: 0;
	font-size: 84px;
	line-height: 1;
	color: var(--tdid-white);
	text-shadow: 0 3px 14px rgba(0,0,0,0.35);
}
.tdid-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 150px;
	display: flex;
	justify-content: center;
	gap: 10px;
	z-index: 2;
}
.tdid-hero__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--tdid-white);
	opacity: 0.45;
	animation: tdidDotOn 30s infinite;
}
.tdid-hero__dot--1 { animation-delay: -1s; }
.tdid-hero__dot--2 { animation-delay: 5s; }
.tdid-hero__dot--3 { animation-delay: 11s; }
.tdid-hero__dot--4 { animation-delay: 17s; }
.tdid-hero__dot--5 { animation-delay: 23s; }
@keyframes tdidDotOn { 0% { opacity: 1; } 20% { opacity: 1; } 23% { opacity: 0.45; } 100% { opacity: 0.45; } }
.tdid-hero .tdid-wave { z-index: 2; bottom: -6px; }

/* Reduced motion: show the first photo, no fading */
@media (prefers-reduced-motion: reduce) {
	.tdid-hero__slide--1 { opacity: 1; }
	.tdid-hero__dot--1 { opacity: 1; }
}

/* ---------- Search ---------- */
.tdid-home-search {
	position: relative;
	padding: 24px 48px 64px;
	text-align: center;
}
.tdid-home-search__title { font-size: 44px; margin-bottom: 8px; }
.tdid-home-search__intro { margin: 0 0 28px; font-size: 18px; color: var(--tdid-muted); }
.tdid-search-pill {
	max-width: 620px;
	margin: 0 auto;
	background: var(--tdid-white);
	border-radius: 40px;
	padding: 8px;
	display: flex;
	gap: 8px;
	box-shadow: 0 4px 18px rgba(11,60,73,0.16);
}
.tdid-search-pill input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	border: 0;
	padding: 0 20px;
	font: 400 16px var(--tdid-font-body);
	background: transparent;
	color: var(--tdid-text);
}
.tdid-search-pill input:focus { outline: 2px solid var(--tdid-chip); border-radius: 32px; }
.tdid-search-pill button {
	min-height: 48px;
	padding: 0 30px;
	border: 0;
	border-radius: 32px;
	background: var(--tdid-button);
	color: var(--tdid-white);
	font: 700 15px var(--tdid-font-body);
	cursor: pointer;
}
.tdid-search-pill button:hover,
.tdid-search-pill button:focus { background: var(--tdid-text); }

/* ---------- Category mosaic ---------- */
.tdid-tiles { padding: 0 40px 72px; }
.tdid-mosaic {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: 340px 240px 240px 240px;
	gap: 14px;
}
.tdid-tile {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	background-size: cover;
	background-position: center;
}
.tdid-tile__shade { position: absolute; inset: 0; transition: opacity 0.2s ease; }
.tdid-tile:hover .tdid-tile__shade,
.tdid-tile:focus .tdid-tile__shade { opacity: 0.75; }
.tdid-tile__label {
	position: relative;
	padding: 0 16px;
	font-family: var(--tdid-font-heading);
	font-size: 32px;
	line-height: 1.1;
	color: var(--tdid-white);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
.tdid-tile--family { grid-column: 1; grid-row: 1 / span 2; }
.tdid-tile--dining { grid-column: 2 / span 2; grid-row: 1; }
.tdid-tile--spa    { grid-column: 2; grid-row: 2; }
.tdid-tile--shop   { grid-column: 3; grid-row: 2 / span 2; }
.tdid-tile--stay   { grid-column: 1; grid-row: 3; }
.tdid-tile--beach  { grid-column: 2; grid-row: 3; }
.tdid-tile--crab   { grid-column: 1 / span 2; grid-row: 4; }
.tdid-tile--arts   { grid-column: 3; grid-row: 4; }

/* ---------- Featured listings ---------- */
.tdid-featured { padding: 0 48px 72px; }
.tdid-card-row { display: flex; flex-wrap: wrap; gap: 24px; }
.tdid-listing-card { flex: 1 1 300px; }
.tdid-listing-card__photo {
	height: 220px;
	padding: 16px;
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	background: var(--tdid-chip) center / cover no-repeat;
}
.tdid-listing-card__body { padding: 20px; }
.tdid-listing-card__body h3 { margin: 0 0 6px; font-size: 22px; }
.tdid-listing-card__body p { margin: 0 0 16px; font-size: 14px; }
.tdid-listing-card__body a { font-weight: 700; }

/* ---------- Upcoming events ---------- */
.tdid-upcoming { background: var(--tdid-bg-light); padding: 72px 48px; }
.tdid-event-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.tdid-event-card {
	flex: 1 1 260px;
	display: flex;
	gap: 16px;
	align-items: center;
	background: var(--tdid-white);
	border-radius: 16px;
	padding: 16px;
	text-decoration: none;
	color: var(--tdid-text);
}
.tdid-event-card:hover,
.tdid-event-card:focus { box-shadow: 0 4px 18px rgba(11,60,73,0.12); color: var(--tdid-text); }
.tdid-event-card__date {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	background: var(--tdid-chip);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 13px;
	line-height: 1.1;
	text-align: center;
}
.tdid-event-card__day { font-size: 24px; }
.tdid-event-card__name { display: block; margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.tdid-event-card__meta { display: block; font-size: 14px; color: var(--tdid-muted); }
.tdid-host-bar {
	margin-top: 28px;
	background: var(--tdid-button);
	color: var(--tdid-white);
	border-radius: 16px;
	padding: 14px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.tdid-host-bar p { margin: 0; font-size: 16px; }
.tdid-host-bar strong { font-weight: 800; }
.tdid-host-bar .tdid-button { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Latest posts ---------- */
.tdid-latest { padding: 72px 48px; }
.tdid-section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 32px;
}
.tdid-section-head .tdid-section-title { margin: 0; }
.tdid-post-card { flex: 1 1 300px; display: block; text-decoration: none; color: var(--tdid-text); }
.tdid-post-card__photo {
	display: block;
	height: 200px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: var(--tdid-chip) center / cover no-repeat;
}
.tdid-post-card__title {
	display: block;
	margin: 0 0 6px;
	font-family: var(--tdid-font-heading);
	font-size: 20px;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}
.tdid-post-card:hover .tdid-post-card__title { color: var(--tdid-button); }
.tdid-post-card__meta { display: block; font-size: 14px; color: var(--tdid-muted); }

/* ---------- Instagram ---------- */
.tdid-instagram { padding: 0 48px 56px; text-align: center; }
.tdid-instagram__title {
	margin: 0 0 8px;
	font-family: var(--tdid-font-script);
	font-size: 50px;
	color: var(--tdid-button);
	text-transform: none;
	letter-spacing: 0;
}
.tdid-instagram__intro { margin: 0 0 28px; font-size: 17px; color: var(--tdid-muted); }
.tdid-instagram__feed { margin-bottom: 24px; }
.tdid-admin-note {
	display: inline-block;
	margin: 0;
	padding: 12px 18px;
	border: 1px dashed var(--tdid-border);
	border-radius: 12px;
	background: var(--tdid-bg-light);
	font-size: 14px;
	color: var(--tdid-muted);
}

/* ---------- Own a business? ---------- */
.tdid-owner-cta {
	margin: 0 48px 72px;
	padding: 56px 32px;
	border-radius: 28px;
	background: var(--tdid-button);
	color: var(--tdid-white);
	text-align: center;
}
.tdid-owner-cta h2 { margin: 0 0 12px; font-size: 36px; color: var(--tdid-white); }
.tdid-owner-cta p { margin: 0 0 28px; font-size: 17px; }

/* ---------- Phones and small tablets (mockup: single column below 720px) ---------- */
@media (max-width: 720px) {
	.tdid-hero { height: 520px; }
	.tdid-hero__text { top: 140px; padding: 0 16px; }
	.tdid-hero__script { font-size: 38px; }
	.tdid-hero__title { font-size: 46px; }
	.tdid-hero__dots { bottom: 90px; }

	.tdid-home-search { padding: 8px 16px 48px; }
	.tdid-home-search__title { font-size: 30px; }
	.tdid-home-search__intro { font-size: 16px; }
	.tdid-search-pill button { padding: 0 20px; }

	.tdid-tiles { padding: 0 16px 48px; }
	.tdid-mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
	.tdid-mosaic .tdid-tile { grid-column: auto; grid-row: auto; }
	.tdid-tile__label { font-size: 26px; }

	.tdid-featured, .tdid-upcoming, .tdid-latest { padding-left: 16px; padding-right: 16px; }
	.tdid-upcoming, .tdid-latest { padding-top: 48px; padding-bottom: 48px; }
	.tdid-featured { padding-bottom: 48px; }
	.tdid-section-title { font-size: 30px; }

	.tdid-instagram { padding: 0 16px 40px; }
	.tdid-instagram__title { font-size: 36px; }

	.tdid-owner-cta { margin: 0 16px 48px; padding: 40px 20px; }
	.tdid-owner-cta h2 { font-size: 26px; }
}

/* Instagram feed (Smash Balloon): a row of 5 square photos with rounded corners (Cali, 3 Nov 2026: no arches). */
.tdid-instagram__feed #sb_instagram { width: 100% !important; padding: 0 !important; }
.tdid-instagram__feed #sb_instagram #sbi_images { display: flex !important; flex-wrap: wrap; gap: 14px; padding: 0 !important; grid-template-columns: none !important; }
.tdid-instagram__feed #sb_instagram .sbi_item { flex: 1 1 170px; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.tdid-instagram__feed #sb_instagram .sbi_photo_wrap, .tdid-instagram__feed #sb_instagram .sbi_photo { display: block; height: auto !important; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; }
.tdid-instagram__feed #sb_instagram .sbi_photo { background-size: cover !important; background-position: center !important; }
.tdid-instagram__feed #sb_instagram .sbi_photo img { width: 100%; height: 100% !important; object-fit: cover; }
.tdid-instagram__feed #sb_instagram .sb_instagram_header, .tdid-instagram__feed #sb_instagram #sbi_load, .tdid-instagram__feed #sb_instagram .sbi_follow_btn { display: none !important; }
@media (max-width: 600px) {
	.tdid-instagram__feed #sb_instagram .sbi_item { flex-basis: calc(50% - 7px); }
	.tdid-instagram__feed #sb_instagram .sbi_item:nth-child(5) { display: none; } /* 2 + 2 on phones */
}

/* ---------- "Events This Weekend" banner (inc/events-quick.php) ---------- */
.tdid-weekend { padding: 8px 0 40px; }
.tdid-weekend__card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 40px;
	padding: 32px 36px;
	border-radius: 24px;
	background: var(--tdid-text, #0B3C49);
	color: var(--tdid-white, #FFFFFF);
	box-shadow: 0 14px 30px rgba(11, 60, 73, 0.18);
}
.tdid-weekend__intro { flex: 1 1 300px; }
.tdid-weekend__kicker { margin: 0 0 2px; font-family: "Kaushan Script", cursive; font-size: 26px; color: #FF7A5C; }
.tdid-weekend h2 { margin: 0 0 6px; font-family: "Archivo Black", sans-serif; font-size: 38px; line-height: 1.05; text-transform: uppercase; color: var(--tdid-white, #FFFFFF); }
.tdid-weekend__dates { margin: 0 0 20px; font-size: 16px; font-weight: 700; color: #BFE3EC; }
.tdid-weekend__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 30px;
	background: #FF7A5C;
	color: var(--tdid-text, #0B3C49);
	font-size: 17px;
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.15s ease;
}
.tdid-weekend__btn:hover, .tdid-weekend__btn:focus { background: #FFFFFF; color: var(--tdid-text, #0B3C49); transform: translateY(-2px); }
.tdid-weekend__picks { flex: 1 1 380px; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tdid-weekend__picks a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--tdid-white, #FFFFFF);
	text-decoration: none;
}
.tdid-weekend__picks a:hover, .tdid-weekend__picks a:focus { background: rgba(255, 255, 255, 0.16); color: var(--tdid-white, #FFFFFF); }
.tdid-weekend__day { flex: 0 0 52px; display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 12px; background: var(--tdid-white, #FFFFFF); color: var(--tdid-text, #0B3C49); line-height: 1.1; }
.tdid-weekend__day span { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--tdid-accent, #0E9A90); }
.tdid-weekend__day strong { font-family: "Archivo Black", sans-serif; font-size: 20px; }
.tdid-weekend__name { min-width: 0; }
.tdid-weekend__name strong { display: block; font-size: 16px; }
.tdid-weekend__name > span { display: block; font-size: 13px; color: #BFE3EC; }
.tdid-weekend__tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 10px; background: #FF7A5C; color: var(--tdid-text, #0B3C49); font-size: 10px; font-weight: 800; letter-spacing: 0.05em; vertical-align: middle; }
@media (max-width: 640px) {
	.tdid-weekend__card { padding: 24px 20px; }
	.tdid-weekend h2 { font-size: 30px; }
	.tdid-weekend__btn { width: 100%; justify-content: center; }
}
