/* ================================= Home Page Template ================================= */

/* Break Hello Elementor’s boxed .site-main so the page can go edge-to-edge */

/* Standalone theme full-width home */
body.home .site-main.pilgrim-home,
body.page-template-home-page .site-main.pilgrim-home {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding-inline: 0 !important;
}

body.home:not([class*=elementor-page-]) .site-main.pilgrim-home,
body.page-template-home-page .site-main.pilgrim-home {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding-inline: 0 !important;
}

.pilgrim-home {
	--ph-maroon: #9a031e;
	--ph-orange: #fb8b24;
	--ph-dark: #620705;
	--ph-cream: #ffddbe;
	--ph-bg: #fef6ec;
	--ph-container: 1140px;
	background: var(--ph-bg);
	overflow-x: hidden;
}

/* Full-bleed sections (hero, marquee) stay 100% width */
.ph-full {
	width: 100%;
	max-width: none;
}

/* Boxed sections match Elementor container width */
.ph-container {
	width: min(var(--ph-container), calc(100% - 32px));
	max-width: var(--ph-container);
	margin-inline: auto;
}

.ph-section-title {
	color: var(--ph-maroon);
	text-align: center;
	font-size: clamp(1.35rem, 2.4vw, 2rem);
	font-weight: 700;
	margin: 0 0 1rem;
}

.ph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	padding: 10px 22px;
	background: var(--ph-maroon);
	color: #fff !important;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.3s ease, color 0.3s ease;
}

.ph-btn:hover {
	background: var(--ph-orange);
	color: #111 !important;
}

/* Hero — full width */
.ph-hero {
	position: relative;
	width: 100%;
	max-width: none;
}

.ph-hero__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: cover;
	object-position: center;
}

.ph-hero__search {
	position: absolute;
	left: 50%;
	bottom: 8%;
	transform: translateX(-50%);
	width: min(920px, calc(100% - 24px));
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.45);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
	border-radius: 10px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.ph-hero__search .dcs-search {
	width: 100%;
	justify-content: center;
}

.ph-hero__search .dcs-search select,
.ph-hero__search .dcs-search input[type="text"] {
	flex: 1 1 0;
	min-width: 0;
}

.ph-hero__search .dcs-search button {
	flex: 0 0 auto;
	min-width: 110px;
}

/* Marquee — full width */
.ph-marquee {
	width: 100%;
	max-width: none;
	background: transparent;
}

.ph-marquee .temple-marquee-wrapper {
	width: 100%;
}

/* About + explore */
.ph-about {
	padding: 48px 0 24px;
}

.ph-about__intro {
	/* max-width: 900px; */
	margin: 0 auto 36px;
	text-align: center;
}

.ph-about__intro p {
	margin: 0;
	font-size: clamp(0.95rem, 1.5vw, 1.05rem);
	line-height: 1.75;
	color: #333;
	text-align: center;
}

.ph-explore {
	display: flex;
	flex-direction: column;
	gap: 22px;
	align-items: center;
}

.ph-states,
.ph-cities {
	/* display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)); */
	gap: 18px;
	display: flex;
    gap: 18px;
    justify-items: center !important;
}

.ph-cities {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ph-explore__item {
	display: block;
	width: 100%;
	max-width: 190px;
	text-align: center;
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.3s ease;
}

.ph-explore__item:hover {
	transform: translateY(-4px);
}

.ph-explore__item img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--ph-orange);
	border-radius: 17px;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
	background: #fff;
}

.ph-explore__caption {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ph-maroon);
	line-height: 1.3;
}

.ph-explore__cta {
	margin-top: 8px;
	text-align: center;
}

/* Famous temples */
.ph-famous {
	padding: 24px 0 40px;
}

.ph-famous .temple-grid-format {
	margin-top: 10px;
}

/* Promo — full-bleed strip, image constrained inside container */
.ph-promo {
	width: 100%;
	max-width: none;
	padding: 10px 0 30px;
}

.ph-promo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Featured temples */
.ph-featured {
	padding: 10px 0 36px;
}

.ph-featured__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ph-featured__item {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid var(--ph-orange);
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
	text-decoration: none !important;
	color: inherit;
	background: #fff;
	transition: transform 0.3s ease;
}

.ph-featured__item:hover {
	transform: scale(1.02);
}

.ph-featured__item img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.ph-featured__caption {
	display: block;
	padding: 10px 12px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	margin-top: -48px;
	position: relative;
	border-radius: 0 0 12px 12px;
}

/* Gallery */
.ph-gallery {
	padding: 10px 0 56px;
}

.ph-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.ph-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid var(--ph-orange);
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
	text-decoration: none !important;
}

.ph-gallery__item img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	background: #fff8f0;
	transition: transform 0.35s ease;
}

.ph-gallery__item:hover img {
	transform: scale(1.05);
}

.ph-gallery__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 8px 10px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	border-radius: 0 0 12px 12px;
}

.ph-gallery__cta {
	margin-top: 24px;
	text-align: center;
}

/* Tablet */
@media only screen and (max-width: 991px) {
	.ph-states {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ph-cities {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ph-featured__grid,
	.ph-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ph-hero__image {
		max-height: none;
	}
}

/* Mobile */
@media only screen and (max-width: 600px) {
	.ph-about {
		padding: 28px 0 16px;
	}

	.ph-about__intro {
		margin-bottom: 24px;
	}

	.ph-about__intro p {
		text-align: left;
		font-size: 0.92rem;
		line-height: 1.65;
	}

	.ph-hero__search {
		position: static;
		transform: none;
		width: calc(100% - 16px);
		margin: -28px auto 12px;
		padding: 12px;
	}

	.ph-states,
	.ph-cities {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ph-explore__item {
		max-width: none;
	}

	.ph-featured__grid,
	.ph-gallery__grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.ph-featured__item img,
	.ph-gallery__item img {
		height: 140px;
	}

	.ph-promo {
		padding: 0 0 20px;
	}

	.ph-famous {
		padding: 16px 0 28px;
	}
}
