/**
 * MTZ Booking System - Ultra-Compact Unified Card & High-Z-Index Modal Flow
 */

:root {
	--mtz-primary: #1cb2ff;
	--mtz-primary-hover: #004284;
	--mtz-text-dark: #1e293b;
	--mtz-text-muted: #64748b;
	--mtz-border-color: #e2e8f0;
	--mtz-card-bg: #ffffff;
	--mtz-radius: 12px;
}

/* Background Scroll Lock when Modal is Active */
html.mtz-modal-open,
body.mtz-modal-open {
	overflow: hidden !important;
	height: 100% !important;
	touch-action: none !important;
}

.mtz-booking-widget-wrapper {
	font-family: inherit;
	color: var(--mtz-text-dark);
	max-width: 100%;
	width: 100%;
	margin: 0 0 20px;
	box-sizing: border-box;
}

/* RealHomes Right Sidebar Sticky Container */
.rh_property__sidebar,
.sidebar-wrap,
.span3.sidebar-wrap {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 75px !important;
	align-self: flex-start !important;
	z-index: 80 !important;
}

.mtz-sidebar-booking-container {
	position: -webkit-sticky;
	position: sticky;
	top: 75px;
	width: 100%;
}

/* Hide other default widgets on Single Property right sidebar so only MTZ Booking appears */
.single-property .rh_property__sidebar .widget:not(.mtz-sticky-sidebar-widget),
.single-property .rh_sidebar .widget:not(.mtz-sticky-sidebar-widget),
.single-property .sidebar .widget:not(.mtz-sticky-sidebar-widget),
.single-property .rh_property__sidebar .agent-in-sidebar {
	display: none !important;
}

/* UNIFIED ULTRA-COMPACT SINGLE CARD */
.mtz-unified-card {
	background: var(--mtz-card-bg);
	border: 1px solid #e2e8f0;
	border-radius: var(--mtz-radius);
	padding: 16px 18px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

.mtz-card-top-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
}

.mtz-top-price-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mtz-top-price {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.mtz-price-amount {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
}

.mtz-price-period {
	font-size: 13px;
	color: var(--mtz-text-muted);
}

.mtz-top-season-badge {
	font-size: 11px;
	font-weight: 700;
	color: #0369a1;
	background: #e0f2fe;
	border: 1px solid #bae6fd;
	padding: 2px 7px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
	margin-top: 3px;
	box-sizing: border-box;
}

.mtz-top-badge {
	background: #f0fdf4;
	color: #166534;
	padding: 3px 8px;
	border-radius: 10px;
	font-size: 11.5px;
	font-weight: 600;
	border: 1px solid #bbf7d0;
}

.mtz-seasonal-rate-banner {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	color: #0369a1;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 8px;
}

.mtz-season-icon {
	font-size: 13px;
}

/* Input Fields */
.mtz-input-row {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.mtz-input-field {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.mtz-input-field label {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--mtz-text-muted);
	margin-bottom: 4px;
}

.mtz-datepicker-input,
.mtz-select,
.mtz-input {
	width: 100%;
	padding: 8px 10px;
	background: #f8fafc;
	border: 1px solid var(--mtz-border-color);
	border-radius: 6px;
	font-size: 13px;
	color: var(--mtz-text-dark);
	transition: all 0.2s ease;
	outline: none;
	box-sizing: border-box;
}

.mtz-datepicker-input:focus,
.mtz-select:focus,
.mtz-datepicker-input:focus {
	border-color: var(--mtz-primary);
	background: #ffffff;
	box-shadow: 0 0 0 2px rgba(28, 178, 255, 0.15);
}

.mtz-property-rules-hint {
	display: flex;
	justify-content: space-between;
	font-size: 11.5px;
	color: var(--mtz-text-muted);
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px dashed var(--mtz-border-color);
}

/* ===================================================
   Reservation Summary Section (Inside the Same Card)
   =================================================== */
.mtz-reservation-summary-section {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #f1f5f9;
	animation: mtzFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mtzFadeIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mtz-summary-dates-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 6px 10px;
	margin-bottom: 10px;
}

.mtz-dates-banner {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #334155;
}

.mtz-dates-arrow {
	color: #94a3b8;
}

.mtz-nights-pill {
	background: #e2e8f0;
	padding: 2px 7px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	color: #1e293b;
	margin-left: 4px;
}

.mtz-clear-btn {
	background: transparent;
	border: none;
	padding: 2px 4px;
	color: #94a3b8;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	border-radius: 4px;
}

.mtz-clear-btn:hover {
	color: #ef4444;
	background: #fee2e2;
}

/* Breakdown Rows */
.mtz-breakdown-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 0;
	font-size: 13px;
	color: #475569;
}

.mtz-breakdown-val {
	font-weight: 600;
	color: #0f172a;
}

.mtz-taxes-row {
	position: relative;
}

/* Info Icon & Tooltip Popover */
.mtz-info-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin-left: 4px;
	font-size: 12px;
	color: #64748b;
	position: relative;
}

