/* ==========================================================================
   Beach Destinations Template
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

:root {
	/* Colors */
	--light-blue: #00aeee;
	--dark-blue: #006498;
	--orange: #f5a623;
	--orange-dark: #e8971a;
	--red-live: #cd1708;
	--text-dark: #2d3436;
	--text-body: #636e72;
	--text-light: #95a5a6;
	--border-light: #e8ecef;
	--bg-light: #f8f9fa;
	--bg-white: #ffffff;
	--yellow-sun: #f9a825;
	--blue-water: #00aeee;

	/* Spacing */
	--section-gap: 50px;
	--block-section-bottom-gap: 20px;
	--card-padding: 30px;
	--card-radius: 18px;
	--btn-radius: 8px;

	/* Typography */
	--font-heading: "Josefin Sans", sans-serif;
	--font-body: "Josefin Sans", sans-serif;
}


/* ==========================================================================
   Page Header
   ========================================================================== */

.main {
	padding-top: 32px;
}

.flex {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.flex::before,
.flex::after {
	display: none;
}

.panel {
	background: var(--bg-light);
	border-radius: var(--card-radius);
	padding: var(--card-padding);
	margin-bottom: 30px;
}

.main h3,
.main h4 {
	color: var(--dark-blue);
	text-transform: none;
}
.main h4 {
	font-size: clamp(18px, 3vw, 24px);
	line-height: 1.25;
}

p {
	font-family: var(--font-body);
	color: var(--text-body);
	letter-spacing: 0;
}


.beach-destinations__header {
	text-align: center;
	margin-bottom: 20px;
}

.beach-destinations__title {
	font-family: var(--font-heading);
	color: var(--light-blue);
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0;
	font-size: clamp(28px, 5vw, 50px);
	padding-bottom: 20px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--text-light);
	text-wrap: balance;
}

.beach-destinations__intro {
	text-align: center;
	color: var(--text-body);
	font-family: var(--font-body);
	/* font-size: clamp(13px, 1.5vw, 16px); */
	letter-spacing: 0;
	margin-bottom: var(--section-gap);
}

.beach-destinations__intro a {
	color: var(--light-blue);
	text-decoration: underline;
}


/* ==========================================================================
   Beach Anchor Navigation
   ========================================================================== */

.beach-nav {
	background: #f1f7fbeb;
	border: 1px solid var(--border-light);
	border-radius: var(--card-radius);
	padding: 20px 30px;
	margin-bottom: var(--section-gap);
	/* scroll-margin-top: 150px; */
}
#beach_nav {
	scroll-margin-top: 150px;
}

.beach-nav__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 0;
	gap: clamp(2px,1vw,8px) 0;
}

.beach-nav__item {
	flex: 0 0 33.333%;
	padding-right: 15px;
}

.beach-nav__item::before {
	content: '\2605';
	color: var(--orange);
	font-size: 10px;
	margin-right: 8px;
}

