/**
 * Parkside Quick Book v1.1
 *
 * Design tokens follow shadcn/ui conventions (borders, radii, rings, shadows)
 * with Parkside Hotels brand colors: deep green primary, serif display headings
 * to match the site's Hoteller theme typography.
 *
 * Bug fixed from v1.0: any rule that sets `display` on an element with [hidden]
 * beats the UA's `[hidden]{display:none}`. Every pqb element that toggles the
 * hidden attribute now has an explicit [hidden] override.
 */

:root {
	--pqb-primary: #1e4b2f;          /* Parkside deep green */
	--pqb-primary-hover: #163a24;
	--pqb-primary-fg: #ffffff;
	--pqb-bg: #ffffff;
	--pqb-fg: #101828;
	--pqb-muted: #667085;
	--pqb-muted-bg: #f7f8f7;
	--pqb-border: #e4e7e4;
	--pqb-input: #d0d5d0;
	--pqb-ring: rgba(30, 75, 47, .25);
	--pqb-destructive: #b42318;
	--pqb-destructive-bg: #fef3f2;
	--pqb-success: #067647;
	--pqb-radius: 12px;
	--pqb-radius-sm: 8px;
	--pqb-shadow-lg: 0 20px 40px -12px rgba(16, 24, 40, .25), 0 8px 16px -8px rgba(16, 24, 40, .12);
	--pqb-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--pqb-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------------------------------- hidden fix (critical) */

.pqb-overlay [hidden],
.pqb-sticky[hidden],
.pqb-loading[hidden],
.pqb-tray[hidden],
.pqb-step[hidden],
.pqb-error[hidden],
.pqb-back[hidden] {
	display: none !important;
}

/* --------------------------------------------------------------- overlay */

.pqb-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	padding: 16px;
	background: rgba(16, 24, 40, .55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.pqb-overlay.is-open {
	display: flex;
	align-items: center;      /* centered on every screen, never stretched */
	justify-content: center;
}

/* ---------------------------------------------------------------- modal */

.pqb-modal {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;         /* dialog width, shadcn-like */
	/* JS also pins max-height inline on open/resize. Inline styles beat any theme rule,
	   and sidestep dvh/100vh quirks. This is the belt; pqb.js is the braces. */
	max-height: min(720px, calc(100dvh - 32px));
	background: var(--pqb-bg);
	border: 1px solid var(--pqb-border);
	border-radius: var(--pqb-radius);
	box-shadow: var(--pqb-shadow-lg);
	overflow: hidden;
	font-family: var(--pqb-font-body);
	color: var(--pqb-fg);
	animation: pqb-in .18s cubic-bezier(.16, 1, .3, 1);
}

/* Wider dialog once the room table is in view, it needs the space */
.pqb-modal.is-wide {
	max-width: 860px;
}

@keyframes pqb-in {
	from { transform: translateY(10px) scale(.98); opacity: 0; }
	to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

/* Small screens: bottom sheet, comfortable but not a stretched dialog */
@media (max-width: 640px) {
	.pqb-overlay { padding: 0; }
	.pqb-overlay.is-open { align-items: flex-end; }
	.pqb-modal,
	.pqb-modal.is-wide {
		max-width: 100%;
		max-height: 94dvh;
		border-radius: var(--pqb-radius) var(--pqb-radius) 0 0;
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
	}
}

/* ----------------------------------------------------------------- head */

.pqb-head {
	display: flex;
	flex: 0 0 auto;   /* never shrink: only .pqb-body scrolls */
	align-items: center;
	gap: 10px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid var(--pqb-border);
	background: var(--pqb-bg);
}

.pqb-head h2 {
	flex: 1;
	margin: 0;
	font-family: var(--pqb-font-display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--pqb-primary);
	line-height: 1.2;
}

.pqb-back,
.pqb-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: var(--pqb-radius-sm);
	background: transparent;
	color: var(--pqb-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s, color .15s;
}

.pqb-back:hover,
.pqb-close:hover {
	background: var(--pqb-muted-bg);
	color: var(--pqb-fg);
}

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

.pqb-body {
	flex: 1 1 auto;
	/**
	 * min-height: 0 is the actual fix for "cannot scroll inside the popup".
	 * A flex item defaults to min-height: auto, so this container refused to shrink
	 * below its content height. It therefore grew past the modal, the modal's
	 * overflow:hidden simply CLIPPED the overflow, and overflow-y:auto never had
	 * anything to scroll. Allowing it to shrink is what turns the scrollbar on.
	 */
	/* !important because the theme (Hoteller) sets overflow rules that were winning */
	min-height: 0 !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;   /* stops scroll chaining to the page behind */
	-webkit-overflow-scrolling: touch;
	padding: 20px;
}

.pqb-overlay {
	overscroll-behavior: contain;
}

body.pqb-locked {
	overflow: hidden;
}

/* ---------------------------------------------------------------- fields */

.pqb-field {
	display: block;
	margin-bottom: 14px;
}

.pqb-field > span {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pqb-fg);
}

.pqb-field select,
.pqb-field input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	font-size: 15px;
	font-family: var(--pqb-font-body);
	color: var(--pqb-fg);
	background: var(--pqb-bg);
	border: 1px solid var(--pqb-input);
	border-radius: var(--pqb-radius-sm);
	transition: border-color .15s, box-shadow .15s;
	appearance: none;
	-webkit-appearance: none;
}

.pqb-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.pqb-field select:focus,
.pqb-field input:focus {
	outline: none;
	border-color: var(--pqb-primary);
	box-shadow: 0 0 0 3px var(--pqb-ring);
}

/* --------------------------------------------------------------- guests */

.pqb-guests {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 16px;
}

@media (min-width: 480px) {
	.pqb-guests { grid-template-columns: repeat(3, 1fr); }
}

.pqb-stepper {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 56px;
	padding: 0 10px;
	border: 1px solid var(--pqb-input);
	border-radius: var(--pqb-radius-sm);
	background: var(--pqb-bg);
}

.pqb-stepper > span {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--pqb-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pqb-stepper button {
	flex: none;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--pqb-input);
	border-radius: 50%;
	background: var(--pqb-bg);
	color: var(--pqb-fg);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.pqb-stepper button:hover {
	border-color: var(--pqb-primary);
	background: var(--pqb-muted-bg);
}

.pqb-stepper input {
	flex: none;
	width: 28px;
	border: 0;
	padding: 0;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: var(--pqb-fg);
	background: transparent;
	-moz-appearance: textfield;
}

.pqb-stepper input::-webkit-outer-spin-button,
.pqb-stepper input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* --------------------------------------------------------------- buttons */

.pqb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	font-size: 15px;
	font-weight: 600;
	font-family: var(--pqb-font-body);
	border: 0;
	border-radius: var(--pqb-radius-sm);
	cursor: pointer;
	transition: background .15s, box-shadow .15s, transform .05s;
	white-space: nowrap;
}

.pqb-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--pqb-ring);
}