.mtz-tax-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 8px 12px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	min-width: 160px;
	z-index: 100;
	display: none;
}

.mtz-tax-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: #ffffff transparent transparent transparent;
}

.mtz-info-trigger:hover .mtz-tax-tooltip,
.mtz-info-trigger.active .mtz-tax-tooltip {
	display: block;
}

.mtz-tooltip-item {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #475569;
	padding: 2px 0;
}

.mtz-tooltip-item span:last-child {
	font-weight: 600;
	color: #0f172a;
	margin-left: 10px;
}

.mtz-total-row {
	padding: 8px 0 2px;
	margin-top: 4px;
	border-top: 1px dashed #e2e8f0;
	font-size: 15.5px;
	font-weight: 800;
	color: #0f172a;
}

.mtz-total-val {
	font-size: 16.5px;
	font-weight: 800;
	color: #0f172a;
}

/* Book Now CTA Button */
.mtz-cta-wrapper {
	margin-top: 10px;
}

.mtz-btn-book-now {
	width: 100%;
	background: var(--mtz-primary);
	color: #ffffff;
	border: none;
	border-radius: 25px;
	padding: 10px 18px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(28, 178, 255, 0.3);
}

.mtz-btn-book-now:hover {
	background: var(--mtz-primary-hover);
	box-shadow: 0 6px 16px rgba(0, 66, 132, 0.35);
}

.mtz-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mtzSpin 0.7s linear infinite;
	margin-left: 8px;
}

@keyframes mtzSpin {
	to {
		transform: rotate(360deg);
	}
}

.mtz-trust-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 11.5px;
	color: #64748b;
	margin-top: 8px;
}

/* ===================================================
   CHECKOUT MODAL POPUP (HIGH Z-INDEX & NO BG SCROLL)
   =================================================== */
.mtz-modal-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(15, 23, 42, 0.75) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999999 !important;
	/* Always above all theme menus & bars */
	backdrop-filter: blur(4px);
	overflow-y: auto;
	padding: 16px;
	box-sizing: border-box;
	animation: mtzModalFade 0.2s ease;
}

@keyframes mtzModalFade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.mtz-checkout-modal-content {
	background: #ffffff;
	border-radius: 18px;
	max-width: 520px;
	width: 100%;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 28px 30px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
	position: relative;
	box-sizing: border-box;
	animation: mtzModalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	margin: auto;
}

@keyframes mtzModalScale {
	from {
		transform: scale(0.96) translateY(10px);
	}

	to {
		transform: scale(1) translateY(0);
	}
}

.mtz-modal-close-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	background: #f1f5f9;
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	font-size: 22px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 10;
}

.mtz-modal-close-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.mtz-modal-header {
	margin-bottom: 18px;
	padding-right: 32px;
}

.mtz-modal-title {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 5px;
}

.mtz-modal-subtitle {
	font-size: 13px;
	color: #64748b;
	margin: 0;
	line-height: 1.4;
}

.mtz-modal-dates-pill {
	display: inline-block;
	background: #f1f5f9;
	color: #334155;
	padding: 2px 7px;
	border-radius: 5px;
	font-size: 11.5px;
	font-weight: 600;
	margin-left: 4px;
}

.mtz-checkout-section {
	margin-bottom: 14px;
}

.mtz-section-heading {
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #334155;
	margin: 0 0 8px;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 4px;
}

.mtz-form-group {
	margin-bottom: 10px;
}

