/*
 * FEWAS HOMEPAGE — MOBILE RESPONSIVE REFINEMENTS
 * Scope: homepage only. Desktop rules are not changed except the explicitly
 * scoped book-album height correction.
 */

.fewas-sanctuaries-mobile-dots,
.fewas-sanctuaries-mobile-actions {
	display: none;
}

/* --------------------------------------------------------------------------
   COLLAGE — mobile single-image dots slider
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
	#fewas-home-collage-section {
		padding: 54px 0 56px;
	}

	#fewas-home-collage-section .fewas-home-collage-container {
		width: calc(100% - 28px);
	}

	#fewas-home-collage-section .fewas-home-collage-heading {
		align-items: flex-start;
		gap: 10px;
		margin-bottom: 22px;
	}

	#fewas-home-collage-section .fewas-home-collage-title {
		font-size: clamp(1.9rem, 9vw, 2.45rem);
		line-height: 1.06;
	}

	#fewas-home-collage-section .fewas-home-collage-intro {
		font-size: .8rem;
		line-height: 1.6;
	}

	#fewas-home-collage-section .fewas-home-collage-grid {
		display: block;
		position: relative;
		width: 100%;
		margin: 0;
		overflow: hidden;
	}

	#fewas-home-collage-section .fewas-home-collage-item {
		display: none;
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
		padding: 5px;
		margin: 0;
	}

	#fewas-home-collage-section .fewas-home-collage-item.fewas-collage-mobile-active {
		display: block;
	}

	#fewas-home-collage-section .fewas-home-collage-item:nth-child(n) {
		grid-column: auto;
		grid-row: auto;
	}

	#fewas-home-collage-section .fewas-home-collage-frame {
		width: 100%;
		height: 100%;
	}

	#fewas-home-collage-section .fewas-home-collage-frame img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	#fewas-home-collage-section .fewas-home-collage-dots {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		margin: 14px 0 0;
		min-height: 10px;
	}

	#fewas-home-collage-section .fewas-home-collage-dot {
		display: block;
		width: 5px;
		height: 5px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: rgba(23, 63, 59, .25);
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	#fewas-home-collage-section .fewas-home-collage-dot.is-active {
		width: 7px;
		height: 7px;
		background: var(--fewas-collage-gold);
	}

	#fewas-home-collage-section .fewas-home-collage-footer {
		margin-top: 18px;
	}
}

/* --------------------------------------------------------------------------
   SANCTUARIES — mobile one-card slider + dots + two compact actions
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	#sanctuaries-section {
		padding: 56px 0 !important;
	}

	#sanctuaries-section > div {
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

	#sanctuaries-section > div > div:first-child {
		margin-bottom: 24px !important;
	}

	#sanctuaries-section h2 {
		font-size: clamp(2rem, 9vw, 2.55rem) !important;
		line-height: 1.08 !important;
	}

	#sanctuaries-section .fewas-sanctuaries-grid {
		display: flex;
		flex-wrap: nowrap;
		gap: 0;
		overflow: hidden;
		width: 100%;
	}

	#sanctuaries-section .fewas-sanctuary-card {
		display: none !important;
		flex: 0 0 100%;
		width: 100%;
		min-width: 100%;
		border-radius: 18px;
	}

	#sanctuaries-section .fewas-sanctuary-card.fewas-mobile-room-active {
		display: flex !important;
	}

	#sanctuaries-section .fewas-sanctuary-card-img-wrap {
		aspect-ratio: 16 / 10;
	}

	#sanctuaries-section .fewas-sanctuary-card-body {
		padding: 18px;
		gap: 12px;
	}

	#sanctuaries-section .fewas-sanctuary-card-title {
		font-size: 19px;
	}

	#sanctuaries-section .fewas-sanctuary-card-sub {
		font-size: 12px;
		line-height: 1.5;
	}

	#sanctuaries-section .fewas-sanctuary-card-footer {
		padding-top: 12px;
		margin-top: 4px;
	}

	#sanctuaries-section .fewas-sanctuary-view-btn {
		padding: 8px 12px;
		font-size: 10px;
	}


	#sanctuaries-section .fewas-sanctuary-book-btn {
		display: none !important;
	}

	#sanctuaries-section .fewas-sanctuaries-mobile-dots {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		margin: 14px 0 0;
		min-height: 8px;
	}

	#sanctuaries-section .fewas-sanctuary-room-dot {
		width: 5px;
		height: 5px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: rgba(11,47,46,.22);
		cursor: pointer;
	}

	#sanctuaries-section .fewas-sanctuary-room-dot.is-active {
		width: 7px;
		height: 7px;
		background: #B98A65;
	}

	#sanctuaries-section .fewas-sanctuaries-mobile-actions {
		display: flex;
		width: 100%;
		gap: 8px;
		margin-top: 18px;
	}

	#sanctuaries-section .fewas-sanctuaries-mobile-action-primary,
	#sanctuaries-section .fewas-sanctuaries-mobile-action-secondary {
		flex: 1 1 0;
		min-width: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 11px 8px;
		border-radius: 999px;
		font-size: 10px;
		font-weight: 700;
		letter-spacing: .07em;
		text-transform: uppercase;
		text-decoration: none;
		box-sizing: border-box;
	}

	#sanctuaries-section .fewas-sanctuaries-mobile-action-primary {
		background: #0B2F2E;
		color: #FAF9F5;
	}

	#sanctuaries-section .fewas-sanctuaries-mobile-action-secondary {
		border: 1px solid rgba(11,47,46,.25);
		color: #0B2F2E;
		background: transparent;
	}

	/* Hide the desktop multi-button action row on mobile. */
	#sanctuaries-section .fewas-sanctuaries-mobile-actions ~ * {
		display: none;
	}

	/* The original action row is the direct grid sibling before our mobile dots. */
	#sanctuaries-section .fewas-sanctuaries-grid + div {
		display: none !important;
	}
}

