/**
 * SalmaDesign, and the two-step booking form.
 *
 * Two groups of rules, scoped differently on purpose.
 *
 * The page layout — the media column, the aside, the price block — stays under
 * .wptm-salma-design, because it arranges that one design's page and must not
 * touch another's.
 *
 * The booking form does not. It is drawn on every design now: in the page under
 * the closing call to action, and inside the dialog a phone opens. Its rules
 * were scoped to the design wrapper too, so on the other seven designs the form
 * rendered with no styling at all — the stylesheet was being loaded, which is
 * why the fault was easy to miss, but not one of its selectors could match.
 *
 * Those rules are scoped by their own prefix instead. Every class the form uses
 * is wptm-salma__*, which is unique to it, so the prefix is the scope — the
 * same convention the rest of this plugin's stylesheets already follow.
 */

/**
 * SalmaDesign.
 *
 * Every rule begins with .wptm-salma-design. Nothing here can reach another
 * tour design, another plugin or the theme, which is the whole reason the
 * design is a separate stylesheet rather than a set of modifiers inside the
 * shared one.
 *
 * It inherits the theme's typeface, like the rest of the plugin, and reuses
 * the accent colour the site already defines. No font is loaded, no colour is
 * invented, and no generic selector appears anywhere in this file.
 */

/*
 * The plugin's own ancestors of the panel state their overflow.
 *
 * An ancestor with overflow set to anything but visible turns a sticky
 * descendant into an ordinary one. It fails silently: no error, no warning,
 * the panel simply scrolls away, which is what makes it hard to find.
 *
 * These three are the only ancestors the plugin owns. If the panel still does
 * not stay, the element clipping it belongs to the theme, and the console line
 * in the note below will name it.
 */
.wptm-salma-design,
.wptm-salma-design .wptm-salma__layout,
.wptm-salma-design .wptm-salma__main {
	overflow: visible;
}

.wptm-salma-design {
	--salma-gap: clamp(22px, 3vw, 40px);
	--salma-radius: 14px;
	--salma-line: 1px solid var(--wptm-hairline);
}

/* The gallery column. It carries no styling of its own beyond not being
   allowed to force the grid wider than its share. */
.wptm-salma-design .wptm-salma__media {
	min-width: 0;
}

/* The form is a plain block; its fields carry the styling. */
.wptm-salma__form {
	margin: 0;
}

/*
 * The side gutter on a phone.
 *
 * The shared stylesheet puts this on .wptm-tour__article, which the classic
 * design renders as an inner wrapper. This design has no such wrapper, so it
 * received no side padding at all: every row ran to the glass and anything a
 * little too wide was cut off at the right edge.
 *
 * Applied to the parts rather than to the root, because the root is also the
 * container for the sticky panel and the fixed mobile bar, and padding there
 * would move both.
 */
/*
 * Nothing may reach past the edge, and clipping is not available here.
 *
 * The classic design guards this with overflow-x: clip on its article wrapper.
 * This design cannot: any ancestor with a non visible overflow turns the
 * sticky panel into an ordinary one, which is the fault that took several
 * attempts to find.
 *
 * So the guarantee is made at source instead. Every descendant is capped at
 * the width of what holds it and told it may shrink, which is what the clip
 * was covering for. A grid track sized to max-content is the one thing that
 * can still exceed its parent, so those are named and capped too.
 */
.wptm-salma-design .wptm-salma__layout,
.wptm-salma-design .wptm-salma__main,
.wptm-salma-design .wptm-salma__top,
.wptm-salma-design .wptm-salma__body,
.wptm-salma-design .wptm-salma__aside,
.wptm-salma-design .wptm-salma__panel {
	min-width: 0;
	max-width: 100%;
}

/*
 * The facts row: the label column is sized to its content so a word is never
 * broken, but on a very narrow card a long translated label plus a long value
 * could together exceed the row. minmax lets that column give way before the
 * row does.
 */