.pqb-btn:active {
	transform: translateY(1px);
}

.pqb-primary {
	width: 100%;
	color: var(--pqb-primary-fg);
	background: var(--pqb-primary);
}

.pqb-primary:hover {
	background: var(--pqb-primary-hover);
}

.pqb-primary:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.pqb-ghost {
	width: 100%;
	color: var(--pqb-fg);
	background: var(--pqb-muted-bg);
	border: 1px solid var(--pqb-border);
}

.pqb-ghost:hover {
	background: #eef1ee;
}

/* ---------------------------------------------------------------- states */

.pqb-error {
	margin: 0 0 12px;
	padding: 10px 12px;
	font-size: 13px;
	color: var(--pqb-destructive);
	background: var(--pqb-destructive-bg);
	border: 1px solid #fecdca;
	border-radius: var(--pqb-radius-sm);
}

.pqb-empty {
	padding: 32px 12px;
	text-align: center;
	font-size: 14px;
	color: var(--pqb-muted);
}

.pqb-retry {
	width: auto;
	margin: 8px auto 0;
	display: block;
}

/* ----------------------------------------------------------- hotel cards */

.pqb-hotel-card {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin-bottom: 10px;
	padding: 10px;
	text-align: left;
	font-family: var(--pqb-font-body);
	background: var(--pqb-bg);
	border: 1px solid var(--pqb-border);
	border-radius: var(--pqb-radius);
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}