.mtz-form-group label {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 4px;
}

.mtz-form-row {
	display: flex;
	gap: 10px;
}

/* Stripe Container inside Modal */
.mtz-stripe-container {
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.mtz-card-label {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 6px;
}

.mtz-card-box {
	background: #ffffff;
	padding: 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
}

.mtz-card-errors {
	color: #ef4444;
	font-size: 11.5px;
	margin-top: 6px;
}

.mtz-checkout-total-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	padding: 10px 14px;
	margin: 12px 0 16px;
}

.mtz-bar-label {
	font-size: 13.5px;
	font-weight: 600;
	color: #166534;
}

.mtz-bar-amount {
	font-size: 17px;
	font-weight: 800;
	color: #166534;
}

.mtz-btn-submit-payment {
	width: 100%;
	background: var(--mtz-primary);
	color: #ffffff;
	border: none;
	border-radius: 25px;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(28, 178, 255, 0.3);
}

.mtz-btn-submit-payment:hover {
	background: var(--mtz-primary-hover);
}

/* Success Modal */
.mtz-modal-content {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	max-width: 400px;
	width: 90%;
	text-align: center;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	margin: auto;
}

.mtz-modal-icon {
	font-size: 40px;
	margin-bottom: 10px;
}

.mtz-btn-primary {
	background: var(--mtz-primary);
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 9px 22px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 12px;
}

/* Flatpickr Custom Stylings */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
	background: var(--mtz-primary) !important;
	border-color: var(--mtz-primary) !important;
	color: #fff !important;
}

.flatpickr-day.inRange {
	background: rgba(28, 178, 255, 0.15) !important;
	border-color: transparent !important;
	color: var(--mtz-primary) !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
	color: #d1d5db !important;
	background: #f9fafb !important;
	text-decoration: line-through;
}

/* ===================================================
   ACCOUNT PAGE & AUTH FORMS (LOGIN / REGISTER)
   =================================================== */
.mtz-account-auth-container {
	width: 100%;
	margin: 20px auto;
	box-sizing: border-box;
}

.mtz-auth-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

@media (max-width: 768px) {
	.mtz-auth-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

.mtz-auth-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 32px 36px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
}

.mtz-auth-title {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid #f1f5f9;
}

.mtz-field-group {
	margin-bottom: 18px;
}

.mtz-field-group label {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 6px;
}

.mtz-field-group label .required {
	color: #ef4444;
}

.mtz-label-with-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.mtz-label-with-link label {
	margin-bottom: 0;
}

.mtz-forgot-link {
	font-size: 12.5px;
	color: #0284c7;
	text-decoration: none;
	font-weight: 600;
}

.mtz-forgot-link:hover {
	text-decoration: underline;
}

.mtz-input-text {
	width: 100%;
	padding: 12px 16px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14.5px;
	color: #1e293b;
	box-sizing: border-box;
	transition: all 0.2s ease;
	outline: none;
}

.mtz-input-text:focus {
	background: #ffffff;
	border-color: var(--mtz-primary);
	box-shadow: 0 0 0 3px rgba(28, 178, 255, 0.15);
}

.mtz-form-checkbox-row {
	margin: 16px 0 20px;
}

.mtz-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: #475569;
	cursor: pointer;
}

.mtz-btn-auth-primary {
	background: var(--mtz-primary, #1cb2ff);
	color: #ffffff;
	border: none;
	border-radius: 28px;
	padding: 12px 30px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: 0 4px 14px rgba(28, 178, 255, 0.35);
}

.mtz-btn-auth-primary:hover {
	background: var(--mtz-primary-hover, #004284);
	transform: translateY(-1px);
}

.mtz-auth-notice {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 13.5px;
	margin-bottom: 18px;
	line-height: 1.4;
}

.mtz-auth-notice.mtz-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.mtz-auth-notice.mtz-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #15803d;
}

/* ===================================================
   LOGGED-IN ACCOUNT DASHBOARD (WOOCOMMERCE STYLE)
   =================================================== */
.mtz-account-dashboard-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	margin: 20px 0 40px;
}

.mtz-account-header-bar {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	padding: 24px 30px;
}

.mtz-account-welcome {
	display: flex;
	align-items: center;
	gap: 16px;
}