.wptm-salma-design .wptm-salma__quickrow {
	grid-template-columns: 20px minmax(0, max-content) minmax(0, 1fr);
}

@media (max-width: 782px) {

	.wptm-salma-design .wptm-head,
	.wptm-salma-design .wptm-salma__layout,
	.wptm-salma-design .wptm-salma__done,
	.wptm-salma-design .wptm-block,
	.wptm-salma-design .wptm-related {
		padding-inline: var(--wptm-gutter);
	}

	/*
	 * The gallery stays inside the gutter.
	 *
	 * It used to cancel it with a negative margin so the picture reached the
	 * glass. That works for a normal block, which widens into its parent's
	 * padding; inside a grid the track width is computed first and the box is
	 * simply pushed outside its track, spilling past the screen on the right.
	 *
	 * The classic design does the same and gets away with it because its
	 * wrapper clips. This one cannot clip without turning the sticky panel
	 * into an ordinary one, so the bleed goes and every edge lines up.
	 */
	.wptm-salma-design .wptm-salma__media {
		margin-inline: 0;
	}
}

/* --- The layout: content, then the booking panel -------------------------- */

/*
 * One grid for the page.
 *
 * The panel is a child of THIS, not of the top row, and that is the whole
 * reason it can stay beside the reader: a sticky element moves within its own
 * containing block, so its parent must be as tall as the content being
 * scrolled past. Inside the gallery row it could only stay while the gallery
 * was on screen, which is exactly how it behaved.
 */
.wptm-salma-design .wptm-salma__layout {
	display: grid;
	gap: var(--salma-gap);
	margin-block-end: var(--salma-gap);
}

.wptm-salma-design .wptm-salma__main {
	min-width: 0;
}

/*
 * On one column the booking panel comes straight after the facts, not at the
 * end of the page.
 *
 * The markup order is content then panel, which is right for a desktop where
 * they sit side by side. Stacked, that order buries the form under the
 * itinerary, the inclusions and the questions: somebody ready to book after
 * reading the facts would have to scroll past everything to find it.
 *
 * display: contents lifts the two halves of the content column into the same
 * grid as the panel, so all three can be ordered. It is used only here, and
 * only below the width where the columns exist.
 */
@media (max-width: 1079px) {

	.wptm-salma-design .wptm-salma__main {
		display: contents;
	}

	/*
	 * On one column the ticket is as wide as the page, and a date field a
	 * thousand pixels wide is a strange thing to type in. Between the
	 * tablet widths the two fields of the first step share a line and the
	 * button takes the line under them; on a phone they stack as before.
	 */
	.wptm-salma-design .wptm-salma__step[data-wptm-salma-step="1"] {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0 18px;
	}

	.wptm-salma-design .wptm-salma__step[data-wptm-salma-step="1"] > .wptm-salma__legend,
	.wptm-salma-design .wptm-salma__step[data-wptm-salma-step="1"] > .wptm-salma__next {
		grid-column: 1 / -1;
	}

	.wptm-salma-design .wptm-salma__top {
		order: 1;
		margin-block-end: 0;
	}

	.wptm-salma-design .wptm-salma__aside {
		order: 2;
	}

	.wptm-salma-design .wptm-salma__body {
		order: 3;
	}
}

@media (max-width: 640px) {

	.wptm-salma-design .wptm-salma__step[data-wptm-salma-step="1"] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The gallery and the facts, side by side inside the content column. */
.wptm-salma-design .wptm-salma__top {
	display: grid;
	gap: var(--salma-gap);
	margin-block-end: var(--salma-gap);
}

@media (min-width: 860px) {

	.wptm-salma-design .wptm-salma__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		/* Each column as tall as its own content, so a short one does not
		   inherit the height of the picture beside it. */
		align-items: start;
	}
}

