/* RMH listing page: the date picker read as a guest reads it (picker.js, Amadeus walk-through 11-24).
   Brand tokens from rmh-brand (web design system §3), px only (rem = 10 px here). :not(#_) lifts these over the theme's,
   the Customizer's and rmh-boostly-pruned's rules. Only with html.rmh-pk-on (picker.js ran). */
:root {
	--rmh-pk-ink: var(--rmh-ink, #231F20);
	--rmh-pk-soft: var(--rmh-ink-soft, #625A55);
	--rmh-pk-accent: var(--rmh-taupe-deep, #80655A);
	--rmh-pk-sand: var(--rmh-sand, #DED5CC);
	--rmh-pk-cream: var(--rmh-cream, #F7F3EE);
	--rmh-pk-paper: var(--rmh-white, #FFFFFF);
	--rmh-pk-booked: #B5ADA7;      /* booked day numbers: quiet, still legible against the paper */
	--rmh-pk-range: #EFE8E1;       /* nights between check-in and check-out: cream one step deeper */
	--rmh-pk-sans: var(--rmh-sans, "DM Sans", "Helvetica Neue", Arial, sans-serif);
	--rmh-pk-radius: 6px;
	--rmh-pk-lift: 0px;
}

/* ---------- Days ---------- */
/* Booked: grey number, no price (rmh-listing.css hides it), no pink */
html.rmh-pk-on .search-calendar .days li.day-booked:not(#_):not(#_),
html.rmh-pk-on .search-calendar .days li.boostly-not-available-for-booking:not(#_):not(#_) { background: var(--rmh-pk-paper); color: var(--rmh-pk-booked); }
/* The first night of someone else's stay (inc/calendar.php reservation_start): no half cell (Jules 11-24). While picking a
   check-in it reads as booked (rmh-calendar.css made it pink); while picking a check-out from a check-in before it, it is a
   plain free day (picker.js rmh-pk-outok). The line under the months says "check-out only" on hover. */
html.rmh-pk-on .search-calendar .days li.reservation_start.day-booked:not(#_):not(#_) { background: var(--rmh-pk-paper); color: var(--rmh-pk-booked); }
html.rmh-pk-on .search-calendar .days li.reservation_start.rmh-pk-outok:not(.selected):not(.rmh-pk-end):not(#_):not(#_) { color: var(--rmh-pk-ink); cursor: pointer; }
html.rmh-pk-on .search-calendar .days li.rmh-pk-outok:not(.selected):not(.rmh-pk-end):hover:not(#_):not(#_) { background: var(--rmh-pk-cream); border-radius: var(--rmh-pk-radius); }
/* The stay: check-in and check-out in ink, the nights between in deep cream (the theme's were taupe + a cyan wash) */
html.rmh-pk-on .search-calendar .days li.selected:not(#_):not(#_),
html.rmh-pk-on .search-calendar .days li.rmh-pk-end:not(#_):not(#_) { background: var(--rmh-pk-ink) !important; color: var(--rmh-pk-paper) !important; border-radius: var(--rmh-pk-radius); }
html.rmh-pk-on .search-calendar .days li.selected *:not(#_),
html.rmh-pk-on .search-calendar .days li.rmh-pk-end *:not(#_) { color: inherit; }
html.rmh-pk-on .search-calendar .days li.in-between:not(#_):not(#_),
html.rmh-pk-on .search-calendar .days li.rmh-pk-range:not(#_):not(#_) { background: var(--rmh-pk-range); color: var(--rmh-pk-ink); border-radius: 0; }
/* Not a day you can pick right now (under the minimum, past the next booking, or a check-in that can't hold its minimum) */
html.rmh-pk-on .search-calendar .days li.rmh-pk-x:not(#_):not(#_) { opacity: .38; cursor: not-allowed; }
html.rmh-pk-on .search-calendar .days li.rmh-pk-x:hover:not(#_):not(#_) { background: transparent !important; color: inherit !important; }
/* The earliest check-out from the chosen check-in */
html.rmh-pk-on .search-calendar .days li.rmh-pk-min:not(.rmh-pk-end):not(#_):not(#_) { box-shadow: inset 0 0 0 1px var(--rmh-pk-ink); border-radius: var(--rmh-pk-radius); }
/* Hover on a day you can pick */
html.rmh-pk-on .search-calendar .days li.day-available:not(.selected):not(.rmh-pk-x):not(.rmh-pk-range):not(.rmh-pk-end):hover:not(#_):not(#_) {
	background: var(--rmh-pk-cream); color: var(--rmh-pk-ink); border-radius: var(--rmh-pk-radius);
}

/* The two months side by side, level (the right one sat 25 px lower) */
html.rmh-pk-on .single-listing-booking-calendar-js .right-calendar:not(#_):not(#_) { padding-top: 0 !important; }

/* ---------- Status line + legend + Clear ---------- */
.rmh-pk-foot:not(#_) {
	clear: both; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
	margin: 12px 0 0; padding: 12px 16px 0; border-top: 1px solid var(--rmh-pk-sand);
	font: 400 14px/1.4 var(--rmh-pk-sans); color: var(--rmh-pk-soft);
}
.rmh-pk-status:not(#_) { flex: 1 1 100%; margin: 0; font: 500 15px/1.4 var(--rmh-pk-sans); color: var(--rmh-pk-ink); }
.rmh-pk-status.is-nudge:not(#_) { color: var(--rmh-pk-accent); }
.rmh-pk-legend:not(#_) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; padding: 0; list-style: none; flex: 1 1 auto; }
.rmh-pk-legend li:not(#_) { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; float: none; width: auto; height: auto; }
.rmh-pk-sw:not(#_) {
	display: inline-grid; place-items: center; width: 28px; height: 24px; border-radius: 4px;
	font: 600 12px/1 var(--rmh-pk-sans); border: 1px solid var(--rmh-pk-sand);
}
.rmh-pk-sw--booked:not(#_) { color: var(--rmh-pk-booked); background: var(--rmh-pk-paper); }
.rmh-pk-sw--x:not(#_) { color: var(--rmh-pk-ink); background: var(--rmh-pk-paper); opacity: .38; }
/* "Clear dates": moved here from the months' top (it sat between the two titles) */
.rmh-pk-foot > .btn-clear-calendar:not(#_):not(#_) {
	position: static !important; inset: auto !important; transform: none !important; margin: 0 0 0 auto !important;
	width: auto; height: 44px; padding: 0 4px; font: 600 14px/44px var(--rmh-pk-sans); color: var(--rmh-pk-accent);
	text-decoration: underline; text-underline-offset: 3px; background: none; border: 0;
}
/* The availability section's calendar: legend only */
#availability-section .rmh-pk-foot:not(#_) { padding-left: 0; padding-right: 0; }

/* ---------- The field being picked ---------- */
html.rmh-pk-on input.rmh-pk-on:not(#_):not(#_) { border-color: var(--rmh-pk-ink) !important; box-shadow: inset 0 0 0 1px var(--rmh-pk-ink) !important; }

/* ---------- "First free: Tue, Mar 9" (picker.js, dark behind rmh_card_first_free_enabled) ----------
   A chip in the "Go to month" row (chips keep their pill, design system §1); on phones it takes its own line under the select,
   and the row's height, which the theme's arrows hang from, grows by that line. */
.rmh-calj .rmh-pk-first:not(#_) { flex: none; margin: 0 0 0 auto; }
.rmh-pk-first[hidden]:not(#_) { display: none; }
.rmh-pk-first .rmh-pk-first__btn:not(#_):not(#_) {
	display: inline-flex; align-items: center; gap: 5px; box-sizing: border-box; height: var(--rmh-bs-tap, 48px); margin: 0; padding: 0 16px;
	border: 1px solid var(--rmh-pk-sand); border-radius: 999px; background: var(--rmh-pk-cream); color: var(--rmh-pk-ink);
	font: 500 14px/1 var(--rmh-pk-sans); letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, transform .12s ease;
}
.rmh-pk-first .rmh-pk-first__btn strong:not(#_) { font-weight: 600; }
.rmh-pk-first .rmh-pk-first__btn:hover:not(#_):not(#_) { border-color: var(--rmh-pk-ink); background: var(--rmh-pk-paper); }
.rmh-pk-first .rmh-pk-first__btn:active:not(#_):not(#_) { transform: scale(.98); }
.rmh-pk-first .rmh-pk-first__btn:focus-visible:not(#_):not(#_) { outline: none; box-shadow: 0 0 0 2px var(--rmh-pk-paper), 0 0 0 4px var(--rmh-pk-ink); }
.rmh-pk-tight .rmh-pk-first .rmh-pk-first__btn:not(#_):not(#_) { height: 40px; }
/* the day the shortcut named: a ring, until a date is picked */
html.rmh-pk-on .search-calendar .days li.rmh-pk-firstday:not(.selected):not(#_):not(#_) { box-shadow: inset 0 0 0 2px var(--rmh-pk-accent); border-radius: var(--rmh-pk-radius); }
@media (max-width: 767px) {
	.rmh-pk-has-first:not(#_) { --rmh-bs-jump-h: 136px; } /* the month row (80 px) + the shortcut's line (48 px) + 8 px between */
	.rmh-pk-has-first .rmh-calj:not(#_) { flex-wrap: wrap; row-gap: 8px; align-content: flex-start; }
	.rmh-calj .rmh-pk-first:not(#_) { flex: 1 1 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.rmh-pk-first .rmh-pk-first__btn:not(#_):not(#_) { transition: none; }
}

/* ---------- The card's picker fits the window (laptops) ---------- */
@media (min-width: 992px) {
	html.rmh-pk-on #boostly_remove_on_mobile .single-listing-booking-calendar-js:not(#_):not(#_) {
		transform: translateY(var(--rmh-pk-lift)); z-index: 30;
		box-shadow: 0 18px 48px rgba(35, 31, 32, .18); border-color: var(--rmh-pk-sand); border-radius: 12px;
	}
	/* Short window: tighter months (6 rows × 44 instead of 53), smaller month row; the "Go to month" row stays */
	#boostly_remove_on_mobile .single-listing-booking-calendar-js.rmh-pk-tight:not(#_):not(#_) { --rmh-bs-jump-h: 56px; padding-top: 8px; padding-bottom: 12px; }
	.rmh-pk-tight .rmh-calj:not(#_) { padding-top: 6px; }
	.rmh-pk-tight .rmh-calj .rmh-calj__select:not(#_):not(#_) { height: 40px; }
	.rmh-pk-tight .rmh-calj__label:not(#_) { line-height: 40px; }
	.rmh-pk-tight .month:not(#_):not(#_) { height: 30px; }
	.rmh-pk-tight .month-title:not(#_):not(#_) { line-height: 30px; }
	.rmh-pk-tight .weekdays:not(#_):not(#_) { margin-bottom: 2px; }
	.rmh-pk-tight .weekdays li:not(#_):not(#_) { height: 28px; line-height: 28px; }
	.rmh-pk-tight .days li:not(#_):not(#_) { height: 44px; padding-top: 2px; padding-bottom: 2px; line-height: 20px; }
	.rmh-pk-tight .rmh-pk-foot:not(#_) { margin-top: 6px; padding-top: 8px; }
	.rmh-pk-tight .rmh-pk-foot > .btn-clear-calendar:not(#_):not(#_) { height: 36px; line-height: 36px; }
}

@media (prefers-reduced-motion: no-preference) {
	html.rmh-pk-on .search-calendar .days li:not(#_) { transition: background-color .12s ease, opacity .12s ease; }
}

/* ---------- The card on a short laptop window (≤ 820 px high): it fits once the quote and the request form are in ----------
   1366 × 657 (a 13" laptop's browser window) measured 788 px of card with a quote and the form. Same fields, same order:
   44 px fields (still a full tap), tighter gaps, the note one line until it is used. */
@media (min-width: 992px) and (max-height: 820px) {
	#boostly_remove_on_mobile .sidebar-booking-module-header:not(#_):not(#_) { padding-bottom: 10px; margin-bottom: 0; }
	#boostly_remove_on_mobile .sidebar-booking-module-body:not(#_):not(#_) { padding-top: 12px; }
	#boostly_remove_on_mobile :is(.search-date-range, .single-guests-js) input.form-control:not(#_):not(#_) { height: 44px !important; min-height: 44px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
	#boostly_remove_on_mobile .sidebar-booking-module-header .block-body-sidebar:not(#_):not(#_) { margin-bottom: 8px; padding-bottom: 8px; }
	/* "Your dates: … · 3 nights · 8 guests" repeats the fields just above; its "pick your dates" error still shows */
	#boostly_remove_on_mobile .rmh-shc__stay:not(.is-missing):not(#_):not(#_) { display: none; }
	#boostly_remove_on_mobile .rmh-shc__wa:not(#_):not(#_) { margin-top: 2px; }
	#boostly_remove_on_mobile :is(.search-date-range-arrive, .search-date-range-depart, .search-guests):not(#_):not(#_) { margin-bottom: 6px; }
	#boostly_remove_on_mobile .notify:not(#_):not(#_) { margin-bottom: 6px; }
	#boostly_remove_on_mobile .rmh-lst-occ:not(#_):not(#_) { margin: 4px 0 8px; font-size: 13px; }
	#boostly_remove_on_mobile .payment-list:not(#_):not(#_) { margin: 6px 0 8px; }
	#boostly_remove_on_mobile .rmh-shc:not(#_):not(#_) { margin-top: 6px; }
	#boostly_remove_on_mobile .rmh-shc .rmh-shc__input:not(textarea):not(#_):not(#_) { height: 44px; }
	#boostly_remove_on_mobile .rmh-shc textarea.rmh-shc__input:not(:focus):placeholder-shown:not(#_):not(#_) { height: 44px; min-height: 44px; }
	#boostly_remove_on_mobile .rmh-shc__send:not(#_):not(#_) { margin-top: 8px; }
}

/* ---------- The quote and the card read as a guest reads them (design review 11-24, D4) ---------- */
/* The price breakdown ("View details") printed list bullets as lines of their own between Rent, Taxes and the total */
html.rmh-pk-on .payment-list ul:not(#_):not(#_) { list-style: none; margin: 0; padding-left: 0; }
html.rmh-pk-on .payment-list li:not(#_):not(#_) { list-style: none; }
html.rmh-pk-on .payment-list li::marker { content: none; }
/* The theme's "Field is required" notes under the date fields showed in red on villa and condo cards before anything was typed;
   they show again when the theme reveals them (it writes an inline display), as on the haciendas' lifted card */
body.rmh-listing #boostly_remove_on_mobile :is(.search-date-range-arrive, .search-date-range-depart) > span:not([style*="display"]):not(#_) { display: none; }

/* The meal line under a hacienda's total (rmh-listing.js mealLine) */
.rmh-lst-meal:not(#_) { margin: 4px 0 8px; font: 400 13px/1.4 var(--rmh-pk-sans); color: var(--rmh-pk-soft); }

/* ---------- Phones: the booking sheet's calendar, one month and compact (walk 11-25: 1,278 px tall, 713 px past the screen) ---------- */
@media (max-width: 767px) {
	#overlay-booking-module .single-listing-booking-calendar-js .single-listing-calendar-wrap.rmh-pk-second:not(#_):not(#_) { display: none !important; }
	#overlay-booking-module .single-listing-booking-calendar-js .days li:not(#_):not(#_) { height: 52px; padding-top: 5px; padding-bottom: 5px; }
	#overlay-booking-module .single-listing-booking-calendar-js .days_prices:not(#_):not(#_) { font-size: 12px; }
	#overlay-booking-module .single-listing-booking-calendar-js :is(.listing-cal-next, .listing-cal-prev):not(#_):not(#_) { width: 44px; height: 44px !important; min-height: 44px; line-height: 42px; }
	#overlay-booking-module .rmh-pk-foot:not(#_) { gap: 6px 12px; margin-top: 8px; padding: 10px 0 0; }
	#overlay-booking-module .rmh-pk-status:not(#_) { font-size: 14px; }
	#overlay-booking-module .rmh-pk-legend:not(#_) { gap: 4px 12px; font-size: 12.5px; flex: 1 1 0; min-width: 0; }
	#overlay-booking-module .rmh-pk-legend li:not(#_) { gap: 5px; }
	#overlay-booking-module .rmh-pk-sw:not(#_) { width: 24px; height: 20px; font-size: 12px; }
	#overlay-booking-module .rmh-pk-foot > .btn-clear-calendar:not(#_):not(#_) { flex: none; align-self: flex-end; height: 44px; line-height: 44px; font-size: 13px; }
}

/* custom-child.js pops a box with the day's title on hover; the pickers' days have no title (picker.js), which left an empty
   dark pill over the weekday row (walk 11-25) */
body > .boostly-tooltip:empty { display: none !important; }
