/**
 * Package (ALP Nofshon) search form.
 *
 * - CSS logical properties (inline-start/end) so LTR and RTL (Hebrew) share one file.
 * - Selectors are scoped under .ny-package-search / .ny-calendar with enough specificity to beat theme
 *   button/input styles. Override the --ny-* tokens in your theme to restyle.
 * - The --ny-* tokens, the airport picker (.ny-airports__*), travellers (.ny-travellers__*) and calendar
 *   skin are shared with the flight search form (flight-search.css depends on this file).
 *
 * @package NYIsraelines
 */

:root {
	--ny-primary: #0b4ea2;
	--ny-primary-hover: #093f84;
	--ny-primary-soft: #eaf1fb;
	--ny-text: #0f172a;
	--ny-muted: #64748b;
	--ny-faint: #cbd5e1;
	--ny-border: #e2e8f0;
	--ny-surface: #fff;
	--ny-hover: #f1f5f9;
	--ny-radius: 16px;
	--ny-radius-sm: 12px;
	--ny-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.08);
	--ny-shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.04), 0 24px 48px rgba(15, 23, 42, 0.16);
}

/* ------------------------------------------------------------------------
 * Bar
 * --------------------------------------------------------------------- */

.ny-package-search {
	position: relative;
	display: flex;
	align-items: stretch;
	margin: 0;
	padding: 8px;
	background: var(--ny-surface);
	border: 1px solid var(--ny-border);
	border-radius: calc(var(--ny-radius) + 8px);
	box-shadow: var(--ny-shadow);
	color: var(--ny-text);
	font-size: 15px;
	line-height: 1.3;
	text-align: start;
}

.ny-package-search *,
.ny-package-search *::before,
.ny-package-search *::after {
	box-sizing: border-box;
}

.ny-package-search [hidden] {
	display: none !important;
}

/*
 * Mixed Hebrew/English text uses dir="auto" so punctuation lands correctly ("Where to?", not "?Where to").
 * Align it with the page, not with its own direction.
 */
.ny-package-search [dir="auto"] {
	text-align: left;
}

[dir="rtl"] .ny-package-search [dir="auto"] {
	text-align: right;
}

.ny-package-search .ny-package-search__field {
	position: relative;
	display: flex;
	flex: 1 1 0;
	min-width: 0;
}

.ny-package-search .ny-package-search__field--from {
	flex-grow: 0.8;
}

.ny-package-search .ny-package-search__field--dates {
	flex-grow: 1.3;
}

.ny-package-search .ny-package-search__field--travellers {
	flex-grow: 1.2;
}

.ny-package-search .ny-package-search__field--submit {
	flex: 0 0 auto;
	padding-inline-start: 8px;
}

/* Dividers between segments, hidden next to a hovered/open segment. */
.ny-package-search .ny-package-search__field + .ny-package-search__field:not(.ny-package-search__field--submit)::before {
	content: "";
	position: absolute;
	inset-block: 14px;
	inset-inline-start: 0;
	width: 1px;
	background: var(--ny-border);
	transition: opacity 0.15s ease;
}

.ny-package-search .ny-package-search__field:hover::before,
.ny-package-search .ny-package-search__field.is-open::before,
.ny-package-search .ny-package-search__field:hover + .ny-package-search__field::before,
.ny-package-search .ny-package-search__field.is-open + .ny-package-search__field::before {
	opacity: 0;
}

/* ------------------------------------------------------------------------
 * Segment trigger
 * --------------------------------------------------------------------- */

.ny-package-search .ny-package-search__trigger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	width: 100%;
	min-width: 0;
	min-height: 68px;
	margin: 0;
	padding: 10px 20px;
	background: transparent;
	border: 0;
	border-radius: var(--ny-radius);
	box-shadow: none;
	color: var(--ny-text);
	font: inherit;
	letter-spacing: normal;
	text-align: start;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ny-package-search button.ny-package-search__trigger:hover,
.ny-package-search button.ny-package-search__trigger:focus {
	background: var(--ny-hover);
	color: var(--ny-text);
	box-shadow: none;
	outline: none;
}

