/*
Theme Name: Sand Dunes Theme
Theme URI: https://sanddunesmb.com
Author: Southern Tide Media
Author URI: https://southerntidemedia.com/
Description: A lean, hybrid Gutenberg theme for Sand Dunes.
Version: 1.2.0
Text Domain: sanddunes
*/

/* Global styles are handled primarily by theme.json. */

body {
	line-height: 1.6;
}

a {
	color: var(--wp--preset--color--primary, #0f877d);
}

.has-base-text-color {
    color: var(--wp--preset--color--base-text) !important;
}

/* Custom class to hide list markers */
.no-bullets,
ul.no-bullets,
.no-bullets li,
ul.no-bullets li {
    list-style-type: none !important;
    padding-left: 0 !important;
}

/* Custom Checkmark List */
ul.check-list {
    list-style-type: none !important;
    padding-left: 0 !important;
}

ul.check-list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 20px;
}

ul.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px; /* Align with text baseline */
    width: 24px;
    height: 24px;
    background-color: var(--wp--preset--color--secondary, #15abc3);
    border-radius: 50%;
    /* URL encoded SVG for white checkmark */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}
/* Header Layout */
/* Header Layout */
.site-header {
	background: #ffffff;
	border-bottom: 1px solid #eeeeee;
}

.site-header .header-container {
	max-width: var(--wp--style--global--layout--wideSize, 1390px); /* Matches theme.json */
	margin: 0 auto;
	padding: 0 20px;
}

/* Top Bar */
.top-bar {
	background-color: var(--wp--preset--color--accent);
	color: #ffffff;
	font-size: 13px;
	padding: 10px 0;
}

.top-bar a {
	color: #ffffff;
	text-decoration: none;
}

.top-bar a:hover {
	text-decoration: underline;
}

.top-bar-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.top-location {
	display: flex;
	align-items: center;
	gap: 6px;
}

.top-nav ul {
	display: flex;
	gap: 15px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-nav li {
	border-right: 1px solid rgba(255,255,255,0.3);
	padding-right: 15px;
}

.top-nav li:last-child {
	border-right: none;
	padding-right: 0;
}

/* Main Header */
.site-header .main-header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 220px 15px 20px; /* Gap for the absolute Book Now button */
}

.site-header .site-branding {
	max-width: 200px;
	flex-shrink: 0;
}

.site-header .site-branding img,
.site-header .site-branding .custom-logo {
	max-width: 100%;
	height: auto;
	display: block;
}

.site-header .mega-menu-container {
	flex-grow: 1;
	display: flex;
	justify-content: center; /* Center the menu as shown in PSD */
}

/* Header Action Area */
.header-action-area {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.header-phone {
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	font-size: 16px;
}

.header-cta {
	text-decoration: none;
}

/* Header Button Area Full Height Right Edge */
.main-header-wrapper {
	position: relative;
	background: #ffffff;
}

.header-button-area {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	display: flex;
}

.header-button-area .header-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 40px;
	border-radius: 0 !important;
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0;
	height: 100%;
}

@media (max-width: 1450px) {
	.header-button-area {
		position: static;
		height: auto;
	}
	.header-button-area .header-cta {
		padding: 15px 30px;
	}
	.main-header-wrapper {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.main-header-wrapper .header-container {
		margin: 0;
		max-width: none;
		padding: 15px 20px; /* Reset padding */
	}
}

@media (max-width: 1023px) {
	.top-bar,
	.header-action-area,
	.header-button-area {
		display: none !important;
	}
	
	.main-header-wrapper {
		width: 100%;
		display: block;
	}
	
	.site-header .mega-menu-container {
		flex-grow: 0;
		justify-content: flex-end;
	}
}

/* Accommodation Buildings Grid */
.accommodation-buildings-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 50px;
    justify-content: center;
}

@media (max-width: 992px) {
	.accommodation-buildings-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.accommodation-buildings-grid {
		grid-template-columns: 1fr;
	}
}

.building-card {
	background: #ffffff;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	height: 100%;
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
}

.building-image-link {
	display: block;
	width: 100%;
}

