/*
Theme Name: BELAROSA 1.9
Theme URI: https://belarosahotel.com
Author: Hotel BELAROSA
Description: Custom block theme for Hotel BELAROSA Boutique, Antigua Guatemala. Built to turn visitors into direct reservations: persistent "Book" calls to action linked to the Cloudbeds booking engine, a room collection, and the story of the house.
Requires at least: 6.6
Tested up to: 7.2
Requires PHP: 7.4
Version: 1.9.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: belarosa
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
::selection { background: #A8434F; color: #fff; }

/* Eyebrow / small caps label */
.is-style-eyebrow,
.br-eyebrow {
	font-family: Jost, sans-serif;
	font-size: 0.75rem !important;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rose);
}
.has-jade-background-color .br-eyebrow,
.wp-block-cover .br-eyebrow { color: var(--wp--preset--color--gold); }

/* Outline button style */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--ink);
	border-color: #fff;
}
.wp-block-button__link { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }

/* ---------- Header ---------- */
.br-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(8px);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
	background: rgba(247, 241, 232, 0.94) !important;
	border-bottom: 1px solid rgba(43, 36, 32, 0.08);
}
.admin-bar .br-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .br-header { top: 0; } }
.br-header .wp-block-site-title a { text-decoration: none; }
.br-tagline { font-size: 0.6875rem !important; letter-spacing: 0.26em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0.3rem 0 0 !important; line-height: 1 !important; }
.br-header .wp-block-navigation a { text-decoration: none; }
.br-header .wp-block-navigation a:hover { color: var(--wp--preset--color--rose); }
.br-header .wp-block-button__link { padding: 0.85rem 1.4rem; }
@media (max-width: 600px) {
	.br-tagline { display: none; }
	.br-header .wp-block-site-title { font-size: 1.55rem !important; }
	.br-header .wp-block-button__link { padding: 0.75rem 1rem; letter-spacing: 0.1em; }
}

/* ---------- Hero ---------- */
.br-hero .wp-block-cover__inner-container { max-width: 1240px; }
.br-hero h1 { color: #fff; text-wrap: balance; }
.br-hero p { color: rgba(255,255,255,.92); }
.br-hero .wp-block-cover__image-background { animation: br-slowzoom 18s ease-out both; }
@keyframes br-slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .br-hero .wp-block-cover__image-background { animation: none; } }

/* Booking strip under the hero */
.br-strip {
	margin-top: -3.25rem !important;
	position: relative;
	z-index: 2;
	box-shadow: 0 18px 50px -20px rgba(43, 36, 32, 0.35);
}
.br-strip .br-strip-item p { margin: 0; }
.br-strip .br-strip-label { font-size: 0.6875rem !important; letter-spacing: 0.22em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.br-strip .br-strip-value { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; line-height: 1.2; }
@media (max-width: 781px) {
	.br-strip { margin-top: 0 !important; box-shadow: none; }
}

/* ---------- Room cards ---------- */
.br-room-card { background: #fff; height: 100%; display: flex; flex-direction: column; }
.br-room-card .br-room-media { overflow: hidden; margin: 0 !important; aspect-ratio: 4 / 3; background: var(--wp--preset--color--sand); }
.br-room-card .br-room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); display: block; }
.br-room-card:hover .br-room-media img { transform: scale(1.05); }
.br-room-card .br-room-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.br-room-card h3 { margin: 0; font-size: 1.75rem; }
.br-room-card h3 a { color: inherit; text-decoration: none; }
.br-room-meta { font-size: 0.75rem !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0 !important; }
.br-room-note { color: var(--wp--preset--color--muted); margin: 0 !important; font-size: 0.975rem; flex: 1; }
.br-room-link { margin-top: 0.4rem !important; font-size: 0.75rem !important; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.br-room-link a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.br-room-placeholder {
	aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--wp--preset--color--rose) 0%, var(--wp--preset--color--jade) 100%);
	color: #fff; font-family: "Cormorant Garamond", serif; font-size: 2rem; font-style: italic;
}

/* ---------- Amenities ---------- */
.br-amenity { border-top: 1px solid rgba(196, 154, 90, 0.55); padding-top: 1.25rem; }
.br-amenity h4 { margin: 0 0 .35rem; }
.br-amenity p { margin: 0; color: var(--wp--preset--color--muted); font-size: 0.95rem; }
.has-jade-background-color .br-amenity p { color: rgba(255,255,255,.72); }