.pqb-hotel-card:hover:not(.is-disabled) {
	border-color: var(--pqb-primary);
	box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.pqb-hotel-card.is-disabled {
	opacity: .55;
	cursor: not-allowed;
}

.pqb-hotel-card img {
	width: 88px;
	height: 66px;
	object-fit: cover;
	border-radius: var(--pqb-radius-sm);
	flex: none;
}

.pqb-hotel-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pqb-hotel-info strong {
	font-family: var(--pqb-font-display);
	font-size: 16px;
	font-weight: 600;
	color: var(--pqb-fg);
	line-height: 1.3;
}

.pqb-loc {
	font-size: 13px;
	color: var(--pqb-muted);
}

.pqb-price {
	font-size: 13px;
	font-weight: 600;
	color: var(--pqb-primary);
}

.pqb-none {
	font-size: 12px;
	color: var(--pqb-destructive);
}

/* ---------------------------------------------------------------- rooms */

/**
 * Our own room cards, rendered from data. No Tourfic markup is injected any more,
 * so there is nothing to fight and nothing to !important over.
 */

.pqb-rooms-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 16px;
}

.pqb-rooms-meta span {
	font-family: var(--pqb-font-display);
	font-size: 18px;
	font-weight: 600;
	color: var(--pqb-primary);
	line-height: 1.3;
}

.pqb-rooms-meta small {
	font-size: 13px;
	color: var(--pqb-muted);
}

.pqb-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 720px) {
	.pqb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pqb-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--pqb-bg);
	border: 1px solid var(--pqb-border);
	border-radius: var(--pqb-radius);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	overflow: hidden;
	transition: box-shadow .15s ease, border-color .15s ease;
}

.pqb-card:hover {
	border-color: #cfd8d1;
	box-shadow: 0 6px 16px -4px rgba(16, 24, 40, .10);
}

/* media */
.pqb-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	color: #7a2e0e;
	background: #fff6ed;
	border: 1px solid #f9dbaf;
	border-radius: 999px;
}

/* body */
.pqb-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 16px;
}

.pqb-card-title {
	margin: 0;
	font-family: var(--pqb-font-display);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pqb-fg);
}

.pqb-card-cap {
	margin: -4px 0 0;
	font-size: 13px;
	color: var(--pqb-muted);
}

.pqb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pqb-chips li {
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 500;
	color: var(--pqb-muted);
	background: var(--pqb-muted-bg);
	border: 1px solid var(--pqb-border);
	border-radius: 999px;
}

.pqb-card-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.pqb-card-field > span {
	font-size: 12px;
	font-weight: 600;
	color: var(--pqb-fg);
}

.pqb-card select {
	width: 100%;
	height: 40px;
	padding: 0 34px 0 12px;
	font-size: 14px;
	font-family: var(--pqb-font-body);
	color: var(--pqb-fg);
	background-color: var(--pqb-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	border: 1px solid var(--pqb-input);
	border-radius: var(--pqb-radius-sm);
	appearance: none;
	-webkit-appearance: none;
	transition: border-color .15s, box-shadow .15s;
}

.pqb-card select:focus {
	outline: none;
	border-color: var(--pqb-primary);
	box-shadow: 0 0 0 3px var(--pqb-ring);
}

/* footer */
.pqb-card-foot {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
	padding: 14px 16px 16px;
	background: var(--pqb-muted-bg);
	border-top: 1px solid var(--pqb-border);
}

.pqb-card-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	min-height: 22px;
}

