/**
 * Calendar Pricing Styles
 * HHB Pricing Calendar V2: Styles for pricing display and status colors
 * 
 * @package Holiday_Home_Booking
 * @since 2.0.0
 */

/* Price text in property page calendar cells */
.hhb-cal-day__price {
	font-size: 0.6em;
	line-height: 1;
	display: block;
	margin-top: 2px;
}

/* Tooltip for list/grid calendar hover */
.hhb-cal-tooltip {
	position: absolute;
	background: #ffffff;
	color: #000000;
	font-weight: 600;
	border: 1px solid #d1d5db;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
	opacity: 1;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	white-space: nowrap;
	z-index: 10000;
	pointer-events: none;
	transform: translateX(-50%);
	bottom: calc(100% + 4px);
	left: 50%;
	max-width: 200px;
	overflow: visible;
}

/* Ensure parent containers don't clip tooltip */
.hhb-list-calendar,
.hhb-list-calendar__month,
.hhb-list-calendar__days {
	overflow: visible !important;
}

/* Allow tooltip to overflow from day cells */
.hhb-list-calendar__day {
	overflow: visible !important;
	position: relative;
}

/* List/grid calendar day colours (these calendars don't have colours yet) */
.hhb-list-calendar__day--available {
	background-color: #dcfce7;
	color: #166534;
}

.hhb-list-calendar__day--booked {
	background-color: #fee2e2;
	color: #991b1b;
	cursor: not-allowed;
}

.hhb-list-calendar__day--hold {
	background-color: #fef9c3;
	color: #854d0e;
	cursor: not-allowed;
}

.hhb-list-calendar__day--past {
	color: #9ca3af;
}

/* Flatpickr calendar colors (for grid modal) */
.flatpickr-day.hhb-fp-available {
	background-color: #dcfce7 !important;
	color: #166534 !important;
	border-color: #86efac !important;
}

.flatpickr-day.hhb-fp-booked {
	background-color: #fee2e2 !important;
	color: #991b1b !important;
	border-color: #fca5a5 !important;
	cursor: not-allowed !important;
}

.flatpickr-day.hhb-fp-hold {
	background-color: #fef9c3 !important;
	color: #854d0e !important;
	border-color: #fde047 !important;
	cursor: not-allowed !important;
}

.flatpickr-day.hhb-fp-past {
	color: #9ca3af !important;
}

/* Modal calendar day colors (for grid modal 2-month display) */
.hhb-calendar-day--available {
	background-color: #dcfce7;
	color: #166534;
}

.hhb-calendar-day--booked {
	background-color: #fee2e2;
	color: #991b1b;
	cursor: not-allowed;
}

.hhb-calendar-day--hold {
	background-color: #fef9c3;
	color: #854d0e;
	cursor: not-allowed;
}

.hhb-calendar-day--unavailable {
	opacity: 0.5;
	cursor: not-allowed;
}
