/*
 * Single post / fleet vehicle template (fleet-page-editor#31).
 *
 * Sizes mirror Elementor Pro template 870 as measured on parlayrentals.com
 * (2026-09-26): a 1000px column padded 80px/10px, a 20px gap between widgets,
 * image radius 20px (10px at tablet), title 45/38/32px weight 600 line-height
 * 1.3, content 16px line-height 1.7. Breakpoints are Elementor's: 1024 / 767.
 *
 * Colours ONLY through the tenant's --fleet-* tokens, with neutral fallbacks.
 * The buttons are links, set every state explicitly and ALSO declare the
 * --ff-btn-* tokens, so the theme armour and this sheet agree wherever both
 * reach (hello-elementor repaints bare buttons and :hover).
 */

.ff-single-main { width: 100%; }

.ff-single {
    box-sizing: border-box;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 10px;
    color: var(--fleet-on-page, var(--fleet-text-dark, #1d2327));
}
.ff-single *, .ff-single *::before, .ff-single *::after { box-sizing: border-box; }

.ff-single__inner { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ff-single__section { min-width: 0; }

/* image */
.ff-single__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 20px;
}

/* author + date */
.ff-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ff-single__meta-item { margin: 0; padding: 0; }
.ff-single .ff-single__meta a,
.ff-single .ff-single__meta a:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fleet-on-page, var(--fleet-text-dark, #1d2327));
    text-decoration: none;
}
.ff-single .ff-single__meta a:hover,
.ff-single .ff-single__meta a:focus-visible { color: var(--fleet-accent-color, var(--fleet-primary-color, #2271b1)); }
.ff-single__icon { flex: 0 0 auto; color: var(--fleet-accent-color, var(--fleet-primary-color, #2271b1)); }

/* title */
.ff-single .ff-single__title {
    margin: 0;
    font-size: 45px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--fleet-on-page, var(--fleet-text-dark, #1d2327));
    overflow-wrap: anywhere;
}

/* content */
.ff-single__content-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--fleet-on-page, var(--fleet-text-dark, #1d2327));
    overflow-wrap: break-word;
}
.ff-single__content-body > :first-child { margin-top: 0; }
.ff-single__content-body > :last-child { margin-bottom: 0; }
.ff-single__content-body img,
.ff-single__content-body video,
.ff-single__content-body iframe { max-width: 100%; height: auto; }
.ff-single__content-body table { display: block; max-width: 100%; overflow-x: auto; }
.ff-single__content-body pre { max-width: 100%; overflow-x: auto; }

/* vehicle: price + buttons */
.ff-single__price { margin-bottom: 12px; font-size: 18px; color: var(--fleet-on-page, #1d2327); }
.ff-single__price .starting-amount { font-weight: 600; color: var(--fleet-primary-color, #2271b1); }
.ff-single__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.ff-single .ff-single__btn,
.ff-single .ff-single__btn:visited {
    --ff-btn-bg: var(--fleet-primary-color, #2271b1);
    --ff-btn-fg: var(--fleet-on-primary, #fff);
    --ff-btn-border: var(--fleet-primary-color, #2271b1);
    --ff-btn-bg-hover: var(--fleet-button-hover-color, var(--fleet-primary-color, #135e96));
    --ff-btn-fg-hover: var(--fleet-on-button-hover, var(--fleet-on-primary, #fff));
    --ff-btn-border-hover: var(--fleet-button-hover-color, var(--fleet-primary-color, #135e96));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid var(--fleet-primary-color, #2271b1);
    border-radius: var(--fleet-input-border-radius, 6px);
    background: var(--fleet-primary-color, #2271b1);
    color: var(--fleet-on-primary, #fff);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}
.ff-single .ff-single__btn:hover {
    background: var(--fleet-button-hover-color, var(--fleet-primary-color, #135e96));
    border-color: var(--fleet-button-hover-color, var(--fleet-primary-color, #135e96));
    color: var(--fleet-on-button-hover, var(--fleet-on-primary, #fff));
}
.ff-single .ff-single__btn:focus-visible {
    outline: 2px solid var(--fleet-primary-color, #2271b1);
    outline-offset: 2px;
}
/* The offer is the secondary action when a car is both rentable and for sale. */
.ff-single .ff-single__btn--offer,
.ff-single .ff-single__btn--offer:visited {
    --ff-btn-bg: transparent;
    --ff-btn-fg: var(--fleet-primary-color, #2271b1);
    background: transparent;
    color: var(--fleet-primary-color, #2271b1);
}
.ff-single .ff-single__buttons .ff-single__btn--offer:only-child,
.ff-single .ff-single__buttons .ff-single__btn--offer:only-child:visited {
    --ff-btn-bg: var(--fleet-primary-color, #2271b1);
    --ff-btn-fg: var(--fleet-on-primary, #fff);
    background: var(--fleet-primary-color, #2271b1);
    color: var(--fleet-on-primary, #fff);
}
.ff-single .ff-single__btn--offer:hover {
    background: var(--fleet-button-hover-color, var(--fleet-primary-color, #135e96));
    color: var(--fleet-on-button-hover, var(--fleet-on-primary, #fff));
}

/* vehicle: features */
.ff-single .ff-single__subheading {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--fleet-on-page, #1d2327);
}
.ff-single__feature-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 1024px) {
    .ff-single__img { border-radius: 10px; }
    .ff-single .ff-single__title { font-size: 38px; }
}
@media (max-width: 767px) {
    .ff-single .ff-single__title { font-size: 32px; }
    .ff-single__buttons .ff-single__btn { flex: 1 1 100%; }
}
