/* Flights block (dotonmap-flights/flights.js). Colours as in the travelers plugin (tv.css). */
.dotm-fly {
	box-sizing: border-box;
	width: 100%; /* Category pages put it in a wrapping flex row. */
	margin: 24px 0 40px;
	padding: 24px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(33, 41, 74, .08);
	color: #4a4f63;
	font-family: Roboto, sans-serif;
}
.dotm-fly[hidden] { display: none; }
.dotm-fly__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.dotm-fly__icon {
	flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #ffebee; color: #be0000;
}
.dotm-fly__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; color: #21294a; }
.dotm-fly__sub { margin: 2px 0 0; font-size: 14px; color: #6b6f80; }
.dotm-fly__muted { font-size: 13px; color: #6b6f80; }
.dotm-fly__code { font-weight: 400; color: #6b6f80; font-size: .85em; }

/* "Other city": text buttons, the field and its suggestions. */
.dotm-fly__link { padding: 0; border: 0; background: none; color: #be0000; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.dotm-fly__pick { position: relative; display: inline-block; width: min(320px, 100%); }
.dotm-fly__input { box-sizing: border-box; width: 100%; padding: 7px 12px; border: 1px solid #c9cbe0; border-radius: 8px; font: inherit; font-size: 15px; color: #21294a; }
.dotm-fly__input:focus { outline: 2px solid #21294a; outline-offset: 1px; }
.dotm-fly__opts { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); display: flex; flex-direction: column; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(33, 41, 74, .16); overflow: hidden; }
.dotm-fly__opts:empty { display: none; }
.dotm-fly__opt { padding: 9px 12px; border: 0; border-top: 1px solid #f0f0f5; background: #fff; color: #21294a; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.dotm-fly__opt:first-child { border-top: 0; }
.dotm-fly__opt:hover, .dotm-fly__opt:focus { background: #ffebee; }
.dotm-fly__none { margin: 0; padding: 12px 14px; border-radius: 10px; background: #f8f8fb; font-size: 14px; }

/* "From:" the visitor's airports (information, not buttons). */
.dotm-fly__from { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }
.dotm-fly__chip {
	display: inline-flex; gap: 5px; align-items: center;
	padding: 3px 11px; border: 1px solid #dcdce6; border-radius: 999px;
	color: #21294a; font-size: 14px;
}

.dotm-fly__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dotm-fly__cards.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* Two routes fill the row. */
.dotm-fly__card {
	display: flex; flex-direction: column; gap: 6px;
	padding: 14px; border: 1px solid #ececf4; border-radius: 14px;
	color: inherit; font-size: 14px; text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.dotm-fly__card:hover { border-color: #be0000; box-shadow: 0 6px 18px rgba(33, 41, 74, .08); color: inherit; }
.dotm-fly__card.is-best { border: 2px solid #be0000; padding: 13px; }
.dotm-fly__card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.dotm-fly__card-top b, .dotm-fly__tile b { color: #21294a; font-weight: 500; font-size: 16px; }
.dotm-fly__price { color: #be0000; font-size: 24px; font-weight: 700; line-height: 1.2; }
.dotm-fly__price.is-small { font-size: 18px; white-space: nowrap; }
.dotm-fly__btn {
	margin-top: auto; padding: 9px 12px; border-radius: 8px;
	background: #be0000; color: #fff; text-align: center; font-weight: 500;
}
.dotm-fly__card:hover .dotm-fly__btn { background: #9a0000; }
.dotm-fly__badge { display: inline-block; align-self: flex-start; padding: 2px 8px; border-radius: 6px; font-size: 12px; line-height: 1.5; }
.dotm-fly__badge.is-green { background: #dcfce7; color: #15803d; }

/* Country page list (and a single route). */
.dotm-fly__rows { display: flex; flex-direction: column; }
.dotm-fly__row {
	display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) minmax(0, 1.4fr) 100px;
	gap: 16px; align-items: center; padding: 10px 8px; border-top: 1px solid #f0f0f5;
	color: inherit; font-size: 14px; text-decoration: none; border-radius: 8px;
}
.dotm-fly__row:first-child { border-top: 0; }
.dotm-fly__row:hover { background: #fafafe; color: inherit; }
.dotm-fly__row:hover b { color: #be0000; }
.dotm-fly__row-route { display: flex; flex-direction: column; }
.dotm-fly__row-route b { color: #21294a; font-weight: 500; font-size: 15px; }
.dotm-fly__bar { height: 8px; border-radius: 4px; background: #ffebee; overflow: hidden; }
.dotm-fly__bar i { display: block; height: 100%; border-radius: 4px; background: #be0000; }
.dotm-fly__row .dotm-fly__price { text-align: right; }
.dotm-fly__rows.is-one .dotm-fly__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 100px; border: 1px solid #ececf4; padding: 14px 16px; }
.dotm-fly__rows.is-one .dotm-fly__bar { display: none; }

/* Compact tiles ("more", and the whole front page strip). */
.dotm-fly__more-title { margin: 24px 0 12px; padding-top: 18px; border-top: 1px solid #ececf4; font-size: 17px; font-weight: 500; color: #21294a; }
.dotm-fly__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dotm-fly__tiles + .dotm-fly__tiles { margin-top: 10px; }
.dotm-fly__tiles[hidden] { display: none; }
.dotm-fly__tile { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid #ececf4; border-radius: 14px; }
.dotm-fly__tile:hover { border-color: #c9cbe0; }
.dotm-fly__tile-main { display: flex; gap: 10px; align-items: flex-start; color: inherit; text-decoration: none; }
.dotm-fly__tile-main:hover b { color: #be0000; }
.dotm-fly__tile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dotm-fly__tile-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dotm-fly__tag { font-size: 12px; }
.dotm-fly__tag.is-violet { color: #6d28d9; }
.dotm-fly__tag.is-sky { color: #0369a1; }
.dotm-fly__tag.is-red { color: #be0000; }
/* Photo preview: only on big screens, laptops and phones get text only. */
.dotm-fly__thumb { display: none; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
@media (min-width: 1600px) {
	.dotm-fly__thumb { display: block; }
}
.dotm-fly__places { font-size: 13px; color: #be0000; text-decoration: underline; text-underline-offset: 2px; }
.dotm-fly__show {
	display: block; margin: 14px auto 0; padding: 8px 18px;
	border: 1px solid #be0000; border-radius: 8px; background: #ffebee;
	color: #be0000; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.dotm-fly__note { margin: 16px 0 0; font-size: 12px; color: #6b6f80; }

/* 3 / 2 / 1 columns: the 6 tiles before "Show more" always fill whole rows. */
@media (max-width: 900px) {
	.dotm-fly__cards, .dotm-fly__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.dotm-fly { padding: 18px 14px; border-radius: 16px; }
	.dotm-fly__title { font-size: 19px; }
	.dotm-fly__cards, .dotm-fly__tiles { grid-template-columns: 1fr; }
	/* The whole card is the link: no button, tighter cards. */
	.dotm-fly__card { gap: 3px; padding: 12px; }
	.dotm-fly__card.is-best { padding: 11px; }
	.dotm-fly__card .dotm-fly__btn { display: none; }
	.dotm-fly__price { font-size: 20px; }
	/* List row: route and price, then dates; no bar. */
	.dotm-fly__row, .dotm-fly__rows.is-one .dotm-fly__row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 2px; }
	.dotm-fly__rows.is-one .dotm-fly__row { padding: 12px; }
	.dotm-fly__bar { display: none; }
	.dotm-fly__row .dotm-fly__price { order: 2; }
	.dotm-fly__row-when { order: 3; grid-column: 1 / -1; font-size: 13px; color: #6b6f80; }
}