.pqb-card-price strong {
	font-family: var(--pqb-font-display);
	font-size: 19px;
	font-weight: 700;
	color: var(--pqb-primary);
}

.pqb-card-price small {
	font-size: 12px;
	color: var(--pqb-muted);
}

.pqb-book.is-added {
	background: var(--pqb-success);
	border-color: var(--pqb-success);
}

.pqb-card-err {
	margin: 0;
	padding: 8px 10px;
	font-size: 12px;
	color: var(--pqb-destructive);
	background: var(--pqb-destructive-bg);
	border: 1px solid #fecdca;
	border-radius: var(--pqb-radius-sm);
}


/* ------------------------------------------------------- carousel + a11y */

.pqb-card-media {
	position: relative;
	height: 172px;
	background: var(--pqb-muted-bg);
	overflow: hidden;
}

.pqb-track {
	display: flex;
	height: 100%;
	transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.pqb-track img {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pqb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	font-size: 16px;
	line-height: 1;
	color: var(--pqb-fg);
	background: rgba(255, 255, 255, .9);
	border: 1px solid var(--pqb-border);
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	transition: opacity .15s;
}

.pqb-card:hover .pqb-nav,
.pqb-nav:focus-visible {
	opacity: 1;
}

/* Touch devices have no hover, so the arrows must always be visible */
@media (hover: none) {
	.pqb-nav { opacity: 1; }
}

.pqb-prev { left: 8px; }
.pqb-next { right: 8px; }

.pqb-dots {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 5px;
}

.pqb-dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	transition: background .15s, width .15s;
}

.pqb-dots span.is-on {
	width: 16px;
	border-radius: 999px;
	background: #fff;
}

.pqb-tray-note {
	margin: 0 0 8px;
	padding: 8px 10px;
	font-size: 12px;
	color: #7a2e0e;
	background: #fff6ed;
	border: 1px solid #f9dbaf;
	border-radius: var(--pqb-radius-sm);
}

/* Visible focus everywhere, not just on buttons */
.pqb-modal :focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--pqb-ring);
	border-radius: var(--pqb-radius-sm);
}

@media (prefers-reduced-motion: reduce) {
	.pqb-modal, .pqb-track { animation: none !important; transition: none !important; }
}

/* ----------------------------------------------------------------- tray */

.pqb-tray {
	flex: 0 0 auto;   /* never shrink: only .pqb-body scrolls */
	border-top: 1px solid var(--pqb-border);
	padding: 14px 20px 18px;
	background: var(--pqb-muted-bg);
}

.pqb-tray-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	font-size: 13px;
	border-bottom: 1px dashed var(--pqb-border);
}

.pqb-tray-name {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	color: var(--pqb-fg);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pqb-tray-dates {
	color: var(--pqb-muted);
	white-space: nowrap;
}

.pqb-tray-price {
	font-weight: 600;
	color: var(--pqb-primary);
	white-space: nowrap;
}

.pqb-tray-x {
	flex: none;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--pqb-destructive);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.pqb-tray-x:hover {
	background: var(--pqb-destructive-bg);
}

.pqb-tray-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 12px;
}

@media (min-width: 560px) {
	.pqb-tray-actions { grid-template-columns: 1fr 1fr; }
}

.pqb-total {
	font-weight: 700;
}

/* -------------------------------------------------------------- loading */

.pqb-loading {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;               /* [hidden] override above keeps this honest now */
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .72);
}

.pqb-loading span {
	width: 32px;
	height: 32px;
	border: 3px solid var(--pqb-border);
	border-top-color: var(--pqb-primary);
	border-radius: 50%;
	animation: pqb-spin .7s linear infinite;
}

