/* Meezab Umrah Packages — front-end
   Light card layout: white cards, grey occupancy boxes, price top right.
   Brand colours come from the settings page. Typography is inherited
   from the active theme on purpose. */

.mup {
	--mup-red: #c8102e;
	--mup-red-deep: #9c0c23;
	--mup-red-tint: #fbeced;
	--mup-navy: #16336b;
	--mup-navy-soft: #1a3d80;
	--mup-gold: #f5b335;
	--mup-ink: #16181d;
	--mup-muted: #6b7280;
	--mup-line: #e4e7ed;
	--mup-surface: #f5f6f8;
	--mup-wa: #1eaa53;
	--mup-radius: 8px;
	--mup-radius-lg: 12px;

	font-family: inherit;
	color: var(--mup-ink);
	max-width: 100%;
}

.mup *,
.mup *::before,
.mup *::after {
	box-sizing: border-box;
}

.mup :focus-visible {
	outline: 2px solid var(--mup-navy);
	outline-offset: 2px;
}

.mup-heading {
	font-size: clamp(1.3rem, 2.2vw, 1.75rem);
	color: var(--mup-navy);
	margin: 0 0 1.25rem;
	line-height: 1.25;
}

/* ---------- Filter bar ---------- */

.mup-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-end;
	margin-bottom: 1.25rem;
}

.mup-select {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 150px;
}

.mup-select > span {
	font-size: 0.75rem;
	color: var(--mup-muted);
	line-height: 1.3;
	transition: color 0.15s ease;
}

.mup-select select {
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	height: 44px;
	padding: 0 42px 0 16px;
	border: 1.5px solid var(--mup-line);
	border-radius: 10px;
	background-color: #fff;
	background-image: var(--mup-chevron);
	background-repeat: no-repeat;
	background-position: right 15px center;
	color: var(--mup-ink);
	max-width: 100%;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-image 0.15s ease;
}

/* Navy on hover, red once it has focus, so the two brand colours each mean
   something rather than competing. */
.mup-select select:hover {
	border-color: var(--mup-navy);
	background-image: var(--mup-chevron-navy);
	box-shadow: 0 2px 10px rgba(22, 51, 107, 0.12);
}

.mup-select select:focus,
.mup-select select:focus-visible {
	outline: none;
	border-color: var(--mup-red);
	background-image: var(--mup-chevron-red);
	box-shadow: 0 0 0 3px var(--mup-red-tint);
}

.mup-select:focus-within > span {
	color: var(--mup-red-deep);
}

.mup-filters__count {
	margin: 0 0 0 auto;
	align-self: center;
	font-size: 0.8125rem;
	color: var(--mup-muted);
	padding-bottom: 12px;
}

/* ---------- Departure summary strip ---------- */

.mup-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	align-items: center;
	background: var(--mup-surface);
	border-radius: var(--mup-radius-lg);
	padding: 14px 18px;
	margin-bottom: 1rem;
}

.mup-strip__item {
	min-width: 0;
}

.mup-strip__label {
	display: block;
	font-size: 0.75rem;
	color: var(--mup-muted);
	line-height: 1.4;
}

.mup-strip__value {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--mup-ink);
	line-height: 1.4;
}

/* ---------- Card ---------- */

.mup-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mup-card {
	background: #fff;
	border: 1px solid var(--mup-red);
	border-radius: var(--mup-radius-lg);
	padding: 18px 22px;
	transition: box-shadow 0.15s ease;
}

.mup-card:hover {
	box-shadow: 0 4px 16px rgba(200, 16, 46, 0.10);
}

/* Red is on every card now, so the most booked one is set apart by weight
   and a soft glow instead of by colour alone. */
.mup-card.is-featured {
	border-width: 2px;
	padding: 17px 21px;
	box-shadow: 0 3px 18px rgba(200, 16, 46, 0.13);
}

.mup-card.is-featured:hover {
	box-shadow: 0 5px 22px rgba(200, 16, 46, 0.18);
}

.mup-card[hidden] {
	display: none;
}

.mup-card__flag {
	display: inline-block;
	margin: 0 0 10px;
	background: var(--mup-red-tint);
	color: var(--mup-red-deep);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	padding: 6px 13px;
	border-radius: var(--mup-radius);
}

.mup-card__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 13px;
}

.mup-card__id {
	min-width: 0;
	flex: 1 1 260px;
}

.mup-card__title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--mup-navy);
}

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

.mup-card__title a:hover {
	text-decoration: underline;
}

.mup-card__hotel {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 5px 0 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--mup-muted);
}

