/* base.css — shared foundation loaded by every page before app.css and
   the per-view stylesheets. Three parts:

   1. palette.css: the palette shades and scale values theme tokens
      reference by name.
   2. A browser reset (derived from Tailwind's preflight, MIT) so that
      every element starts from the same box model and inherits fonts.
   3. Small cross-cutting rules: pointer cursors, HTMX indicator, spinner.

   Per-tenant token values arrive at runtime as an inline <style>:root{}
   block emitted by theme.ThemeTokens after this file.

   Cascade layers, lowest first: theme (palette), base (reset), components
   (app.css and its imports). Per-view stylesheets are unlayered and so
   win over all three. */
@layer theme, base, components;

@import url("palette.css") layer(theme);

/* --- Reset --- */
@layer base {
*,:after,:before,::backdrop,::file-selector-button {
	box-sizing: border-box;
	border: 0 solid;
	margin: 0;
	padding: 0;
}
html,:host {
	-webkit-text-size-adjust: 100%;
	tab-size: 4;
	line-height: 1.5;
	font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
	font-feature-settings: var(--default-font-feature-settings, normal);
	font-variation-settings: var(--default-font-variation-settings, normal);
	-webkit-tap-highlight-color: transparent;
}
hr {
	height: 0;
	color: inherit;
	border-top-width: 1px;
}
abbr:where([title]) {
	-webkit-text-decoration: underline dotted;
	text-decoration: underline dotted;
}
h1,h2,h3,h4,h5,h6 {
	font-size: inherit;
	font-weight: inherit;
}
a {
	color: inherit;
	-webkit-text-decoration: inherit;
	text-decoration: inherit;
}
b,strong {
	font-weight: bolder;
}
code,kbd,samp,pre {
	font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
	font-feature-settings: var(--default-mono-font-feature-settings, normal);
	font-variation-settings: var(--default-mono-font-variation-settings, normal);
	font-size: 1em;
}
small {
	font-size: 80%;
}
sub,sup {
	vertical-align: baseline;
	font-size: 75%;
	line-height: 0;
	position: relative;
}
sub {
	bottom: -.25em;
}
sup {
	top: -.5em;
}
table {
	text-indent: 0;
	border-color: inherit;
	border-collapse: collapse;
}
:-moz-focusring {
	outline: auto;
}
progress {
	vertical-align: baseline;
}
summary {
	display: list-item;
}
ol,ul,menu {
	list-style: none;
}
img,svg,video,canvas,audio,iframe,embed,object {
	vertical-align: middle;
	display: block;
}
img,video {
	max-width: 100%;
	height: auto;
}
button,input,select,optgroup,textarea,::file-selector-button {
	font: inherit;
	font-feature-settings: inherit;
	font-variation-settings: inherit;
	letter-spacing: inherit;
	color: inherit;
	opacity: 1;
	background-color: transparent;
	border-radius: 0;
}
:where(select:is([multiple],[size])) optgroup {
	font-weight: bolder;
}
:where(select:is([multiple],[size])) optgroup option {
	padding-inline-start: 20px;
}
::file-selector-button {
	margin-inline-end: 4px;
}
::placeholder {
	opacity: 1;
}
textarea {
	resize: vertical;
}
::-webkit-search-decoration {
	-webkit-appearance: none;
}
::-webkit-date-and-time-value {
	min-height: 1lh;
	text-align: inherit;
}
::-webkit-datetime-edit {
	display: inline-flex;
}
::-webkit-datetime-edit-fields-wrapper {
	padding: 0;
}
::-webkit-datetime-edit {
	padding-block: 0;
}
::-webkit-datetime-edit-year-field {
	padding-block: 0;
}
::-webkit-datetime-edit-month-field {
	padding-block: 0;
}
::-webkit-datetime-edit-day-field {
	padding-block: 0;
}
::-webkit-datetime-edit-hour-field {
	padding-block: 0;
}
::-webkit-datetime-edit-minute-field {
	padding-block: 0;
}
::-webkit-datetime-edit-second-field {
	padding-block: 0;
}
::-webkit-datetime-edit-millisecond-field {
	padding-block: 0;
}
::-webkit-datetime-edit-meridiem-field {
	padding-block: 0;
}
::-webkit-calendar-picker-indicator {
	line-height: 1;
}
:-moz-ui-invalid {
	box-shadow: none;
}
button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button {
	appearance: button;
}
::-webkit-inner-spin-button {
	height: auto;
}
::-webkit-outer-spin-button {
	height: auto;
}
[hidden]:where(:not([hidden=until-found])) {
	display: none!important;
}
@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
	::placeholder {
		color: currentColor;
	}
	@supports (color: color-mix(in lab, red, red)) {
		::placeholder {
			color: color-mix(in oklab, currentcolor 50%, transparent);
		}
	}
}
}

/* --- Cross-cutting rules (unlayered) --- */

/* Interactive elements: always show pointer cursor */
button, [role="button"], a, summary, select,
input[type="checkbox"], input[type="radio"],
label[for] {
	cursor: pointer;
}
button:disabled, [disabled] {
	cursor: not-allowed;
}

/* Prevent layout shift when scrollbar appears/disappears */
html { scrollbar-gutter: stable; }

/* hide-scrollbar -- used on horizontally scrolling mobile strips (e.g. navbar_mobile). */
.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Inline SVG icons keep their size inside flex rows. */
.svg-icon { flex-shrink: 0; }

/* HTMX request indicator */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: inline-flex; }

/* Spinner animation */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
	display: inline-block;
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

/* Booking site chrome (theme booking_chrome: "site"): links and buttons
   change colour at the pace of the hotel's own website. */
@layer base {
	.booking-site :is(a, button) {
		transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
	}
}
