/*
 * Hostatge front-end styles.
 * Colors and fonts come from the Elementor Kit globals, with Mura (Salvia y arena) fallbacks.
 */
:root {
	--hst-ink: var(--e-global-color-primary, #22231f);
	--hst-ochre: var(--e-global-color-secondary, #6b7158);
	--hst-text: var(--e-global-color-text, #5e5f58);
	--hst-brick: var(--e-global-color-accent, #8c7048);
	--hst-cream: var(--e-global-color-hst_cream, #f3f2ee);
	--hst-sand: var(--e-global-color-hst_sand, #b99d75);
	--hst-wood: var(--e-global-color-hst_wood, #4f5441);
	--hst-sage: var(--e-global-color-secondary, #6b7158);
	--hst-line: #dedcd4;
	--hst-heading-font: var(--e-global-typography-primary-font-family, "Marcellus"), Georgia, serif;
	--hst-body-font: var(--e-global-typography-text-font-family, "Jost"), "Helvetica Neue", Arial, sans-serif;
	--hst-script-font: "Homemade Apple", "Segoe Script", cursive;
	--hst-radius: 0;
}

/* Buttons used by shortcodes */
.hostatge-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: var(--hst-radius);
	font-family: var(--hst-body-font);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

a.hostatge-btn.hostatge-btn--primary,
.hostatge-rooms a.hostatge-btn--primary,
.hst-mobile-cta a.hostatge-btn--primary {
	background: var(--hst-brick);
	color: #fff;
}

a.hostatge-btn.hostatge-btn--primary:hover,
a.hostatge-btn.hostatge-btn--primary:focus-visible,
.hostatge-rooms a.hostatge-btn--primary:hover {
	background: var(--hst-ink);
	color: #fff;
}

a.hostatge-btn.hostatge-btn--link {
	padding: 0 4px;
	color: var(--hst-ink);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Image placeholder */
.hostatge-ph {
	position: relative;
	width: 100%;
	display: flex;
	align-items: flex-end;
	padding: 16px;
	background:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 22px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 44px),
		linear-gradient(135deg, var(--hst-brick), var(--hst-wood));
	color: #fff;
	font-family: var(--hst-body-font);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Room cards */
.hostatge-rooms {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 24px;
}

.hostatge-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--hst-radius);
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(34, 32, 29, 0.06);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hostatge-card:hover {
	box-shadow: 0 18px 40px rgba(34, 32, 29, 0.12);
	transform: translateY(-2px);
}

.hostatge-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.hostatge-card__media img,
.hostatge-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.hostatge-card:hover .hostatge-card__media img {
	transform: scale(1.04);
}

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

.hostatge-card__meta {
	margin: 0;
	color: var(--hst-brick);
	font-family: var(--hst-body-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hostatge-card__title {
	margin: 0;
	font-family: var(--hst-heading-font);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
}

.hostatge-card .hostatge-card__title a {
	color: var(--hst-ink);
	text-decoration: none;
}

.hostatge-card__tagline {
	margin: 0;
	color: var(--hst-text);
	font-size: 15px;
	line-height: 1.55;
}

.hostatge-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-top: auto;
	padding-top: 12px;
}

/* Room facts and amenities */
.hostatge-facts,
.hostatge-amenities {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hostatge-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	font-weight: 600;
	color: var(--hst-ink);
}

.hostatge-facts__item::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 10px;
	background: var(--hst-ochre);
	vertical-align: middle;
}

.hostatge-amenities {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px 24px;
}

.hostatge-amenities li {
	padding-left: 22px;
	position: relative;
}

.hostatge-amenities li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--hst-brick);
	font-weight: 700;
}

/* Room gallery */
.hostatge-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 180px;
	gap: 8px;
}

.hostatge-gallery__item {
	display: block;
	overflow: hidden;
	border-radius: var(--hst-radius);
}

.hostatge-gallery__item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.hostatge-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.hostatge-gallery__item:hover img {
	transform: scale(1.04);
}

.hostatge-gallery__item.is-hidden {
	display: none;
}

.hostatge-gallery__item {
	position: relative;
}

.hostatge-gallery__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(34, 32, 29, 0.55);
	color: #fff;
	font-family: var(--hst-body-font);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.hostatge-gallery--empty {
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: auto;
}

/* Language switcher */
.hostatge-langs {
	display: flex;
	gap: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.hostatge-langs a {
	color: inherit;
	opacity: 0.6;
	text-decoration: none;
}

.hostatge-langs a.is-current,
.hostatge-langs a:hover {
	opacity: 1;
}

/* Booking bar */
.hostatge-bar {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	gap: 12px;
	align-items: end;
	padding: 18px;
	background: #fff;
	border-radius: var(--hst-radius);
	box-shadow: 0 18px 50px rgba(34, 32, 29, 0.14);
}

.hostatge-bar__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-family: var(--hst-body-font);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hst-text);
}

.hostatge-bar .hostatge-bar__field input,
.hostatge-bar .hostatge-bar__field select {
	min-height: 48px;
	padding: 8px 12px;
	border: 1px solid rgba(34, 32, 29, 0.18);
	border-radius: var(--hst-radius);
	background: var(--hst-cream);
	color: var(--hst-ink);
	font-size: 16px;
	letter-spacing: 0;
	text-transform: none;
}

.hostatge-bar .hostatge-bar__submit {
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--hst-radius);
	background: var(--hst-brick);
	color: #fff;
	font-family: var(--hst-body-font);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.hostatge-bar .hostatge-bar__submit:hover,
.hostatge-bar .hostatge-bar__submit:focus-visible {
	background: var(--hst-ink);
	color: #fff;
}

/* Mobile sticky booking CTA (rendered by the footer template) */
.hst-mobile-cta {
	display: none;
}

@media (max-width: 767px) {
	.hostatge-bar {
		grid-template-columns: 1fr 1fr;
	}

	.hostatge-bar__field:nth-child(3),
	.hostatge-bar__submit {
		grid-column: 1 / -1;
	}

	.hostatge-gallery {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 140px;
	}

	.hst-mobile-cta {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 900;
		display: flex;
		gap: 8px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(246, 241, 233, 0.96);
		box-shadow: 0 -6px 20px rgba(34, 32, 29, 0.12);
		backdrop-filter: blur(6px);
	}

	.hst-mobile-cta .hostatge-btn {
		flex: 1;
	}

	body {
		padding-bottom: 72px;
	}

	/* Keep Joinchat above the sticky bar */
	.joinchat {
		--bottom: 84px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hostatge-card,
	.hostatge-card__media img,
	.hostatge-gallery__item img {
		transition: none;
	}
}

/* Links inside Elementor forms (acceptance text) follow the brand, not the base theme */
.elementor-form a {
	color: var(--hst-brick);
}

/* Gallery layouts by photo count */
.hostatge-gallery--count-1 {
	grid-template-columns: 1fr;
	grid-auto-rows: 460px;
}

.hostatge-gallery--count-1 .hostatge-gallery__item:first-child {
	grid-column: auto;
	grid-row: auto;
}

.hostatge-gallery--count-2,
.hostatge-gallery--count-3 {
	grid-template-columns: 2fr 1fr;
	grid-auto-rows: 230px;
}

.hostatge-gallery--count-2 .hostatge-gallery__item:first-child,
.hostatge-gallery--count-3 .hostatge-gallery__item:first-child {
	grid-column: 1;
}

.hostatge-gallery--count-4 {
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: 230px;
}

.hostatge-gallery--count-4 .hostatge-gallery__item:first-child {
	grid-column: 1;
}

.hostatge-gallery--count-4 .hostatge-gallery__item:nth-child(4) {
	grid-column: span 2;
}

@media (max-width: 767px) {
	.hostatge-gallery[class*="--count-"] {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 140px;
	}

	.hostatge-gallery[class*="--count-"] .hostatge-gallery__item:first-child {
		grid-column: span 2;
		grid-row: span 2;
	}

	.hostatge-gallery--count-1 {
		grid-auto-rows: 280px;
	}

	.hostatge-gallery--count-1 .hostatge-gallery__item:first-child {
		grid-row: auto;
	}
}

/* Form fields: visible borders on white cards */
.elementor-form .elementor-field-group .elementor-field-textual {
	border: 1px solid rgba(34, 32, 29, 0.22);
}

.elementor-form .elementor-field-group .elementor-field-textual:focus {
	border-color: var(--hst-brick);
	outline: none;
	box-shadow: 0 0 0 3px rgba(156, 74, 47, 0.15);
}

/* Mobile menu dropdown: solid panel over the page */
.elementor-nav-menu--dropdown.elementor-nav-menu__container {
	background: var(--hst-cream);
	box-shadow: 0 18px 30px rgba(34, 32, 29, 0.14);
}

.elementor-nav-menu--dropdown a.elementor-item {
	padding-top: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(34, 32, 29, 0.08);
}

/* Mobile gallery: swipeable strip instead of a grid */
@media (max-width: 767px) {
	.hostatge-gallery[class*="--count-"] {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.hostatge-gallery[class*="--count-"]::-webkit-scrollbar {
		display: none;
	}

	.hostatge-gallery[class*="--count-"] .hostatge-gallery__item,
	.hostatge-gallery[class*="--count-"] .hostatge-gallery__item:first-child {
		flex: 0 0 86%;
		height: 280px;
		scroll-snap-align: start;
	}

	.hostatge-gallery[class*="--count-"] .hostatge-gallery__item.is-hidden {
		display: none;
	}

	.hostatge-gallery--count-1 .hostatge-gallery__item:first-child {
		flex-basis: 100%;
	}
}

/* Ghost button, social links, Instagram block */
a.hostatge-btn.hostatge-btn--ghost {
	border: 1px solid var(--hst-ink);
	color: var(--hst-ink);
	background: transparent;
}

a.hostatge-btn.hostatge-btn--ghost:hover {
	background: var(--hst-ink);
	color: #fff;
}

.hostatge-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 14px;
	font-weight: 600;
}

.hostatge-social a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hostatge-instagram__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: 28px;
}

.hostatge-instagram__eyebrow {
	margin: 0 0 8px;
	color: var(--hst-brick);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.hostatge-instagram__title {
	margin: 0 0 8px;
	font-family: var(--hst-heading-font);
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 500;
	color: var(--hst-ink);
}

.hostatge-instagram__text {
	margin: 0;
	max-width: 560px;
}

/* ==========================================================================
   Salvia y arena (Mura design system). Overrides the base styles above.
   ========================================================================== */

/* Buttons */
.hostatge-btn {
	min-height: 48px;
	padding: 0 26px;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.03em;
}
a.hostatge-btn.hostatge-btn--link {
	padding: 0 0 4px;
	min-height: 0;
	text-decoration: none;
	border-bottom: 1px solid var(--hst-sand);
}
a.hostatge-btn.hostatge-btn--link:hover {
	color: var(--hst-sage);
}

/* Room cards: photo-led, no box */
.hostatge-rooms {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 40px 28px;
}
.hostatge-card,
.hostatge-card:hover {
	background: transparent;
	box-shadow: none;
	transform: none;
}
.hostatge-card__media {
	aspect-ratio: 4 / 5;
}
.hostatge-card__body {
	gap: 10px;
	padding: 20px 0 0;
}
.hostatge-card__meta {
	color: var(--hst-sage);
	font-weight: 500;
}
.hostatge-card__title {
	font-size: 26px;
	font-weight: 400;
}
.hostatge-card .hostatge-card__title a:hover {
	color: var(--hst-sage);
}
.hostatge-card__tagline {
	font-size: 16px;
	line-height: 1.65;
}
.hostatge-card__actions {
	gap: 12px 22px;
}

/* Facts and amenities markers */
.hostatge-facts__item::before {
	background: var(--hst-sand);
}
.hostatge-amenities li::before {
	background: none;
	color: var(--hst-sage);
	font-weight: 400;
}

/* Booking bar: sage band over the hero */
.hostatge-bar {
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	gap: 10px;
	align-items: stretch;
	padding: 14px;
	background: var(--hst-sage);
	box-shadow: none;
}
.hostatge-bar__field {
	position: relative;
	justify-content: center;
	gap: 2px;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
}
.hostatge-bar .hostatge-bar__field input,
.hostatge-bar .hostatge-bar__field select {
	min-height: 30px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #fff !important;
	box-shadow: none !important;
	font-family: var(--hst-body-font);
	font-size: 16px;
	color-scheme: dark;
}
.hostatge-bar .hostatge-bar__field select option {
	color: var(--hst-ink);
}
.hostatge-bar .hostatge-bar__submit {
	min-height: 64px;
	padding: 0 32px;
	background: var(--hst-brick);
	font-weight: 400;
}
@media (max-width: 767px) {
	.hostatge-bar {
		grid-template-columns: 1fr 1fr;
	}
	.hostatge-bar__field:nth-of-type(3),
	.hostatge-bar .hostatge-bar__submit {
		grid-column: 1 / -1;
	}
	.hostatge-bar .hostatge-bar__submit {
		min-height: 54px;
	}
}

/* Header: transparent over the hero on the home page until it sticks */
.hst-header {
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
body.home .hst-header:not(.elementor-sticky--effects) {
	background-color: transparent !important;
	border-bottom-color: rgba(255, 255, 255, 0.25) !important;
}
body.home .hst-header:not(.elementor-sticky--effects) .elementor-heading-title,
body.home .hst-header:not(.elementor-sticky--effects) .elementor-heading-title a,
body.home .hst-header:not(.elementor-sticky--effects) .elementor-nav-menu--main .elementor-item,
body.home .hst-header:not(.elementor-sticky--effects) .hostatge-langs,
body.home .hst-header:not(.elementor-sticky--effects) .elementor-menu-toggle {
	color: #fff !important;
	fill: #fff !important;
}
body.home .hst-header:not(.elementor-sticky--effects) .elementor-menu-toggle svg {
	fill: #fff !important;
}
body.home .hst-header:not(.elementor-sticky--effects) a.elementor-button {
	background-color: transparent !important;
	border: 1px solid #fff !important;
	color: #fff !important;
}
body.home .hst-header:not(.elementor-sticky--effects) .elementor-nav-menu--main .elementor-item::after {
	background-color: #fff !important;
}

/* Design system helpers used in page templates */
.hst-script,
.hst-script .elementor-heading-title {
	font-family: var(--hst-script-font) !important;
	color: var(--hst-sage);
	line-height: 1.6 !important;
}
.hst-icon {
	display: flex;
	justify-content: center;
	color: var(--hst-sage);
}
.hst-icon--light {
	color: #fff;
}
.hst-icon svg {
	width: 56px;
	height: 56px;
}
.hst-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px 32px;
}
.hst-feature {
	display: flex;
	gap: 16px;
}
.hst-feature svg {
	flex: none;
	width: 34px;
	height: 34px;
	color: var(--hst-sand);
}
.hst-feature h3 {
	margin: 0 0 6px;
	font-family: var(--hst-heading-font);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--hst-ink);
}
.hst-feature p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--hst-text);
}
.hst-framed img {
	outline: 1px solid rgba(255, 255, 255, 0.45);
	outline-offset: 10px;
}
.hst-link a,
a.hst-link {
	color: var(--hst-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--hst-sand);
	padding-bottom: 4px;
}
@media (max-width: 767px) {
	.hst-features {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.hst-framed img {
		outline-offset: 6px;
	}
}

/* Forms and accordion in the new palette */
.elementor-form .elementor-field-group .elementor-field-textual {
	border-radius: 0;
}
.elementor-accordion .elementor-accordion-item {
	border-color: var(--hst-line) !important;
}

/* Keep the desktop menu on one line */
.hst-header .elementor-nav-menu--main .elementor-nav-menu {
	flex-wrap: nowrap;
}
.hst-header .elementor-nav-menu--main .elementor-item {
	white-space: nowrap;
}

/* Images that must fill their column */
.hst-fill,
.hst-fill .elementor-widget-container,
.hst-fill img {
	width: 100%;
}
.hst-fill img {
	display: block;
}

/* Room card photo always fills its 4:5 frame */
.hostatge-card__media {
	position: relative;
}
.hostatge-card__media img,
.hostatge-card__media .hostatge-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Instagram block carries its own bottom spacing (section is empty until the account exists) */
.hostatge-instagram {
	padding-bottom: 100px;
}
@media (max-width: 767px) {
	.hostatge-instagram {
		padding-bottom: 64px;
	}
}

/* Shortcode blocks must never be squeezed by their flex container (aspect-ratio cards misreport their min height) */
.e-con > .elementor-widget-shortcode,
.e-con-inner > .elementor-widget-shortcode {
	flex-shrink: 0;
}

/* Booking bar fields never push the bar wider than the screen */
.hostatge-bar,
.hostatge-bar__field {
	min-width: 0;
}
.hostatge-bar .hostatge-bar__field input,
.hostatge-bar .hostatge-bar__field select {
	width: 100%;
	min-width: 0;
}
@media (max-width: 767px) {
	.hostatge-bar {
		padding: 10px;
		gap: 8px;
	}
	.hostatge-bar__field {
		padding: 8px 10px;
	}
	.hostatge-bar .hostatge-bar__field input,
	.hostatge-bar .hostatge-bar__field select {
		font-size: 15px;
	}
}

/* Containers holding the room grid lay out as blocks: Chrome under-measures the grid's
   intrinsic height inside Elementor flex columns and the next section overlaps it. */
.e-con-inner:has(> .elementor-widget-shortcode .hostatge-rooms),
.e-con:has(> .elementor-widget-shortcode .hostatge-rooms) {
	display: block;
}
.e-con-inner:has(> .elementor-widget-shortcode .hostatge-rooms) > * + *,
.e-con:has(> .elementor-widget-shortcode .hostatge-rooms) > * + * {
	margin-top: 20px;
}
