/**
 * Day Toggle Component Styles
 *
 * Today/Tomorrow toggle links inside hero card headers.
 *
 * @package MphbGuestServices
 * @since 2.0.0
 */

/* Toggle link container in hero */
.gs-hero-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}

.gs-day-link {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	cursor: pointer;
	font-weight: 500;
	transition: color 0.2s;
}

.gs-day-link:hover {
	color: rgba(255, 255, 255, 0.9);
}

.gs-day-link.is-active {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gs-day-sep {
	color: rgba(255, 255, 255, 0.4);
	font-size: 12px;
}

/* Ensure hidden attribute works on elements with explicit display */
.gs-hero-badge[hidden],
.gs-hero-subtitle[hidden] {
	display: none !important;
}

/* Empty badge fallback: when the template renders <div class="gs-hero-badge"></div>
   without content (e.g. car_rental widget when no booking-specific badge applies),
   we still paint the rounded background + padding → a tiny black pill leaks into
   the bottom-left of the hero. Hide silently when the badge has no children/text. */
.gs-hero-badge:empty {
	display: none !important;
}

/* Day panels grid: both panels overlap so card height = tallest panel */
.gs-day-panels {
	display: grid;
}

.gs-day-panels > [data-day] {
	grid-area: 1 / 1;
}

.gs-day-panels > [data-day].is-day-hidden {
	visibility: hidden;
	pointer-events: none;
}
