/* ==========================================================================
   Meezab Hotels
   Every colour here comes from a CSS variable printed by the plugin, so the
   Settings screen controls the whole design. Fallbacks keep it working if the
   variables ever fail to load.
   ========================================================================== */

.mh-listing,
.mh-carousel-wrap,
.mh-search,
.mh-single {
	--mh-gap: 26px;
	--mh-ease: cubic-bezier(.2, .7, .3, 1);
	color: var(--mh-text, #374151);
	box-sizing: border-box;
}

.mh-listing *,
.mh-carousel-wrap *,
.mh-search *,
.mh-single * {
	box-sizing: border-box;
}

.mh-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 44px 20px 64px;
}

/* ------------------------------------------------------------------ grid */

.mh-grid {
	display: grid;
	gap: var(--mh-gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mh-cols-1 { grid-template-columns: minmax(0, 1fr); }
.mh-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mh-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mh-single-card { max-width: 420px; }

@media (max-width: 1024px) {
	.mh-cols-3,
	.mh-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ------------------------------------------------------------------ card */

.mh-card {
	display: flex;
	flex-direction: column;
	background: var(--mh-card-bg, #fff);
	border: 1px solid var(--mh-card-border, #e5e7eb);
	border-radius: var(--mh-radius, 14px);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
	transition: box-shadow .35s var(--mh-ease), transform .35s var(--mh-ease), border-color .35s var(--mh-ease);
}

.mh-card:hover {
	box-shadow: 0 18px 40px -18px rgba(16, 24, 40, .32);
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--mh-view, #b02a37) 28%, var(--mh-card-border, #e5e7eb));
}

/* Cards fade up as they scroll in. Only when JS is running, so a card is
   never left invisible. */
.mh-js .mh-card {
	opacity: 0;
	transform: translateY(18px);
}

.mh-js .mh-card.is-in {
	opacity: 1;
	transform: translateY(0);
	transition: opacity .6s var(--mh-ease), transform .6s var(--mh-ease), box-shadow .35s var(--mh-ease);
}

.mh-js .mh-card.is-in:hover { transform: translateY(-4px); }

/* --------------------------------------------------------- featured image */

.mh-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(135deg, #eef1f7 0%, #e3e8f2 100%);
	isolation: isolate;
}

.mh-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform-origin: center;
	will-change: transform;
	transition: transform 1.1s var(--mh-ease), filter .6s var(--mh-ease);
	animation: mh-image-in .9s var(--mh-ease) both;
}

@keyframes mh-image-in {
	from { opacity: 0; transform: scale(1.06); }
	to   { opacity: 1; transform: scale(1); }
}

.mh-card__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 64px;
	font-weight: 700;
	color: color-mix(in srgb, var(--mh-heading, #1b2a5e) 22%, transparent);
}

/* Light sweep across the picture on hover. */
.mh-card__shine {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%);
	transform: translateX(-130%);
	opacity: 0;
}

/* Zoom + shine */
.mh-anim-zoom:hover .mh-card__img,
.mh-anim-zoom:focus-within .mh-card__img { transform: scale(1.09); }

.mh-anim-zoom:hover .mh-card__shine {
	opacity: 1;
	transform: translateX(130%);
	transition: transform 1s var(--mh-ease), opacity .2s linear;
}

/* Ken Burns: slow continuous pan */
.mh-anim-kenburns .mh-card__img {
	animation: mh-image-in .9s var(--mh-ease) both, mh-kenburns 18s ease-in-out 1s infinite alternate;
}

@keyframes mh-kenburns {
	from { transform: scale(1) translate3d(0, 0, 0); }
	to   { transform: scale(1.12) translate3d(-2%, -2%, 0); }
}

/* Tilt: JS feeds the two rotation variables */
.mh-anim-tilt .mh-card__media { perspective: 900px; }

.mh-anim-tilt .mh-card__img {
	transform: rotateX(var(--mh-rx, 0deg)) rotateY(var(--mh-ry, 0deg)) scale(1.04);
	transition: transform .25s var(--mh-ease);
}

.mh-anim-none .mh-card__img { animation: none; transition: none; }
.mh-anim-none .mh-card__shine { display: none; }

/* -------------------------------------------------------------- card body */

.mh-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 20px 22px;
	flex: 1;
}

.mh-badge {
	margin: 0;
	padding: 10px 14px;
	border-radius: 9px;
	background: var(--mh-badge-bg, #e8f5ee);
	color: var(--mh-badge-text, #1e6b47);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.mh-badge--block { display: block; }

.mh-card__title {
	margin: 0;
	font-size: 25px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--mh-heading, #1b2a5e);
}

.mh-card__title a {
	color: inherit;
	text-decoration: none;
}

.mh-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.mh-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	font-size: 16px;
	color: var(--mh-muted, #6b7280);
}

.mh-meta li {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
}

.mh-meta li::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--mh-accent, #e0a62e);
	flex: none;
}

.mh-meta--lg { font-size: 17px; gap: 8px 26px; }

.mh-card__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--mh-muted, #6b7280);
}

/* ----------------------------------------------------------- price + rates */

.mh-price__label {
	margin: 0;
	font-size: 16px;
	color: var(--mh-muted, #6b7280);
}

.mh-price__figure {
	margin: 2px 0 0;
	font-size: 38px;
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -.02em;
	color: #111827;
}

.mh-price__unit {
	margin: 4px 0 0;
	font-size: 15px;
	color: var(--mh-muted, #6b7280);
}

.mh-rates {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.mh-rate {
	border: 1px solid var(--mh-rate-border, #b02a37);
	border-radius: 10px;
	padding: 11px 14px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mh-rate__label {
	font-size: 15px;
	color: var(--mh-rate-border, #b02a37);
}

.mh-rate__price {
	font-size: 21px;
	font-weight: 700;
	color: #111827;
}

/* --------------------------------------------------------------- buttons */

.mh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 14px 22px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .28s var(--mh-ease), color .28s var(--mh-ease), border-color .28s var(--mh-ease), transform .18s var(--mh-ease), box-shadow .28s var(--mh-ease);
}

.mh-btn:hover { transform: translateY(-1px); }
.mh-btn:active { transform: translateY(0); }

.mh-btn:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--mh-view, #b02a37) 45%, transparent);
	outline-offset: 2px;
}

.mh-btn--block { width: 100%; }
.mh-btn svg { flex: none; }

/* View details: red, blue on hover */
.mh-btn--view {
	background: var(--mh-view, #b02a37);
	color: var(--mh-view-text, #fff);
}

.mh-btn--view:hover,
.mh-btn--view:focus-visible {
	background: var(--mh-view-hover, #1d4ed8);
	color: var(--mh-view-text, #fff);
	box-shadow: 0 10px 22px -12px var(--mh-view-hover, #1d4ed8);
}

.mh-btn--primary {
	background: var(--mh-primary, #b02a37);
	color: var(--mh-primary-text, #fff);
}

.mh-btn--primary:hover,
.mh-btn--primary:focus-visible {
	background: var(--mh-primary-hover, #8c1f2a);
	color: var(--mh-primary-text, #fff);
}

.mh-btn--wa {
	background: var(--mh-wa, #4ca76a);
	color: var(--mh-wa-text, #fff);
}

.mh-btn--wa:hover,
.mh-btn--wa:focus-visible {
	background: var(--mh-wa-hover, #3b8b55);
	color: var(--mh-wa-text, #fff);
}

.mh-btn--search {
	background: var(--mh-search-btn, #b02a37);
	color: var(--mh-search-text, #fff);
	padding: 15px 30px;
}

.mh-btn--search:hover,
.mh-btn--search:focus-visible {
	background: var(--mh-search-hover, #1d4ed8);
	color: var(--mh-search-text, #fff);
}

.mh-card__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
	padding-top: 4px;
}

.mh-card__actions .mh-btn { width: 100%; }

/* ------------------------------------------------------------- sort + page */

.mh-sortbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--mh-card-border, #e5e7eb);
}

.mh-sortbar__count {
	margin: 0;
	font-weight: 600;
	color: var(--mh-heading, #1b2a5e);
}

.mh-sortbar__sort {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: var(--mh-muted, #6b7280);
}

.mh-sortbar select,
.mh-search select,
.mh-search input {
	font: inherit;
	color: var(--mh-text, #374151);
	background: #fff;
	border: 1px solid var(--mh-card-border, #e5e7eb);
	border-radius: 9px;
	padding: 11px 13px;
}

.mh-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 36px;
	flex-wrap: wrap;
}

.mh-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--mh-card-border, #e5e7eb);
	border-radius: 9px;
	text-decoration: none;
	color: var(--mh-heading, #1b2a5e);
	font-weight: 600;
	transition: background-color .25s var(--mh-ease), color .25s var(--mh-ease), border-color .25s var(--mh-ease);
}

.mh-pagination .page-numbers:hover,
.mh-pagination .page-numbers.current {
	background: var(--mh-view, #b02a37);
	border-color: var(--mh-view, #b02a37);
	color: var(--mh-view-text, #fff);
}

.mh-pagination .page-numbers:hover { background: var(--mh-view-hover, #1d4ed8); border-color: var(--mh-view-hover, #1d4ed8); }

.mh-empty {
	text-align: center;
	padding: 56px 20px;
	background: var(--mh-panel-bg, #f3f4f6);
	border-radius: var(--mh-radius, 14px);
}

.mh-empty__title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: var(--mh-heading, #1b2a5e);
}

.mh-empty__text { margin: 0 0 18px; color: var(--mh-muted, #6b7280); }

/* -------------------------------------------------------------- carousel */

.mh-carousel-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 18px;
}

.mh-carousel-title {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -.015em;
	color: var(--mh-heading, #1b2a5e);
}

.mh-carousel {
	position: relative;
	padding: 0 8px;
}

.mh-carousel__viewport {
	overflow: hidden;
	padding: 6px 4px 10px;
	margin: -6px -4px -10px;
}

.mh-carousel__track {
	display: flex;
	gap: var(--mh-gap);
	transition: transform .6s var(--mh-ease);
	will-change: transform;
}

.mh-carousel__slide {
	flex: 0 0 calc((100% - (var(--mh-slides, 3) - 1) * var(--mh-gap)) / var(--mh-slides, 3));
	min-width: 0;
}

.mh-carousel__slide .mh-card { height: 100%; }

.mh-carousel__arrow {
	position: absolute;
	top: 38%;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid var(--mh-card-border, #e5e7eb);
	border-radius: 50%;
	background: var(--mh-arrow-bg, #fff);
	color: var(--mh-arrow-icon, #1b2a5e);
	cursor: pointer;
	box-shadow: 0 8px 20px -10px rgba(16, 24, 40, .45);
	transition: background-color .25s var(--mh-ease), color .25s var(--mh-ease), opacity .25s var(--mh-ease);
	z-index: 3;
}

.mh-carousel__arrow:hover {
	background: var(--mh-arrow-hover, #b02a37);
	color: #fff;
	border-color: var(--mh-arrow-hover, #b02a37);
}

.mh-carousel__arrow[disabled] {
	opacity: .35;
	cursor: default;
	box-shadow: none;
}

.mh-carousel__arrow--prev { left: -14px; transform: scaleX(-1); }
.mh-carousel__arrow--next { right: -14px; }

.mh-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}

.mh-carousel__dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mh-dot, #d5d8e2);
	cursor: pointer;
	transition: width .3s var(--mh-ease), background-color .3s var(--mh-ease);
}

.mh-carousel__dots button.is-active {
	width: 26px;
	border-radius: 6px;
	background: var(--mh-dot-active, #b02a37);
}

@media (max-width: 1024px) {
	.mh-carousel__slide { flex-basis: calc((100% - var(--mh-gap)) / 2); }
	.mh-carousel__arrow--prev { left: -6px; }
	.mh-carousel__arrow--next { right: -6px; }
}

@media (max-width: 640px) {
	.mh-carousel__slide { flex-basis: 100%; }
	.mh-carousel__arrow { display: none; }
}

/* ---------------------------------------------------------- search form */

.mh-search { margin: 0 0 40px; }

.mh-search--hero {
	position: relative;
	padding: 54px 20px 58px;
	background:
		radial-gradient(120% 140% at 12% 0%, color-mix(in srgb, var(--mh-hero-bg, #1b2a5e) 78%, #fff) 0%, transparent 55%),
		radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--mh-view, #b02a37) 42%, var(--mh-hero-bg, #1b2a5e)) 0%, transparent 60%),
		var(--mh-hero-bg, #1b2a5e);
	border-radius: calc(var(--mh-radius, 14px) + 8px);
	overflow: hidden;
}

.mh-search__inner {
	max-width: 1140px;
	margin: 0 auto;
}

.mh-search__head { margin-bottom: 22px; }

.mh-search--hero .mh-search__title { color: #fff; }
.mh-search--hero .mh-search__subtitle { color: rgba(255, 255, 255, .8); }

.mh-search__title {
	margin: 0 0 6px;
	font-size: 34px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--mh-heading, #1b2a5e);
}

.mh-search__subtitle {
	margin: 0;
	font-size: 17px;
	color: var(--mh-muted, #6b7280);
}

.mh-search__form {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	align-items: end;
	gap: 14px;
	padding: 18px;
	background: #fff;
	border-radius: var(--mh-radius, 14px);
	box-shadow: 0 24px 60px -30px rgba(16, 24, 40, .55);
}

.mh-search--plain .mh-search__form {
	border: 1px solid var(--mh-card-border, #e5e7eb);
	box-shadow: none;
}

.mh-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.mh-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--mh-heading, #1b2a5e);
}

.mh-field select,
.mh-field input {
	width: 100%;
	height: 50px;
}

.mh-field--action { align-self: end; }
.mh-field--action .mh-btn { height: 50px; white-space: nowrap; }

@media (max-width: 980px) {
	.mh-search__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mh-field--action { grid-column: 1 / -1; }
	.mh-field--action .mh-btn { width: 100%; }
	.mh-search__title { font-size: 27px; }
}

@media (max-width: 560px) {
	.mh-search__form { grid-template-columns: minmax(0, 1fr); }
	.mh-search--hero { padding: 34px 16px 38px; }
}

/* ------------------------------------------------------------ detail page */

.mh-single { max-width: 1180px; margin: 0 auto; }

.mh-back {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 15px;
	font-weight: 600;
	color: var(--mh-view, #b02a37);
	text-decoration: none;
}

.mh-back:hover { color: var(--mh-view-hover, #1d4ed8); text-decoration: underline; }

.mh-single__head .mh-badge {
	display: inline-block;
	margin-bottom: 12px;
}

.mh-single__title {
	margin: 0 0 12px;
	font-size: 42px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -.025em;
	color: var(--mh-heading, #1b2a5e);
}

.mh-gallery { margin: 26px 0 34px; }

.mh-gallery__main {
	border-radius: var(--mh-radius, 14px);
	overflow: hidden;
	background: var(--mh-panel-bg, #f3f4f6);
	aspect-ratio: 16 / 9;
}

.mh-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	animation: mh-image-in .7s var(--mh-ease) both;
}

.mh-gallery__thumbs {
	list-style: none;
	display: flex;
	gap: 12px;
	margin: 12px 0 0;
	padding: 2px;
	overflow-x: auto;
}

.mh-gallery__thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	background: none;
	cursor: pointer;
	line-height: 0;
	transition: border-color .25s var(--mh-ease), transform .25s var(--mh-ease);
}

.mh-gallery__thumb img { width: 96px; height: 72px; object-fit: cover; display: block; }
.mh-gallery__thumb:hover { transform: translateY(-2px); }
.mh-gallery__thumb.is-active { border-color: var(--mh-view, #b02a37); }

.mh-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 40px;
	align-items: start;
}

.mh-section { margin-bottom: 34px; }

.mh-section__title {
	margin: 0 0 14px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -.015em;
	color: var(--mh-heading, #1b2a5e);
}

.mh-prose {
	font-size: 17px;
	line-height: 1.7;
	color: var(--mh-text, #374151);
	max-width: 68ch;
}

.mh-prose p { margin: 0 0 1em; }

.mh-ticks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 22px;
}

.mh-ticks li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 16px;
}

.mh-ticks svg { color: var(--mh-badge-text, #1e6b47); margin-top: 3px; flex: none; }

.mh-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 0;
	padding: 0;
}

.mh-chips li {
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--mh-panel-bg, #f3f4f6);
	font-size: 15px;
	color: var(--mh-heading, #1b2a5e);
}

.mh-address {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0 0 10px;
	color: var(--mh-text, #374151);
}

.mh-address svg { color: var(--mh-view, #b02a37); margin-top: 2px; }

.mh-city-links { margin: 0 0 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.mh-city-links a {
	font-size: 15px;
	color: var(--mh-view, #b02a37);
	text-decoration: none;
}

.mh-city-links a:hover { color: var(--mh-view-hover, #1d4ed8); text-decoration: underline; }

.mh-map {
	border-radius: var(--mh-radius, 14px);
	overflow: hidden;
	line-height: 0;
	border: 1px solid var(--mh-card-border, #e5e7eb);
}

.mh-map iframe { width: 100%; min-height: 320px; border: 0; }

/* Quote panel */

.mh-single__aside { position: sticky; top: 24px; }

.mh-quote {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	background: var(--mh-card-bg, #fff);
	border: 1px solid var(--mh-card-border, #e5e7eb);
	border-radius: var(--mh-radius, 14px);
	box-shadow: 0 20px 45px -30px rgba(16, 24, 40, .5);
}

.mh-quote__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.mh-quote__note {
	margin: 2px 0 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--mh-muted, #6b7280);
}

.mh-archive__head { margin-bottom: 26px; }

.mh-archive__title {
	margin: 0 0 8px;
	font-size: 38px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--mh-heading, #1b2a5e);
}

@media (max-width: 900px) {
	.mh-single__layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.mh-single__aside { position: static; }
	.mh-single__title { font-size: 32px; }
	.mh-ticks { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------------------------- a11y */

.mh-card .screen-reader-text,
.mh-btn__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

[dir="rtl"] .mh-carousel__arrow--prev { left: auto; right: -14px; }
[dir="rtl"] .mh-carousel__arrow--next { right: auto; left: -14px; }

@media (prefers-reduced-motion: reduce) {
	.mh-card,
	.mh-card__img,
	.mh-card__shine,
	.mh-carousel__track,
	.mh-gallery__img,
	.mh-btn {
		animation: none !important;
		transition: none !important;
	}

	.mh-js .mh-card { opacity: 1; transform: none; }
	.mh-card:hover { transform: none; }
}