/* --------------------------------------------------------------------------
   AUTHENTIC AYURVEDA — consistent mobile section heading
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	#text-reveal-section {
		padding: 56px 0 !important;
	}

	#text-reveal-section .fewas-reveal-main-heading {
		font-size: clamp(2rem, 9vw, 2.55rem);
		line-height: 1.08;
	}

	#text-reveal-section .fewas-reveal-text-col {
		gap: 18px;
	}

	#text-reveal-section .fewas-reveal-lead-p {
		font-size: .9rem;
		line-height: 1.65;
	}

	#text-reveal-section .fewas-medical-care-card {
		padding: 18px;
	}
}

/* --------------------------------------------------------------------------
   GOOGLE REVIEWS — compact header/filter controls and side navigation
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	#google-reviews-section {
		padding: 56px 0 !important;
	}

	#google-reviews-section .fewas-reviews-main-title {
		font-size: clamp(2rem, 9vw, 2.55rem);
		line-height: 1.08;
		margin-bottom: 6px;
	}

	#google-reviews-section .fewas-reviews-sub-p {
		font-size: .82rem;
		line-height: 1.55;
	}

	#google-reviews-section .fewas-reviews-header-row {
		gap: 18px;
		margin-bottom: 22px;
	}

	#google-reviews-section .fewas-reviews-controls-desktop {
		display: flex;
		align-items: center;
		width: 100%;
		gap: 8px;
		min-width: 0;
	}

	#google-reviews-section .fewas-reviews-filter-bar {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		gap: 6px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 2px;
	}

	#google-reviews-section .fewas-reviews-filter-bar::-webkit-scrollbar {
		display: none;
	}

	#google-reviews-section .fewas-filter-pill {
		flex: 0 0 auto;
		padding: 7px 10px;
		font-size: 9px;
		letter-spacing: .02em;
		white-space: nowrap;
	}

	#google-reviews-section .fewas-reviews-arrow-btns {
		flex: 0 0 auto;
		gap: 5px;
	}

	#google-reviews-section .fewas-slider-arrow {
		width: 32px;
		height: 32px;
	}

	#google-reviews-section .fewas-reviews-track-wrapper {
		overflow: hidden;
		width: 100%;
	}

	#google-reviews-section .fewas-reviews-carousel-track {
		gap: 10px;
		padding: 6px 30px 20px;
		scroll-padding-inline: 30px;
	}

	#google-reviews-section .fewas-review-card-item {
		flex: 0 0 calc(100vw - 58px);
		max-width: none;
		border-radius: 18px;
		padding: 18px;
	}

	#google-reviews-section .fewas-reviews-mob-arrow {
		display: flex;
		width: 30px;
		height: 30px;
	}

	#google-reviews-section .fewas-reviews-mob-arrow.fewas-mob-prev {
		left: 2px;
	}

	#google-reviews-section .fewas-reviews-mob-arrow.fewas-mob-next {
		right: 2px;
	}

	#google-reviews-section .fewas-rcard-header {
		margin-bottom: 12px;
	}

	#google-reviews-section .fewas-rcard-author-left {
		gap: 8px;
		min-width: 0;
	}

	#google-reviews-section .fewas-rcard-avatar-circle {
		width: 34px;
		height: 34px;
		flex: 0 0 34px;
		font-size: .75rem;
	}

	#google-reviews-section .fewas-rcard-name {
		font-size: .95rem;
	}

	#google-reviews-section .fewas-rcard-date {
		font-size: .65rem;
	}

	#google-reviews-section .fewas-rcard-stars svg {
		width: 11px;
		height: 11px;
	}

	#google-reviews-section .fewas-rcard-image-slider-wrap {
		margin-left: 0;
		margin-right: 0;
	}

	#google-reviews-section .fewas-review-card-item .fewas-rcard-body {
		min-width: 0;
	}
}

/* --------------------------------------------------------------------------
   BOOK ALBUM — remove excess bottom space; scoped to this component only.
   -------------------------------------------------------------------------- */
