/*
Theme Name: Rental Home
Theme URI: https://example.com/
Description: Single-property beachfront vacation rental theme for the Rental Booking plugin — full-bleed hero, feature strip, block-edited content, gallery, map, and booking section.
Author: karis
Version: 2.0.6
License: GPL-2.0-or-later
Text Domain: rental-home
*/

:root {
	--c-ink: #073b44;        /* deep sea teal — headings, footer */
	--c-deep: #05262d;       /* darkest teal */
	--c-sea: #0e8f96;        /* ocean teal — links, accents */
	--c-sea-dark: #0b7378;
	--c-aqua: #7fffd4;       /* aquamarine — bright accents */
	--c-aqua-deep: #4fd1c0;  /* aquamarine mid */
	--c-aqua-soft: #dcf7f1;  /* aquamarine wash */
	--c-sand: #eff7f4;       /* seafoam — alt backgrounds */
	--c-sand-2: #e0f2ec;
	--c-coral: #12b3a6;      /* CTA — aquamarine teal */
	--c-coral-dark: #0d9187;
	--c-text: #2c4a52;       /* body text */
	--c-muted: #63898f;
	--c-border: #d9e8e3;
	--radius: 0;
	--shadow: 0 10px 40px rgba(7, 59, 68, 0.10);
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--c-text);
	background: #fff;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--c-sea); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 500;
	color: var(--c-ink);
	line-height: 1.2;
	margin: 0 0 0.6em;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--c-border);
	transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 6vw;
	max-width: 1280px;
	margin: 0 auto;
}
.site-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}
.site-title a {
	text-decoration: none;
	color: var(--c-ink);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.rb-logo-mark {
	width: 1.5em;
	height: 1.5em;
	flex: none;
	display: block;
}

.site-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--c-text); font-weight: 600; font-size: 0.92rem; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:hover { color: var(--c-sea); }

.site-nav__cta {
	background: var(--c-coral);
	color: #fff !important;
	padding: 0.5rem 1.1rem;
	border-radius: 0;
	transition: background 0.15s ease;
}
.site-nav__cta:hover { background: var(--c-coral-dark); color: #fff !important; }

/* Transparent header floating over the front-page hero */
body.has-hero-header .site-header {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	background: transparent;
	border-bottom-color: transparent;
}
body.has-hero-header .site-title a,
body.has-hero-header .site-nav a { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
body.has-hero-header .site-nav__cta { text-shadow: none; }
body.has-hero-header .site-header--solid {
	position: sticky;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 18px rgba(7, 59, 68, 0.08);
}
body.has-hero-header .site-header--solid .site-title a,
body.has-hero-header .site-header--solid .site-nav a { color: var(--c-text); }
body.has-hero-header .site-header--solid .site-nav__cta { color: #fff !important; }

@media (max-width: 720px) {
	.site-header__inner { flex-direction: column; align-items: center; gap: 0.4rem; }
	.site-nav { justify-content: center; }
	/* Keep the floating header compact on mobile */
	body.has-hero-header .site-header { position: absolute; }
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.rb-hero {
	min-height: 86vh;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	color: #fff;
	position: relative;
	text-align: center;
}
.rb-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 45, 55, 0.18) 0%, rgba(5, 45, 55, 0.06) 45%, rgba(5, 45, 55, 0.48) 100%);
}
.rb-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 880px;
	margin: 0 auto;
	padding: 9rem 6vw 6rem;
}
.rb-hero__eyebrow {
	margin: 0 0 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--c-aqua);
}
.rb-hero__title {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 7vw, 4.8rem);
	margin: 0 0 0.7rem;
	color: #fff;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.rb-hero__tagline {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	margin: 0 auto 2rem;
	max-width: 560px;
	color: rgba(255, 255, 255, 0.92);
}
.rb-hero__actions {
	display: flex;
	gap: 0.8rem;
	justify-content: center;
	flex-wrap: wrap;
}

.rb-button {
	display: inline-block;
	border: none;
	text-decoration: none;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1rem;
	padding: 0.9rem 1.6rem;
	border-radius: 0;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}
.rb-button--primary {
	background: var(--c-coral);
	color: #fff;
	box-shadow: 0 6px 24px rgba(231, 111, 81, 0.4);
}
.rb-button--primary:hover { background: var(--c-coral-dark); transform: translateY(-1px); }
.rb-button--ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(4px);
}
.rb-button--ghost:hover { background: rgba(255, 255, 255, 0.22); }

/* Feature strip overlapping the hero's bottom edge */
.rb-facts {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	max-width: 900px;
	margin: -3.2rem auto 0;
	padding: 0 6vw;
}
.rb-facts__item {
	flex: 1 1 150px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 1.1rem 1rem;
	margin: 0.35rem;
	box-shadow: var(--shadow);
}
.rb-facts__item strong {
	font-family: var(--font-display);
	font-size: 1.35rem;
	color: var(--c-ink);
	line-height: 1.2;
}
.rb-facts__item span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); }
.rb-facts__item .rb-icon { width: 1.35rem; height: 1.35rem; color: var(--c-sea); }

/* ------------------------------------------------------------------ */
/* Content sections                                                    */
/* ------------------------------------------------------------------ */

.rb-home .entry-content {
	max-width: 1180px;
	margin: 4.5rem auto;
	padding: 0 6vw;
}
.page-content {
	max-width: 1180px;
	margin: 3rem auto 4.5rem;
	padding: 0 6vw;
}
.rb-home h2, .entry-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.rb-home h3, .entry-content h3 { font-size: 1.2rem; }

