/**
 * Panel de reservas.
 */

.tb-panel {
	--tb-p-text: #1a2744;
	--tb-p-muted: #5b6475;
	--tb-p-teal: #469992;
	--tb-p-green: #1f9d6c;
	--tb-p-amber: #c47b0a;
	--tb-p-red: #c62828;
	--tb-p-border: #e5e7eb;
	--tb-p-bg: #f8f9fb;
	max-width: 1120px;
	margin: 0 auto;
	padding: 30px 16px 64px;
	color: var(--tb-p-text);
	font-family: Montserrat, system-ui, sans-serif;
}

.tb-panel .tb-panel__page-title {
	margin: 0 0 24px;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--tb-p-text);
}

/* El panel imprime su propio título: se oculta el del tema / Elementor. */
body.tb-panel-reservas-page .site-main > .page-header,
body.tb-panel-reservas-page .elementor-widget-theme-page-title,
body.tb-panel-reservas-page .elementor-page-title {
	display: none !important;
}

.tb-panel__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
	gap: 28px 32px;
	align-items: start;
}

.tb-panel__booking-head {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 28px;
}

.tb-panel__thumb {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 12px;
	flex-shrink: 0;
	background: var(--tb-p-bg);
}

.tb-panel__code {
	margin: 0 0 4px;
	font-size: 0.85rem;
	color: var(--tb-p-muted);
}

.tb-panel__title {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tb-p-text);
}

.tb-panel__when {
	margin: 0 0 10px;
	color: var(--tb-p-muted);
	font-size: 0.92rem;
}

.tb-panel__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
}

.tb-panel__badge--is-confirmed {
	color: var(--tb-p-green);
}

.tb-panel__badge--is-pending {
	color: var(--tb-p-amber);
}

.tb-panel__badge .dashicons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
	flex-shrink: 0;
}

.tb-panel__badge .dashicons::before {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
	vertical-align: top;
}

.tb-panel__section {
	margin-bottom: 28px;
}

.tb-panel__section-title {
	margin: 0 0 12px;
	font-size: 1.1rem;
	font-weight: 700;
}

.tb-panel__text-link {
	color: var(--tb-p-teal) !important;
	font-weight: 600;
	text-decoration: none !important;
}

.tb-panel__text-link:hover {
	text-decoration: underline !important;
}

.tb-panel__map {
	margin: 12px 0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--tb-p-border);
	aspect-ratio: 16 / 9;
	max-height: 240px;
	background: var(--tb-p-bg);
}

.tb-panel__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.tb-panel__meeting-label {
	margin: 12px 0 4px;
	font-weight: 700;
	font-size: 0.95rem;
}

.tb-panel__meeting-address {
	margin: 0 0 6px;
}

.tb-panel__meeting-note {
	margin: 0;
	color: var(--tb-p-muted);
	font-size: 0.9rem;
}

.tb-panel__dl {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tb-panel__dl > div {
	display: grid;
	grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
	gap: 8px 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--tb-p-border);
}

.tb-panel__dl dt {
	margin: 0;
	color: var(--tb-p-muted);
	font-size: 0.9rem;
	font-weight: 500;
}

.tb-panel__dl dd {
	margin: 0;
	font-weight: 600;
	font-size: 0.95rem;
}

.tb-panel__dl dd .tb-panel__text-link {
	display: inline-block;
	margin-left: 8px;
	font-weight: 600;
	font-size: 0.88rem;
}

.tb-panel__list {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.tb-panel__list li {
	position: relative;
	padding: 4px 0 4px 28px;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--tb-p-muted);
}

.tb-panel__list--yes li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--tb-p-green);
	font-weight: 700;
}

.tb-panel__list--no li::before {
	content: "✕";
	position: absolute;
	left: 0;
	color: var(--tb-p-red);
	font-weight: 700;
}

.tb-panel__includes h3 {
	margin: 0 0 8px;
	font-size: 1rem;
}

.tb-panel__aside {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tb-panel__card {
	padding: 18px;
	border: 1px solid var(--tb-p-border);
	border-radius: 14px;
	background: #fff;
}

.tb-panel__card-title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
}

.tb-panel__card-text {
	margin: 0 0 14px;
	color: var(--tb-p-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.tb-panel__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 46px;
	margin: 0 0 10px;
	padding: 10px 14px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none !important;
	box-sizing: border-box;
}

.tb-panel__btn:last-child {
	margin-bottom: 0;
}

.tb-panel__btn--outline {
	border: 1.5px solid var(--tb-p-teal);
	background: #fff;
	color: var(--tb-p-teal) !important;
}

.tb-panel__btn--outline:hover {
	background: #eef8f7;
}

.tb-panel__btn--danger {
	border: 1.5px solid var(--tb-p-red);
	background: #fff;
	color: var(--tb-p-red) !important;
}

.tb-panel__btn--danger:hover {
	background: #fdecea;
}

.tb-panel__btn--primary {
	border: 0;
	background: var(--tb-p-teal);
	color: #fff !important;
}

.tb-panel__btn .dashicons,
.tb-panel__btn .tb-panel__wa-icon {
	width: 18px;
	height: 18px;
	font-size: 18px;
	flex-shrink: 0;
}

.tb-panel__btn .tb-panel__wa-icon {
	display: block;
}

.tb-panel__suggestions {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--tb-p-border);
}

.tb-panel__suggestions-title {
	margin: 0 0 16px;
	font-size: 1.2rem;
	font-weight: 700;
}

.tb-panel .tb-suggestions__more {
	margin: 20px 0 0;
	text-align: center;
}

.tb-panel .tb-suggestions__more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 22px;
	border: 1.5px solid #c43b7a;
	border-radius: 999px;
	background: #fff;
	color: #c43b7a !important;
	font-weight: 600;
	text-decoration: none !important;
}

.tb-panel__order-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tb-panel__order-link {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 14px;
	border: 1px solid var(--tb-p-border);
	border-radius: 14px;
	text-decoration: none !important;
	color: inherit !important;
	background: #fff;
}

.tb-panel__order-link img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 10px;
}

.tb-panel__order-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.tb-panel__order-code {
	font-size: 0.82rem;
	color: var(--tb-p-muted);
}

.tb-panel__order-name {
	font-weight: 700;
	font-size: 0.98rem;
}

.tb-panel__extra-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tb-panel__extra-items li {
	padding: 10px 0;
	border-bottom: 1px solid var(--tb-p-border);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tb-panel--empty {
	text-align: center;
	padding: 48px 16px;
}

@media (max-width: 900px) {
	.tb-panel__layout {
		grid-template-columns: 1fr;
	}

	.tb-panel__dl > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

@media (max-width: 640px) {
	.tb-panel {
		padding-top: 24px;
	}

	.tb-panel .tb-panel__page-title {
		font-size: 22px;
		margin-bottom: 18px;
	}

	.tb-panel__booking-head {
		flex-direction: column;
	}

	.tb-panel__thumb {
		width: 100%;
		height: 160px;
	}
}
