/*
 * Barsana Blog Layout v1.1
 * Fonts are inherited from Astra/Elementor. Width and colours come from
 * Settings → Barsana Blog (printed as CSS variables on :root).
 */

:root {
	--bbl-width: 1250px;
	--bbl-accent: #b79a57;
	--bbl-accent-text: #77643a;
	--bbl-heading: #132258;
	--bbl-text: #3b3a45;
	--bbl-muted: #77737f;
	--bbl-cream: #fdf9f1;
	--bbl-surface: #fff;
	--bbl-border: rgba(183, 154, 87, 0.28);
	--bbl-shadow: 0 10px 30px -18px rgba(19, 34, 88, 0.35);
	--bbl-radius: 16px;
	--bbl-gap: clamp(24px, 3.5vw, 48px);
	--bbl-sidebar: 350px;
	--bbl-sticky-top: 110px;
}

.bbl-hero *,
.bbl-layout *,
.bbl-hero,
.bbl-layout {
	box-sizing: border-box;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* =====================================================================
   Hero: full-width photo, big rounded top corners, centred white text
   (matches the inner pages, e.g. Rooms & Suites)
   ================================================================== */

.bbl-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(340px, 38vw, 520px);
	padding: clamp(64px, 8vw, 120px) 20px;
	border-radius: clamp(40px, 7vw, 110px) clamp(40px, 7vw, 110px) 0 0;
	overflow: hidden;
	color: #fff;
	text-align: center;
	background-color: var(--bbl-heading);
	background-image:
		linear-gradient(180deg, rgba(22, 16, 12, 0.5) 0%, rgba(22, 16, 12, 0.62) 100%),
		var(--bbl-hero-bg, none);
	background-size: cover;
	background-position: center;
}

.bbl-hero--plain {
	background-image:
		radial-gradient(120% 90% at 50% 0%, rgba(183, 154, 87, 0.28), transparent 60%),
		linear-gradient(160deg, var(--bbl-heading), #0b1538);
}

/* Non-Astra themes: escape the theme container. */
.bbl-hero--breakout {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

body.bbl-active {
	overflow-x: clip;
}

.bbl-hero__inner {
	width: 100%;
	max-width: 1000px;
}

.bbl-hero__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 10px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bbl-hero__crumbs li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.85);
}

.bbl-hero__crumbs li + li::before {
	content: "";
	width: 5px;
	height: 5px;
	transform: rotate(45deg);
	background: var(--bbl-accent);
}

.bbl-hero__crumbs a {
	color: #e8d6a8;
	text-decoration: none;
}

.bbl-hero__crumbs a:hover {
	color: #fff;
}

.bbl-hero .bbl-hero__title {
	margin: 0 auto 20px;
	color: #fff;
	font-size: clamp(1.8rem, 1.05rem + 2.6vw, 3.1rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-wrap: balance;
}

.bbl-hero__text {
	max-width: 720px;
	margin: 0 auto;
	color: rgba(255, 255, 255, 0.93);
	font-size: clamp(1.05rem, 0.9rem + 0.65vw, 1.6rem);
	line-height: 1.55;
	text-wrap: pretty;
}

.bbl-hero__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.bbl-hero__meta li {
	padding: 6px 16px;
	border: 1px solid rgba(232, 214, 168, 0.55);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(4px);
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}

/* =====================================================================
   Layout: 1250px content, main column + sidebar
   ================================================================== */

.bbl-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--bbl-sidebar);
	gap: var(--bbl-gap);
	align-items: start;
	width: 100%;
	max-width: var(--bbl-width);
	flex: 1 1 100%; /* Astra's .ast-container is a flex box */
	margin: clamp(40px, 6vw, 80px) auto;
	color: var(--bbl-text);
}

.bbl-main {
	min-width: 0;
	container-type: inline-size;
}

.bbl-eyebrow {
	display: inline-block;
	margin-bottom: 6px;
	color: var(--bbl-accent-text);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.bbl-section-head {
	margin-bottom: 28px;
}

.bbl-layout .bbl-section-title {
	margin: 0;
	color: var(--bbl-heading);
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
	font-weight: 400;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.bbl-section-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 2px;
	margin-top: 14px;
	background: var(--bbl-accent);
}

/* =====================================================================
   Blog cards
   ================================================================== */

.bbl-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--bbl-surface);
	border: 1px solid var(--bbl-border);
	border-radius: var(--bbl-radius);
	box-shadow: var(--bbl-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bbl-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -20px rgba(19, 34, 88, 0.45);
}