.building-image {
	width: 100%;
	padding-top: 66.66%; /* 3:2 Aspect Ratio */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.building-content {
	padding: 30px 20px 25px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.building-title {
	color: var(--wp--preset--color--primary, #0f877d);
	font-size: 1.15rem;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0 0 15px 0;
}

.building-desc {
	color: var(--wp--preset--color--base-text, #676a6a);
	font-size: 13px;
	line-height: 1.6;
	margin-bottom: 25px;
	flex-grow: 1;
}

.building-desc p {
	margin-bottom: 0;
}

.building-action {
	margin-top: auto;
}

.btn-book-now {
	display: block;
	background-color: var(--wp--preset--color--secondary, #15abc3);
	color: #ffffff;
	text-align: center;
	padding: 12px 20px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 14px;
	transition: background-color 0.3s ease;
}

.btn-book-now:hover {
	background-color: var(--wp--preset--color--primary, #0f877d);
	color: #ffffff;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
	font-family: var(--wp--preset--font-family--primary);
}

/* Connect With Us */
.footer-top-connect {
	background-color: #ffffff;
	padding: 60px 20px;
}

.connect-container {
	max-width: var(--wp--style--global--layout--wideSize, 1390px);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 60px;
}

.connect-content {
	flex: 0 0 45%;
}

.connect-map {
	flex: 1;
}

.connect-map img {
	width: 100%;
	height: auto;
	display: block;
}

.connect-title {
	color: var(--wp--preset--color--secondary, #15abc3);
	font-size: 2.2rem;
	margin-bottom: 5px;
	font-weight: 500;
}

.connect-subtitle {
	color: var(--wp--preset--color--primary, #0f877d);
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 40px;
}

.connect-details {
	margin-bottom: 40px;
}

.connect-item {
	display: flex;
	align-items: center; /* Align icon vertically with text */
	gap: 15px;
	margin-bottom: 25px;
}

.connect-icon {
	color: var(--wp--preset--color--secondary, #15abc3);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 2px solid var(--wp--preset--color--secondary, #15abc3);
	border-radius: 50%;
}

.connect-text {
	color: var(--wp--preset--color--base-text, #676a6a);
	font-size: 14px;
	line-height: 1.5;
}

.connect-text strong {
	color: var(--wp--preset--color--primary, #0f877d);
	font-size: 13px;
	letter-spacing: 0.5px;
	display: block;
	margin-bottom: 2px;
	font-weight: 700;
}

.connect-actions {
	display: flex;
	gap: 15px;
}

.connect-actions a {
	padding: 12px 25px;
	border-radius: 5px;
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	transition: opacity 0.3s ease;
}

.connect-actions a:hover {
	opacity: 0.85;
}

.btn-book {
	background-color: var(--wp--preset--color--primary, #0f877d);
}

.btn-contact {
	background-color: var(--wp--preset--color--secondary, #15abc3);
}

/* Callout Banner */
.footer-callout {
	background-color: var(--wp--preset--color--secondary, #15abc3);
	padding: 25px 20px;
	text-align: center;
}

.callout-container p {
	color: #ffffff;
	margin: 0;
	font-size: 1.4rem;
	font-weight: 300;
}

/* Widget Area */
.footer-widgets-area {
	background-color: var(--wp--preset--color--accent, #39528e);
	padding: 70px 20px 30px;
	color: #ffffff;
}

.widgets-container {
	max-width: var(--wp--style--global--layout--wideSize, 1390px);
	margin: 0 auto 60px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
}

.footer-widget-column .widget-title {
	color: var(--wp--preset--color--secondary, #15abc3);
	font-size: 1.2rem;
	font-weight: 500;
	text-transform: uppercase;
	margin-bottom: 25px;
	margin-top: 0;
}

.footer-widget-column {
	font-size: 13px;
	line-height: 1.8;
}

.footer-widget-column a {
	color: #ffffff;
	text-decoration: none;
}

.footer-widget-column a:hover {
	text-decoration: underline;
}

.footer-widget-column ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-widget-column ul li {
	margin-bottom: 8px;
}

.site-info-container {
	max-width: var(--wp--style--global--layout--wideSize, 1390px);
	margin: 0 auto;
}

.site-copyright {
	color: var(--wp--preset--color--secondary, #15abc3);
	font-size: 13px;
}

/* Responsive Footer */
@media (max-width: 992px) {
	.connect-container {
		flex-direction: column;
	}
	.widgets-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.widgets-container {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Accommodation Rooms
   ========================================================================== */
.accommodation-rooms-wrapper {
	max-width: var(--wp--style--global--layout--wideSize, 1390px);
	margin: 0 auto;
}

.accommodation-room-section {
	background-color: var(--wp--preset--color--alt-background, #e7f6f9);
	padding: 40px;
	margin: 0 auto 60px;
	max-width: var(--wp--style--global--layout--contentSize, 1200px);
}

.room-gallery-container {
	width: 80%;
	margin: 0 auto 30px;
}

/* Slider */
.accommodation-room-slider {
	width: 100%;
}

.accommodation-room-slider img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* Splide Overrides */
.splide__arrow {
	background: rgba(0,0,0,0.5);
	opacity: 1;
	width: 40px;
	height: 40px;
}
.splide__arrow svg {
	fill: #ffffff;
}
.splide__pagination__page.is-active {
	background: var(--wp--preset--color--primary, #0f877d);
}

/* Header & Desc Container */
.room-header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	max-width: 80%;
	margin-left: auto;
	margin-right: auto;
}

.room-desc-container {
	max-width: 80%;
	margin: 0 auto 30px;
	color: var(--wp--preset--color--base-text, #676a6a);
	font-size: 15px;
	line-height: 1.6;
}

.room-title {
	margin: 0;
	color: var(--wp--preset--color--secondary, #15abc3);
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
}

.btn-room-book {
	background-color: var(--wp--preset--color--secondary, #15abc3);
	color: #ffffff;
	padding: 12px 25px;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	transition: background-color 0.3s ease;
}

.btn-room-book:hover {
	background-color: var(--wp--preset--color--primary, #0f877d);
}

/* Info Grid */
.room-info-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	max-width: 80%;
	margin: 0 auto;
}

.room-info-heading {
	color: var(--wp--preset--color--base-text, #676a6a);
	font-size: 1.1rem;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 15px;
}

.room-details-list {
	list-style: none;
	padding: 0;
	margin: 0;
	color: var(--wp--preset--color--base-text, #676a6a);
}

.room-details-list li {
	margin-bottom: 8px;
	font-size: 15px;
}

.room-details-list strong {
	color: #333333;
}

.room-text-content {
	color: var(--wp--preset--color--base-text, #676a6a);
	font-size: 15px;
	line-height: 1.6;
}

.room-text-content p {
	margin-top: 0;
	margin-bottom: 15px;
}

.room-text-content p:last-child {
	margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
	.room-info-grid, .room-header-container, .room-gallery-container, .room-desc-container {
		max-width: 100%;
		width: 100%;
	}
	.room-info-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.room-header-container {
		flex-direction: column;
		text-align: center;
		padding: 0;
		gap: 15px;
	}
	.accommodation-room-section {
		padding: 20px;
	}
}

/* ==========================================================================
   Blog Layout
   ========================================================================== */
.blog-container {
	max-width: var(--wp--style--global--layout--contentSize, 1000px);
	margin: 50px auto;
	padding: 0 20px;
}

.page-header {
	margin-bottom: 40px;
}

.page-title {
	color: var(--wp--preset--color--primary, #0f877d);
	font-size: 2.2rem;
	font-weight: 700;
	margin: 0;
}

.blog-post-card {
	display: flex;
	gap: 30px;
	margin-bottom: 40px;
	background: #ffffff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.blog-post-thumbnail {
	flex: 0 0 150px;
}

.blog-post-thumbnail img {
	width: 150px;
	height: 150px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.blog-post-content {
	flex: 1;
}

.blog-post-title {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 1.5rem;
}

.blog-post-title a {
	color: var(--wp--preset--color--primary, #0f877d);
	text-decoration: none;
}

.blog-post-title a:hover {
	text-decoration: underline;
}

.blog-post-meta {
	font-size: 0.9rem;
	color: #676a6a;
	margin-bottom: 15px;
}

.blog-post-excerpt {
	color: var(--wp--preset--color--base-text, #676a6a);
	font-size: 15px;
	line-height: 1.6;
}

.read-more-link {
	display: inline-block;
	margin-top: 10px;
	color: var(--wp--preset--color--secondary, #15abc3);
	font-weight: bold;
	text-decoration: none;
}

.read-more-link:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.blog-post-card {
		flex-direction: column;
		gap: 15px;
	}
	.blog-post-thumbnail {
		flex: none;
	}
	.blog-post-thumbnail img {
		width: 100%;
		height: auto;
		max-height: 250px;
	}
}

/* ==========================================================================
   Single Post Layout
   ========================================================================== */
.single-post-container,
.single-post-comments {
	max-width: var(--wp--style--global--layout--contentSize, 800px);
	margin: 50px auto;
	padding: 0 20px;
}

.single-post-header {
	text-align: center;
	margin-bottom: 30px;
}

.single-post-title {
	color: var(--wp--preset--color--primary, #0f877d);
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 15px 0;
}

.single-post-meta {
	font-size: 0.95rem;
	color: #676a6a;
}

.single-post-thumbnail {
	margin-bottom: 40px;
	text-align: center;
}

.single-post-thumbnail img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.single-post-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--wp--preset--color--base-text, #333);
}

.single-post-footer {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #eee;
	color: #676a6a;
	font-size: 0.9rem;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Accommodation Hover Block (Shortcode)
   ========================================================================== */
.custom-accomm-block {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
}

.custom-accomm-block a {
    display: block;
    position: relative;
    color: #ffffff;
    text-decoration: none;
}

.custom-accomm-block .img {
    display: block;
    width: 100%;
    position: relative;
}

.custom-accomm-block .img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1.5;
}

.custom-accomm-block .info {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.35s ease-in-out;
    opacity: 0;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.custom-accomm-block:hover .info {
    top: 0;
    opacity: 1;
}

.custom-accomm-block .info h3 {
    margin: 0 0 10px 0 !important;
    background: none !important;
    font-size: 26px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.2;
}

.custom-accomm-block .info p {
    color: #fff !important;
    font-size: 14px !important;
    margin-bottom: 5px;
    line-height: 1.4;
}

