/**
 * Booking form: address suggestions and the two ATL quick picks.
 *
 * Two things in here are not optional on this site.
 *
 * hello-elementor's reset.css paints EVERY button #c36 on :hover AND :focus:
 *
 *   button:focus, button:hover { background-color: #c36; color: #fff }
 *
 * at specificity (0,1,1). A tap on a touch screen leaves :focus sitting on
 * the button after the finger lifts, so a hover-only rule looks fixed on a
 * desktop and stays pink on a phone. That is the bug Brenda reported twice.
 * Every state rule below names :hover and :focus together.
 *
 * And no bare 1fr track or shorthand padding on a full-width row: both have
 * broken this site's mobile layout before by letting an unbreakable child
 * set the width and scroll the page sideways.
 */

.aal-suggest__wrap {
	position: relative;
	display: block;
}

.aal-suggest {
	position: absolute;
	z-index: 1000;
	top: 100%;
	left: 0;
	right: 0;
	margin: 2px 0 0;
	padding-top: 4px;
	padding-bottom: 4px;
	list-style: none;
	max-height: 260px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #dfe4ea;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba( 28, 36, 48, 0.14 );
}

.aal-suggest[hidden] {
	display: none;
}

.aal-suggest__item {
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 14px;
	padding-right: 14px;
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
	color: #1c2430;
	cursor: pointer;

	/* A long formatted address must wrap, not widen the box. */
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.aal-suggest__item.is-active,
.aal-suggest__item:hover {
	background: #f5f7fa;
}

/* Google's own type, so an airport reads as an airport in the list. */
.aal-suggest__item.is-airport {
	font-weight: 600;
}

.aal-suggest__item.is-airport::after {
	content: "airport";
	display: inline-block;
	margin-left: 8px;
	padding-top: 1px;
	padding-bottom: 1px;
	padding-left: 6px;
	padding-right: 6px;
	border-radius: 3px;
	background: #eaf2fa;
	color: #001c38;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: 1px;
}

/* ---------------------------------------------------------------------
 * The quick picks
 * ------------------------------------------------------------------ */

.aal-picks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.aal-picks__label {
	font-size: 13px;
	line-height: 1.3;
	color: #5b6672;
}

/*
 * Two stylesheets want to paint this button and both outrank a plain class.
 *
 *   hello-elementor reset.css   button:hover, button:focus   -> #c36, (0,1,1)
 *   Gravity Forms framework     a 4087-character selector list that includes
 *                               a bare `button` inside .gform_wrapper, which
 *                               paints it GF's primary blue at (0,4,0)
 *
 * So every rule is written at (0,5,0) against the wrapper GF puts on the
 * form, with the bare .aal-chip version kept underneath for the preview
 * pages, which have no Gravity Forms markup. No !important: the selector is
 * specific enough without one, and an !important here would be the thing
 * that breaks the next person's override.
 */

.aal-chip,
.gform-theme.gform-theme--framework.gform_wrapper .aal-picks .aal-chip {
	display: inline-block;
	padding-top: 6px;
	padding-bottom: 6px;
	padding-left: 14px;
	padding-right: 14px;
	border: 1px solid #c9d4e0;
	border-radius: 999px;
	background: #fff;
	background-color: #fff;
	background-image: none;
	color: #001c38;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	box-shadow: none;
	text-decoration: none;

	/* Nothing here should inherit a submit button's size. */
	width: auto;
	min-width: 0;
	min-height: 0;
	height: auto;
	text-transform: none;
	letter-spacing: normal;
}

/* :hover and :focus together, always. A tap on a touch screen leaves :focus
   sitting on the button after the finger lifts, which is why the first fix
   for the pink buttons held on a desktop and not on Brenda's phone. */
.aal-chip:hover,
.aal-chip:focus,
.aal-chip:active,
.gform-theme.gform-theme--framework.gform_wrapper .aal-picks .aal-chip:hover,
.gform-theme.gform-theme--framework.gform_wrapper .aal-picks .aal-chip:focus,
.gform-theme.gform-theme--framework.gform_wrapper .aal-picks .aal-chip:active {
	background: #001c38;
	background-color: #001c38;
	background-image: none;
	border-color: #001c38;
	color: #fff;
	box-shadow: none;
}

.aal-chip:focus-visible,
.gform-theme.gform-theme--framework.gform_wrapper .aal-picks .aal-chip:focus-visible {
	outline: 2px solid #b87c3c;
	outline-offset: 2px;
}

@media ( max-width: 480px ) {

	.aal-picks__label {
		flex-basis: 100%;
	}

	.aal-suggest__item {
		font-size: 14px;
	}
}
