/* ==========================================================================
   SECTIONS — Per-section styles scoped to .section-* classes
   ========================================================================== */

/* ---- 1. Hero ---- */
.section-hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background-color: var(--color-deep-sea);
}

.hero-media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1.04);
	transition: transform 8s var(--ease-out);
}
.section-hero.is-visible .hero-media {
	transform: scale(1);
}

.hero-media img.hero-bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(26,58,74,0.35) 0%,
		rgba(26,58,74,0.5) 60%,
		rgba(26,58,74,0.75) 100%
	);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	padding-top: calc(var(--header-height) + 2rem);
	padding-bottom: 4rem;
	text-align: center;
}

.hero-eyebrow {
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-sky);
	margin-bottom: 1rem;
}

.hero-headline {
	font-size: var(--text-hero);
	font-weight: 700;
	color: #fff;
	line-height: 1.1;
	margin-bottom: 1.25rem;
	text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-tagline {
	font-family: var(--font-accent);
	display: block;
	color: var(--color-coral);
	font-size: clamp(1.75rem, 4vw, 3rem);
	line-height: 1.3;
}

.hero-sub {
	font-size: var(--text-lg);
	color: rgba(255,255,255,0.88);
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2rem;
	line-height: var(--leading-snug);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

.hero-scroll-hint {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255,255,255,0.6);
	font-size: var(--text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	animation: hero-bounce 2s ease-in-out infinite;
}

.hero-scroll-hint svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
}

@keyframes hero-bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50%       { transform: translateX(-50%) translateY(6px); }
}

/* ---- 2. Booking ---- */
.section-booking {
	background-color: var(--color-bg-alt);
	padding-top: var(--section-pad);
	padding-bottom: var(--section-pad);
}

.booking-widget-wrap {
	max-width: 900px;
	margin: 0 auto;
	background: #fff;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	min-height: 420px;
}

.booking-widget-wrap iframe {
	width: 100% !important;
	max-width: 100% !important;
	border: none !important;
	display: block;
}

.booking-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	padding: 3rem;
	text-align: center;
	gap: 1rem;
	color: var(--color-text-muted);
}

.booking-placeholder svg {
	width: 48px;
	height: 48px;
	stroke: var(--color-driftwood);
	fill: none;
	opacity: 0.6;
}

.booking-placeholder p {
	font-size: var(--text-lg);
}

/* ---- 3. Gallery — hero mosaic ---- */
.section-gallery {
	background: var(--color-deep-sea);
	padding: 0;
	overflow: hidden;
}

/* ---- Mosaic grid ---- */
.gallery-mosaic {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 320px 320px;
	gap: 3px;
}

/* Tile 1: large left, spans 2 rows */
.mosaic-tile--1 {
	grid-column: 1;
	grid-row: 1 / 3;
}
/* Tiles 2–5: right two columns */
.mosaic-tile--2 { grid-column: 2; grid-row: 1; }
.mosaic-tile--3 { grid-column: 3; grid-row: 1; }
.mosaic-tile--4 { grid-column: 2; grid-row: 2; }
.mosaic-tile--5 { grid-column: 3; grid-row: 2; }

.mosaic-tile {
	overflow: hidden;
	background: var(--color-deep-sea);
	position: relative;
}

.mosaic-btn {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	cursor: pointer;
	background: none;
	position: relative;
	overflow: hidden;
}

.mosaic-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.55s var(--ease-out), filter 0.3s var(--ease-out);
}
.mosaic-btn:hover img {
	transform: scale(1.04);
	filter: brightness(0.85);
}

/* "View all" overlay on the 5th tile */
.mosaic-view-all {
	position: absolute;
	inset: 0;
	background: rgba(26,58,74,0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	color: #fff;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	pointer-events: none;
	transition: background var(--duration) var(--ease-out);
}
.mosaic-btn:hover .mosaic-view-all {
	background: rgba(26,58,74,0.45);
}

.mosaic-view-all svg {
	stroke: #fff;
}

/* Mobile "View all" button — hidden on desktop */
.mosaic-view-all-mobile {
	display: none;
}

.gallery-empty {
	grid-column: 1 / -1;
	padding: 4rem 2rem;
	text-align: center;
	color: rgba(255,255,255,0.5);
}

/* ---- Full-screen gallery overlay ---- */
.gallery-overlay {
	position: fixed;
	inset: 0;
	z-index: 8000;
	background: #0b1820;
	display: flex;
	flex-direction: column;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--duration-md) var(--ease-out);
}
.gallery-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.gallery-overlay__backdrop {
	position: fixed;
	inset: 0;
	z-index: 7999;
	background: #0b1820;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--duration-md) var(--ease-out);
}
.gallery-overlay__backdrop.is-open {
	opacity: 1;
}