/* ---------- Media frame ---------- */
.br-frame img { box-shadow: 0 30px 60px -30px rgba(43,36,32,.45); }
.br-offset { position: relative; }
@media (min-width: 782px) {
	.br-offset-img { margin-top: 5rem !important; }
}

/* Map embed */
.br-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(0.85) contrast(1.02); }

/* Footer */
.br-footer a { color: inherit; text-decoration: none; }
.br-footer a:hover { color: var(--wp--preset--color--gold); }
.br-footer .br-footer-small { color: rgba(255,255,255,.6); }

/* Floating mobile booking bar */
.br-mobile-book { display: none; }
@media (max-width: 781px) {
	.br-mobile-book {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
		background: rgba(247,241,232,.97); border-top: 1px solid rgba(43,36,32,.1);
	}
	.br-mobile-book a {
		display: block; text-align: center; background: var(--wp--preset--color--rose); color: #fff;
		font-size: .8125rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
		padding: 1rem; text-decoration: none;
	}
	.br-footer { padding-bottom: calc(var(--wp--preset--spacing--40) + 5rem) !important; }
}

/* Generic page header band */
.br-page-hero h1 { text-wrap: balance; }
.br-text-balance { text-wrap: balance; }

/* ---------- Layout fixes ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.br-room-card > * { margin-block-start: 0 !important; }
.br-map iframe { background: var(--wp--preset--color--sand); }
.wp-block-button.is-style-outline > .wp-block-button__link { padding: calc(1.05rem - 1px) calc(2rem - 1px); }
.br-room-card .br-room-media a { display: block; height: 100%; }

@media (max-width: 781px) {
	.br-strip { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem !important; }
	.br-strip > .wp-block-column:last-child { grid-column: 1 / -1; }
	.br-strip .br-strip-value { font-size: 1.3rem; }
}
@media (min-width: 782px) {
	.br-hero-home { padding-bottom: calc(var(--wp--preset--spacing--70) + 3rem) !important; }
}

/* Wordmark — BELAROSA is always written in capitals */
.br-wordmark { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.85rem !important; font-weight: 500; letter-spacing: 0.14em; line-height: 1 !important; margin: 0 !important; }
.br-wordmark a { color: var(--wp--preset--color--ink); text-decoration: none; }
@media (max-width: 600px) { .br-wordmark { font-size: 1.5rem !important; } }