.mup-card__hotel svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	margin-top: 1px;
	color: var(--mup-gold);
}

.mup-card__from {
	text-align: right;
	flex: 0 0 auto;
}

.mup-card__from-label {
	display: block;
	font-size: 0.75rem;
	color: var(--mup-muted);
	line-height: 1.4;
}

.mup-card__from-price {
	display: block;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--mup-ink);
}

/* ---------- Occupancy boxes ---------- */

.mup-rates {
	list-style: none;
	margin: 0 0 13px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 8px;
}

.mup-rates li {
	background: #fff;
	border: 1px solid var(--mup-red);
	border-radius: var(--mup-radius);
	padding: 8px 11px;
	transition: background-color 0.15s ease;
}

.mup-rates li:hover {
	background: var(--mup-red-tint);
}

.mup-rates__label {
	display: block;
	font-size: 0.75rem;
	color: var(--mup-red-deep);
	line-height: 1.4;
}

.mup-rates__value {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--mup-ink);
	line-height: 1.4;
}

/* ---------- Flights ---------- */

.mup-flights {
	margin: 0 0 13px;
	font-size: 0.8125rem;
}

.mup-flights summary {
	cursor: pointer;
	color: var(--mup-navy);
	font-weight: 600;
}

.mup-flights__row {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 14px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--mup-line);
	color: var(--mup-muted);
}

.mup-flights__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.mup-flights__code {
	font-weight: 700;
	color: var(--mup-red);
}

/* ---------- Buttons ---------- */

.mup-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mup-btn {
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	padding: 11px 18px;
	border: 1px solid var(--mup-line);
	border-radius: var(--mup-radius);
	background: #fff;
	color: var(--mup-ink);
	text-decoration: none;
	text-align: center;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mup-btn:hover {
	background: var(--mup-surface);
	border-color: #cfd4dd;
	text-decoration: none;
}

.mup-btn--wa {
	background: var(--mup-wa);
	border-color: var(--mup-wa);
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.mup-btn--wa:hover {
	background: #199447;
	border-color: #199447;
	color: #fff;
}

.mup-btn--wa svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

/* ---------- Footnote ---------- */

.mup-footnote {
	margin: 14px 0 0;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--mup-muted);
}

/* ---------- Compact layout ---------- */

.mup--compact .mup-card {
	padding: 13px 16px;
}

.mup--compact .mup-rates,
.mup--compact .mup-card__hotel,
.mup--compact .mup-flights {
	display: none;
}

/* ---------- States ---------- */

.mup-noresults,
.mup-empty {
	padding: 28px 20px;
	text-align: center;
	color: var(--mup-muted);
	background: var(--mup-surface);
	border-radius: var(--mup-radius-lg);
	margin: 12px 0 0;
}

.mup-noresults[hidden] {
	display: none;
}

/* ---------- Single package page ---------- */

.mup-single {
	max-width: 1000px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 3.5rem;
}

.mup-single__title {
	color: var(--mup-navy);
	margin: 0 0 8px;
	line-height: 1.2;
}

.mup-single__meta {
	color: var(--mup-muted);
	font-size: 0.875rem;
	margin: 0 0 1.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.mup-sep {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
	display: inline-block;
}

.mup-single__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
}

.mup-panel {
	background: #fff;
	border: 1px solid var(--mup-line);
	border-radius: var(--mup-radius-lg);
	padding: 20px 22px;
	margin-bottom: 14px;
}

.mup-panel h2 {
	font-size: 1rem;
	font-weight: 600;
	color: var(--mup-navy);
	margin: 0 0 14px;
}

.mup-panel--price {
	position: sticky;
	top: 24px;
	border-color: var(--mup-red);
	border-width: 2px;
	padding: 19px 21px;
}

.mup-panel--price .mup-rates {
	grid-template-columns: minmax(0, 1fr);
	margin-bottom: 14px;
}

.mup-panel--price .mup-rates li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.mup-panel--price .mup-rates__label,
.mup-panel--price .mup-rates__value {
	display: inline;
}

.mup-hotels {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.mup-hotels li {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 3px 14px;
	align-items: baseline;
	padding-left: 13px;
	border-left: 3px solid var(--mup-gold);
}

.mup-hotels__city {
	grid-row: span 2;
	font-size: 0.8125rem;
	color: var(--mup-muted);
	padding-top: 2px;
}

.mup-hotels__name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--mup-ink);
}

.mup-hotels__detail {
	grid-column: 2;
	font-size: 0.8125rem;
	color: var(--mup-muted);
}

