/* ============================================================
   Seaside — szabad-időpont jelvények + listaoldali árkalkulátor
   ============================================================ */

/* ---------- Élő elérhetőség-jelvény a kártyán ---------- */
.avail-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - 24px);
	padding: 5px 11px 5px 9px;
	border-radius: 999px;
	font-family: "Baloo 2", sans-serif;
	font-weight: 700;
	font-size: 0.74rem;
	line-height: 1.15;
	color: #fff;
	background: rgba(20, 88, 140, 0.92);
	box-shadow: 0 6px 16px -8px rgba(20, 88, 140, 0.8);
	backdrop-filter: blur(2px);
}
.avail-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #fff;
	flex: none;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	animation: avail-pulse 2s ease-out infinite;
}
.avail-free { background: linear-gradient(135deg, #3fae6a, #2c8f52); }
.avail-urgent { background: linear-gradient(135deg, #f5734d, #e0472a); }
.avail-soon { background: linear-gradient(135deg, #f9a03a, #f58220); }
.avail-gone { background: rgba(70, 90, 105, 0.92); }
.avail-gone .avail-dot { animation: none; opacity: 0.7; }

@keyframes avail-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
	70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.avail-dot { animation: none; }
}

/* ---------- Árkalkulátor sáv ---------- */
.quote-bar {
	background: linear-gradient(135deg, #eaf6fc, #dceffb);
	border: 1px solid rgba(27, 117, 188, 0.16);
	border-radius: 20px;
	padding: 18px 20px;
	margin-bottom: 28px;
	box-shadow: var(--shadow-card, 0 18px 40px -24px rgba(20, 88, 140, 0.5));
}
.quote-bar-fields {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}
/* Dátum-mezők: saját gombok, natív dátumválasztó nélkül. */
.quote-field-btn {
	display: grid;
	gap: 2px;
	flex: 1 1 150px;
	text-align: left;
	padding: 9px 15px;
	min-height: 52px;
	border: 1.5px solid rgba(27, 117, 188, 0.25);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.quote-field-btn[aria-expanded="true"] {
	border-color: var(--wave);
	box-shadow: 0 0 0 3px rgba(98, 184, 224, 0.3);
}
.quote-field-btn:hover { border-color: var(--wave); }
.quote-field-btn:focus-visible {
	outline: none;
	border-color: var(--wave);
	box-shadow: 0 0 0 3px rgba(98, 184, 224, 0.35);
}
.quote-field-label {
	font-family: "Baloo 2", sans-serif;
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wave);
}
.quote-field-val {
	font-family: "Baloo 2", sans-serif;
	font-weight: 800;
	font-size: 1rem;
	color: var(--muted);
}
.quote-field-val.is-set { color: var(--navy); }
.quote-field-arrow {
	flex: 0 0 auto;
	align-self: center;
	color: var(--wave);
	display: flex;
}
.quote-submit { flex: 0 0 auto; min-height: 52px; }
.quote-submit:disabled { opacity: 0.55; cursor: default; }

/* Lenyíló naptár (az apartman-oldali naptár stílusával). */
.quote-cal {
	overflow: hidden;
	margin-top: 14px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 44px -20px rgba(20, 88, 140, 0.55);
	padding: 0 16px;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.32s cubic-bezier(0.3, 1, 0.4, 1), opacity 0.25s ease, padding 0.32s ease;
}
.quote-cal[hidden] { display: none; }
.quote-cal.is-open {
	max-height: 520px;
	opacity: 1;
	padding: 16px;
}
.quote-cal .ss-calendar { max-width: 380px; }
@media (prefers-reduced-motion: reduce) {
	.quote-cal { transition: none; }
}
.quote-clear {
	flex: 0 0 auto;
	border: 0;
	background: none;
	color: var(--navy);
	font-family: "Baloo 2", sans-serif;
	font-weight: 700;
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
	padding: 10px 6px;
}
.quote-clear:hover { color: var(--sunset, #f58220); }
.quote-bar-note {
	margin: 12px 2px 0;
	font-size: 0.86rem;
	color: var(--muted);
}
.quote-bar-note strong { color: var(--navy); }

/* ---------- Kártya-ár a kalkuláció után ---------- */
.card-quote {
	margin: 0 0 4px;
	font-size: 0.9rem;
	color: var(--ink);
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	animation: quote-in 0.3s ease both;
}
.card-quote strong {
	font-family: "Baloo 2", sans-serif;
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--navy);
}
.card-quote small { color: var(--muted); font-weight: 600; }
.card-quote .quote-warn { color: var(--sunset, #f58220); }
.card-quote .quote-x {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #b23b22;
	font-weight: 700;
}
.card-quote .quote-x::before {
	content: "";
	width: 8px; height: 8px; border-radius: 50%;
	background: #e0472a;
}
@keyframes quote-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* A kép ártáblája a kiválasztott időszak teljes összegét mutatja. */
.price-tag.is-total {
	background: linear-gradient(135deg, #f9a03a, #f58220);
	color: #fff;
	border-color: #fff;
	box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(213, 95, 19, 0.4);
	transform: rotate(0deg) scale(1.04);
	animation: quote-in 0.3s ease both;
}
.price-tag.is-total small { font-weight: 700; opacity: 0.9; font-size: 0.72em; }
.card:hover .price-tag.is-total { transform: rotate(0deg) scale(1.08); }

/* Foglalt kártya halványítva a kalkuláció után. */
.card-grid.is-quoted .card.is-unavailable {
	opacity: 0.62;
	filter: saturate(0.7);
}
.card-grid.is-quoted .card.is-unavailable .card-cta {
	pointer-events: none;
	opacity: 0.6;
}
/* A „szabad ezen a héten" jelvény elrejtése, ha a kiválasztott dátumra foglalt. */
.card-grid.is-quoted .card.is-unavailable .avail-badge { display: none; }
.card-grid.is-quoted .card.is-available {
	outline: 2px solid rgba(63, 174, 106, 0.4);
	outline-offset: 2px;
}
.card { transition: opacity 0.3s ease, filter 0.3s ease; }

@media (max-width: 560px) {
	.quote-field { flex-basis: 100%; }
	.quote-submit { flex: 1 1 100%; }
}