.beach-nav__link {
	font-family: var(--font-body);
	color: var(--text-dark);
	font-size: 13px;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 0.5px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.beach-nav__link:hover,
.beach-nav__link:focus {
	color: var(--light-blue);
	text-decoration: none;
}

.beach-nav__link--active {
	color: var(--light-blue);
	font-weight: 700;
}


/* ==========================================================================
   Beach Section (each repeater row)
   ========================================================================== */

.beach-section {
	margin-bottom: var(--section-gap);
	scroll-margin-top: 150px;
}

a.back-to-top-link {
	display: block;
	float:  right;
	padding: 12px;
	margin-bottom:  12px;
	color: #888c8f;
	letter-spacing:  0;
	font-size:  14px;
	text-decoration: none;
}

a.back-to-top-link svg {
	height: 14px;
	position: relative;
	top: 3px;
}
a.back-to-top-link:hover {
	color:  #126db2;
}
a.back-to-top-link:hover svg {
	fill:  #126db2;
}

.beach-section__heading {
	text-align: center;
	margin-bottom: 30px;
	padding-top: 20px;
}

.beach-section__title {
	font-family: var(--font-heading);
	font-size: clamp(26px, 6.5vw, 55px);
	font-weight: 700;
	color: var(--text-dark);
	margin: 0;
	position: relative;
	display: inline-block;
}

.beach-section__title::after {
	content: '';
	display: block;
	width: 76px;
	height: 4px;
	background: var(--orange);
	margin: 12px auto 0;
	border-radius: 2px;
}


/* ==========================================================================
   Two Column Section
   ========================================================================== */

.beach-two-col {
	margin-bottom: var(--block-section-bottom-gap);
}

.beach-two-col .flex {
	gap: 0;
	border-radius: var(--card-radius);
	box-shadow: 3px 5px 5px rgba(10, 10, 10, 0.05);
}

.beach-two-col .flex .col-md-6 {
	padding: 0;
}

.beach-two-col > .flex {
	background: #fff;
		max-width: 100%;
			margin: 0 auto;
}

.beach-two-col__media {
	position: relative;
	height: 100%;
}

.beach-two-col__image-wrap {
	position: relative;
	height: 100%;
}

.beach-two-col__image {
	width: 100%;
	height: 100%;
	display: block;
	border-bottom-left-radius: var(--card-radius);
	border-top-left-radius: var(--card-radius);
	aspect-ratio: 100 / 115;
	object-fit: cover;
}

.beach-two-col__map-pin {
	position: absolute;
	top: -40px;
	left: -40px;
	z-index: 2;
}

.beach-two-col__map-image {
	width: 140px;
	height: auto;
}

.beach-two-col__content {
	background-color: #fff;
	padding: 18px 40px 18px 30px;
	border-top-right-radius: var(--card-radius);
	border-bottom-right-radius: var(--card-radius);
}

.beach-two-col__content h2,
.beach-two-col__content h3,
.beach-two-col__content h4 {
	font-family: var(--font-heading);
	color: var(--dark-blue);
	font-size: clamp(18px, 2.5vw, 24px);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 15px;
}

.beach-two-col__content h2,
.beach-two-col__content h3 {
	font-size: clamp(22px, 3vw, 40px);
}

.beach-two-col__content h2::after {
	content: '';
	display: block;
	width: 50px;
	height: 4px;
	background: var(--light-blue);
	margin: 24px 0 24px;
	border-radius: 2px;
}


/* Buttons */
.beach-two-col__buttons {
	display: flex;
	gap: 10px;
	margin-top: 60px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.beach-two-col__btn {
	font-family: var(--font-body);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	font-weight: 600;
	border-radius: var(--btn-radius);
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	letter-spacing: 0;
}

.beach-two-col__btn--primary {
	background: var(--light-blue);
	color: var(--bg-white);
	border: 2px solid var(--light-blue);
}

.beach-two-col__btn--primary:visited { color: #fff;  }
.beach-two-col__btn--primary:hover {
	background: var(--orange-dark);
	border-color: var(--orange-dark);
	color: var(--bg-white);
	text-decoration: none;
}

.beach-two-col__btn--secondary {
	background: var(--bg-white);
	color: var(--text-dark);
	border: 2px solid var(--orange-dark);
}

.beach-two-col__btn--secondary:hover {
	border-color: #2a9de0;
	text-decoration: none;
}
.beach-two-col__btn svg {
	position:  relative;
	top: -2px;
}

/* ==========================================================================
   Live Section
   ========================================================================== */

.beach-live {
	background: var(--bg-light);
	background: #e1e7eb;
	border-radius: var(--card-radius);
	padding: var(--card-padding);
	margin-bottom: var(--block-section-bottom-gap);
}
.beach-live .flex {
	gap: 24px;
}
.beach-live .row {
	margin:  0;
}
.beach-live .flex .col-md-5,
.beach-live .flex .col-md-7 {
	padding: 0;
}

/* ── LIVE NOW badge with pulse ── */

.beach-live__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--red-live);
	font-family: var(--font-body);
	font-size: clamp(14px, 1.5vw, 18px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 20px;
}

.beach-live__badge-dot {
	position: relative;
	width: 10px;
	height: 10px;
	display: inline-block;
	top:  -2px;
}

/* Solid inner dot */
.beach-live__badge-dot::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 12px;
	height: 12px;
	background: var(--red-live);
	border-radius: 50%;
	z-index: 2;
}

/* Expanding pulse ring */
.beach-live__badge-dot::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	background: var(--red-live);
	border-radius: 50%;
	opacity: 0.6;
	z-index: 1;
	animation: live-dot-pulse 1.5s ease-out infinite;
}

