/* TrailerHub Hire – front end. Override the variables in your theme to rebrand. */
:root {
	--uth-accent: #0b5c8c;
	--uth-accent-ink: #ffffff;
	--uth-ink: #1d2327;
	--uth-muted: #5b6770;
	--uth-line: #dde3e8;
	--uth-soft: #f4f7f9;
	--uth-ok: #2e7d32;
	--uth-low: #e9a23b;
	--uth-full: #c62828;
	--uth-radius: 10px;
}

.uth-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 24px 0; }
.uth-card { border: 1px solid var(--uth-line); border-radius: var(--uth-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.uth-card-img { display: block; aspect-ratio: 4 / 3; background: var(--uth-soft); overflow: hidden; }
.uth-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uth-noimg { display: block; width: 100%; height: 100%; }
.uth-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.uth-card-body h3 { margin: 0; font-size: 1.15em; }
.uth-card-body h3 a { color: var(--uth-ink); text-decoration: none; }
.uth-card-specs { list-style: none; margin: 0; padding: 0; font-size: .92em; color: var(--uth-ink); }
.uth-card-specs span { color: var(--uth-muted); }
.uth-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.uth-from { color: var(--uth-muted); }
.uth-from strong { color: var(--uth-ink); font-size: 1.2em; }

.uth-btn { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--uth-accent); color: var(--uth-accent); background: #fff; text-decoration: none; font-weight: 600; cursor: pointer; line-height: 1.2; }
.uth-btn:hover { background: var(--uth-soft); }
.uth-btn-primary { background: var(--uth-accent); color: var(--uth-accent-ink); width: 100%; padding: 14px; font-size: 1.05em; }
.uth-btn-primary:hover { filter: brightness(1.08); background: var(--uth-accent); }
.uth-btn[disabled] { opacity: .6; cursor: wait; }

.uth-details { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; margin: 24px 0; }
.uth-details table, .uth-quote-table { width: 100%; border-collapse: collapse; }
.uth-details th, .uth-details td, .uth-quote-table th, .uth-quote-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--uth-line); vertical-align: top; }
.uth-details th, .uth-quote-table th { font-weight: 400; color: var(--uth-muted); }
.uth-details td, .uth-quote-table td { text-align: right; font-weight: 600; }
.uth-note { font-size: .92em; color: var(--uth-muted); }
.uth-buy a { font-weight: 600; }

.uth-book { border: 1px solid var(--uth-line); border-radius: var(--uth-radius); padding: 20px; background: #fff; margin: 32px 0; scroll-margin-top: 80px; }
.uth-book h2 { margin-top: 0; }
.uth-form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.uth-form fieldset[disabled] { opacity: .45; }
.uth-form legend { font-weight: 700; margin-bottom: 10px; font-size: 1.05em; }
.uth-row { display: flex; gap: 12px; flex-wrap: wrap; }
.uth-row > .uth-field { flex: 1 1 160px; }
.uth-row > .uth-grow { flex: 3 1 240px; }
.uth-field { display: block; margin-bottom: 12px; font-size: .92em; color: var(--uth-muted); }
.uth-field input, .uth-field select, .uth-field textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; border: 1px solid var(--uth-line); border-radius: 8px; font-size: 16px; color: var(--uth-ink); background: #fff; box-sizing: border-box; }
.uth-hidden, .uth-hp { display: none !important; }
.uth-check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: .95em; }
.uth-check input { margin-top: 4px; }
.uth-bring { font-size: .92em; background: var(--uth-soft); padding: 10px 12px; border-radius: 8px; }
.uth-error { color: var(--uth-full); font-weight: 600; margin: 8px 0; }
.uth-error:empty { display: none; }
.uth-warn { color: var(--uth-full); }
.uth-muted { color: var(--uth-muted); font-size: .92em; }
.uth-quote { margin: 8px 0; }
.uth-quote-table .uth-total th, .uth-quote-table .uth-total td { font-weight: 700; color: var(--uth-ink); font-size: 1.1em; border-bottom: 0; }

.uth-cal { margin: 4px 0 16px; }
.uth-cal-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 8px; }
.uth-cal-nav { border: 1px solid var(--uth-line); background: #fff; border-radius: 6px; width: 36px; height: 32px; cursor: pointer; font-size: 18px; }
.uth-cal-nav[disabled] { opacity: .3; cursor: default; }
.uth-cal-months { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.uth-cal-title { text-align: center; font-weight: 600; margin-bottom: 6px; }
.uth-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.uth-cal-dow { text-align: center; font-size: .8em; color: var(--uth-muted); }
.uth-day { aspect-ratio: 1; border: 0; border-radius: 6px; background: var(--uth-soft); color: var(--uth-ink); cursor: pointer; font-size: .9em; padding: 0; position: relative; }
.uth-day.is-free { box-shadow: inset 0 -3px 0 var(--uth-ok); }
.uth-day.is-low { box-shadow: inset 0 -3px 0 var(--uth-low); }
.uth-day.is-full { color: var(--uth-full); text-decoration: line-through; cursor: not-allowed; }
.uth-day.is-closed, .uth-day.is-past { color: #b8c0c6; background: transparent; cursor: not-allowed; }
.uth-day.is-selected { background: var(--uth-accent); color: var(--uth-accent-ink); }
.uth-cal-key { font-size: .85em; color: var(--uth-muted); margin: 8px 0 0; }

.uth-locations .uth-location { border-top: 1px solid var(--uth-line); padding-top: 20px; margin-top: 20px; }
.uth-hours { border-collapse: collapse; font-size: .92em; }
.uth-hours th { text-align: left; padding: 2px 16px 2px 0; font-weight: 400; color: var(--uth-muted); }
.uth-badge { font-size: .7em; background: var(--uth-soft); padding: 2px 8px; border-radius: 99px; vertical-align: middle; }

.uth-my-booking .uth-notice { padding: 12px 14px; border-radius: 8px; background: var(--uth-soft); }
.uth-my-booking .uth-ok { border-left: 4px solid var(--uth-ok); }
.uth-cancel { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--uth-line); }

@media (max-width: 720px) {
	.uth-details { grid-template-columns: 1fr; }
	.uth-book { padding: 16px; }
}
