/* ============================================================
   Sidebar Destinatii - stiluri componenta
   ============================================================ */

.sd-sidebar {
	width: 100%;
	max-width: 300px;
	font-family: Arial, sans-serif;
	font-size: 14px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	/* sidebarul se intinde pe toata inaltimea containerului parinte
	   (in listing: aceeasi inaltime cu coloana de hoteluri) */
	display: flex;
	flex-direction: column;
	height: 100%;
}
.sd-sidebar * { box-sizing: border-box; }

.sd-titlu {
	background: #2c7be5;
	color: #fff;
	padding: 12px 14px;
	font-size: 15px;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
}
.sd-titlu-total {
	background: rgba(255,255,255,.2);
	font-size: 11px;
	font-weight: normal;
	border-radius: 10px;
	padding: 3px 10px;
	white-space: nowrap;
}

/* cautare */
.sd-cautare { padding: 10px; border-bottom: 1px solid #eee; flex: 0 0 auto; }
.sd-cautare input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 13px;
}
.sd-btn-toate {
	display: block;
	margin-top: 8px;
	padding: 7px 10px;
	text-align: center;
	background: #f0f6ff;
	border: 1px solid #2c7be5;
	border-radius: 5px;
	color: #2c7be5;
	font-size: 13px;
	font-weight: bold;
	text-decoration: none;
}
.sd-btn-toate:hover { background: #2c7be5; color: #fff; }

/* lista tari - ocupa restul inaltimii, cu scroll intern */
.sd-lista {
	flex: 1 1 auto;
	min-height: 0;
	max-height: 600px; /* fallback cand parintele nu impune o inaltime */
	overflow-y: auto;
}
/* cand parintele intinde sidebarul (ex. layout flex in listing),
   fallback-ul de 600px este anulat din pagina prin .sd-full-height */
.sd-full-height .sd-lista { max-height: none; }

/* MODUL FULL-HEIGHT (activat prin clasa .sd-full-height pe coloana):
   inaltimea sidebarului este legata de INALTIMEA ECRANULUI, nu de
   inaltimea listingului => ramane utilizabil si la listinguri scurte;
   position: sticky => ramane vizibil la derularea listingurilor lungi */
.sd-full-height .sd-sidebar {
	position: sticky;
	top: 20px;
	height: calc(100vh - 40px);
}

/* pe ecrane mici modul full-height se dezactiveaza:
   sidebarul revine in fluxul normal, cu scroll limitat */
@media (max-width: 800px) {
	.sd-full-height .sd-sidebar {
		position: static;
		height: auto;
		max-width: 100%;
	}
	.sd-full-height .sd-lista { max-height: 400px; }
}

.sd-tara { border-bottom: 1px solid #f0f0f0; }

.sd-tara-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 14px;
	background: #fafafa;
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	color: #333;
	text-align: left;
}
.sd-tara-btn:hover { background: #f0f6ff; }
.sd-tara.deschis > .sd-tara-btn { background: #eaf2fd; color: #2c7be5; }

.sd-badge {
	background: #e4e9f0;
	color: #555;
	font-size: 11px;
	font-weight: normal;
	border-radius: 10px;
	padding: 2px 8px;
	margin-left: 8px;
}
.sd-tara.deschis .sd-badge { background: #2c7be5; color: #fff; }

.sd-sageata {
	margin-left: 6px;
	transition: transform .2s;
	font-size: 11px;
	color: #888;
}
.sd-tara.deschis .sd-sageata { transform: rotate(90deg); }

/* continut tara */
.sd-continut { display: none; padding: 4px 0 8px 0; }
.sd-tara.deschis > .sd-continut { display: block; }

.sd-link-tara { padding: 4px 14px 6px 14px; }
.sd-link-tara a {
	color: #2c7be5;
	font-size: 12px;
	text-decoration: none;
	font-weight: bold;
}
.sd-link-tara a:hover { text-decoration: underline; }

.sd-regiune {
	padding: 6px 14px 2px 14px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #999;
	font-weight: bold;
}

.sd-oras a {
	display: block;
	padding: 5px 14px 5px 24px;
	color: #444;
	text-decoration: none;
	font-size: 13px;
}
.sd-oras a:hover { background: #f5f9ff; color: #2c7be5; }
.sd-oras.activ a {
	background: #2c7be5;
	color: #fff;
	font-weight: bold;
}
.sd-nr-oras { color: #999; font-size: 11px; }
.sd-oras a:hover .sd-nr-oras { color: #2c7be5; }
.sd-oras.activ a .sd-nr-oras { color: #d6e6fb; }

.sd-gol { padding: 14px; color: #999; font-size: 13px; display: none; }