#sanctuary-book-album {
	min-height: 0 !important;
}

@media (min-width: 768px) {
	#sanctuary-book-album {
		padding-top: 78px !important;
		padding-bottom: 48px !important;
		min-height: 0 !important;
	}

	#sanctuary-book-album .fewas-3d-book-stage {
		margin-bottom: 0 !important;
	}
}

@media (max-width: 767px) {
	#sanctuary-book-album {
		padding-top: 54px !important;
		padding-bottom: 38px !important;
		min-height: 0 !important;
	}

	#sanctuary-book-album .fewas-mobile-stage-box {
		height: min(470px, 72vh) !important;
		max-height: none !important;
	}

	#sanctuary-book-album .fewas-mobile-album-wrap {
		max-width: 410px;
	}

	#sanctuary-book-album .fewas-book-ground-shadow {
		bottom: -10px !important;
	}
}

/* --------------------------------------------------------------------------
   CTA + consistent mobile section rhythm
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	#cta-banner-section {
		padding: 58px 0 !important;
	}

	#cta-banner-section .fewas-cta-banner-content {
		width: min(100% - 28px, 760px);
		max-width: 760px;
		padding: 0;
		gap: 15px;
	}

	#cta-banner-section .fewas-cta-banner-title {
		font-size: clamp(2rem, 9vw, 2.55rem);
		line-height: 1.08;
	}

	#cta-banner-section .fewas-cta-banner-desc {
		max-width: 660px;
		font-size: .84rem;
		line-height: 1.6;
	}
}

/* Compact the homepage's mobile section rhythm without touching desktop. */
@media (max-width: 767px) {
	#healing-sea-section,
	#programs-section {
		margin-bottom: 0 !important;
	}
}


/* FEWAS review avatar image: scoped to Google Reviews cards only. */
#google-reviews-section .fewas-rcard-avatar-circle {
	position: relative;
	overflow: hidden;
}

#google-reviews-section .fewas-rcard-avatar-circle img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	border-radius: 50%;
}
