/**
 * "Mano planas" planner — pill, add button, plan page.
 *
 * @package Tobalt\Smagiai
 * @author  Tobalt — https://tobalt.lt
 */

/* Add-to-plan button */
.smagiai-card { position: relative; }
.smagiai-plan-add {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #2563eb;
	border-radius: 100px;
	background: #fff;
	color: #2563eb;
	font: 600 0.82rem/1 inherit;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.smagiai-plan-add:hover { background: #eef3ff; }
.smagiai-plan-add.is-added { background: #2563eb; color: #fff; }

/* Floating pill */
.smagiai-plan-pill {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 100px;
	background: #166660;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.smagiai-plan-pill[hidden] { display: none; }
.smagiai-plan-pill__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 100px;
	background: rgba(255, 255, 255, .25);
	font-size: 0.85rem;
}

/* Plan page */
.smagiai-plan-empty,
.smagiai-plan-loading { padding: 40px 0; color: #6b7280; text-align: center; }

.smagiai-plan-grid {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) 1.4fr;
	gap: 24px;
	align-items: start;
}
@media (max-width: 820px) { .smagiai-plan-grid { grid-template-columns: 1fr; } }

.smagiai-plan-day {
	margin: 18px 0 8px;
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: capitalize;
	color: #166660;
}
.smagiai-plan-day:first-child { margin-top: 0; }

.smagiai-plan-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #eceef1;
	border-radius: 10px;
	margin-bottom: 8px;
	background: #fff;
}
.smagiai-plan-row.is-conflict { border-color: #e0a106; background: #fffbef; }
.smagiai-plan-row__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	border-radius: 50%;
	background: #2563eb;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}
.smagiai-plan-row__time { flex: 0 0 46px; color: #6b7280; font-weight: 600; font-size: 0.85rem; }
.smagiai-plan-row__t { flex: 1; color: #1d1d1d; text-decoration: none; font-weight: 500; }
.smagiai-plan-row__t:hover { color: #2563eb; }
.smagiai-plan-row__warn { color: #e0a106; }
.smagiai-plan-rm {
	border: none;
	background: none;
	color: #9aa1ab;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}
.smagiai-plan-rm:hover { color: #dc2626; }

.smagiai-plan-map {
	width: 100%;
	height: 420px;
	border-radius: 12px;
	overflow: hidden;
}
.smagiai-plan-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #2563eb;
	color: #fff;
	font-weight: 700;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.smagiai-plan-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}
.smagiai-plan-btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border: 1px solid #d6dae0;
	border-radius: 8px;
	background: #fff;
	color: #1d1d1d;
	font: 600 0.88rem/1 inherit;
	text-decoration: none;
	cursor: pointer;
}
.smagiai-plan-btn:hover { border-color: #2563eb; color: #2563eb; }
.smagiai-plan-go { background: #2563eb; border-color: #2563eb; color: #fff; }
.smagiai-plan-go:hover { background: #1d4ed8; color: #fff; }

@media print {
	.smagiai-plan-pill, .smagiai-plan-actions, .smagiai-plan-rm { display: none !important; }
}