.mtz-account-avatar img {
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mtz-welcome-text h3 {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 4px;
}

.mtz-welcome-text p {
	font-size: 13.5px;
	color: #64748b;
	margin: 0;
}

.mtz-logout-link {
	color: #ef4444;
	font-weight: 600;
	text-decoration: none;
}

.mtz-logout-link:hover {
	text-decoration: underline;
}

.mtz-account-layout {
	display: flex;
	min-height: 480px;
}

@media (max-width: 768px) {
	.mtz-account-layout {
		flex-direction: column;
	}
}

.mtz-account-navigation {
	width: 240px;
	background: #fafbfc;
	border-right: 1px solid #e2e8f0;
	padding: 24px 0;
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.mtz-account-navigation {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #e2e8f0;
		padding: 12px 0;
	}
}

.mtz-account-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mtz-account-navigation li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 24px;
	font-size: 14.5px;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: all 0.2s ease;
}

.mtz-account-navigation li:hover a {
	background: #f1f5f9;
	color: #0f172a;
}

.mtz-account-navigation li.active a {
	background: #ffffff;
	color: var(--mtz-primary);
	border-left-color: var(--mtz-primary);
	box-shadow: inset 0 0 0 1px #f1f5f9;
}

.mtz-nav-icon {
	font-size: 16px;
}

.mtz-account-content-area {
	flex: 1;
	padding: 30px;
}

.mtz-panel-title {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f1f5f9;
}

/* Empty State */
.mtz-empty-state {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	padding: 50px 20px;
	text-align: center;
}

.mtz-empty-icon {
	font-size: 44px;
	margin-bottom: 12px;
}

.mtz-empty-state h4 {
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 6px;
}

.mtz-empty-state p {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 20px;
}

/* Dashboard Table */
.mtz-table-responsive {
	overflow-x: auto;
}

.mtz-account-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.mtz-account-table th {
	background: #f8fafc;
	padding: 12px 14px;
	text-align: left;
	font-weight: 700;
	color: #475569;
	border-bottom: 2px solid #e2e8f0;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mtz-account-table td {
	padding: 14px;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
	vertical-align: middle;
}

.mtz-ref-cell {
	font-weight: 700;
	color: #0f172a;
}

.mtz-prop-title-link {
	font-weight: 600;
	color: var(--mtz-primary);
	text-decoration: none;
}

.mtz-prop-title-link:hover {
	text-decoration: underline;
}

.mtz-dates-text {
	font-weight: 600;
	color: #1e293b;
}

.mtz-nights-subtext {
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
}

.mtz-total-cell {
	font-weight: 800;
	color: #0f172a;
}

.mtz-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 12px;
	font-size: 11.5px;
	font-weight: 700;
}