.bbl-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--bbl-cream);
}

.bbl-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.bbl-card:hover .bbl-card__img {
	transform: scale(1.05);
}

.bbl-card__img--empty {
	background: linear-gradient(135deg, var(--bbl-heading), var(--bbl-accent));
}

.bbl-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--bbl-accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.bbl-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 24px;
}

.bbl-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
	color: var(--bbl-muted);
	font-size: 0.82rem;
	letter-spacing: 0.03em;
}

.bbl-layout .bbl-card__title {
	margin: 0 0 10px;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.35;
}

.bbl-card__title a {
	color: var(--bbl-heading);
	text-decoration: none;
}

.bbl-card__title a:hover {
	color: var(--bbl-accent-text);
}

.bbl-card__excerpt {
	margin: 0 0 18px;
	color: var(--bbl-text);
	font-size: 0.98rem;
	line-height: 1.65;
}

.bbl-card__more {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin-top: auto;
	color: var(--bbl-accent-text);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

.bbl-card__more span[aria-hidden] {
	transition: transform 0.2s ease;
}

.bbl-card__more:hover span[aria-hidden] {
	transform: translateX(4px);
}

/* Featured (newest) post: image beside text when the column is wide enough. */
.bbl-card--featured {
	margin-bottom: var(--bbl-gap);
}

.bbl-layout .bbl-card--featured .bbl-card__title {
	font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem);
}

@container (min-width: 680px) {
	.bbl-card--featured {
		display: grid;
		grid-template-columns: 1.15fr 1fr;
	}

	.bbl-card--featured .bbl-card__media {
		aspect-ratio: auto;
		min-height: 360px;
	}

	.bbl-card--featured .bbl-card__body {
		justify-content: center;
		padding: 36px;
	}
}

.bbl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
	gap: 28px;
}

/* Pagination */
.bbl-pagination {
	margin-top: var(--bbl-gap);
}

.bbl-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bbl-pagination li > .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--bbl-border);
	border-radius: 999px;
	background: var(--bbl-surface);
	color: var(--bbl-heading);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bbl-pagination li > a.page-numbers:hover,
.bbl-pagination li > .page-numbers.current {
	border-color: var(--bbl-heading);
	background: var(--bbl-heading);
	color: #fff;
}

.bbl-empty {
	padding: 48px 24px;
	border: 1px dashed var(--bbl-border);
	border-radius: var(--bbl-radius);
	text-align: center;
	color: var(--bbl-muted);
}

/* =====================================================================
   Single post
   ================================================================== */

.bbl-article,
.bbl-comments {
	padding: clamp(22px, 4vw, 52px);
	background: var(--bbl-surface);
	border: 1px solid var(--bbl-border);
	border-radius: var(--bbl-radius);
	box-shadow: var(--bbl-shadow);
}

.bbl-article__content {
	font-size: 1.08rem;
	line-height: 1.85;
	overflow-wrap: break-word;
}

.bbl-article__content > :first-child {
	margin-top: 0;
}

.bbl-article__content h2,
.bbl-article__content h3,
.bbl-article__content h4 {
	color: var(--bbl-heading);
	line-height: 1.3;
	margin: 1.8em 0 0.6em;
}

.bbl-article__content h2 {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--bbl-border);
}

.bbl-article__content a {
	color: var(--bbl-accent-text);
	text-decoration-color: var(--bbl-accent);
	text-underline-offset: 3px;
}

.bbl-article__content img,
.bbl-article__content video,
.bbl-article__content iframe {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.bbl-article__content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.bbl-article__content blockquote {
	margin: 1.6em 0;
	padding: 18px 24px;
	border-left: 4px solid var(--bbl-accent);
	border-radius: 0 10px 10px 0;
	background: var(--bbl-cream);
	color: var(--bbl-heading);
	font-style: italic;
}

.bbl-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--bbl-border);
}

.bbl-article__tags a {
	padding: 5px 14px;
	border: 1px solid var(--bbl-border);
	border-radius: 999px;
	color: var(--bbl-heading);
	font-size: 0.85rem;
	text-decoration: none;
}

.bbl-article__tags a:hover {
	border-color: var(--bbl-accent);
	background: var(--bbl-cream);
}

.bbl-post-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 20px;
	margin-top: var(--bbl-gap);
}

.bbl-post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 24px;
	background: var(--bbl-surface);
	border: 1px solid var(--bbl-border);
	border-radius: var(--bbl-radius);
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.bbl-post-nav__link--next {
	text-align: right;
	grid-column: -2;
}