@keyframes live-dot-pulse {
	0% {
		width: 8px;
		height: 8px;
		opacity: 0.6;
	}
	100% {
		width: 26px;
		height: 26px;
		opacity: 0;
	}
}

.beach-live__title {
	font-family: var(--font-heading);
	text-wrap: balance;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0 0 10px;
}


/* ── Weather Widget ── */

.beach-live__weather {
	display: flex;
	gap: 15px;
	margin-top: 20px;
}

.beach-live__weather-item {
	/* background: var(--bg-white); */
	background: #f4f8fb;
	border-radius: 8px;
	padding: 12px 20px;
	min-width: 120px;
}

.beach-live__weather-label {
	display: block;
	font-family: var(--font-body);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-light);
	margin-bottom: 4px;
}

.beach-live__weather-value {
	font-family: var(--font-heading);
	font-size: clamp(18px, 2.5vw, 24px);
	font-weight: 700;
	color: var(--text-dark);
}

.beach-live__weather-icon {
	font-size: 16px;
	margin-left: 4px;
}

.beach-live__weather-icon--sun {
	color: var(--yellow-sun);
}

.beach-live__weather-icon--water {
	color: var(--blue-water);
}


/* ── Video Poster + Overlay ── */

.beach-live__video-wrap {
	position: relative;
	border-radius: var(--card-radius);
	overflow: hidden;
	cursor: pointer;
	aspect-ratio: 16 / 9;
}

.beach-live__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Overlay — full-area click/hover target (rendered as <button>) */
.beach-live__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.3s ease;
	transform:  scale(1.5);
}

.beach-live__overlay:hover,
.beach-live__overlay:focus-visible {
	background: rgba(0, 0, 0, 0.4);
}

/* Play SVG — animates on overlay hover */
.beach-live__play-svg {
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
	transition: transform 0.2s ease;
}

.beach-live__overlay:hover .beach-live__play-svg,
.beach-live__overlay:focus-visible .beach-live__play-svg {
	transform: scale(1.12);
}


/* ==========================================================================
   Video Modal
   ========================================================================== */

body.video-modal-open {
	overflow: hidden;
}

.video-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-active {
	visibility: visible;
	opacity: 1;
}

.video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.video-modal__dialog {
	position: relative;
	width: 90%;
	max-width: 900px;
	z-index: 1;
}

.video-modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 8px;
	line-height: 0;
	transition: opacity 0.2s ease;
	z-index: 2;
}

.video-modal__close:hover {
	opacity: 0.7;
}

.video-modal__body {
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}

.video-modal__embed {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
}

.video-modal__embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}


/* ==========================================================================
   Full Width Section
   ========================================================================== */

.beach-full-width {
	background: var(--bg-white);
	border-radius: var(--card-radius);
	box-shadow: 3px 5px 5px rgba(10, 10, 10, 0.05);
	padding: var(--card-padding);
	margin-bottom: var(--block-section-bottom-gap)
}

.beach-full-width__title {
	font-family: var(--font-heading);
	
	font-weight: 700;
	color: var(--text-dark);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 15px;
}