.mup-extras {
	list-style: none;
	margin: 14px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--mup-line);
	font-size: 0.8125rem;
	color: var(--mup-muted);
	display: grid;
	gap: 7px;
}

.mup-extras li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.mup-extras strong {
	font-weight: 600;
	color: var(--mup-ink);
}

.mup-inclusions {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}

.mup-inclusions li {
	position: relative;
	padding-left: 24px;
	font-size: 0.9375rem;
}

.mup-inclusions li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 0.45em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--mup-gold);
}

.mup-flyer img {
	width: 100%;
	height: auto;
	border-radius: var(--mup-radius);
	display: block;
}

/* ---------- Responsive ---------- */

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

	.mup-panel--price {
		position: static;
	}

	.mup-filters__count {
		margin-left: 0;
		width: 100%;
		padding-bottom: 0;
	}
}

@media (max-width: 560px) {
	.mup-card,
	.mup-card.is-featured {
		padding: 15px 16px;
	}

	.mup-select {
		flex: 1 1 100%;
	}

	.mup-card__top {
		gap: 10px;
	}

	.mup-card__from {
		text-align: left;
	}

	.mup-btn {
		flex: 1 1 100%;
		justify-content: center;
	}

	.mup-hotels li {
		grid-template-columns: minmax(0, 1fr);
	}

	.mup-hotels__city {
		grid-row: auto;
	}

	.mup-hotels__detail {
		grid-column: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mup * {
		transition: none !important;
	}
}

/* ---------- Booking popup ---------- */

body.mup-modal-open {
	overflow: hidden;
}

.mup-modal[hidden] {
	display: none;
}

.mup-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mup-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 16, 24, 0.55);
}

.mup-modal__panel {
	position: relative;
	background: #fff;
	border-radius: var(--mup-radius-lg);
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 26px 28px;
	box-shadow: 0 18px 50px rgba(12, 16, 24, 0.22);
}

.mup-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: var(--mup-muted);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	border-radius: var(--mup-radius);
}

.mup-modal__close:hover {
	background: var(--mup-surface);
	color: var(--mup-ink);
}

.mup-modal__title {
	margin: 0 0 4px;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--mup-navy);
	padding-right: 32px;
}

.mup-modal__package {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--mup-ink);
}

.mup-modal__summary {
	margin: 3px 0 18px;
	font-size: 0.8125rem;
	color: var(--mup-muted);
	line-height: 1.5;
}

.mup-modal__form[hidden] {
	display: none;
}

.mup-modal__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 0 12px;
}

.mup-modal__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0 0 14px;
}

.mup-modal__field label {
	font-size: 0.8125rem;
	color: var(--mup-muted);
}

.mup-modal__field input,
.mup-modal__field select,
.mup-modal__field textarea {
	font: inherit;
	font-size: 0.9375rem;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mup-line);
	border-radius: var(--mup-radius);
	background: #fff;
	color: var(--mup-ink);
}

.mup-modal__field textarea {
	resize: vertical;
	min-height: 74px;
}

.mup-modal__field input:focus,
.mup-modal__field select:focus,
.mup-modal__field textarea:focus {
	border-color: var(--mup-navy);
}

.mup-modal__status {
	margin: 0 0 12px;
	font-size: 0.875rem;
	line-height: 1.5;
}

.mup-modal__status:empty {
	display: none;
}

.mup-modal__status.is-error {
	color: var(--mup-red-deep);
}

.mup-modal__status.is-pending {
	color: var(--mup-muted);
}

.mup-modal__status.is-success {
	color: #12703a;
	background: #e8f6ed;
	border-radius: var(--mup-radius);
	padding: 14px 16px;
	margin-bottom: 0;
}

.mup-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mup-btn--submit {
	background: var(--mup-red);
	border-color: var(--mup-red);
	color: #fff;
}

.mup-btn--submit:hover {
	background: var(--mup-red-deep);
	border-color: var(--mup-red-deep);
	color: #fff;
}

.mup-btn--submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

.mup-btn--book {
	background: var(--mup-red);
	border-color: var(--mup-red);
	color: #fff;
	cursor: pointer;
}

.mup-btn--book:hover {
	background: var(--mup-red-deep);
	border-color: var(--mup-red-deep);
	color: #fff;
}

@media (max-width: 560px) {
	.mup-modal {
		padding: 0;
		align-items: flex-end;
	}

	.mup-modal__panel {
		max-width: none;
		max-height: 92vh;
		border-radius: var(--mup-radius-lg) var(--mup-radius-lg) 0 0;
		padding: 22px 18px;
	}
}