/* Header */
.gallery-overlay__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.875rem 1.25rem;
	flex-shrink: 0;
	background: rgba(11,24,32,0.95);
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.gallery-overlay__count {
	font-size: var(--text-sm);
	color: rgba(255,255,255,0.55);
	font-weight: 600;
}

.gallery-overlay__close {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background var(--duration) var(--ease-out);
}
.gallery-overlay__close:hover { background: rgba(255,255,255,0.2); }
.gallery-overlay__close svg  { stroke: #fff; }

/* Viewer area */
.gallery-overlay__viewer {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	min-height: 0;
	padding: 0 60px;
}

.gallery-overlay__main {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gallery-overlay__main img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: var(--radius-sm);
	user-select: none;
}

.gallery-overlay__main video {
	max-width: 100%;
	max-height: 100%;
	border-radius: var(--radius-sm);
	outline: none;
}

.gallery-overlay__main .overlay-caption {
	position: absolute;
	bottom: 0.75rem;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(11,24,32,0.75);
	color: rgba(255,255,255,0.8);
	font-size: var(--text-xs);
	padding: 0.35rem 0.875rem;
	border-radius: var(--radius-full);
	white-space: nowrap;
	max-width: 80%;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Prev / next */
.gallery-overlay__prev,
.gallery-overlay__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background var(--duration) var(--ease-out);
	z-index: 2;
}
.gallery-overlay__prev:hover,
.gallery-overlay__next:hover { background: rgba(255,255,255,0.22); }
.gallery-overlay__prev { left: 10px; }
.gallery-overlay__next { right: 10px; }
.gallery-overlay__prev svg,
.gallery-overlay__next svg { stroke: #fff; }

/* Thumbnail strip */
.gallery-overlay__strip {
	display: flex;
	gap: 4px;
	padding: 10px 12px;
	overflow-x: auto;
	flex-shrink: 0;
	background: rgba(11,24,32,0.95);
	border-top: 1px solid rgba(255,255,255,0.08);
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}
.gallery-overlay__strip::-webkit-scrollbar { height: 4px; }
.gallery-overlay__strip::-webkit-scrollbar-track { background: transparent; }
.gallery-overlay__strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.strip-thumb {
	flex-shrink: 0;
	width: 72px;
	height: 52px;
	border-radius: 4px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	background: rgba(255,255,255,0.07);
	padding: 0;
	position: relative;
	transition: border-color var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
	opacity: 0.65;
}
.strip-thumb:hover   { opacity: 0.9; }
.strip-thumb.is-active { border-color: var(--color-coral); opacity: 1; }

.strip-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.strip-thumb--video {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-deep-sea);
}

.strip-thumb__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	color: rgba(255,255,255,0.9);
	background: rgba(0,0,0,0.35);
	pointer-events: none;
}

.strip-thumb__video-icon {
	font-size: 1.5rem;
	color: rgba(255,255,255,0.5);
}

/* Loading state inside viewer */
.overlay-loading {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255,255,255,0.15);
	border-top-color: var(--color-coral);
	border-radius: 50%;
	animation: overlay-spin 0.7s linear infinite;
}
@keyframes overlay-spin {
	to { transform: rotate(360deg); }
}

/* ---- legacy zoom icon (kept for any reuse) ---- */
.gallery-item .gallery-zoom-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.7);
	opacity: 0;
	background: rgba(255,255,255,0.9);
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
	z-index: 1;
	pointer-events: none;
}
.gallery-item .gallery-zoom-icon svg {
	width: 20px;
	height: 20px;
	stroke: var(--color-deep-sea);
	fill: none;
}
.gallery-item:hover .gallery-zoom-icon {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* ---- 4. Amenities ---- */
.section-amenities {
	background-color: var(--color-bg-alt);
	padding-top: var(--section-pad);
	padding-bottom: var(--section-pad);
}

.amenities-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gap-md);
}

.amenity-item {
	background: #fff;
	border-radius: var(--radius-card);
	padding: 1.75rem 1.25rem 1.5rem;
	text-align: center;
	box-shadow: var(--shadow-sm);
	transition: transform var(--duration) var(--ease-out),
	            box-shadow var(--duration) var(--ease-out);
}
.amenity-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card);
}

.amenity-icon {
	font-size: 2.25rem;
	line-height: 1;
	margin-bottom: 0.875rem;
	display: block;
}

.amenity-label {
	font-family: var(--font-heading);
	font-size: var(--text-base);
	font-weight: 700;
	color: var(--color-deep-sea);
	margin-bottom: 0.375rem;
}

.amenity-desc {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	line-height: var(--leading-snug);
}

/* ---- 5. Location ---- */
.section-location {
	padding-top: var(--section-pad);
	padding-bottom: var(--section-pad);
	background: var(--color-bg);
}

