/* Calendar - Frontend */
.mhr-calendar {
	max-width: 100%;
}

.mhr-calendar-loading {
	text-align: center;
	padding: 40px;
	color: #999;
}

.mhr-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.mhr-cal-nav-btn {
	background: none;
	border: 1px solid #ddd;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 18px;
	border-radius: 4px;
	transition: background 0.2s;
}

.mhr-cal-nav-btn:hover {
	background: #f5f5f5;
}

.mhr-calendar-months-title {
	display: flex;
	gap: 24px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.mhr-calendar-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.mhr-month {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
}

.mhr-month-header {
	background: var(--primary, #29aae3);
	color: #fff;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 15px;
	text-align: center;
}

.mhr-month-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	background: #f8f9fa;
	border-bottom: 1px solid #eee;
}

.mhr-weekday {
	text-align: center;
	padding: 8px 4px;
	font-size: 12px;
	font-weight: 600;
	color: #666;
}

.mhr-month-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	background: #f0f0f0;
}

.mhr-day {
	background: #fff;
	text-align: center;
	padding: 6px 2px;
	min-height: 52px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	position: relative;
	transition: background 0.15s;
}

.mhr-day-empty {
	background: #fafafa;
}

.mhr-day-number {
	font-weight: 500;
	line-height: 1;
}

.mhr-day-price {
	font-size: 10px;
	color: #888;
	margin-top: 2px;
	line-height: 1;
}

.mhr-day-available {
	background: #e8f5e9;
	cursor: pointer;
}

.mhr-day-available:hover {
	background: #c8e6c9;
}

.mhr-day-blocked,
.mhr-day-booked {
	background: #ffebee;
	color: #999;
}

.mhr-day-booked {
	background: #fff3e0;
}

.mhr-day-past {
	background: #f5f5f5;
	color: #ccc;
}

.mhr-day-past .mhr-day-price {
	display: none;
}

.mhr-day-checkin,
.mhr-day-checkout {
	background: var(--primary, #29aae3) !important;
	color: #fff !important;
	border-radius: 0;
}

.mhr-day-checkin .mhr-day-price,
.mhr-day-checkout .mhr-day-price {
	color: rgba(255,255,255,0.8);
}

.mhr-day-in-range {
	background: rgba(41, 170, 227, 0.15) !important;
}

/* Legend */
.mhr-calendar-legend {
	display: flex;
	gap: 20px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.mhr-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
}

.mhr-legend-dot {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	display: inline-block;
}

.mhr-dot-available { background: #e8f5e9; border: 1px solid #a5d6a7; }
.mhr-dot-blocked   { background: #ffebee; border: 1px solid #ef9a9a; }
.mhr-dot-booked    { background: #fff3e0; border: 1px solid #ffcc80; }

/* Selection info / Price summary */
.mhr-selection-info {
	margin-top: 20px;
	padding: 16px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.mhr-price-summary {
	font-size: 14px;
}

.mhr-price-dates {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e0e0e0;
}

.mhr-price-breakdown {
	margin-bottom: 12px;
}

.mhr-price-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 13px;
	color: #555;
}

.mhr-price-total {
	display: flex;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 2px solid #333;
	font-size: 18px;
	font-weight: 700;
}

.mhr-total-amount {
	color: var(--primary, #29aae3);
}

.mhr-price-warning {
	margin-top: 12px;
	padding: 10px;
	background: #ffebee;
	color: #c62828;
	border-radius: 4px;
	text-align: center;
	font-weight: 600;
}

.mhr-stay-error {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffc107;
	padding: 8px 12px;
	border-radius: 6px;
	margin: 8px 0;
	font-size: 14px;
	font-weight: 600;
}

.mhr-stay-limits {
	display: flex;
	gap: 16px;
	font-size: 12px;
	color: #888;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
	.mhr-calendar-grid {
		grid-template-columns: 1fr;
	}

	.mhr-calendar-months-title {
		display: none;
	}

	.mhr-price-dates {
		flex-direction: column;
		gap: 4px;
	}
}