.mtz-badge-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.mtz-badge-danger {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.mtz-badge-secondary {
	background: #f1f5f9;
	color: #475569;
}

.mtz-cancel-booking-btn {
	background: #ffffff;
	border: 1px solid #fca5a5;
	color: #dc2626;
	padding: 6px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	transition: all 0.2s ease;
}

.mtz-cancel-booking-btn:hover {
	background: #fef2f2;
	border-color: #ef4444;
}

/* Profile Form */
.mtz-profile-form {
	max-width: 600px;
}

.mtz-field-hint {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-top: 4px;
}

.mtz-password-fieldset {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 20px;
	margin-top: 24px;
}

.mtz-password-fieldset legend {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	padding: 0 8px;
}

/* ===================================================
   MOBILE RESPONSIVE CARD VIEW FOR MY BOOKINGS TABLE
   =================================================== */
.mtz-table-responsive {
	overflow-x: auto;
}

.mtz-account-table {
	width: 100%;
	border-collapse: collapse;
	border: none !important;
}

.mtz-account-table td,
.mtz-account-table th {
	border-left: none !important;
	border-right: none !important;
}

@media (max-width: 768px) {
	.mtz-account-content-area {
		padding: 16px 10px;
	}

	.mtz-table-responsive {
		overflow-x: visible !important;
		border: none !important;
	}

	.mtz-account-table thead {
		display: none !important;
	}

	.mtz-account-table,
	.mtz-account-table tbody,
	.mtz-account-table tr,
	.mtz-account-table td {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
		border: none !important;
	}

	.mtz-account-table tr {
		background: #ffffff !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 16px !important;
		margin-bottom: 20px !important;
		padding: 16px 18px !important;
		box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
	}

	.mtz-account-table td {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		padding: 10px 0 !important;
		border-bottom: 1px solid #f1f5f9 !important;
		text-align: right !important;
		font-size: 13.5px !important;
		min-height: 40px;
	}

	.mtz-account-table td:last-child {
		border-bottom: none !important;
		padding-top: 14px !important;
		padding-bottom: 2px !important;
		margin-top: 4px !important;
		justify-content: center !important;
	}

	.mtz-account-table td::before {
		content: attr(data-label);
		font-weight: 700;
		color: #64748b;
		font-size: 11.5px;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		text-align: left;
		margin-right: 12px;
		flex-shrink: 0;
	}

	/* Hide ACTION label on mobile */
	.mtz-account-table td[data-label="Action"]::before {
		display: none !important;
	}

	.mtz-account-table td[data-label="Action"]:has(.mtz-empty-dash) {
		display: none !important;
	}

	.mtz-empty-dash {
		display: none !important;
	}

	.mtz-prop-cell a {
		max-width: 190px;
		white-space: normal;
		text-align: right;
		line-height: 1.35;
		font-weight: 700;
		color: #0f172a !important;
	}

	.mtz-prop-cell a:hover {
		color: var(--mtz-primary) !important;
	}

	.mtz-cancel-booking-btn {
		width: 100% !important;
		padding: 10px 18px !important;
		text-align: center !important;
		display: block !important;
		border-radius: 8px !important;
		font-weight: 700 !important;
		font-size: 13.5px !important;
		background: #fef2f2 !important;
		border: 1px solid #fecaca !important;
		color: #dc2626 !important;
		transition: all 0.2s ease;
	}

	.mtz-cancel-booking-btn:hover {
		background: #fee2e2 !important;
		border-color: #ef4444 !important;
	}
}

/* ===================================================
   RESPONSIVE BOOKING WIDGET PLACEMENT (OPTION 1)
   Desktop (>1024px): Sticky Right Sidebar
   Mobile & Tablet (<=1024px): Placed Above Description
   =================================================== */
.mtz-mobile-booking-target {
	display: none;
	width: 100%;
	margin: 22px 0 28px 0;
	clear: both;
}

@media (max-width: 1024px) {
	/* Hide empty sidebar on mobile so no blank space at bottom */
	.single-property .rh_property__sidebar,
	.single-property .sidebar-wrap {
		display: none !important;
	}

	/* Show mobile booking card above Description */
	.mtz-mobile-booking-target {
		display: block !important;
	}

	.mtz-mobile-booking-target .mtz-booking-widget-wrapper {
		margin: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	.mtz-mobile-booking-target .mtz-unified-card {
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 14px !important;
		padding: 20px !important;
		background: #ffffff !important;
	}
}

/* ===================================================
   PROPERTY RULES BUTTON & MODAL POPUP
   =================================================== */
.mtz-rules-btn-wrapper {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	align-self: center;
}

.mtz-check-rules-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	background: #1cb2ff !important;
	color: #ffffff !important;
	font-family: inherit !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	padding: 9px 18px !important;
	border-radius: 6px !important;
	border: none !important;
	cursor: pointer !important;
	box-shadow: 0 2px 8px rgba(28, 178, 255, 0.28) !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	text-decoration: none !important;
	line-height: 1.3 !important;
}

.mtz-check-rules-btn:hover {
	background: #004284 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(0, 66, 132, 0.35) !important;
	transform: translateY(-1px) !important;
}

.mtz-check-rules-btn svg {
	width: 15px !important;
	height: 15px !important;
	flex-shrink: 0 !important;
	stroke: #ffffff !important;
}

@media (max-width: 768px) {
	.mtz-rules-btn-wrapper {
		width: 100% !important;
		margin-left: 0 !important;
		margin-top: 12px !important;
	}

	.mtz-check-rules-btn {
		width: 100% !important;
		justify-content: center !important;
		padding: 11px 18px !important;
		font-size: 14px !important;
	}
}

/* Rules Modal Overlay */
.mtz-rules-modal-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(15, 23, 42, 0.75) !important;
	backdrop-filter: blur(4px) !important;
	-webkit-backdrop-filter: blur(4px) !important;
	z-index: 999999999 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px !important;
	box-sizing: border-box !important;
	animation: mtzModalFade 0.2s ease;
}