.location-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--gap-xl);
	align-items: start;
}

.location-map {
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	aspect-ratio: 4 / 3;
	background: var(--color-sand);
}

.location-map iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: none;
}

.location-map-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	padding: 2rem;
	text-align: center;
}

.location-info h2 {
	margin-bottom: 1rem;
}

.location-info > p {
	font-size: var(--text-lg);
	color: var(--color-text-muted);
	margin-bottom: 2rem;
}

.location-highlights {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	margin-bottom: 2rem;
}

.location-highlight {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
}

.location-highlight-icon {
	font-size: 1.375rem;
	line-height: 1;
	flex-shrink: 0;
	margin-top: 0.1rem;
}

.location-highlight-text strong {
	display: block;
	font-weight: 600;
	color: var(--color-deep-sea);
	font-size: var(--text-sm);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.15rem;
}

.location-highlight-text span {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

/* ---- 6. Reviews ---- */
.section-reviews {
	background-color: var(--color-bg-alt);
	padding-top: var(--section-pad);
	padding-bottom: var(--section-pad);
}

.reviews-summary-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	margin-top: 0.5rem;
}

.reviews-score-badge {
	background: var(--color-ocean);
	color: #fff;
	font-weight: 700;
	font-size: var(--text-xs);
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	letter-spacing: 0.03em;
}

/* Carousel wrapper — clips the overflow */
.reviews-carousel-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 0;
}

.reviews-carousel__prev,
.reviews-carousel__next {
	flex-shrink: 0;
	width: 44px;
	background: #fff;
	border: 1px solid var(--color-deep-sea-20);
	border-radius: var(--radius-card);
	color: var(--color-deep-sea);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition-fast), color var(--transition-fast);
	z-index: 2;
}

.reviews-carousel__prev:hover,
.reviews-carousel__next:hover {
	background: var(--color-ocean);
	color: #fff;
	border-color: var(--color-ocean);
}

.reviews-carousel__prev:disabled,
.reviews-carousel__next:disabled {
	opacity: 0.3;
	pointer-events: none;
}

/* The scrollable track */
.reviews-carousel {
	flex: 1;
	display: flex;
	gap: var(--gap-md);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 0.25rem 0.5rem 0.5rem;
}

.reviews-carousel::-webkit-scrollbar {
	display: none;
}

/* Cards — each takes 1/3 of the visible track */
.reviews-carousel .review-card {
	flex: 0 0 calc(33.333% - 0.75rem);
	scroll-snap-align: start;
	min-width: 0;
}

/* Footer: counter + CTA */
.reviews-carousel-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1.5rem;
	gap: 1rem;
}

.reviews-carousel-counter {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	white-space: nowrap;
}

.review-card {
	background: #fff;
	border-radius: var(--radius-card);
	padding: 1.5rem 1.5rem;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.review-stars {
	display: flex;
	gap: 3px;
	color: #F5A623;
	font-size: 1.1rem;
	line-height: 1;
}

.review-text {
	font-size: var(--text-base);
	color: var(--color-text);
	line-height: var(--leading-loose);
	flex: 1;
	font-style: italic;
}

.review-text::before { content: ''; }
.review-text::after  { content: ''; }

.review-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border-top: 1px solid var(--color-deep-sea-20);
	padding-top: 0.75rem;
	margin-top: 0.5rem;
}

.review-author-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--color-ocean);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: var(--text-base);
	flex-shrink: 0;
}

.review-author-name {
	font-weight: 700;
	font-size: var(--text-sm);
	color: var(--color-deep-sea);
	display: block;
}

.review-author-location {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}

.reviews-cta {
	text-align: center;
	margin-top: 2.5rem;
}

.no-reviews-placeholder {
	text-align: center;
	padding: 3rem;
	color: var(--color-text-muted);
	background: #fff;
	border-radius: var(--radius-card);
}

/* ---- Inner pages / blog ---- */
.section-blog {
	padding-top: clamp(2rem, 5vw, 3rem);
	padding-bottom: var(--section-pad);
}

.page-header {
	margin-bottom: 2rem;
}

.page-header .page-title {
	font-size: var(--text-3xl);
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--gap-lg);
}

.post-card {
	background: #fff;
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.post-card__thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card__body {
	padding: 1.5rem;
}

.post-card__title {
	font-size: var(--text-xl);
	margin-bottom: 0.5rem;
}
.post-card__title a { color: var(--color-deep-sea); }
.post-card__title a:hover { color: var(--color-coral); }

.post-card__meta {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.75rem;
}

.no-posts {
	text-align: center;
	padding: 4rem 2rem;
}
.no-posts h1 {
	margin-bottom: 1rem;
}
.no-posts p {
	color: var(--color-text-muted);
	margin-bottom: 2rem;
}
