/*
 * MJ Stay: kompaktní modul do modalu se stavem trasy.
 *
 * Vlastní prefix .mj-stay-compact, aby se nemíchal s velkým modulem na
 * stránkách tras. Barvy a písma jsou stejné, jen všechno drží nižší výšku:
 * dvě kolony po dvou kartách, bez leadu, bez popisů a bez mapy.
 */

.mj-stay-compact {
	/* Modal cizího pluginu je flex kontejner. Bez tohohle se blok smrskne
	   na pár pixelů, protože ho flex nechá zmenšit pod vlastní obsah. */
	flex: 0 0 auto;
	align-self: stretch;
	min-height: 0;
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
	border: 1px solid #e8e4dd;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	margin: 18px 0 0;
	width: 100%;
	text-align: left;
}
.mj-stay-compact *,
.mj-stay-compact *::before,
.mj-stay-compact *::after { box-sizing: border-box; }

/* Hlavička */
.mj-stay-compact__head {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #617753;
	color: #fff;
	padding: 10px 16px;
}
.mj-stay-compact__icon { font-size: 16px; line-height: 1; }
.mj-stay-compact__title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* Mini karty */
.mj-stay-compact__grid { display: grid; grid-template-columns: 1fr 1fr; }
.mj-stay-compact__card {
	padding: 13px 16px 14px;
	border-right: 1px solid #efece7;
	border-bottom: 1px solid #efece7;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}
/* Geometrie rámečků podle pozice, stejně jako u velkého modulu. */
.mj-stay-compact__card--right { border-right: none; }
.mj-stay-compact__card--lastrow { border-bottom: none; }
.mj-stay-compact__card--span { grid-column: 1 / -1; border-right: none; }

.mj-stay-compact__badge {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
	line-height: 1.55;
	margin-bottom: 5px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mj-stay-compact__badge--tier { background: #617753; color: #fff; }
.mj-stay-compact__badge--warm { background: transparent; color: #8c6664; border: 1.5px solid #8c6664; }

.mj-stay-compact__name {
	font-family: "Crimson Pro", Georgia, serif;
	font-size: 18.5px;
	font-weight: 700;
	color: #161616;
	line-height: 1.22;
	margin-bottom: 3px;
	width: 100%;
}
.mj-stay-compact__meta {
	font-size: 14px;
	color: #5d5d5d;
	line-height: 1.35;
	margin-bottom: 9px;
	width: 100%;
	flex: 1;
}

.mj-stay-compact__btn {
	display: block;
	width: 100%;
	background: #617753;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 12px;
	border-radius: 6px;
	text-align: center;
	line-height: 1.3;
	transition: background .15s;
}
.mj-stay-compact__btn:hover,
.mj-stay-compact__btn:focus { background: #4d5f42; color: #fff !important; }

/* Patička: odkaz na celou nabídku a jednořádkový disclaimer */
.mj-stay-compact__foot {
	padding: 12px 16px 13px;
	border-top: 1px solid #efece7;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	text-align: center;
}
.mj-stay-compact__all {
	font-size: 15px;
	font-weight: 600;
	color: #4d5f42 !important;
	text-decoration: none !important;
}
.mj-stay-compact__all:hover,
.mj-stay-compact__all:focus { text-decoration: underline !important; }
.mj-stay-compact__note { font-size: 12px; color: #9a9a9a; line-height: 1.45; }

@media (max-width: 580px) {
	.mj-stay-compact__name { font-size: 17px; }
	.mj-stay-compact__grid { grid-template-columns: 1fr; }
	.mj-stay-compact__card { border-right: none; border-bottom: 1px solid #efece7; }
	.mj-stay-compact__card--lastrow { border-bottom: 1px solid #efece7; }
	.mj-stay-compact__card--last { border-bottom: none; }
}