.ny-package-search button.ny-package-search__trigger:focus-visible {
	box-shadow: inset 0 0 0 2px var(--ny-primary);
}

.ny-package-search .ny-package-search__field.is-open > button.ny-package-search__trigger {
	background: var(--ny-surface);
	box-shadow: 0 0 0 1px var(--ny-border), 0 6px 16px rgba(15, 23, 42, 0.1);
}

.ny-package-search .ny-package-search__trigger--static {
	cursor: default;
}

.ny-package-search .ny-package-search__label {
	color: var(--ny-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.ny-package-search .ny-package-search__value {
	overflow: hidden;
	color: var(--ny-text);
	font-size: 16px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ny-package-search .ny-package-search__value--code {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.1;
}

.ny-package-search .ny-package-search__value.is-placeholder {
	color: var(--ny-faint);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: normal;
	line-height: 1.3;
}

.ny-package-search .ny-package-search__value--code.is-placeholder {
	font-size: 18px;
}

.ny-package-search .ny-package-search__sub {
	overflow: hidden;
	min-height: 1.3em;
	color: var(--ny-muted);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ny-package-search .ny-package-search__sub:empty {
	display: none;
}

/*
 * Theme-proofing. Themes often give every button a large line-height, height or padding
 * (sometimes with !important); the text lines would inherit it and the bar grows very tall.
 * Set these on the lines themselves so nothing is inherited from the theme's button styles.
 */
.ny-package-search .ny-package-search__field .ny-package-search__trigger {
	height: auto;
	max-height: none;
	line-height: 1.3;
}

.ny-package-search .ny-package-search__field .ny-package-search__trigger > span {
	display: block;
	flex: none;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	line-height: 1.3;
}

.ny-package-search .ny-package-search__field .ny-package-search__trigger > .ny-package-search__value--code {
	line-height: 1.15;
}

.ny-package-search .ny-package-search__field .ny-package-search__trigger > .ny-package-search__sub:empty {
	display: none;
}

.ny-package-search .ny-package-search__field .ny-package-search__submit,
.ny-package-search .ny-package-search__field .ny-package-search__submit > span {
	line-height: 1.2;
}

/* ------------------------------------------------------------------------
 * Submit
 * --------------------------------------------------------------------- */

.ny-package-search .ny-package-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 100%;
	min-height: 56px;
	margin: 0;
	padding: 0 28px;
	background: var(--ny-primary);
	border: 0;
	border-radius: var(--ny-radius);
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.ny-package-search button.ny-package-search__submit:hover,
.ny-package-search button.ny-package-search__submit:focus {
	background: var(--ny-primary-hover);
	color: #fff;
	outline: none;
}

.ny-package-search button.ny-package-search__submit:focus-visible {
	box-shadow: 0 0 0 3px var(--ny-primary-soft), 0 0 0 5px var(--ny-primary);
}

.ny-package-search button.ny-package-search__submit:active {
	transform: scale(0.98);
}

/* ------------------------------------------------------------------------
 * Popover
 * --------------------------------------------------------------------- */

.ny-package-search .ny-package-search__popover {
	position: absolute;
	z-index: 1000;
	inset-block-start: calc(100% + 12px);
	inset-inline-start: 0;
	width: 380px;
	max-width: calc(100vw - 32px);
	padding: 8px;
	background: var(--ny-surface);
	border: 1px solid var(--ny-border);
	border-radius: var(--ny-radius);
	box-shadow: var(--ny-shadow-lg);
	animation: ny-pop-in 0.14s ease-out;
}

@keyframes ny-pop-in {

	from {
		opacity: 0;
		transform: translateY(-4px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------------
 * Airport picker
 * --------------------------------------------------------------------- */

:is(.ny-package-search, .ny-flight-search) .ny-airports__search {
	position: relative;
	margin-block-end: 4px;
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__search-icon {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 14px;
	color: var(--ny-muted);
	transform: translateY(-50%);
	pointer-events: none;
}

:is(.ny-package-search, .ny-flight-search) input.ny-airports__input {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding-block: 0;
	padding-inline: 42px 14px;
	background: var(--ny-hover);
	border: 1px solid transparent;
	border-radius: var(--ny-radius-sm);
	box-shadow: none;
	color: var(--ny-text);
	font: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

:is(.ny-package-search, .ny-flight-search) input.ny-airports__input:focus {
	background: var(--ny-surface);
	border-color: var(--ny-primary);
	box-shadow: 0 0 0 3px var(--ny-primary-soft);
}

:is(.ny-package-search, .ny-flight-search) input.ny-airports__input::placeholder {
	color: var(--ny-muted);
	opacity: 1;
}

:is(.ny-package-search, .ny-flight-search) .is-loading .ny-airports__search::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 14px;
	width: 16px;
	height: 16px;
	margin-block-start: -8px;
	border: 2px solid var(--ny-border);
	border-top-color: var(--ny-primary);
	border-radius: 50%;
	animation: ny-spin 0.6s linear infinite;
}

@keyframes ny-spin {

	to {
		transform: rotate(360deg);
	}
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__heading {
	margin: 12px 12px 4px;
	padding: 0;
	color: var(--ny-muted);
	font-size: 12px;
	font-weight: 500;
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__list {
	max-height: 320px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__option {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 8px 10px;
	border-radius: var(--ny-radius-sm);
	cursor: pointer;
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__option::before {
	display: none;
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__option.is-active {
	background: var(--ny-hover);
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__code {
	flex: none;
	min-width: 52px;
	padding: 7px 8px;
	background: var(--ny-hover);
	border-radius: 10px;
	color: var(--ny-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__option.is-active .ny-airports__code,
:is(.ny-package-search, .ny-flight-search) .ny-airports__option[aria-selected="true"] .ny-airports__code {
	background: var(--ny-primary-soft);
	color: var(--ny-primary);
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__name {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__city {
	overflow: hidden;
	color: var(--ny-text);
	font-size: 15px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__detail {
	overflow: hidden;
	color: var(--ny-muted);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__status {
	margin: 0;
	padding: 0 12px;
	color: var(--ny-muted);
	font-size: 14px;
}

:is(.ny-package-search, .ny-flight-search) .ny-airports__status:not(:empty) {
	padding-block: 16px;
	text-align: center;
}

/* ------------------------------------------------------------------------
 * Travellers
 * --------------------------------------------------------------------- */

.ny-package-search .ny-travellers {
	inset-inline-start: auto;
	inset-inline-end: 0;
	width: 340px;
	padding: 8px 20px;
}

:is(.ny-package-search, .ny-flight-search) .ny-travellers__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
}

:is(.ny-package-search, .ny-flight-search) .ny-travellers__row + .ny-travellers__row {
	border-block-start: 1px solid var(--ny-border);
}

:is(.ny-package-search, .ny-flight-search) .ny-travellers__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

:is(.ny-package-search, .ny-flight-search) .ny-travellers__label {
	color: var(--ny-text);
	font-size: 15px;
	font-weight: 600;
}

:is(.ny-package-search, .ny-flight-search) .ny-travellers__hint {
	color: var(--ny-muted);
	font-size: 13px;
}

:is(.ny-package-search, .ny-flight-search) .ny-travellers__stepper {
	display: flex;
	flex: none;
	align-items: center;
	gap: 4px;
}

:is(.ny-package-search, .ny-flight-search) .ny-travellers__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: var(--ny-surface);
	border: 1px solid var(--ny-faint);
	border-radius: 50%;
	box-shadow: none;
	color: var(--ny-text);
	font: inherit;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

:is(.ny-package-search, .ny-flight-search) button.ny-travellers__btn:hover:not(:disabled),
:is(.ny-package-search, .ny-flight-search) button.ny-travellers__btn:focus-visible {
	background: var(--ny-surface);
	border-color: var(--ny-text);
	color: var(--ny-text);
	outline: none;
}

:is(.ny-package-search, .ny-flight-search) button.ny-travellers__btn:disabled {
	background: var(--ny-surface);
	border-color: var(--ny-border);
	color: var(--ny-faint);
	cursor: not-allowed;
}

:is(.ny-package-search, .ny-flight-search) .ny-travellers__count {
	min-width: 32px;
	color: var(--ny-text);
	font-size: 16px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

:is(.ny-package-search, .ny-flight-search) .ny-travellers__footer {
	display: flex;
	justify-content: flex-end;
	padding: 8px 0 6px;
	border-block-start: 1px solid var(--ny-border);
}

:is(.ny-package-search, .ny-flight-search) .ny-travellers__done {
	margin: 0;
	padding: 8px 18px;
	background: var(--ny-text);
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	cursor: pointer;
}

:is(.ny-package-search, .ny-flight-search) button.ny-travellers__done:hover,
:is(.ny-package-search, .ny-flight-search) button.ny-travellers__done:focus-visible {
	background: #1e293b;
	color: #fff;
	outline: none;
}

/* ------------------------------------------------------------------------
 * Calendar (daterangepicker skin)
 * --------------------------------------------------------------------- */

.daterangepicker.ny-calendar {
	margin-top: 12px;
	padding: 12px;
	background: var(--ny-surface);
	border: 1px solid var(--ny-border);
	border-radius: var(--ny-radius);
	box-shadow: var(--ny-shadow-lg);
	color: var(--ny-text);
	font-family: inherit;
	font-size: 14px;
	animation: ny-pop-in 0.14s ease-out;
}

.daterangepicker.ny-calendar::before,
.daterangepicker.ny-calendar::after {
	display: none;
}

.daterangepicker.ny-calendar .drp-calendar {
	max-width: none;
	padding: 4px 8px;
}

.daterangepicker.ny-calendar .calendar-table {
	padding: 0;
	background: transparent;
	border: 0;
}

/*
 * Theme-proofing: themes style every table (Hello Elementor: striped rows, cell borders, padding,
 * row hover, margins). Reset it all here; the day states below set their own backgrounds.
 */
.daterangepicker.ny-calendar table,
.daterangepicker.ny-calendar thead,
.daterangepicker.ny-calendar tbody,
.daterangepicker.ny-calendar tr,
.daterangepicker.ny-calendar th,
.daterangepicker.ny-calendar td {
	margin: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	vertical-align: middle;
}

.daterangepicker.ny-calendar .calendar-table table {
	margin: 0;
	border-collapse: separate;
	border-spacing: 0 2px;
	font-size: 14px;
}

.daterangepicker.ny-calendar .calendar-table th,
.daterangepicker.ny-calendar .calendar-table td {
	width: 40px;
	min-width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	font-size: 14px;
	line-height: 40px;
}

/* Month title + weekday names. */
.daterangepicker.ny-calendar th.month {
	color: var(--ny-text);
	font-size: 15px;
	font-weight: 600;
}

.daterangepicker.ny-calendar thead tr:last-child th {
	height: 32px;
	color: var(--ny-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 32px;
	cursor: default;
}

/* Prev / next month. */
.daterangepicker.ny-calendar th.prev,
.daterangepicker.ny-calendar th.next {
	border-radius: 50%;
}

.daterangepicker.ny-calendar th.prev.available:hover,
.daterangepicker.ny-calendar th.next.available:hover {
	background: var(--ny-hover);
}

.daterangepicker.ny-calendar .calendar-table .prev span,
.daterangepicker.ny-calendar .calendar-table .next span {
	padding: 3px;
	border-color: var(--ny-text);
	border-width: 0 2px 2px 0;
}

.daterangepicker.ny-calendar.rtl .calendar-table .prev span {
	transform: rotate(-45deg);
}

.daterangepicker.ny-calendar.rtl .calendar-table .next span {
	transform: rotate(135deg);
}

/* Days. */
.daterangepicker.ny-calendar td.available {
	border-radius: 50%;
	color: var(--ny-text);
	font-weight: 500;
}

.daterangepicker.ny-calendar td.available:hover {
	background: var(--ny-hover);
	color: var(--ny-text);
}

.daterangepicker.ny-calendar td.disabled {
	color: var(--ny-faint);
	font-weight: 400;
	text-decoration: none;
}


/* Today: subtle ring. */
.daterangepicker.ny-calendar td.today:not(.active) {
	box-shadow: inset 0 0 0 1px var(--ny-faint);
}

/* Nothing picked yet: daterangepicker still marks today as the range, don't show it as selected. */
.daterangepicker.ny-calendar.is-empty td.active,
.daterangepicker.ny-calendar.is-empty td.in-range {
	background: transparent;
	color: var(--ny-text);
	font-weight: 500;
}

.daterangepicker.ny-calendar.is-empty td.active {
	box-shadow: inset 0 0 0 1px var(--ny-faint);
}

.daterangepicker.ny-calendar.is-empty td.active:hover {
	background: var(--ny-hover);
}

.daterangepicker.ny-calendar td.in-range {
	background: var(--ny-primary-soft);
	border-radius: 0;
	color: var(--ny-text);
}

.daterangepicker.ny-calendar td.in-range:hover {
	background: #dbe7f8;
}

.daterangepicker.ny-calendar td.active,
.daterangepicker.ny-calendar td.active:hover {
	background: var(--ny-primary);
	color: #fff;
	font-weight: 600;
}

.daterangepicker.ny-calendar td.start-date {
	border-radius: 999px 0 0 999px;
}

.daterangepicker.ny-calendar td.end-date {
	border-radius: 0 999px 999px 0;
}

.daterangepicker.ny-calendar.rtl td.start-date {
	border-radius: 0 999px 999px 0;
}

.daterangepicker.ny-calendar.rtl td.end-date {
	border-radius: 999px 0 0 999px;
}

.daterangepicker.ny-calendar td.start-date.end-date {
	border-radius: 50%;
}

/*
 * Days of the previous/next month ("off ends"): hidden for a cleaner grid, even when inside the range.
 * (Past days are "off disabled" and stay visible.)
 */
.daterangepicker.ny-calendar .calendar-table td.off.ends,
.daterangepicker.ny-calendar .calendar-table td.off.ends:hover {
	background: transparent !important;
	box-shadow: none !important;
	color: transparent !important;
	pointer-events: none;
}

/*
 * Price calendar: the cheapest package price under each departure day.
 * Taller rounded-square cells; the day and price are spans (clicks must land on the <td>).
 */
.daterangepicker.ny-calendar .calendar-table.has-prices td {
	width: 46px;
	min-width: 46px;
	height: 50px;
	border-radius: 12px;
	line-height: 1.15;
}

.daterangepicker.ny-calendar .calendar-table.has-prices td.in-range {
	border-radius: 0;
}

.daterangepicker.ny-calendar .calendar-table.has-prices td.start-date {
	border-radius: 12px 0 0 12px;
}

.daterangepicker.ny-calendar .calendar-table.has-prices td.end-date {
	border-radius: 0 12px 12px 0;
}

.daterangepicker.ny-calendar.rtl .calendar-table.has-prices td.start-date {
	border-radius: 0 12px 12px 0;
}

.daterangepicker.ny-calendar.rtl .calendar-table.has-prices td.end-date {
	border-radius: 12px 0 0 12px;
}

.daterangepicker.ny-calendar .calendar-table.has-prices td.start-date.end-date {
	border-radius: 12px;
}

.daterangepicker.ny-calendar .ny-calendar__day,
.daterangepicker.ny-calendar .ny-calendar__price {
	display: block;
	pointer-events: none;
}

.daterangepicker.ny-calendar .ny-calendar__price {
	margin-top: 2px;
	color: var(--ny-muted);
	font-size: 10.5px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Cheapest departure(s) of the month. */
.daterangepicker.ny-calendar td.is-cheapest .ny-calendar__price {
	color: #15803d;
	font-weight: 700;
}

/* No packages departing that day (still selectable, e.g. as a return date). */
.daterangepicker.ny-calendar td.available.is-no-price:not(.active):not(.in-range) {
	color: var(--ny-faint);
	font-weight: 400;
}

.daterangepicker.ny-calendar td.active .ny-calendar__price,
.daterangepicker.ny-calendar td.active.is-cheapest .ny-calendar__price {
	color: rgba(255, 255, 255, 0.85);
}

/* RTL: current month on the right, days flow right-to-left. */
.daterangepicker.ny-calendar.rtl {
	direction: rtl;
	text-align: right;
}

@media (min-width: 564px) {

	.daterangepicker.ny-calendar.rtl {
		direction: rtl;
	}

	.daterangepicker.ny-calendar.rtl .drp-calendar {
		float: right;
	}

	.daterangepicker.ny-calendar .drp-calendar.left .calendar-table {
		padding: 0;
	}
}

/* ------------------------------------------------------------------------
 * Responsive: stacked rows; popovers and calendar become bottom sheets.
 * --------------------------------------------------------------------- */

@keyframes ny-sheet-in {

	from {
		transform: translateY(100%);
	}

	to {
		transform: none;
	}
}

@media (max-width: 900px) {

	.ny-package-search {
		flex-wrap: wrap;
		padding: 6px;
	}

	.ny-package-search .ny-package-search__field {
		flex: 1 1 100%;
	}

	.ny-package-search .ny-package-search__field--from,
	.ny-package-search .ny-package-search__field--to {
		flex-basis: 40%;
	}

	/* Horizontal dividers between rows; From | To keep a vertical one. */
	.ny-package-search .ny-package-search__field + .ny-package-search__field:not(.ny-package-search__field--submit):not(.ny-package-search__field--to)::before {
		inset-block: 0 auto;
		inset-inline: 16px;
		width: auto;
		height: 1px;
	}

	.ny-package-search .ny-package-search__trigger {
		min-height: 60px;
		padding: 8px 16px;
	}

	.ny-package-search .ny-package-search__field--submit {
		padding: 6px 0 0;
	}

	.ny-package-search .ny-package-search__submit {
		width: 100%;
	}

	.ny-package-search .ny-package-search__popover,
	.ny-package-search .ny-travellers {
		position: fixed;
		z-index: 100000;
		inset: auto 0 0;
		width: auto;
		max-width: none;
		max-height: 85vh;
		padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
		overflow-y: auto;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.25);
		animation: ny-sheet-in 0.2s ease-out;
	}

	.ny-package-search .ny-airports__list {
		max-height: 55vh;
	}
}

@media (max-width: 600px) {

	.daterangepicker.ny-calendar {
		position: fixed;
		inset: auto 0 0 !important;
		width: auto;
		max-height: 85vh;
		margin: 0;
		overflow-y: auto;
		border-radius: 20px 20px 0 0;
		animation: ny-sheet-in 0.2s ease-out;
	}

	.daterangepicker.ny-calendar .drp-calendar {
		float: none;
		max-width: 380px;
		margin-inline: auto;
	}

	/* Days with prices share the sheet width. */
	.daterangepicker.ny-calendar .calendar-table.has-prices table {
		width: 100%;
		table-layout: fixed;
	}

	.daterangepicker.ny-calendar .calendar-table.has-prices th,
	.daterangepicker.ny-calendar .calendar-table.has-prices td {
		width: auto;
		min-width: 0;
	}

	.daterangepicker.ny-calendar .ny-calendar__price {
		font-size: 10px;
	}
}

/* Mobile: the destination picker is a full-screen window. */

.ny-package-search .ny-sheet__head {
	display: none;
}

html.ny-sheet-open {
	overflow: hidden;
}

@media (max-width: 900px) {

	.ny-package-search .ny-package-search__popover.ny-airports:not([hidden]) {
		display: flex;
		flex-direction: column;
		inset: 0;
		width: 100%;
		height: 100%;
		max-height: none;
		padding: 0 16px env(safe-area-inset-bottom);
		border: 0;
		border-radius: 0;
		box-shadow: none;
		animation: none;
	}

	.ny-package-search .ny-airports .ny-sheet__head {
		display: flex;
		flex: none;
		align-items: center;
		gap: 8px;
		min-height: 56px;
		margin-block-end: 8px;
		border-block-end: 1px solid var(--ny-border);
	}

	.ny-package-search .ny-sheet__title {
		flex: 1;
		font-size: 17px;
		font-weight: 700;
		color: var(--ny-text);
	}

	.ny-package-search .ny-sheet__close {
		display: inline-flex;
		order: 2;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		background: var(--ny-hover);
		border: 0;
		border-radius: 50%;
		color: var(--ny-text);
		cursor: pointer;
	}

	.ny-package-search .ny-airports .ny-airports__search,
	.ny-package-search .ny-airports .ny-airports__heading {
		flex: none;
	}

	.ny-package-search .ny-airports .ny-airports__list {
		flex: 1;
		max-height: none;
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

/* ------------------------------------------------------------------------
 * Mobile calendar (assets/js/mobile-calendar.js), shared by flight and package search.
 * --------------------------------------------------------------------- */

.ny-mcal {
	position: fixed;
	z-index: 100001;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: var(--ny-surface, #fff);
	color: var(--ny-text, #0f172a);
	font-family: inherit;
}

.ny-mcal__head {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	min-height: 56px;
	padding-inline: 16px;
	border-block-end: 1px solid var(--ny-border, #e2e8f0);
}

.ny-mcal__title {
	flex: 1;
	font-size: 17px;
	font-weight: 700;
}

.ny-mcal__close {
	order: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	background: var(--ny-hover, #f1f5f9);
	border: 0;
	border-radius: 50%;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.ny-mcal__weekdays,
.ny-mcal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.ny-mcal__weekdays {
	flex: none;
	padding: 8px 12px;
	border-block-end: 1px solid var(--ny-border, #e2e8f0);
	color: var(--ny-muted, #64748b);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

.ny-mcal__scroll {
	flex: 1;
	padding: 0 12px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ny-mcal__month-title {
	margin: 20px 0 8px;
	font-size: 16px;
	font-weight: 700;
	text-align: start;
}

.ny-mcal__grid {
	row-gap: 2px;
}

.ny-mcal .ny-mcal__day {
	position: relative;
	height: 46px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: inherit;
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.ny-mcal .ny-mcal__day:disabled {
	color: var(--ny-faint, #cbd5e1);
	cursor: default;
}

.ny-mcal .ny-mcal__day.is-range {
	background: var(--ny-primary-soft, #eaf1fb);
}

.ny-mcal .ny-mcal__day.is-start,
.ny-mcal .ny-mcal__day.is-end {
	background: var(--ny-primary, #0b4ea2);
	border-radius: 10px;
	color: #fff;
	font-weight: 700;
}

.ny-mcal__foot {
	display: flex;
	flex: none;
	align-items: center;
	gap: 12px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	border-block-start: 1px solid var(--ny-border, #e2e8f0);
	box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}

.ny-mcal__summary {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
}

.ny-mcal .ny-mcal__done {
	min-width: 120px;
	height: 48px;
	padding: 0 24px;
	background: var(--ny-primary, #0b4ea2);
	border: 0;
	border-radius: 14px;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ny-mcal .ny-mcal__done:disabled {
	opacity: 0.4;
	cursor: default;
}

.ny-mcal .ny-mcal__day {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
}

.ny-mcal.has-prices .ny-mcal__day {
	height: 54px;
}

.ny-mcal__price {
	min-height: 12px;
	font-size: 10px;
	font-weight: 500;
	line-height: 12px;
	color: var(--ny-muted, #64748b);
}

.ny-mcal .ny-mcal__day.is-cheapest .ny-mcal__price {
	color: #15803d;
	font-weight: 700;
}

.ny-mcal .ny-mcal__day.is-start .ny-mcal__price,
.ny-mcal .ny-mcal__day.is-end .ny-mcal__price {
	color: rgba(255, 255, 255, 0.85);
}