@media (min-width: 1080px) {

	.wptm-salma-design .wptm-salma__layout {
		/*
		 * A fixed panel width rather than a share: a booking panel that grows
		 * with the screen only ends up with more white space in it.
		 */
		grid-template-columns: minmax(0, 1fr) 340px;
		align-items: start;
	}

	/*
	 * The panel follows the reader.
	 *
	 * sticky needs all of these and each is easy to lose: the item must not be
	 * stretched, so align-self is stated rather than left to the grid; no
	 * ancestor may set overflow to anything but visible; and there must be a
	 * top offset. The offset uses the variable the plugin sets for a fixed
	 * theme header, so the panel stops below Jannah's bar rather than under it.
	 */
	/*
	 * The panel travels with the reader, using the same mechanism as the
	 * classic sidebar because that one is proven on this theme.
	 *
	 * --wptm-side-top is written by the script: the header height plus a gap
	 * when the panel fits on screen, and a negative offset when it is taller,
	 * so it scrolls until its last row is visible and pins from there. That is
	 * better than an inner scrollbar, which is what a max-height would give.
	 *
	 * The fallback in the var() is what applies before the script runs and if
	 * it never does.
	 */
	.wptm-salma-design .wptm-salma__aside {
		align-self: start;
		position: sticky;
		top: var(--wptm-side-top, calc(var(--wptm-offset, 0px) + 24px));
	}
}

/*
 * A confirmation, across the content.
 *
 * The section brings its own styling; this only gives it the room, and hides
 * the empty booking column beside it so the confirmation is not sitting next
 * to a panel with nothing in it.
 */
.wptm-salma-design .wptm-salma__done {
	margin-block-end: var(--salma-gap);
}

/*
 * The stub code at the foot of the panel.
 *
 * A dashed rule above it, the way a ticket is perforated, and the quietest
 * type on the card: it is a reference somebody looks for when they need it,
 * not something the panel is about.
 *
 * Both the box and the drawing are sized and centred. Sizing only one leaves
 * the other free to fall back to its own width, and the svg's is the sum of
 * its bars, which is narrower than the box.
 */

/* --- The middle column: rating and facts ---------------------------------- */

.wptm-salma-design .wptm-salma__intro {
	min-width: 0;
}




/*
 * The facts.
 *
 * A hairline between rows rather than spacing alone: with only a gap, five
 * short rows read as a loose list and the eye has nothing to follow from the
 * label across to the value.
 */
.wptm-salma-design .wptm-salma__quick {
	display: grid;
	margin: 0;
	border-block-start: var(--salma-line);
}

.wptm-salma-design .wptm-salma__quickrow {
	display: grid;
	/*
	 * Mark, label, value on one line. The label column is sized to its content
	 * and does not shrink, so a word is never broken down the middle.
	 */
	/* minmax so the label column gives way before the row does. */
	grid-template-columns: 20px minmax(0, max-content) minmax(0, 1fr);
	align-items: baseline;
	gap: 12px;
	padding: 12px 0;
	border-block-end: var(--salma-line);
	font-size: 15px;
	line-height: 1.45;
}

.wptm-salma-design .wptm-salma__quickicon {
	line-height: 0;
	color: var(--wptm-accent);
	align-self: center;
}

.wptm-salma-design .wptm-salma__quickrow dt {
	margin: 0;
	color: var(--wptm-muted);
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: keep-all;
}

.wptm-salma-design .wptm-salma__quickrow dd {
	margin: 0;
	font-weight: 700;
	text-align: end;
	min-width: 0;
	overflow-wrap: break-word;
}

/*
 * Highlights, at the size of the text around them.
 *
 * The shared design sets them at up to 17.5px and bold, which is a size that
 * works when they are the widest thing on the page. In this layout they sit in
 * a narrower column beside a panel, and at that width they read as a series of
 * small headings rather than as a list.
 */
.wptm-salma-design .wptm-features__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}

.wptm-salma-design .wptm-features__note {
	font-size: 14px;
	line-height: 1.6;
}

.wptm-salma-design .wptm-features__item {
	padding-block: 11px;
}

