/*
 * Union Pole Reservations — front-end styles.
 * Uses the Union Pole Live theme's variables (with fallbacks) so it matches the
 * rest of the site: hairline green rules, square corners, small caps labels.
 * Everything is scoped to .up-show / .up-res so it cannot touch other pages.
 */

.up-show {
	--up-line: var(--grid-line, #8dbb98);
	--up-text: var(--text-color, #222222);
	--up-bg: var(--page-background, #eeeeeb);
	--up-img-w: var(--desktop-image-width, 180px);
}

/* Flyer + details row (same proportions as the Event History list) */

.up-show .up-main {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
}

.up-show .up-flyer {
	flex: 0 0 var(--up-img-w);
	width: var(--up-img-w);
	min-width: 0;
	line-height: 0;
}

.up-show .up-flyer img {
	display: block;
	width: 100%;
	height: auto;
}

.up-show .up-info {
	flex: 1 1 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.up-show .up-title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
}

.up-show .up-details {
	font-size: 14px;
	line-height: 1.45;
}

.up-show .up-details p {
	margin: 0 0 12px;
}

.up-show .up-details p:last-child {
	margin-bottom: 0;
}

.up-show .up-back {
	display: inline-block;
	margin-top: 12px;
	color: var(--up-text);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.up-show .up-back:hover {
	text-decoration: underline;
}

/* Reservation form */

.up-res {
	margin-top: 4px;
}

.up-res .up-price,
.up-res .up-left {
	margin: 0 0 12px;
	font-size: 14px;
}

.up-res .up-heading {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 400;
	text-align: center;
}

.up-res label {
	display: block;
	margin: 0 0 14px;
}

.up-res .up-label {
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.up-res .up-label .up-jp {
	text-transform: none;
	letter-spacing: 0;
}

.up-res .up-opt {
	opacity: 0.6;
}

.up-res input[type="text"],
.up-res select {
	display: block;
	width: 100%;
	margin: 0;
	padding: 9px 10px;
	border: 0.5px solid var(--up-line);
	border-radius: 0;
	background: transparent;
	color: var(--up-text);
	font: inherit;
	font-size: 16px; /* keeps iOS Safari from zooming on focus */
	line-height: 1.3;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.up-res select {
	background-image: linear-gradient(45deg, transparent 50%, var(--up-text) 50%),
		linear-gradient(135deg, var(--up-text) 50%, transparent 50%);
	background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 30px;
}

.up-res input[type="text"]:focus,
.up-res select:focus {
	outline: 0;
	border-color: var(--up-text);
}

.up-res button[type="submit"] {
	display: block;
	width: 100%;
	margin: 4px 0 0;
	padding: 11px 20px;
	border: 0.5px solid var(--up-text);
	border-radius: 0;
	background: transparent;
	color: var(--up-text);
	font: inherit;
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.up-res button[type="submit"]:hover,
.up-res button[type="submit"]:focus {
	background: var(--up-text);
	color: var(--up-bg);
	outline: 0;
}

.up-res .up-msg {
	margin: 0 0 14px;
	padding: 10px 12px;
	border: 0.5px solid var(--up-text);
	font-size: 14px;
}

.up-res .up-closed {
	margin: 0;
	text-align: center;
	letter-spacing: 0.08em;
}

/* Spam trap: off-screen, never display:none (some bots skip those) */
.up-res .up-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 600px) {
	.up-show {
		--up-img-w: var(--mobile-image-width, 100px);
	}

	.up-show .up-main {
		gap: 8px;
	}
}