.bbl-post-nav__link:hover {
	border-color: var(--bbl-accent);
	transform: translateY(-2px);
}

.bbl-post-nav__label {
	color: var(--bbl-accent-text);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.bbl-post-nav__title {
	color: var(--bbl-heading);
	font-weight: 600;
	line-height: 1.4;
}

.bbl-comments {
	margin-top: var(--bbl-gap);
}

/* =====================================================================
   Sidebar
   ================================================================== */

.bbl-sidebar {
	display: flex;
	flex-direction: column;
	gap: 28px;
	align-self: stretch; /* full column height so the enquiry card can stick */
}

.bbl-widget {
	padding: 26px;
	background: var(--bbl-surface);
	border: 1px solid var(--bbl-border);
	border-radius: var(--bbl-radius);
	box-shadow: var(--bbl-shadow);
}

.bbl-layout .bbl-widget__title {
	position: relative;
	margin: 0 0 14px;
	padding-bottom: 14px;
	color: var(--bbl-heading);
	font-size: 1.05rem;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--bbl-border);
}

.bbl-widget__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 48px;
	height: 2px;
	background: var(--bbl-accent);
}

.bbl-latest {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bbl-latest__item + .bbl-latest__item {
	border-top: 1px dashed var(--bbl-border);
}

.bbl-latest__link {
	display: flex;
	gap: 14px;
	align-items: center;
	margin: 0 -10px;
	padding: 12px 10px;
	border-radius: 10px;
	color: var(--bbl-heading);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.bbl-latest__link:hover,
.bbl-latest__link:focus-visible {
	background: var(--bbl-cream);
}

.bbl-latest__link:focus-visible {
	outline: 2px solid var(--bbl-accent);
	outline-offset: 2px;
}

.bbl-latest__thumb {
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	overflow: hidden;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--bbl-heading), var(--bbl-accent));
}

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

.bbl-latest__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.bbl-latest__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.bbl-latest__date {
	color: var(--bbl-muted);
	font-size: 0.8rem;
}

.bbl-latest__item.is-current .bbl-latest__link {
	background: var(--bbl-cream);
	box-shadow: inset 3px 0 0 var(--bbl-accent);
}

.bbl-latest__item.is-current .bbl-latest__title {
	color: var(--bbl-accent-text);
}

/* Enquiry card */
.bbl-cta {
	position: relative;
	overflow: hidden;
	padding: 30px 26px;
	border-radius: var(--bbl-radius);
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(183, 154, 87, 0.35), transparent 55%),
		linear-gradient(160deg, var(--bbl-heading), #0b1538);
	color: #fff;
	text-align: center;
}

.bbl-cta--sticky {
	position: sticky;
	top: var(--bbl-sticky-top);
}

.admin-bar .bbl-cta--sticky {
	top: calc(var(--bbl-sticky-top) + 32px);
}

.bbl-cta .bbl-eyebrow {
	color: #e8d6a8;
}

.bbl-layout .bbl-cta__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: 1.3rem;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bbl-cta__text {
	margin: 0 0 22px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
	line-height: 1.6;
}

.bbl-btn {
	display: inline-block;
	padding: 12px 30px;
	border: 1px solid var(--bbl-accent);
	border-radius: 999px;
	background: var(--bbl-accent);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bbl-btn:hover,
.bbl-btn:focus-visible {
	background: transparent;
	color: #fff;
}

.bbl-cta__phone {
	display: block;
	margin-top: 14px;
	color: #e8d6a8;
	font-size: 0.9rem;
	text-decoration: none;
}

.bbl-cta__phone:hover {
	color: #fff;
}

/* Shortcode wrapper (Elementor page) */
.bbl-embed .bbl-layout {
	margin-bottom: 0;
}

/* =====================================================================
   Responsive (921px = Astra's tablet breakpoint)
   ================================================================== */

@media (max-width: 1100px) {
	:root {
		--bbl-sidebar: 300px;
	}
}

@media (max-width: 921px) {
	.bbl-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.bbl-cta--sticky {
		position: static;
	}
}

@media (max-width: 544px) {
	.bbl-hero {
		border-radius: 32px 32px 0 0;
	}

	.bbl-post-nav__link--next {
		text-align: left;
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bbl-card,
	.bbl-card__img,
	.bbl-post-nav__link,
	.bbl-card__more span[aria-hidden] {
		transition: none;
	}

	.bbl-card:hover,
	.bbl-card:hover .bbl-card__img {
		transform: none;
	}
}