/*
 * The stepper.
 *
 * The buttons are 46px so they can be hit with a thumb, and the field between
 * them keeps its own border rather than gaining a second one.
 */
.wptm-salma__stepper {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) 46px;
	align-items: stretch;
	border: 1px solid var(--wptm-border);
	border-radius: 10px;
	overflow: hidden;
}

.wptm-salma__stepper input {
	border: 0;
	border-radius: 0;
	text-align: center;
	min-height: 46px;
}

.wptm-salma__stepper input:focus {
	box-shadow: none;
	outline: 2px solid var(--wptm-accent);
	outline-offset: -2px;
}

/*
 * "2 Adults": the number and its noun in the middle cell, the number typed
 * in a field just wide enough for it and the noun beside it, so the pair
 * reads as one phrase and the buttons either side change it.
 */
.wptm-salma__count {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
}

.wptm-salma__stepper .wptm-salma__count input {
	inline-size: 3ch;
	min-inline-size: 3ch;
	padding-inline: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: end;
	font-weight: 600;
	-moz-appearance: textfield;
	appearance: textfield;
}

.wptm-salma__stepper .wptm-salma__count input:focus {
	outline: 2px solid var(--wptm-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.wptm-salma__unit {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.wptm-salma__max {
	display: block;
	margin-block-start: 6px;
	font-size: 12px;
	text-align: center;
	color: var(--wptm-faint);
}

/*
 * The date field wears a calendar at its start and a chevron at its end. The
 * browser's own picker button is stretched across the whole field with no
 * opacity, so a press anywhere on the field opens the calendar and the
 * button the browser draws is not seen twice.
 */
.wptm-salma__datewrap {
	position: relative;
	display: block;
}

.wptm-salma__datewrap input[type="date"] {
	inline-size: 100%;
	padding-inline: 44px 40px;
	font-variant-numeric: tabular-nums;
}

.wptm-salma__datewrap input[type="date"]::-webkit-calendar-picker-indicator {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

.wptm-salma__dateicon,
.wptm-salma__datechev {
	position: absolute;
	inset-block-start: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--wptm-accent);
	line-height: 0;
}

.wptm-salma__dateicon {
	inset-inline-start: 14px;
}

.wptm-salma__datechev {
	inset-inline-end: 18px;
	width: 9px;
	height: 9px;
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	color: var(--wptm-muted);
}

/*
 * The reassurance row: up to three, side by side, each an icon over a title
 * over a note, centred, the way a ticket prints its conditions.
 */
.wptm-salma__assure {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.wptm-salma__assureitem {
	display: grid;
	justify-items: center;
	gap: 4px;
	margin: 0;
	padding: 0 4px;
	text-align: center;
	list-style: none;
}

.wptm-salma__assureitem::marker {
	content: "";
}

.wptm-salma__assureicon {
	line-height: 0;
	color: var(--wptm-accent);
	margin-block-end: 2px;
}

.wptm-salma__assureitem strong {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.wptm-salma__assureitem span {
	font-size: 11px;
	line-height: 1.35;
	color: var(--wptm-muted);
}

@media (max-width: 380px) {

	.wptm-salma__assure {
		grid-template-columns: minmax(0, 1fr);
	}

	.wptm-salma__assureitem {
		grid-template-columns: auto minmax(0, 1fr);
		justify-items: start;
		text-align: start;
		column-gap: 10px;
	}

	.wptm-salma__assureicon {
		grid-row: 1 / 3;
	}
}

/*
 * The two stepper buttons. Named rather than selected as "button", so a theme
 * that styles buttons inside forms does not reach them by accident.
 */
.wptm-salma__stepdown,
.wptm-salma__stepup,
.wptm-salma__stepper button {
	border: 0;
	background: color-mix(in srgb, currentColor 4%, transparent);
	color: inherit;
	font: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.wptm-salma__stepper button:hover,
.wptm-salma__stepper button:focus-visible {
	background: color-mix(in srgb, var(--wptm-accent) 14%, transparent);
	color: var(--wptm-accent);
}

.wptm-salma__stepper button:disabled {
	opacity: .4;
	cursor: not-allowed;
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {

	.wptm-salma__stepdown,
	.wptm-salma__stepup,
	.wptm-salma__stepper button {
		background: rgba(20, 24, 31, .04);
	}
}

/* --- The panel ------------------------------------------------------------ */

/*
 * The panel is a ticket, drawn to the picture the owner brought.
 *
 * A pale card with a dashed edge; a stub across the top with the price at
 * the start, the ticket id and its bars at the end, a dashed rule between
 * them and a faint postmark behind; a tear with a hole punched at each side;
 * then the two fields, a second tear, a row of the site's own reassurances,
 * the button, and a line of italic under it. The price is set in the
 * system's serif — Georgia where there is one, the platform's otherwise —
 * which is the one place on the page a serif is asked for: a figure printed
 * on a ticket rather than typed on a screen.
 */
.wptm-salma-design .wptm-pass {
	--tk-accent: var(--wptm-accent);
	--tk-ink: var(--wptm-text);
	--tk-paper: color-mix(in srgb, var(--wptm-accent) 5%, var(--wptm-page, Canvas));
	--tk-paper-deep: color-mix(in srgb, var(--wptm-accent) 9%, var(--wptm-page, Canvas));
	--tk-dash: color-mix(in srgb, var(--wptm-accent) 45%, transparent);
	--tk-line: color-mix(in srgb, var(--wptm-text) 12%, transparent);
	--tk-pad: clamp(18px, 2.2vw, 24px);
	position: relative;
	padding: 0;
	border: 1.5px dashed var(--tk-dash);
	border-radius: 18px;
	background: var(--tk-paper);
	box-shadow: 0 1px 2px rgba(15, 20, 28, .03), 0 14px 34px -26px rgba(15, 20, 28, .35);
	overflow: hidden;
}

/* --- The stub ------------------------------------------------------------- */

.wptm-salma-design .wptm-pass__stub {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 22px var(--tk-pad) 20px;
	background: var(--tk-paper-deep);
}

.wptm-salma-design .wptm-pass__price {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 2px;
	min-width: 0;
}

.wptm-salma-design .wptm-pass__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tk-accent);
}

.wptm-salma-design .wptm-pass__amount {
	margin-block: 2px;
	font-family: Georgia, "Times New Roman", "Noto Serif", serif;
	font-size: clamp(36px, 3.6vw, 44px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.01em;
	color: var(--tk-ink);
	font-variant-numeric: lining-nums;
}

.wptm-salma-design .wptm-pass__amount--quote {
	font-size: 20px;
	line-height: 1.3;
}

.wptm-salma-design .wptm-pass__basis {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tk-accent);
}

/* The postmark, behind the price and the id, in the accent at a whisper. */
.wptm-salma-design .wptm-pass__stamp {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 52%;
	z-index: 0;
	width: 84px;
	height: 84px;
	transform: translate(-50%, -50%) rotate(-12deg);
	color: var(--tk-accent);
	opacity: .35;
	line-height: 0;
	pointer-events: none;
}

.wptm-salma-design .wptm-pass__stamp svg {
	width: 100%;
	height: 100%;
}

.wptm-salma-design .wptm-pass__id {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: end;
	gap: 3px;
	padding-inline-start: 16px;
	border-inline-start: 1.5px dashed var(--tk-dash);
	text-align: end;
}

.wptm-salma-design .wptm-pass__code {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--tk-ink);
	font-variant-numeric: tabular-nums;
}

.wptm-salma-design .wptm-pass__bars {
	display: block;
	inline-size: 96px;
	block-size: 30px;
	margin-block-start: 4px;
	line-height: 0;
	color: var(--tk-ink);
}

.wptm-salma-design .wptm-pass__bars svg {
	inline-size: 100%;
	block-size: 100%;
	display: block;
}

/* --- The tear ------------------------------------------------------------- */

/* A dashed line with a hole punched at each end; the holes are pulled half
   out of the card, which clips them to a notch in its edge. */
.wptm-salma-design .wptm-pass__tear,
.wptm-salma-design .wptm-salma__tear {
	position: relative;
	display: block;
	height: 1px;
	border-block-start: 1.5px dashed var(--tk-dash);
}

.wptm-salma-design .wptm-pass__tear::before,
.wptm-salma-design .wptm-pass__tear::after,
.wptm-salma-design .wptm-salma__tear::before,
.wptm-salma-design .wptm-salma__tear::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--wptm-page, Canvas);
	box-shadow: inset 0 1px 2px rgba(15, 20, 28, .12);
}

.wptm-salma-design .wptm-pass__tear::before,
.wptm-salma-design .wptm-salma__tear::before {
	inset-inline-start: 0;
	transform: translate(-50%, -50%);
}

.wptm-salma-design .wptm-pass__tear::after,
.wptm-salma-design .wptm-salma__tear::after {
	inset-inline-end: 0;
	transform: translate(50%, -50%);
}

/* The inner tear sits inside the body's padding; its holes reach the edge. */
.wptm-salma-design .wptm-salma__tear {
	margin: 4px calc(var(--tk-pad) * -1) 18px;
}

/* --- The body ------------------------------------------------------------- */

.wptm-salma-design .wptm-pass__body {
	padding: 20px var(--tk-pad) 8px;
}

.wptm-salma-design .wptm-pass .wptm-salma__legend {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.wptm-salma-design .wptm-pass .wptm-salma__field label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tk-ink);
}

.wptm-salma-design .wptm-pass .wptm-salma__field input,
.wptm-salma-design .wptm-pass .wptm-salma__stepper {
	background: var(--wptm-page, Canvas);
	border-color: var(--tk-line);
}

.wptm-salma-design .wptm-pass .wptm-salma__next {
	margin-block-start: 6px;
}

.wptm-salma-design .wptm-pass__tagline {
	margin: 0;
	padding: 10px var(--tk-pad) 18px;
	font-family: Georgia, "Times New Roman", "Noto Serif", serif;
	font-style: italic;
	font-size: 15px;
	text-align: center;
	color: var(--tk-accent);
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {

	.wptm-salma-design .wptm-pass {
		--tk-paper: #fbf8f3;
		--tk-paper-deep: #f7f1e6;
		--tk-dash: rgba(184, 133, 58, .45);
		--tk-line: rgba(31, 36, 48, .12);
	}
}


@media print {

	.wptm-salma-design .wptm-pass__body,
	.wptm-salma-design .wptm-pass__tear,
	.wptm-salma-design .wptm-pass__tagline,
	.wptm-salma-design .wptm-pass__stamp {
		display: none !important;
	}

	.wptm-salma-design .wptm-pass {
		border-style: solid;
		box-shadow: none;
		background: none;
	}

	.wptm-salma-design .wptm-pass__stub {
		background: none;
	}
}

/* --- Facts ---------------------------------------------------------------- */

/* --- The form ------------------------------------------------------------- */

.wptm-salma__step {
	margin: 0;
	padding: 0;
	border: 0;
}

.wptm-salma__legend {
	padding: 0;
	margin-block-end: 12px;
	font-size: 16px;
	font-weight: 700;
}

.wptm-salma__field {
	display: grid;
	gap: 6px;
	margin: 0 0 14px;
}

.wptm-salma__field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--wptm-muted);
}