.rb-section-sub {
	text-align: center;
	color: var(--c-muted);
	max-width: 560px;
	margin: -0.4rem auto 2rem;
}

/* Lead paragraph of the Home page reads like an intro */
.entry-content > .rb-lead {
	font-size: 1.15rem;
	line-height: 1.7;
	color: var(--c-text);
}

/* Core block polish */
.wp-block-list { padding-left: 1.2em; }
.wp-block-list li { margin: 0.35rem 0; }
.wp-block-image figcaption { text-align: center; color: var(--c-muted); font-size: 0.85rem; }

/* Gallery — even grid of square cards */
.wp-block-gallery { display: grid !important; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 2rem 0 3rem; }
.wp-block-gallery:has(figure:nth-child(5)) { grid-template-columns: repeat(3, 1fr); }
.wp-block-gallery figure { margin: 0; overflow: hidden; border-radius: 0; background: var(--c-sand); aspect-ratio: 1 / 1; }
.wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.wp-block-gallery figure:hover img { transform: scale(1.04); }

/* Amenity cards (custom HTML blocks on the Home page) */
.rb-amenities {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin: 2rem 0;
	padding: 0;
}
.rb-amenity {
	list-style: none;
	background: var(--c-sand);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 1.2rem 1.3rem;
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rb-amenity:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rb-amenity .rb-icon { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; color: var(--c-sea); margin-top: 0.1rem; }
.rb-amenity strong { display: block; color: var(--c-ink); font-size: 0.98rem; }
.rb-amenity span { display: block; font-size: 0.84rem; color: var(--c-muted); line-height: 1.45; }

/* Two-column feature rows (custom HTML blocks) */
.rb-split {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 2.5rem;
	align-items: center;
	margin: 3rem 0;
}
.rb-split__media { border-radius: 0; overflow: hidden; box-shadow: var(--shadow); }
.rb-split__media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.rb-split--flip .rb-split__media { order: 2; }
@media (max-width: 780px) {
	.rb-split { grid-template-columns: 1fr; gap: 1.2rem; }
	.rb-split--flip .rb-split__media { order: 0; }
}

/* Testimonial quote */
.rb-quote {
	border-left: 3px solid var(--c-aqua);
	background: var(--c-sand);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 1.4rem 1.6rem;
	margin: 2.5rem 0;
	font-family: var(--font-display);
	font-size: 1.15rem;
	color: var(--c-ink);
}
.rb-quote cite { display: block; font-family: var(--font-body); font-style: normal; font-size: 0.85rem; color: var(--c-muted); margin-top: 0.6rem; }

/* FAQ accordions (core details blocks) */
.rb-faq details {
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	padding: 1rem 1.3rem;
	margin: 0.8rem 0;
}
.rb-faq details[open] { background: var(--c-sand); }
.rb-faq summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--c-ink);
	font-size: 1rem;
}
.rb-faq details p { margin: 0.7rem 0 0.2rem; color: var(--c-text); }

/* ------------------------------------------------------------------ */
/* Page banner (inner pages)                                           */
/* ------------------------------------------------------------------ */

.page-banner {
	position: relative;
	padding: 9rem 6vw 4.5rem;
	background: var(--c-ink);
	background-size: cover;
	background-position: center;
	text-align: center;
}
.page-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 45, 55, 0.55), rgba(5, 45, 55, 0.75));
}
.page-banner h1 {
	position: relative;
	z-index: 1;
	color: #fff;
	font-size: clamp(1.9rem, 4vw, 3rem);
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Alternating sections                                                */
/* ------------------------------------------------------------------ */

.rb-section-alt {
	background: var(--c-sand);
	padding: 4rem 6vw;
	text-align: center;
}
.rb-section-alt h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.rb-section-alt .rb-map { max-width: 880px; margin: 0 auto; text-align: left; }

.rb-booking-section {
	padding: 4rem 6vw 5.5rem;
	background: linear-gradient(180deg, #fff 0%, var(--c-sand) 100%);
}
.rb-booking-section > h2:first-child { text-align: center; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.rb-booking-section .rb-widget { max-width: 1080px; margin: 2rem auto; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
	padding: 3.5rem 6vw 2rem;
	background: var(--c-ink);
	color: #b9cdd6;
	font-size: 0.9rem;
}
.site-footer a { color: var(--c-aqua); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr;
	gap: 2.5rem;
	max-width: 1100px;
	margin: 0 auto 2rem;
}
.site-footer__name {
	font-family: var(--font-display);
	font-size: 1.4rem;
	color: #fff;
	margin: 0 0 0.5rem;
}
.site-footer__heading {
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.75rem;
	margin: 0 0 0.8rem;
}
.site-footer__links { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; }
.site-footer__links ul { display: contents; }
.site-footer__badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.site-footer__badges span {
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 0;
	padding: 0.25rem 0.7rem;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}
.site-footer__legal {
	text-align: center;
	color: #7d99a6;
	font-size: 0.8rem;
	margin: 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 780px) {
	.site-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 640px) {
	.site-header { flex-direction: column; gap: 0.5rem; align-items: center; }
	.site-header__inner { flex-direction: column; }
	.rb-hero { min-height: 78vh; }
	.wp-block-gallery { grid-template-columns: 1fr !important; }
	.wp-block-gallery .blocks-gallery-item:first-child { grid-column: span 1; }
	.rb-facts { margin-top: -2.4rem; }
}