@keyframes pqb-spin {
	to { transform: rotate(360deg); }
}

/* --------------------------------------------- sticky bar (single hotel) */

.pqb-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9998;
	display: none;
	align-items: center;
	gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0));
	background: var(--pqb-bg);
	border-top: 1px solid var(--pqb-border);
	box-shadow: 0 -4px 18px rgba(16, 24, 40, .10);
	font-family: var(--pqb-font-body);
}

.pqb-sticky-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: var(--pqb-font-display);
	font-size: 15px;
	font-weight: 600;
	color: var(--pqb-fg);
}

.pqb-sticky .pqb-btn {
	width: auto;
	flex: none;
	padding: 0 22px;
}

@media (max-width: 991px) {
	.pqb-sticky { display: flex; }
}

/* ------------------------------------------------- flatpickr calendar */

/* Inline, always-visible calendar rendered inside the field group. */
.pqb-body .flatpickr-calendar.inline {
	margin: 8px auto 0;
	max-width: 100%;
	box-shadow: none;
	border: 1px solid var(--pqb-border);
	border-radius: var(--pqb-radius-sm);
}

.pqb-body .flatpickr-wrapper {
	display: block;
	width: 100%;
	position: static;
}

/* The text input is redundant when the calendar is always open. Keep it as a compact
   read-only summary of the chosen range, styled quietly. */
#pqb-dates {
	cursor: default;
	background: var(--pqb-muted-bg);
}

/* ---- Critical flatpickr layout, inlined defensively ----
   If flatpickr's own stylesheet ever fails to load, these minimal rules still give the
   day grid a usable layout instead of the "empty gap" failure mode. Full styling comes
   from the enqueued flatpickr.min.css; this is only a floor. */
.flatpickr-calendar { width: auto; background: #fff; }
.flatpickr-rContainer, .flatpickr-days { width: 100%; }
.flatpickr-days { display: flex; }
.dayContainer {
	display: flex;
	flex-wrap: wrap;
	width: 307.875px;
	min-width: 307.875px;
	max-width: 307.875px;
	justify-content: space-around;
}
.flatpickr-day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14.2857%;
	height: 39px;
	line-height: 39px;
	cursor: pointer;
}
.flatpickr-weekdays { display: flex; }
span.flatpickr-weekday { flex: 1; text-align: center; }
.flatpickr-months { display: flex; align-items: center; }
.flatpickr-month { flex: 1; text-align: center; }

/* On-brand accents so the picker matches the popup */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover {
	background: var(--pqb-primary) !important;
	border-color: var(--pqb-primary) !important;
	color: #fff !important;
}

.flatpickr-day.inRange {
	background: #eef3ef !important;
	border-color: #eef3ef !important;
	box-shadow: -5px 0 0 #eef3ef, 5px 0 0 #eef3ef !important;
}

.flatpickr-day.today {
	border-color: var(--pqb-primary) !important;
}

/* ============================================================
   DESIGN REFINEMENT LAYER (v3.10)
   Additive polish, loaded last so it wins cleanly.
   ============================================================ */

/* Header: a hairline accent under the title, roomier feel */
.pqb-head {
	padding: 20px 22px 16px;
}
.pqb-head h2 {
	font-size: 23px;
	letter-spacing: -.01em;
}
.pqb-head h2::after {
	content: "";
	display: block;
	width: 34px;
	height: 3px;
	margin-top: 8px;
	background: var(--pqb-primary);
	border-radius: 2px;
	opacity: .9;
}
.pqb-close, .pqb-back { align-self: flex-start; margin-top: 2px; }

.pqb-body { padding: 22px; }

/* Field labels: smaller, uppercase, tracked, quieter */
.pqb-field > span,
.pqb-rooms-meta {
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--pqb-muted);
}