/*
 * A number field without the tiny spinner arrows.
 *
 * The arrows are about eight pixels tall, they are the reason the guest count
 * was hard to change, and they do not appear on a phone at all. The field
 * still accepts typing and the keyboard arrows still work.
 */
.wptm-salma__field input[type="number"] {
	appearance: textfield;
	-moz-appearance: textfield;
}

.wptm-salma__field input[type="number"]::-webkit-outer-spin-button,
.wptm-salma__field input[type="number"]::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

.wptm-salma__field input {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--wptm-border);
	border-radius: 10px;
	background: var(--wptm-page, Canvas);
	color: inherit;
	font: inherit;
	font-size: 15px;
	box-sizing: border-box;
}

.wptm-salma__field input:focus {
	border-color: var(--wptm-accent);
	outline: none;
	/* A visible ring replaces the outline rather than removing it. */
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wptm-accent) 18%, transparent);
}

.wptm-salma__field input[aria-invalid="true"] {
	border-color: #b32d2e;
}

/*
 * The help line under a field.
 *
 * One short sentence saying what the number is for. People hand over a
 * telephone number more readily when they know who is going to ring it.
 */
.wptm-salma__help {
	font-size: 13px;
	line-height: 1.45;
	color: var(--wptm-faint);
}

.wptm-salma__error {
	font-size: 13px;
	font-weight: 600;
	color: #b32d2e;
}

