/* Pertito Reservations – public timetable.
 * Selectors are scoped under .prs-app and repeat :hover/:focus states so theme
 * button resets (e.g. Hello Elementor's) don't leak in. */

/* The timetable sizes itself with container queries. When an Elementor flex
   container centres the widget, its height is measured while its width is still
   indefinite (so the narrow layout applies), then it is rendered wider and
   taller and spills over the next section. A stretched, full-width, non-
   shrinking item is measured at its real width. */
.elementor-widget-pertito_reservations {
	--align-self: stretch;
	--flex-shrink: 0;
	align-self: stretch !important;
	flex-shrink: 0 !important;
	width: 100%;
}

.prs-app {
	--prs-accent: #cca42c;
	--prs-accent-ink: #8a6a0c;
	--prs-ink: #1f1d1a;
	--prs-muted: #6f6a62;
	--prs-line: #e6dfd0;
	--prs-soft: #faf7f0;
	--prs-surface: #ffffff;
	--prs-disabled-bg: #f5f4f1;
	--prs-disabled-ink: #9d988f;
	--prs-danger: #b3261e;
	--prs-danger-soft: #fbeceb;
	--prs-radius: 12px;
	box-sizing: border-box;
	color: var(--prs-ink);
	/* The site's text font (Elementor global "Text" typography = Montserrat);
	   the page body itself falls back to the system font. */
	font-family: var(--e-global-typography-text-font-family, "Montserrat"), sans-serif;
	/* Standard Cyrillic shapes, like the exhibitors section (lang="bg" would
	   switch Montserrat to its cursive-like Bulgarian forms). */
	font-feature-settings: "locl" 0;
	line-height: 1.5;
	text-align: left;
}

/* Form controls and buttons don't inherit fonts by default; the kit also forces
   "DM Sans" on inputs. */
.prs-app button,
.prs-app input,
.prs-app textarea,
.prs-app select {
	font-family: inherit !important;
	font-feature-settings: inherit;
}

.prs-app *,
.prs-app *::before,
.prs-app *::after {
	box-sizing: inherit;
}

.prs-empty {
	padding: 24px;
	border: 1px dashed var(--prs-line);
	border-radius: var(--prs-radius);
	color: var(--prs-muted);
	text-align: center;
}

.prs-empty p {
	margin: 0;
}

/* Day tabs ---------------------------------------------------------------- */