/* Inputs and selects: slightly taller, softer, clear focus */
.pqb-field select,
.pqb-field input,
#pqb-dates {
	height: 52px;
	border-radius: 10px;
	font-size: 15px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.pqb-field select:hover { border-color: var(--pqb-input); background: #fafbfa; }

/* Guest steppers: card-like, with a hover lift and round controls */
.pqb-stepper {
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--pqb-bg);
	transition: border-color .15s, box-shadow .15s;
}
.pqb-stepper:hover {
	border-color: #cfd8d1;
	box-shadow: 0 2px 8px -3px rgba(16,24,40,.10);
}
.pqb-stepper > span {
	font-size: 12px;
	font-weight: 600;
	color: var(--pqb-fg);
	text-transform: none;
	letter-spacing: 0;
}
.pqb-stepper button {
	width: 34px; height: 34px;
	border: 1.5px solid var(--pqb-border);
	color: var(--pqb-primary);
	font-size: 18px;
	transition: border-color .12s, background .12s, transform .05s;
}
.pqb-stepper button:hover { border-color: var(--pqb-primary); background: #f2f6f3; }
.pqb-stepper button:active { transform: scale(.92); }
.pqb-stepper input { font-size: 16px; font-weight: 700; }

/* Primary CTA: gradient, lift, confident */
.pqb-primary {
	height: 52px;
	font-size: 15.5px;
	letter-spacing: .01em;
	background: linear-gradient(180deg, #245c3a 0%, var(--pqb-primary) 100%);
	box-shadow: 0 6px 16px -6px rgba(30,75,47,.5);
	transition: filter .15s, box-shadow .15s, transform .06s;
}
.pqb-primary:hover { filter: brightness(1.06); box-shadow: 0 8px 20px -6px rgba(30,75,47,.55); }
.pqb-primary:active { transform: translateY(1px); }
.pqb-primary:disabled {
	background: #b9c6bd;
	box-shadow: none;
	filter: none;
}

/* Calendar: tighter frame, aligned to field rhythm */
.pqb-body .flatpickr-calendar.inline {
	margin-top: 10px;
	border-radius: 12px;
	padding: 6px;
	width: 100% !important;
	max-width: 100%;
	box-shadow: 0 1px 3px rgba(16,24,40,.05);
}
.pqb-body .flatpickr-calendar.inline .flatpickr-rContainer,
.pqb-body .flatpickr-calendar.inline .flatpickr-days,
.pqb-body .flatpickr-calendar.inline .dayContainer {
	width: 100% !important;
	max-width: 100% !important;
}
.pqb-body .flatpickr-months .flatpickr-month { color: var(--pqb-primary); }
.pqb-body .flatpickr-current-month .flatpickr-monthDropdown-months,
.pqb-body .flatpickr-current-month input.cur-year { font-weight: 600; }
.flatpickr-day { border-radius: 8px; }
.flatpickr-day:hover { background: #f2f6f3; border-color: #f2f6f3; }

/* Hotel cards / room cards: warmer hover */
.pqb-hotel-card, .pqb-card {
	transition: border-color .15s, box-shadow .15s, transform .08s;
}
.pqb-hotel-card:hover:not(.is-disabled) {
	transform: translateY(-1px);
}

/* Tray: elevated, clearer total */
.pqb-tray { padding: 16px 22px 20px; }
.pqb-total { font-size: 16px; }

/* Scrollbar (desktop): subtle, on-brand */
.pqb-body::-webkit-scrollbar { width: 10px; }
.pqb-body::-webkit-scrollbar-thumb {
	background: #d7ded9;
	border: 3px solid var(--pqb-bg);
	border-radius: 10px;
}
.pqb-body::-webkit-scrollbar-thumb:hover { background: #c2ccc5; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.pqb-primary, .pqb-stepper, .pqb-stepper button,
	.pqb-hotel-card, .pqb-card { transition: none !important; }
}