.wptm-salma__hint {
	min-height: 1.4em;
	font-size: 13px;
	line-height: 1.4;
	color: var(--wptm-muted);
}

.wptm-salma__hint.is-low {
	color: #a4601a;
	font-weight: 600;
}

.wptm-salma__hint.is-available {
	color: #2f7d4f;
}

.wptm-salma__hint.is-full,
.wptm-salma__hint.is-closed,
.wptm-salma__hint.is-past,
.wptm-salma__hint.is-notice {
	color: #b32d2e;
	font-weight: 600;
}

.wptm-salma__next,
.wptm-salma__submit,
.wptm-salma__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 12px 20px;
	border: 0;
	border-radius: 12px;
	background: var(--wptm-accent);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.wptm-salma__next:hover,
.wptm-salma__submit:hover,
.wptm-salma__cta:hover {
	filter: brightness(.94);
}

.wptm-salma__submit.is-busy,
.wptm-salma__next.is-busy {
	opacity: .72;
	cursor: progress;
}

.wptm-salma__next:disabled {
	cursor: progress;
}

.wptm-salma__nexticon {
	line-height: 0;
}

.wptm-salma__back {
	display: block;
	width: 100%;
	margin-block-start: 10px;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--wptm-muted);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.wptm-salma__back:hover,