.mtz-rules-modal-overlay[style*="display: none"] {
	display: none !important;
}

/* Rules Modal Dialog Box */
.mtz-rules-modal-dialog {
	background: #ffffff !important;
	border-radius: 14px !important;
	width: 100% !important;
	max-width: 600px !important;
	max-height: 80vh !important;
	display: flex !important;
	flex-direction: column !important;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
	overflow: hidden !important;
	position: relative !important;
	animation: mtzModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mtzModalSlideUp {
	from {
		transform: translateY(18px) scale(0.98);
		opacity: 0;
	}

	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

/* Modal Header */
.mtz-rules-modal-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 16px 22px !important;
	background: #f8fafc !important;
	border-bottom: 1px solid #e2e8f0 !important;
	flex-shrink: 0 !important;
}

.mtz-rules-modal-title {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 !important;
}

.mtz-rules-modal-title svg {
	width: 20px !important;
	height: 20px !important;
	stroke: #1cb2ff !important;
	flex-shrink: 0 !important;
}

.mtz-rules-modal-close {
	background: transparent !important;
	border: none !important;
	font-size: 26px !important;
	line-height: 1 !important;
	color: #64748b !important;
	cursor: pointer !important;
	padding: 0 6px !important;
	border-radius: 6px !important;
	transition: all 0.15s ease !important;
}

.mtz-rules-modal-close:hover {
	color: #0f172a !important;
	background: #e2e8f0 !important;
}

/* Modal Body - Vertical Scroll Container */
.mtz-rules-modal-body {
	flex: 1 1 auto !important;
	overflow-y: auto !important;
	padding: 22px 24px !important;
	font-size: 14.5px !important;
	line-height: 1.7 !important;
	color: #334155 !important;
	-webkit-overflow-scrolling: touch !important;
	max-height: calc(80vh - 135px) !important;
}

.mtz-rules-modal-body::-webkit-scrollbar {
	width: 6px;
}

.mtz-rules-modal-body::-webkit-scrollbar-track {
	background: #f1f5f9;
}

.mtz-rules-modal-body::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.mtz-rules-modal-body::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

.mtz-rules-property-name {
	font-size: 13.5px !important;
	color: #64748b !important;
	margin-bottom: 16px !important;
	padding-bottom: 12px !important;
	border-bottom: 1px dashed #e2e8f0 !important;
}

.mtz-rules-property-name strong {
	color: #0f172a !important;
	font-size: 14.5px !important;
}

.mtz-rules-html-content {
	color: #334155 !important;
}

.mtz-rules-html-content h1,
.mtz-rules-html-content h2,
.mtz-rules-html-content h3,
.mtz-rules-html-content h4 {
	color: #0f172a !important;
	margin: 16px 0 8px !important;
	font-weight: 700 !important;
}

.mtz-rules-html-content h3 {
	font-size: 16px !important;
}

.mtz-rules-html-content h4 {
	font-size: 15px !important;
}

.mtz-rules-html-content p {
	margin: 0 0 12px !important;
	line-height: 1.7 !important;
}

.mtz-rules-html-content ul,
.mtz-rules-html-content ol {
	margin: 8px 0 16px 20px !important;
	padding: 0 !important;
}

.mtz-rules-html-content li {
	margin-bottom: 6px !important;
	line-height: 1.6 !important;
}

/* Modal Footer */
.mtz-rules-modal-footer {
	display: flex !important;
	justify-content: flex-end !important;
	padding: 14px 22px !important;
	background: #f8fafc !important;
	border-top: 1px solid #e2e8f0 !important;
	flex-shrink: 0 !important;
}

.mtz-rules-footer-btn {
	background: #1cb2ff !important;
	color: #ffffff !important;
	border: none !important;
	padding: 9px 22px !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
	font-size: 13.5px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.mtz-rules-footer-btn:hover {
	background: #004284 !important;
}

body.mtz-rules-modal-open {
	overflow: hidden !important;
}