/* ---------- Language menu ---------- */
.br-lang { position: relative; font-family: Jost, sans-serif; }
.br-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 500; letter-spacing: .12em; padding: .45rem .55rem; border: 1px solid rgba(43,36,32,.18); }
.br-lang summary::-webkit-details-marker { display: none; }
.br-lang summary:hover { border-color: var(--wp--preset--color--rose); }
.br-flag { display: block; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.br-lang-caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.br-lang-list { position: absolute; right: 0; top: calc(100% + .5rem); margin: 0; padding: .4rem 0; list-style: none; background: #fff; min-width: 13rem; box-shadow: 0 18px 40px -12px rgba(43,36,32,.35); z-index: 80; }
.br-lang-list a { display: flex; align-items: center; gap: .7rem; padding: .55rem 1rem; color: var(--wp--preset--color--ink); text-decoration: none; font-size: .95rem; }
.br-lang-list a:hover, .br-lang-list a[aria-current] { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--rose); }
.br-lang-note { padding: .5rem 1rem .3rem; margin-top: .3rem; border-top: 1px solid rgba(43,36,32,.08); font-size: .72rem; color: var(--wp--preset--color--muted); line-height: 1.4; }


@media (max-width: 600px) { .br-lang summary { padding: .4rem; } .br-lang-code, .br-lang-caret { display: none; } }

/* ---------- Book direct / events ---------- */
.br-perk { height: 100%; }
.br-perk > * { margin-block-start: 0; }
.br-perk h3 { font-size: 1.6rem; margin: .4rem 0 .5rem; }
.br-perk p:last-child { color: var(--wp--preset--color--muted); margin: 0; }
.br-perk-num { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.1rem !important; color: var(--wp--preset--color--gold); margin: 0 !important; }
.br-stat { border-top: 1px solid rgba(196,154,90,.55); padding-top: 1rem; }
.br-stat p { margin: 0; color: rgba(255,255,255,.75); }
.br-stat .br-stat-num { font-family: "Cormorant Garamond", serif; font-size: clamp(3rem, 6vw, 4.5rem) !important; line-height: 1; color: #fff; margin-bottom: .5rem !important; }
.br-checklist { padding-left: 0; list-style: none; }
.br-checklist li { padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid rgba(43,36,32,.08); position: relative; }
.br-checklist li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .5rem; height: .5rem; background: var(--wp--preset--color--rose); transform: rotate(45deg); }

/* Header fit */
.br-header .wp-block-button__link, .br-header .wp-block-navigation-item__label, .br-tagline { white-space: nowrap; }
.br-header .wp-block-navigation__container { flex-wrap: nowrap; }
.br-header .wp-block-navigation { letter-spacing: 0.1em; }
@media (max-width: 1360px) { .br-tagline { display: none; } }
@media (max-width: 1240px) { .br-header .br-nav-optional { display: none; } }
@media (max-width: 600px) { .br-header .wp-block-button__link { padding: 0.7rem 0.85rem; font-size: 0.72rem; } .br-wordmark { font-size: 1.35rem !important; letter-spacing: .1em; } }
@media (max-width: 1520px) { html[lang="es"] .br-tagline { display: none; } }

/* Room photos always fill the card's photo area */
.br-room-card .br-room-media { aspect-ratio: 4 / 3 !important; height: auto !important; }
.br-room-card .br-room-media > a { display: block; width: 100%; height: 100%; }
.br-room-card .br-room-media img { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: cover !important; }

/* ---------- Two booking options (1.7) ---------- */
.br-wa > .wp-block-button__link {
	background: #1F7A4C;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
}
.br-wa > .wp-block-button__link:hover { background: #17603B; color: #fff; }
.br-wa > .wp-block-button__link::before,
.br-room-wa::before,
.br-mb-wa::before {
	content: "";
	width: 1.05em;
	height: 1.05em;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.6.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.8-1.4.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4 5.2 5.2 0 0 0 3.2.7 2.7 2.7 0 0 0 1.8-1.3 2.2 2.2 0 0 0 .2-1.3c-.1-.1-.2-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.6.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.8-1.4.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4 5.2 5.2 0 0 0 3.2.7 2.7 2.7 0 0 0 1.8-1.3 2.2 2.2 0 0 0 .2-1.3c-.1-.1-.2-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Footer: WhatsApp button stays readable on the dark green */
.br-footer .br-wa > .wp-block-button__link { background: #fff; color: #1F7A4C; }
.br-footer .br-wa > .wp-block-button__link:hover { background: #F7F1E8; color: #17603B; }

/* Header: compact pair */
.br-book-pair-header { gap: .5rem; flex-wrap: nowrap; }
.br-book-pair-header .wp-block-button__link { padding: .8rem 1rem; font-size: .72rem; letter-spacing: .1em; white-space: nowrap; }
@media (max-width: 1600px) { .br-header .br-tagline { display: none; } }
@media (max-width: 1500px) { .br-header .br-nav-optional { display: none; } }

@media (max-width: 781px) { .br-header .br-book-pair-header { display: none !important; } }

/* Booking strip: the two buttons stack inside their column */
.br-strip .wp-block-buttons { gap: .5rem; }
.br-strip .wp-block-button__link { padding: .9rem 1rem; }

/* Room cards: two links, stacked */
.br-room-link { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.br-room-link a { display: inline-flex; align-items: center; gap: .45rem; }
.br-room-link .br-room-wa { color: #1F7A4C; }
.br-room-link .br-room-wa:hover { color: #17603B; }

/* Phones: every pair stacks full width */
@media (max-width: 600px) {
	.wp-block-buttons > .wp-block-button.br-web,
	.wp-block-buttons > .wp-block-button.br-wa { width: 100%; }
	.wp-block-buttons > .wp-block-button.br-web > .wp-block-button__link,
	.wp-block-buttons > .wp-block-button.br-wa > .wp-block-button__link { width: 100%; text-align: center; }
	.wp-block-buttons > .wp-block-button.is-style-outline { width: 100%; }
	.wp-block-buttons > .wp-block-button.is-style-outline > .wp-block-button__link { width: 100%; }
}

/* Floating phone bar: two options side by side */
@media (max-width: 781px) {
	.br-mobile-book { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
	.br-mobile-book a { padding: .9rem .5rem; font-size: .7rem; letter-spacing: .08em; display: flex; align-items: center; justify-content: center; gap: .4rem; }
	.br-mobile-book .br-mb-wa { background: #1F7A4C; }
}

/* Tablets / small laptops: menu moves into the ☰ button so both booking buttons fit */
@media (min-width: 600px) and (max-width: 1180px) {
	.br-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.br-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}

/* The ☰ menu must open full-screen (a blur effect on the header was trapping it) */
.br-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #F7F1E8 !important; }
