/**
 * Archivo taxonomía espacio_category — hero + listado (referencia: hero-02, media-text-03).
 */

/* —— Hero —— */
.mwm-archive-tipo-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	isolation: isolate;
	background-color: var(--color-grey-light, #ececec);
	padding: clamp(2.5rem, 8vw, 5rem) 0 1.5rem;
	box-sizing: border-box;
}

.mwm-archive-tipo-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.mwm-archive-tipo-hero__media-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.mwm-archive-tipo-hero__media-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg,
			rgba(0, 0, 0, 0.2),
			rgba(0, 0, 0, 0.2));
	pointer-events: none;
}

.mwm-archive-tipo-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	box-sizing: border-box;
}

.mwm-archive-tipo-hero__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	width: 100%;
}

.mwm-archive-tipo-hero__text {
	flex: 1 1 16rem;
	min-width: 0;
}

.mwm-archive-tipo-hero__heading {
	margin: 0;
	font-family: var(--font-family-2), "Arsenal", serif;
	font-weight: var(--fw-normal, 400);
	font-size: clamp(2.5rem, 8vw, 4.875rem);
	line-height: 1;
	letter-spacing: 0;
	color: var(--color-white, #fff);
	text-shadow: 0 10px 8px rgba(0, 0, 0, 0.04), 0 4px 3px rgba(0, 0, 0, 0.1);
}

.mwm-archive-tipo-hero__description {
	margin: 0.75rem 0 0;
	max-width: 36em;
	font-size: 1rem;
	font-family: "Montserrat", var(--font-family), sans-serif;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.5;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.mwm-archive-tipo-hero--no-media .mwm-archive-tipo-hero__heading {
	color: #333;
	text-shadow: none;
}

.mwm-archive-tipo-hero--no-media .mwm-archive-tipo-hero__description {
	color: #6b7280;
	text-shadow: none;
}

.mwm-archive-tipo-hero__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	flex: 0 1 auto;
	max-width: 100%;
}

.mwm-archive-tipo-hero__logo {
	display: block;
	width: 6.5rem;
	max-width: 28vw;
	height: auto;
	max-height: 9rem;
	object-fit: contain;
	object-position: center;
	pointer-events: none;
}

/* Booking (mismo patrón que .mwm-hero-02__booking) */
.mwm-archive-tipo-hero__booking {
	position: relative;
	width: 100%;
	margin: 0;
	margin-top: auto;
	box-sizing: border-box;
}

.mwm-archive-tipo-hero__booking-inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem;
	background: var(--color-white, #fff);
	border: 1px solid #f3f4f6;
	box-shadow: 0 1.5625rem 3.125rem -0.75rem rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
	border-radius: 1rem;
	width: 100%
}

.mwm-archive-tipo-hero__booking-field {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
	padding: 0 0.5rem;
	border-right: 1px solid #e5e7eb;
	box-sizing: border-box;
}

.mwm-archive-tipo-hero__booking-field:last-of-type {
	border-right: 0;
}

.mwm-archive-tipo-hero__booking-label {
	font-family: var(--font-family), "Montserrat", sans-serif;
	font-size: var(--fs-12, 0.75rem);
	font-weight: var(--fw-bold, 700);
	line-height: 1.333;
	color: #6b7280;
	text-transform: uppercase;
}

.mwm-archive-tipo-hero__booking-control {
	display: flex;
	align-items: center;
	min-height: 1.5rem;
}

.mwm-archive-tipo-hero__booking-control--guests {
	flex: 1 1 auto;
	min-width: 0;
}

.mwm-archive-tipo-hero__booking-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2rem;
	margin-right: 0.5rem;
	color: var(--color-green, #00ce7c);
}

.mwm-archive-tipo-hero__booking-icon svg {
	display: block;
	width: auto;
	height: auto;
	max-height: 1.375rem;
}

.mwm-archive-tipo-hero__booking-value {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	font-family: var(--font-family), "Montserrat", sans-serif;
	font-size: var(--fs-12, 0.75rem);
	font-weight: var(--fw-bold, 700);
	line-height: 1.333;
	color: #a8a8a8;
	text-overflow: ellipsis;
	text-transform: uppercase;
}

.mwm-archive-tipo-hero__booking-guests-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 0.5rem;
}

.mwm-archive-tipo-hero__booking-caret {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	color: #6b7280;
}

.mwm-archive-tipo-hero__booking-caret svg {
	display: block;
	width: 0.625rem;
	height: 0.375rem;
}

.mwm-archive-tipo-hero__booking-submit {
	flex-shrink: 0;
	min-width: 8.75rem;
	margin-left: auto;
	padding: 1rem 2rem;
	font-family: var(--font-family), "Montserrat", sans-serif;
	font-size: var(--fs-16, 1rem);
	font-weight: var(--fw-bold, 700);
	line-height: 1.5;
	color: var(--color-white, #fff);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	background: var(--color-black, #000);
	border: 0;
	border-radius: 0.5rem;
}

@media (max-width: 639px) {
	.mwm-archive-tipo-hero__booking-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.mwm-archive-tipo-hero__booking-field {
		border-right: 0;
		border-bottom: 1px solid #e5e7eb;
		padding-bottom: 1rem;
	}

	.mwm-archive-tipo-hero__booking-field:last-of-type {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.mwm-archive-tipo-hero__booking-submit {
		width: 100%;
		margin-left: 0;
	}

	.mwm-archive-tipo-hero__logos {
		justify-content: flex-start;
	}
}

/* —— Listado —— */
.mwm-archive-tipo-list {
	position: relative;
	width: 100%;
	background: #fff;
	padding: 80px 0;
	box-sizing: border-box;
	overflow: hidden;
}

.mwm-archive-tipo-list__deco-bg {
	position: absolute;
	top: 50%;
	right: 0;
	width: min(42vw, 480px);
	height: auto;
	max-height: 85%;
	object-fit: contain;
	object-position: left center;
	opacity: 1;
	pointer-events: none;
	z-index: 0;
}

.mwm-archive-tipo-list__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 64px;
}

.mwm-archive-tipo-list__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	max-width: 55rem;
	margin: 0 auto;
	width: 100%;
}