.wptm-salma__back:focus-visible {
	color: var(--wptm-accent);
}

/* --- Summary -------------------------------------------------------------- */

/* --- Consent and the honeypot --------------------------------------------- */

.wptm-salma__consent {
	display: grid;
	gap: 4px;
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wptm-muted);
}

.wptm-salma__consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

/*
 * A checkbox somebody has to hit.
 *
 * Browsers draw one at about 13px, and a theme that resets form controls can
 * make it smaller still. At that size it is hard to see and harder to tap, and
 * it is the control that decides whether the booking can be sent at all.
 */
.wptm-salma__consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--wptm-accent);
	cursor: pointer;
}

.wptm-salma__alert {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: color-mix(in srgb, #b32d2e 10%, transparent);
	color: #b32d2e;
	font-size: 13px;
	font-weight: 600;
}

/* Hidden in place, so it cannot widen the document in either direction. */
.wptm-salma__hp {
	position: absolute;
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Fallbacks ------------------------------------------------------------ */

@supports not (color: color-mix(in srgb, red 50%, transparent)) {

	.wptm-salma__alert {
		background: rgba(179, 45, 46, .1);
	}
}

/* --- What the theme actually gives us ------------------------------------- */

/*
 * A media query measures the window; the plugin is laid out in a column.
 *
 * Jannah with its sidebar open hands the plugin about seven hundred pixels
 * inside a fourteen hundred pixel window. Every rule above is written against
 * the window, so at that width the three column top and the sticky panel would
 * both fire inside a column that cannot hold them, and the reading column
 * would be squeezed to nothing.
 *
 * Where container queries exist the layout is decided by the room it was
 * actually given. Where they do not, nothing here applies and the media
 * queries above stand, which is the behaviour this design already had.
 *
 * The containment is declared inside the desktop media query on purpose: an
 * inline-size container becomes the containing block for fixed position
 * children, and the mobile booking bar is fixed. Below this width there is no
 * containment, so the bar still anchors to the window.
 */
@supports (container-type: inline-size) {

	@media (min-width: 1080px) {

		.wptm-salma-design {
			container-type: inline-size;
			container-name: salma;
		}

		/* Not enough room for content and a panel side by side. */
		@container salma (max-width: 900px) {

			.wptm-salma-design .wptm-salma__layout {
				grid-template-columns: minmax(0, 1fr);
			}

			.wptm-salma-design .wptm-salma__main {
				display: contents;
			}

			.wptm-salma-design .wptm-salma__top {
				order: 1;
			}

			.wptm-salma-design .wptm-salma__aside {
				order: 2;
				position: static;
				max-width: 420px;
			}

			.wptm-salma-design .wptm-salma__body {
				order: 3;
			}
		}

		/* Enough for one column but not for the gallery beside the facts. */
		@container salma (max-width: 700px) {

			.wptm-salma-design .wptm-salma__top {
				grid-template-columns: minmax(0, 1fr);
			}
		}
	}
}

/* ==========================================================================
 * The availability confirmation, and the optional email.
 * ======================================================================== */

/*
 * Green is reinforcement, never the message.
 *
 * The bar carries a tick, which is a shape, and a sentence that says the same
 * thing in words. Read in greyscale, or by somebody who does not separate
 * green from grey, it still says the date is available; the colour only makes
 * it findable faster.
 */
.wptm-salma__confirmed {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 18px;
	padding: 11px 14px;
	border: 1px solid rgba(26, 127, 55, 0.28);
	border-radius: 10px;
	background: rgba(26, 127, 55, 0.07);
	font-size: 14px;
	line-height: 1.5;
	color: #14622a;
}

.wptm-salma__confirmed[hidden] {
	display: none;
}

.wptm-salma__confirmed-mark {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(26, 127, 55, 0.14);
	color: #1a7f37;
}

.wptm-salma__confirmed-text {
	min-width: 0;
}

/* The word beside the label, not a placeholder inside the field: a
   placeholder disappears the moment somebody types, which is exactly when
   they are deciding whether they had to fill it in. */
.wptm-salma__optional {
	margin-inline-start: 6px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: lowercase;
	color: var(--wptm-muted, #5b6472);
}

/* ==========================================================================
 * The tour category line, in this layout.
 *
 * It is rendered by the shared header section and was inheriting spacing built
 * for a page where the title has a column to itself. Here the header sits in a
 * narrow intro beside the gallery, where the same line ran into the lead
 * paragraph under it and read as part of the sentence.
 *
 * So it is lifted above the title rather than left under it: the category is
 * what kind of trip this is, which is context for the name and belongs before
 * it, in the position an eyebrow occupies on every other band of this layout.
 * The tag mark stays, because at this size it is what separates the line from
 * a stray phrase.
 * ======================================================================== */

.wptm-salma .wptm-head__cats {
	order: -1;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1.5;
}

.wptm-salma .wptm-head__catlabel {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wptm-faint, #8b93a6);
}

.wptm-salma .wptm-head__cats a {
	text-decoration-color: color-mix( in srgb, currentColor 35%, transparent );
	text-underline-offset: 3px;
}

/*
 * order works only in a flex or grid parent, so the block holding the title is
 * made one. It is a column of blocks either way; declaring it lets the
 * category move without the shared template being touched, which keeps every
 * other layout exactly as it was.
 */
.wptm-salma .wptm-head__text {
	display: flex;
	flex-direction: column;
}

.wptm-salma .wptm-head__title {
	order: 0;
}