.prs-days {
	display: flex;
	gap: 10px;
	margin: 0 0 28px;
	padding: 2px 2px 6px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.prs-app .prs-day-tab,
.prs-app .prs-day-tab:hover,
.prs-app .prs-day-tab:focus {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 132px;
	margin: 0;
	padding: 12px 18px;
	border: 1px solid var(--prs-line);
	border-radius: var(--prs-radius);
	background: var(--prs-surface);
	color: var(--prs-ink);
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.prs-app .prs-day-tab:hover {
	border-color: var(--prs-accent);
}

.prs-app .prs-day-tab:focus-visible {
	outline: 2px solid var(--prs-accent);
	outline-offset: 2px;
}

.prs-app .prs-day-tab[aria-selected="true"] {
	border-color: var(--prs-accent);
	background: #f4eddd;
	color: var(--prs-ink);
}

.prs-day-tab-date {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.prs-day-tab-title {
	max-width: 220px;
	overflow: hidden;
	color: var(--prs-muted);
	font-size: 12px;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.prs-app .prs-day-tab[aria-selected="true"] .prs-day-tab-title {
	color: var(--prs-accent-ink);
}

/* Day ----------------------------------------------------------------------- */

.prs-day[hidden] {
	display: none;
}

.prs-app .prs-hint {
	margin: 0;
	color: var(--prs-muted);
	font-size: 14px;
}

/* Time-slot strip -------------------------------------------------------------
 * A card with a row of time markers, the slot cards (scrolling sideways when
 * they don't all fit) and a footer with the session length and selection. */

.prs-cal {
	--prs-gap: 20px;
	--prs-mark-h: 38px;   /* Marker row incl. the space above the rule. */
	--prs-card-top: 22px; /* Space between the rule and the cards. */
	--prs-dot-open: #5aab85;
	--prs-dot-few: #e0a33a;
	--prs-dot-off: #cbc6bb;
	container-type: inline-size;
	padding: 32px 38px 24px;
	border: 1px solid #f1ebe0;
	border-radius: 22px;
	background: var(--prs-surface);
	box-shadow: 0 18px 40px -24px rgba(110, 85, 35, 0.28);
}

.prs-cal-viewport {
	position: relative;
}

.prs-cal-scroll {
	position: relative;
	display: grid;
	grid-auto-columns: calc((100% - 3 * var(--prs-gap)) / 4);
	grid-auto-flow: column;
	column-gap: var(--prs-gap);
	padding-bottom: 14px; /* Room for the hover shadow. */
	overflow-x: auto;
	overflow-y: hidden;
	/* The rule under the markers, drawn on the scrolling content so it spans every slot. */
	background: linear-gradient(#ece3d1, #ece3d1) 0 var(--prs-mark-h) / 100% 1px no-repeat;
	background-attachment: local;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.prs-cal-scroll::-webkit-scrollbar {
	display: none;
}

.prs-cal-col {
	display: flex;
	flex-direction: column;
	min-width: 0;
	scroll-snap-align: start;
}

.prs-cal-mark {
	display: flex;
	align-items: center;
	gap: 10px;
	height: var(--prs-mark-h);
	padding-bottom: 18px;
	color: var(--prs-muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	line-height: 20px;
}

.prs-cal-mark::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e6d6ad;
	background: color-mix(in srgb, var(--prs-accent) 40%, #fff);
}

.prs-cal-mark.is-hour::before {
	background: var(--prs-accent);
}

/* Arrows */
.prs-app .prs-cal-nav,
.prs-app .prs-cal-nav:hover,
.prs-app .prs-cal-nav:focus {
	position: absolute;
	z-index: 3;
	top: calc(50% + (var(--prs-mark-h) + var(--prs-card-top) - 14px) / 2); /* Middle of the cards. */
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 1px solid #efe9de;
	border-radius: 50%;
	background: #fff;
	color: var(--prs-ink);
	box-shadow: 0 8px 18px -10px rgba(31, 29, 26, 0.35);
	cursor: pointer;
	transform: translateY(-50%);
	transition: box-shadow 0.15s, border-color 0.15s;
}

.prs-app .prs-cal-nav:hover {
	border-color: var(--prs-accent);
	box-shadow: 0 10px 22px -10px rgba(31, 29, 26, 0.45);
}

.prs-cal-nav svg {
	display: block;
}

.prs-cal-nav.is-prev {
	left: -23px;
}

.prs-cal-nav.is-next {
	right: -23px;
}

.prs-app .prs-cal-nav[hidden] {
	display: none;
}

@media (hover: none) {
	.prs-app .prs-cal-nav {
		display: none;
	}
}

/* Footer */
.prs-cal-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 24px;
	margin-top: 10px;
	padding-top: 20px;
	border-top: 1px solid #f0ebe2;
	font-size: 14.5px;
}

.prs-cal-length {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--prs-muted);
}

.prs-cal-length::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--prs-accent);
}

/* Length and the optional note stacked on the left, the selected session on the right. */
.prs-cal-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Same dot marker as the session length, so it reads as one list of facts. */
.prs-cal-note {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--prs-ink);
	font-weight: 600;
}

.prs-cal-note::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--prs-accent);
}

.prs-cal-selected {
	color: var(--prs-ink);
	font-weight: 500;
}