.beach-full-width__buttons {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.beach-full-width__btn {
	font-family: var(--font-body);
	display: inline-block;
	padding: 8px 16px;
	letter-spacing:  0;
	font-weight: 600;
	border-radius: var(--btn-radius);
	text-decoration: none;
	border: 1px solid var(--border-light);
	color: var(--text-dark);
	background: var(--bg-white);
	transition: all 0.2s ease;
}

.beach-full-width__btn:hover {
	border-color: var(--light-blue);
	color: var(--light-blue);
	text-decoration: none;
}

.beach-full-width__content {
	font-family: var(--font-body);
	color: var(--text-body);
	line-height: 1.7;
	margin-bottom: 20px;
}

.beach-full-width__content a {
	/* text-decoration: underline; */
}

.beach-full-width__embed {
	margin-top: 15px;
}

.beach-full-width__embed iframe {
	width: 100%;
	min-height: 400px;
	border: 1px solid var(--border-light);
	border-radius: var(--card-radius);
	margin-bottom: 0;
}


/* ==========================================================================
   Responsive — Tablet (max-width: 991px)
   ========================================================================== */

@media (max-width: 991px) {

	.beach-nav__item {
		flex: 0 0 50%;
	}

	.beach-two-col__buttons {
		margin-top: 30px;
	}

	.beach-two-col__map-pin {
		top: -20px;
		left: -20px;
	}

	.beach-two-col__map-image {
		width: 100px;
	}

	.beach-live .flex {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}

	.beach-live .flex .col-md-5,
	.beach-live .flex .col-md-7 {
		width: 100%;
	}

	.beach-live__video-wrap {
		aspect-ratio: 16 / 9;
	}
}


/* ==========================================================================
   Responsive — Mobile (max-width: 767px)
   ========================================================================== */

@media (max-width: 767px) {

	:root {
		--section-gap: 30px;
		--card-padding: 20px;
		--card-radius: 12px;
	}

	.container {
		width: 98vw;
	}

	/* Nav */
	.beach-nav {
		padding: 15px 20px;
	}

	.beach-nav__item {
		flex: 0 0 100%;
	}

	/* Two-col: stack vertically */
	.beach-two-col .flex {
		flex-direction: column;
	}

	.beach-two-col .flex .col-md-6 {
		width: 100%;
	}

	.beach-two-col__image {
		border-radius: var(--card-radius) var(--card-radius) 0 0;
		aspect-ratio: 16 / 10;
	}

	.beach-two-col__content {
		border-radius: 0 0 var(--card-radius) var(--card-radius);
		padding: 20px;
	}

	.beach-two-col__buttons {
		margin-top: 20px;
	}

	.beach-two-col__map-pin {
		top: -20px;
		left: -20px;
	}

	.beach-two-col__map-image {
		/* width: 70px; */
	}

	/* Live section */
	.beach-live .flex {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}

	.beach-live .flex .col-md-5,
	.beach-live .flex .col-md-7 {
		width: 100%;
	}

	.beach-live__weather {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.beach-live__weather-item {
		min-width: auto;
		flex: 1 1 auto;
	}

	.beach-live__play-svg {
		width: 56px;
		height: 56px;
	}

	/* Full width */
	.beach-full-width__embed iframe {
		min-height: 250px;
	}

	/* Video modal */
	.video-modal__dialog {
		width: 95%;
	}

	.video-modal__close {
		top: -40px;
		right: 4px;
	}




}


/* ==========================================================================
   Responsive — Small Mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {

	:root {
		--block-section-bottom-gap: 0;
	}

	.beach-destinations__header {
		margin-bottom: 15px;
	}

	.beach-destinations__title {
		padding-bottom: 15px;
		margin-bottom: 20px;
	}

	.beach-section__heading {
		margin-bottom: 20px;
		padding-top: 10px;
	}

	.beach-two-col__content {
		padding: 16px;
		border-radius: 0;
		border-bottom:  2px dotted #d4dce3;
	}

	.beach-two-col__map-pin {
		top: -12px;
		left: -12px;
	}
	.beach-live {
		padding: 16px;
		padding-top: 26px;
		background-color: #fff;
		border-radius: 0;
		border-bottom:  2px dotted #d4dce3;
	}

	.beach-live__play-svg {
		width: 48px;
		height: 48px;
	}

	.beach-full-width__embed iframe {
		min-height: 200px;
	}
	.beach-full-width {
		padding:  16px;
		border-top-left-radius: 0;
		border-top-right-radius: 0;
	}

	.video-modal__close {
		top: -36px;
	}

}
