/* Shortcodes that replaced the Booqable plugin's widgets (D-034). */
.rlt-cta { border: 1px solid #d0d6dc; border-radius: 8px; padding: 1rem 1.2rem; margin: 1.2rem 0; background: #fff; }
.rlt-cta h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.rlt-cta p { margin: .4rem 0; }
.rlt-cta-price, .rlt-card-price { font-weight: 600; }
.rlt-cta-note { color: #5f6b76; font-size: .92rem; }
/* Doubled class: the theme's content-link colour must not win over white on blue. */
a.rlt-cta-button.rlt-cta-button, a.rlt-cta-button.rlt-cta-button:visited { display: inline-block; background: #1a6fb5; color: #fff !important; text-decoration: none; border-radius: 6px; padding: .6rem 1.1rem; font-weight: 600; }
a.rlt-cta-button.rlt-cta-button:hover, a.rlt-cta-button.rlt-cta-button:focus { background: #155a93; color: #fff !important; }
.rlt-cta-small { padding: .35rem .8rem; font-size: .9rem; }
.rlt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.rlt-card { border: 1px solid #e3e7eb; border-radius: 8px; padding: .75rem; background: #fff; display: flex; flex-direction: column; }
.rlt-card img, .rlt-card-nophoto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #f1f3f5; display: block; }
.rlt-card h3 { font-size: 1rem; margin: .6rem 0 .2rem; }
.rlt-card h3 a { text-decoration: none; }
.rlt-card p { margin: .2rem 0; }
/* Self-service badge on a card's photo, and the scrolling row (home page add-ons). */
.rlt-card-photo { position: relative; display: block; }
.rlt-card-badge { position: absolute; left: 8px; top: 8px; background: var(--global-palette11, #13612e); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .2rem .55rem; }
.rlt-cards.is-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x proximity; }
.rlt-cards.is-rail .rlt-card { scroll-snap-align: start; }

/* ---- Roadside Retro (D-048): paper cards with a navy outline and offset shadow, red buttons, the
   price and Book along a dashed footer (D-074). Colours from the theme palette (3 navy, 1 red, 9 paper, 14 mustard). ---- */
.rlt-cta { background: var(--global-palette9, #fff8ec); border: 2px solid var(--global-palette3, #1b2a4a); border-radius: 12px; box-shadow: 3px 3px 0 var(--global-palette3, #1b2a4a); }
.rlt-cta-note { color: var(--global-palette5, #4a5672); }
a.rlt-cta-button.rlt-cta-button, a.rlt-cta-button.rlt-cta-button:visited { background: var(--global-palette1, #b8322b); color: var(--global-palette9, #fff8ec) !important; border: 2px solid var(--global-palette3, #1b2a4a); border-radius: 10px; box-shadow: 3px 3px 0 var(--global-palette3, #1b2a4a); font-weight: 700; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
a.rlt-cta-button.rlt-cta-button:hover, a.rlt-cta-button.rlt-cta-button:focus { background: var(--global-palette2, #9a2621); color: var(--global-palette9, #fff8ec) !important; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--global-palette3, #1b2a4a); }
.rlt-card { background: var(--global-palette9, #fff8ec); border: 2px solid var(--global-palette3, #1b2a4a); border-radius: 14px; box-shadow: 4px 4px 0 var(--global-palette3, #1b2a4a); padding: 0 0 .9rem; overflow: hidden; }
.rlt-card img, .rlt-card-nophoto { border-radius: 0; border-bottom: 2px solid var(--global-palette3, #1b2a4a); }
.rlt-card h3 { margin: .75rem .9rem .2rem; font-size: 1.05rem; line-height: 1.2; }
.rlt-card h3 a, .rlt-card h3 a:visited { color: var(--global-palette3, #1b2a4a); }
.rlt-card p { margin-left: .9rem; margin-right: .9rem; }
/* Self-service: a full-width mustard band along the bottom of the photo (over it, so titles stay aligned). */
.rlt-card-badge { left: 0; right: 0; top: auto; bottom: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; text-align: center; background: var(--global-palette14, #e9b23a); color: var(--global-palette3, #1b2a4a); border: 0; border-top: 2px solid var(--global-palette3, #1b2a4a); border-radius: 0; padding: .32rem .6rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; line-height: 1.1; }
.rlt-card-badge strong { display: block; font-weight: 800; font-size: .74rem; letter-spacing: .035em; }
.rlt-card-badge small { display: block; margin-top: .1rem; font-size: .72rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
@media (max-width: 560px) {
	/* two cards side by side on phones: slab names stay whole words, the price tag on one line */
	.rlt-card h3 { font-size: .95rem; overflow-wrap: normal; word-break: normal; hyphens: manual; }
	.rlt-card h3 a { overflow-wrap: anywhere; }
}

/* Booqable's excerpt under the name, in full (owner, 2026-11-08). */
.rlt-card .rlt-card-excerpt { margin-top: 0; margin-bottom: .6rem; color: var(--global-palette5, #4a5672); font-size: .86rem; line-height: 1.4; }
/* Key specs, for a trailer with no excerpt: small and muted so the name and price tag still lead (D-057). */
.rlt-card .rlt-card-spec { margin-top: 0; margin-bottom: .55rem; color: var(--global-palette5, #4a5672); font-size: .8rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) {
	.rlt-card .rlt-card-excerpt { font-size: .8rem; }
	.rlt-card .rlt-card-spec { font-size: .72rem; }
}

/* ---- Card footer (D-074, owner 2026-11-09): a dashed line, then the price (heading font, small "/day") and Book
   on one row. Pushed to the bottom so every card in a row lines up. ---- */
.rlt-card .rlt-card-foot { margin: auto .9rem 0; padding-top: 12px; border-top: 2px dashed color-mix(in srgb, var(--global-palette3, #1b2a4a) 35%, transparent); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rlt-card .rlt-card-foot p { margin: 0; }
.rlt-card .rlt-card-price { flex: 0 1 auto; min-width: 0; white-space: nowrap; color: var(--global-palette3, #1b2a4a); }
.rlt-card .rlt-card-price-amount { font-family: var(--global-heading-font-family, Georgia, serif); font-weight: 400; font-size: 23px; line-height: 1; }
.rlt-card .rlt-card-price-per { margin-left: 2px; font-size: 13px; font-weight: 600; color: var(--global-palette5, #4a5672); }
.rlt-card .rlt-card-book { flex: 0 0 auto; }
.rlt-card .rlt-card-book a.rlt-cta-button.rlt-cta-button { white-space: nowrap; padding: 8px 14px; }
@media (max-width: 560px) {
	.rlt-card .rlt-card-foot { margin: auto .7rem 0; padding-top: 10px; }
	.rlt-card .rlt-card-price-amount { font-size: 19px; }
	.rlt-card .rlt-card-price-per { font-size: 12px; }
	.rlt-card .rlt-card-book a.rlt-cta-button.rlt-cta-button { padding: 7px 12px; }
}

/* ---- Shared rental-period banner (D-104): identical fields before and after selecting times. ---- */
.rlt-period a.rlt-cta-button.rlt-period-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 18px; width: 100%; box-sizing: border-box; padding: 16px; background: transparent; color: var(--global-palette3, #1b2a4a) !important; border: 0; box-shadow: none; border-radius: 10px; text-align: left; text-decoration: none; }
.rlt-period a.rlt-cta-button.rlt-period-open:hover, .rlt-period a.rlt-cta-button.rlt-period-open:focus { background: transparent; color: var(--global-palette3, #1b2a4a) !important; box-shadow: none; transform: none; }
.rlt-period a.rlt-period-open:focus-visible { outline: 3px solid var(--global-palette3, #1b2a4a); outline-offset: 4px; }
.rlt-period-when { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 58px; padding-left: 20px; border-left: 2px solid var(--global-palette7, #c9bfa9); }
.rlt-period-when small { flex: none; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--global-palette5, #4a5672); }
.rlt-period-when strong { font-size: clamp(14px, 1.3vw, 19px); font-weight: 800; line-height: 1.3; }
.rlt-period-change { padding: 13px 22px; border: 2px solid var(--global-palette3, #1b2a4a); border-radius: 10px; background: var(--global-palette1, #b8322b); box-shadow: 3px 3px 0 var(--global-palette3, #1b2a4a); color: var(--global-palette9, #fff8ec); font-size: 16px; font-weight: 800; white-space: nowrap; text-align: center; }
.rlt-period a:hover .rlt-period-change { background: var(--global-palette2, #9a2621); }
.rlt-period-clear { margin: 0 0 0 4px; padding: 0; border: 0; background: none; color: var(--global-palette1, #b8322b); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.rlt-period-clear:hover, .rlt-period-clear:focus-visible { color: var(--global-palette2, #9a2621); background: none; }
@media (max-width: 1100px) {
 .rlt-period-when { display: block; padding-left: 14px; }
 .rlt-period-when small { display: block; margin-bottom: 5px; }
}
@media (max-width: 640px) {
 .rlt-period a.rlt-cta-button.rlt-period-open { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; }
 .rlt-period-when { min-height: 72px; }
 .rlt-period-when strong { font-size: 14px; }
 .rlt-period-change { grid-column: 1 / -1; padding: 10px 18px; }
}

/* ---- A trailer card for the chosen times (D-093): Available in green, Unavailable in red with the reason, like the
   Booqable store's cards. ---- */
/* D-098: a full-width status band directly under the photo, rather than a small inset badge. */
.rlt-card .rlt-card-avail { display: block; margin: 0; border-bottom: 2px solid var(--global-palette3, #1b2a4a); }
.rlt-card .rlt-card-avail + h3 { margin-top: .75rem; }
.rlt-card-avail-tag { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 9px 8px; background: var(--global-palette3, #1b2a4a); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; line-height: 1.2; }
.rlt-card-avail-tag::before { content: ''; flex: 0 0 22px; width: 22px; height: 22px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.rlt-card-avail.is-yes .rlt-card-avail-tag { background: var(--global-palette11, #1f6b3a); }
.rlt-card-avail.is-no .rlt-card-avail-tag { background: var(--global-palette1, #b8322b); }
.rlt-card-avail.is-yes .rlt-card-avail-tag::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m6.5 12 3.5 3.5 7.5-7.5'/%3E%3C/svg%3E"); }
.rlt-card-avail.is-no .rlt-card-avail-tag::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 8 8 8m0-8-8 8'/%3E%3C/svg%3E"); }
.rlt-card-avail-why { display: block; padding: 8px 10px; border-top: 1px solid #e7b2a9; background: #fff0ec; color: #742d26; font-size: 12.5px; line-height: 1.35; }
@media (max-width: 560px) { .rlt-card-avail-tag { gap: 6px; font-size: 13px; letter-spacing: .035em; } .rlt-card-avail-tag::before { flex-basis: 20px; width: 20px; height: 20px; } }
.rlt-card.is-unavailable .rlt-card-photo img { opacity: .55; }
/* D-103: an unavailable trailer's Book control has no link target and looks disabled, including on hover. */
.rlt-card .rlt-card-book a.rlt-cta-button[aria-disabled="true"] { background: #ddd7cb; color: #655f56 !important; border-color: #aaa294; box-shadow: none; transform: none; cursor: not-allowed; text-decoration: none; }