.prs-cal-selected strong {
	color: var(--prs-accent-ink);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.prs-cal-selected[hidden] {
	display: none;
}

/* Slot cards ----------------------------------------------------------------- */

.prs-app .prs-slot,
.prs-app .prs-slot:hover,
.prs-app .prs-slot:focus {
	display: flex;
	flex: 1 0 auto; /* Equal heights across a row. */
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	min-height: 96px;
	margin: var(--prs-card-top) 0 0;
	padding: 22px 22px 20px 24px;
	border: 1px solid #efe6d6;
	border-left: 5px solid var(--prs-accent);
	border-radius: 6px 14px 14px 6px;
	background: #faf6f0;
	color: var(--prs-ink);
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.prs-app .prs-slot:not(:disabled):hover,
.prs-app .prs-slot.is-selected,
.prs-app .prs-slot.is-selected:hover,
.prs-app .prs-slot.is-selected:focus {
	border-color: #e8dabd;
	border-left-color: var(--prs-accent);
	background: #f4eddd;
	box-shadow: 0 12px 22px -16px rgba(110, 85, 35, 0.55);
}

.prs-app .prs-slot:focus-visible {
	outline: 2px solid var(--prs-ink);
	outline-offset: 2px;
}

.prs-slot-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.prs-slot-time {
	min-width: 0;
	overflow: hidden;
	font-size: 20px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.prs-slot-dot {
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--prs-dot-open);
}

.prs-slot.is-few .prs-slot-dot {
	background: var(--prs-dot-few);
}

.prs-slot-info {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--prs-muted);
	font-size: 14.5px;
	line-height: 1.3;
}

.prs-slot-icon {
	flex: none;
	color: var(--prs-accent);
}

.prs-slot-status {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.prs-slot.is-few .prs-slot-status {
	color: var(--prs-accent-ink);
	font-weight: 600;
}

/* Optional square image and title */
.prs-slot-media {
	display: block;
	overflow: hidden;
	margin-bottom: 4px;
	border-radius: 10px;
	background: linear-gradient(135deg, #f1e7d1, #faf6ee);
	aspect-ratio: 1 / 1;
}

.prs-app .prs-slot-img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.prs-app .prs-slot:not(:disabled):hover .prs-slot-img {
	transform: scale(1.03);
}

.prs-slot-title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--prs-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.prs-cal.has-images .prs-slot,
.prs-cal.has-images .prs-slot:hover,
.prs-cal.has-images .prs-slot:focus {
	padding-top: 16px;
}

/* Full or past slots */
.prs-app .prs-slot:disabled,
.prs-app .prs-slot:disabled:hover,
.prs-app .prs-slot:disabled:focus {
	border-color: #eeebe5;
	border-left-color: #d9d4c9;
	background: #f7f6f3;
	color: var(--prs-disabled-ink);
	box-shadow: none;
	cursor: not-allowed;
}

.prs-slot:disabled .prs-slot-dot {
	background: var(--prs-dot-off);
}

.prs-slot:disabled .prs-slot-info,
.prs-slot:disabled .prs-slot-icon {
	color: var(--prs-disabled-ink);
}

.prs-slot.is-full .prs-slot-time {
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
}

.prs-slot-subtitle {
	margin-top: -2px;
	color: var(--prs-accent-ink);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.prs-slot:disabled .prs-slot-subtitle {
	color: var(--prs-disabled-ink);
}

.prs-slot:disabled .prs-slot-title {
	color: var(--prs-disabled-ink);
}

.prs-slot:disabled .prs-slot-img {
	opacity: 0.55;
	filter: grayscale(1);
}

/* Fewer cards per view as the strip gets narrower. */
@container (max-width: 900px) {
	.prs-cal-scroll {
		grid-auto-columns: calc((100% - 2 * var(--prs-gap)) / 3);
	}
}

@container (max-width: 640px) {
	.prs-cal-scroll {
		grid-auto-columns: calc((100% - var(--prs-gap)) / 2);
	}

	.prs-slot-time {
		font-size: 17px;
	}
}

@container (max-width: 420px) {
	.prs-cal-scroll {
		--prs-gap: 12px;
		grid-auto-columns: 78%; /* Peek at the next card so it's clear the strip scrolls. */
	}
}

/* Dialog -------------------------------------------------------------------- */

html.prs-modal-open {
	overflow: hidden;
}

.prs-app .prs-dialog {
	width: min(480px, calc(100vw - 24px));
	max-width: none;
	max-height: calc(100dvh - 24px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: 16px;
	background: var(--prs-surface);
	color: var(--prs-ink);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}

.prs-app .prs-dialog::backdrop {
	background: rgba(20, 18, 14, 0.55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.prs-dialog-inner {
	position: relative;
	padding: 28px 28px 24px;
}

.prs-step[hidden] {
	display: none;
}

.prs-app .prs-dialog-close,
.prs-app .prs-dialog-close:hover,
.prs-app .prs-dialog-close:focus {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--prs-muted);
	font: inherit;
	font-size: 26px;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.prs-app .prs-dialog-close:hover {
	background: var(--prs-soft);
	color: var(--prs-ink);
}

.prs-app .prs-dialog-close:focus-visible {
	outline: 2px solid var(--prs-accent);
}

.prs-app .prs-dialog-title {
	margin: 0 0 14px;
	padding-right: 32px;
	color: var(--prs-ink);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.prs-app .prs-dialog-title:focus {
	outline: none;
}

.prs-summary {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 20px;
	padding: 12px 14px;
	border-left: 3px solid var(--prs-accent);
	border-radius: 0 8px 8px 0;
	background: var(--prs-soft);
}

.prs-summary-event {
	color: var(--prs-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.prs-summary-when {
	font-weight: 600;
}

.prs-summary-slot {
	color: var(--prs-ink);
	font-size: 15px;
	font-weight: 600;
}

/* Form ---------------------------------------------------------------------- */

.prs-app .prs-field {
	margin: 0 0 14px;
	padding: 0;
}

.prs-app .prs-field label {
	display: block;
	margin: 0 0 6px;
	color: var(--prs-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.prs-req {
	color: var(--prs-accent-ink);
}

.prs-optional {
	color: var(--prs-muted);
	font-weight: 400;
}

.prs-app .prs-field input[type="text"],
.prs-app .prs-field input[type="email"],
.prs-app .prs-field input[type="tel"],
.prs-app .prs-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 11px 13px;
	border: 1px solid #d8d1c2;
	border-radius: 8px;
	background: #fff;
	color: var(--prs-ink);
	font: inherit;
	font-size: 16px; /* Prevents zoom-on-focus on iOS. */
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.prs-app .prs-field textarea {
	min-height: 64px;
	resize: vertical;
}

/* The Elementor kit styles every input with higher priority (post-734.css loads
   later, e.g. padding: 10px 0 0 and its own colours), which pushed the text to
   the bottom edge. Restate the box here so the fields look the same on any kit. */
.prs-app .prs-field input[type="text"],
.prs-app .prs-field input[type="email"],
.prs-app .prs-field input[type="tel"],
.prs-app .prs-field textarea {
	height: auto !important;
	min-height: 0;
	padding: 11px 13px !important;
	border: 1px solid #d8d1c2 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: var(--prs-ink) !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
}

.prs-app .prs-field textarea {
	min-height: 64px;
}

.prs-app .prs-field input:focus,
.prs-app .prs-field textarea:focus {
	border-color: var(--prs-accent) !important;
}

.prs-app .prs-field.is-invalid input,
.prs-app .prs-field.is-invalid textarea {
	border-color: var(--prs-danger) !important;
}

.prs-app .prs-field input:focus,
.prs-app .prs-field textarea:focus {
	border-color: var(--prs-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(204, 164, 44, 0.25);
}

.prs-app .prs-field.is-invalid input,
.prs-app .prs-field.is-invalid textarea {
	border-color: var(--prs-danger);
}

.prs-field-error {
	display: block;
	margin-top: 5px;
	color: var(--prs-danger);
	font-size: 13px;
}

.prs-field-error:empty {
	display: none;
}

.prs-app .prs-consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	cursor: pointer;
}

.prs-app .prs-consent input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--prs-accent);
}

.prs-app .prs-consent a {
	color: var(--prs-accent-ink);
	text-decoration: underline;
}

.prs-form-error {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--prs-danger-soft);
	color: var(--prs-danger);
	font-size: 14px;
}

.prs-form-error:empty {
	display: none;
}

.prs-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.prs-app .prs-submit,
.prs-app .prs-submit:focus {
	display: block;
	width: 100%;
	margin: 6px 0 0;
	padding: 14px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--prs-accent);
	color: var(--prs-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	white-space: normal;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.prs-app .prs-submit:hover {
	background: var(--prs-ink);
	color: #fff;
}

.prs-app .prs-submit:focus-visible {
	outline: 2px solid var(--prs-ink);
	outline-offset: 2px;
}

.prs-app .prs-submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

/* Confirmation -------------------------------------------------------------- */

.prs-step-done {
	text-align: center;
}

.prs-app .prs-step-done .prs-dialog-title {
	padding: 0;
}

.prs-done-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 4px auto 14px;
	border: 2px solid var(--prs-accent);
	border-radius: 50%;
	color: var(--prs-accent-ink);
}

.prs-app .prs-done-when {
	margin: 0 0 16px;
	color: var(--prs-muted);
	font-size: 14px;
}

.prs-done-qr {
	width: 200px;
	max-width: 70%;
	margin: 0 auto 12px;
	padding: 6px;
	border: 1px solid var(--prs-line);
	border-radius: 10px;
	background: #fff;
}

.prs-done-qr svg {
	display: block;
	width: 100%;
	height: auto;
}

.prs-app .prs-done-code {
	margin: 0 0 10px;
	font-size: 14px;
}

.prs-done-code strong {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 16px;
	letter-spacing: 0.08em;
}

.prs-app .prs-done-email {
	margin: 0 0 8px;
	color: var(--prs-muted);
	font-size: 14px;
}

.prs-app .prs-done-email.is-warning {
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff6e0;
	color: #7a5800;
}

.prs-app .prs-done-links {
	margin: 0 0 16px;
	font-size: 14px;
}

.prs-app .prs-done-links a {
	color: var(--prs-accent-ink);
	text-decoration: underline;
}

/* Small screens ------------------------------------------------------------- */

@media (max-width: 520px) {
	.prs-cal {
		padding: 22px 18px 18px;
		border-radius: 18px;
	}

	.prs-cal-foot {
		font-size: 13.5px;
	}

	.prs-dialog-inner {
		padding: 24px 18px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.prs-app *,
	.prs-app *::before,
	.prs-app *::after {
		transition: none !important;
	}
}