.mwm-archive-tipo-list__heading {
	margin: 0;
	width: 100%;
	font-size: clamp(2rem, 4vw, 3.3125rem);
	font-family: "Arsenal", var(--font-family-2), sans-serif;
	font-weight: 400;
	color: #333;
	letter-spacing: 0;
	text-wrap-style: balance;
}

.mwm-archive-tipo-list__subheading {
	margin: 0;
	max-width: 36em;
	font-size: 16px;
	font-family: "Montserrat", var(--font-family), sans-serif;
	font-weight: 400;
	color: #6b7280;
	line-height: 1.5;
}

.mwm-archive-tipo-list__rows {
	display: flex;
	flex-direction: column;
	gap: 96px;
	width: 100%;
}

.mwm-archive-tipo-list__row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 40px;
	width: 100%;
	padding: 0 clamp(16px, 6vw, 78px);
	box-sizing: border-box;
}

.mwm-archive-tipo-list__row--media-right {
	flex-direction: row-reverse;
}

.mwm-archive-tipo-list__media {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	height: 450px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.002);
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
}

.mwm-archive-tipo-list__media-img {
	width: 100%;
	height: 100%;
	flex: 1 1 auto;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 16px;

	img {
		height: 100%;
		width: 100%;
		object-fit: cover;
		object-position: center;
	}
}

.mwm-archive-tipo-list__gallery-btn {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 9999px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1),
		0 10px 15px -3px rgba(0, 0, 0, 0.1);
	font-size: 14px;
	font-family: "Montserrat", var(--font-family), sans-serif;
	font-weight: 400;
	color: #000;
	text-decoration: none;
	line-height: 1.2;
}

.mwm-archive-tipo-list__gallery-btn:hover,
.mwm-archive-tipo-list__gallery-btn:focus {
	color: #000;
	text-decoration: none;
}

.mwm-archive-tipo-list__gallery-icon {
	display: block;
	flex-shrink: 0;
	width: 12px;
	height: 12px;
}

.mwm-archive-tipo-list__gallery-btn-text {
	display: inline-block;
	line-height: 1.2;
}

.mwm-archive-tipo-list__gallery-anchor {
	display: none !important;
}

.mwm-archive-tipo-list__content {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.mwm-archive-tipo-list__title {
	margin: 0;
	width: 100%;
	max-width: 526px;
	font-size: clamp(2rem, 3.5vw, 3.3125rem);
	font-family: "Arsenal", var(--font-family-2), sans-serif;
	font-weight: 400;
	color: #333;
	letter-spacing: 0;
	line-height: 1.15;
}

.mwm-archive-tipo-list__description {
	margin: 0;
	width: 100%;
	max-width: 526px;
	font-size: 16px;
	font-family: "Montserrat", var(--font-family), sans-serif;
	color: #4b5563;
	line-height: 1.6;
	white-space: pre-wrap;
}

.mwm-archive-tipo-list__footer {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	padding-top: 16px;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: auto;
}

.mwm-archive-tipo-list__price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.mwm-archive-tipo-list__price-label {
	font-size: 12px;
	font-family: var(--font-family);
	font-weight: 400;
	color: #9CA3AF;
	line-height: 16px;
	letter-spacing: 0;
	text-transform: uppercase;
}

.mwm-archive-tipo-list__price-amount {
	position: relative;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 4px;
	line-height: 1.2;
}

.mwm-archive-tipo-list__price-value {
	font-size: 24px;
	font-family: var(--font-family-display, "Playfair Display", Georgia, "Times New Roman", serif);
	font-weight: 700;
	color: #00c87e;
	line-height: 32px;
	text-wrap-style: balance;
}

.mwm-archive-tipo-list__price-suffix {
	font-size: 14px;
	font-family: "Montserrat", var(--font-family), sans-serif;
	font-weight: 400;
	color: #9CA3AF;
	line-height: 20px;
}

.mwm-archive-tipo-list__cta {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 12px 32px;
	background: #00c87e;
	border-radius: 16px;
	font-size: 12px;
	font-family: "Montserrat", var(--font-family), sans-serif;
	font-weight: 700;
	color: #fff;
	text-align: center;
	line-height: 16px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	text-decoration: none;
}

.mwm-archive-tipo-list__cta:hover,
.mwm-archive-tipo-list__cta:focus {
	color: #fff;
	text-decoration: none;
	background: #00b070;
}

@media (max-width: 900px) {
	.mwm-archive-tipo-list {
		padding: 48px 0;
	}

	.mwm-archive-tipo-list__inner {
		gap: 48px;
	}

	.mwm-archive-tipo-list__rows {
		gap: 64px;
	}

	.mwm-archive-tipo-list__row,
	.mwm-archive-tipo-list__row--media-right {
		flex-direction: column;
		align-items: stretch;
		padding: 0 16px;
	}

	.mwm-archive-tipo-list__media {
		max-width: 100%;
		height: min(450px, 70vw);
		order: -1;
	}

	.mwm-archive-tipo-list__content {
		order: 0;
	}

	.mwm-archive-tipo-list__deco-bg {
		width: min(70vw, 320px);
		opacity: 0.12;
	}
}