.ffsd-vehicle-single,
.ffsd-vehicle-single *,
.ffsd-gallery-modal *,
.ffsd-loading-modal *,
.ffsd-compartment-modal * {
    box-sizing: border-box;
}

body.single-ff_vehicle .elementor-location-header {
    position: relative;
    z-index: 1000;
}

body.single-ff_vehicle .elementor-location-header .elementor-menu-toggle {
    position: relative !important;
    z-index: 1002 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
}

body.single-ff_vehicle .elementor-location-header .elementor-menu-toggle svg,
body.single-ff_vehicle .elementor-location-header .elementor-menu-toggle svg *,
body.single-ff_vehicle .elementor-location-header .elementor-menu-toggle i,
body.single-ff_vehicle .elementor-location-header .elementor-menu-toggle i::before {
    pointer-events: none !important;
}

body.single-ff_vehicle .site-main,
body.single-ff_vehicle .ffsd-vehicle-single {
    position: relative;
    z-index: 1;
}

@media (max-width: 880px) {
    body.single-ff_vehicle .elementor-location-header .elementor-widget-nav-menu.ffsd-mobile-menu-open > .elementor-widget-container > .elementor-nav-menu--dropdown.elementor-nav-menu__container {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 1001;
    }
}

@media (min-width: 881px) {
    body.single-ff_vehicle .elementor-location-header,
    body.single-ff_vehicle .elementor-location-header .e-con,
    body.single-ff_vehicle .elementor-location-header nav,
    body.single-ff_vehicle .elementor-location-header ul {
        overflow: visible !important;
    }

    body.single-ff_vehicle .elementor-location-header {
        position: relative;
        z-index: 50;
    }

    body.single-ff_vehicle .elementor-location-header .elementor-nav-menu--main .menu-item-has-children {
        position: relative;
    }

    body.single-ff_vehicle .elementor-location-header .elementor-nav-menu--main .menu-item-has-children > a::after {
        content: none !important;
        display: none !important;
    }

    body.single-ff_vehicle .elementor-location-header .menu-item-has-children > a .sub-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0;
        line-height: 16px;
        vertical-align: baseline;
    }

    body.single-ff_vehicle .elementor-location-header .menu-item-has-children > a .sub-arrow svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
        vertical-align: baseline;
    }

    body.single-ff_vehicle .elementor-location-header .elementor-nav-menu--main .menu-item-has-children > .sub-menu {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        min-width: 220px;
    }

    body.single-ff_vehicle .elementor-location-header .elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu,
    body.single-ff_vehicle .elementor-location-header .elementor-nav-menu--main .menu-item-has-children:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.ffsd-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ffsd-vehicle-card {
    background: linear-gradient(180deg, #eef2f5 0%, #e3e9ef 100%);
    border: 1px solid #ccd5de;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(20, 27, 37, 0.08);
    border-radius: 24px;
}

.ffsd-vehicle-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    background: #cad3dd;
    overflow: hidden;
}

.ffsd-vehicle-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ffsd-vehicle-card__placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: #425466;
    font-weight: 700;
}

.ffsd-vehicle-card__body {
    padding: 18px 18px 20px;
}

.ffsd-vehicle-card__eyebrow {
    margin: 0 0 6px;
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ffsd-vehicle-card__title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.15;
}

.ffsd-vehicle-card__title a {
    color: #111827;
    text-decoration: none;
}

.ffsd-vehicle-card__type {
    margin: 8px 0 0;
    color: #334155;
    font-weight: 600;
}

.ffsd-vehicle-card__excerpt {
    margin: 12px 0 0;
    color: #475569;
}

.ffsd-vehicle-card__meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ffsd-vehicle-card__meta span {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid #dbe2ea;
    font-size: 0.88rem;
    color: #334155;
    border-radius: 999px;
}

.ffsd-vehicle-single {
    display: grid;
    gap: 18px;
    color: #111827;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
    overflow-x: hidden;
}

.ffsd-vehicle-single__hero {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: start;
}

.ffsd-vehicle-single__hero > *,
.ffsd-vehicle-single__content > * {
    min-width: 0;
    max-width: 100%;
}

.ffsd-vehicle-single__main-image-wrap {
    display: grid;
    gap: 10px;
}

.ffsd-vehicle-single__main-image {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 1px solid #cfd7df;
    background: #d5dce3;
    min-height: 320px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 18px;
}

.ffsd-vehicle-single__main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ffsd-vehicle-gallery-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.ffsd-vehicle-gallery-strip__item,
.ffsd-vehicle-gallery__item,
.ffsd-loading-card,
.ffsd-gallery-modal__close,
.ffsd-gallery-modal__nav,
.ffsd-loading-modal__close {
    cursor: pointer;
}

.ffsd-vehicle-gallery-strip__item,
.ffsd-vehicle-gallery__item {
    padding: 0;
    border: 1px solid #cfd7df;
    background: #d9dfe5;
    overflow: hidden;
    border-radius: 18px;
}

.ffsd-vehicle-gallery-strip__item img,
.ffsd-vehicle-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ffsd-vehicle-gallery-strip__item img {
    height: 84px;
}

.ffsd-vehicle-single__panel,
.ffsd-vehicle-single__section {
    background: linear-gradient(180deg, #edf1f4 0%, #e7ecf1 100%);
    border: 1px solid #cfd7df;
    padding: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    border-radius: 24px;
}

.ffsd-vehicle-single__inline-data {
    margin-top: 18px;
    padding: 14px;
    background: rgba(201, 210, 220, 0.32);
    border: 1px solid #c8d1da;
    border-radius: 18px;
}

.ffsd-vehicle-single__inline-data h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.ffsd-vehicle-single__eyebrow {
    margin: 0 0 6px;
    color: #b91c1c;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.ffsd-vehicle-single__title {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.ffsd-vehicle-single__type {
    margin: 8px 0 0;
    font-size: 1rem;
    color: #334155;
    font-weight: 700;
}

.ffsd-vehicle-single__content {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    align-items: start;
}

.ffsd-vehicle-single__content > :only-child {
    grid-column: 1 / -1;
}

.ffsd-vehicle-single__section--description,
.ffsd-vehicle-single__section--equipment {
    grid-column: 1 / -1;
}

.ffsd-vehicle-single__section--description {
    max-width: 760px;
    width: 100%;
    justify-self: center;
}

.ffsd-vehicle-single__section h2 {
    margin: 0 0 12px;
    font-size: 1.16rem;
}

.ffsd-loading-search {
    margin-bottom: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid #d2dbe3;
    border-radius: 18px;
}

.ffsd-loading-search__label {
    display: block;
    margin: 0 0 8px;
    font-weight: 700;
    color: #142131;
}

.ffsd-loading-search__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.ffsd-loading-search__input,
.ffsd-loading-search__clear,
.ffsd-loading-search-result {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 16px;
    box-shadow: none;
}

.ffsd-loading-search__input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c8d1da;
    background: #f9fbfc;
    color: #142131;
    font-size: 0.95rem;
}

.ffsd-loading-search__input:focus {
    outline: 2px solid rgba(185, 28, 28, 0.18);
    border-color: #b91c1c;
}

.ffsd-loading-search__clear {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #c8d1da;
    background: #e8edf2;
    color: #142131;
    font-weight: 700;
}

.ffsd-loading-search__hint,
.ffsd-loading-search__status {
    margin: 10px 0 0;
    color: #526170;
    font-size: 0.9rem;
}

.ffsd-loading-search__status {
    color: #243447;
    font-weight: 700;
}

.ffsd-loading-search__results {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.ffsd-loading-search-result,
.ffsd-loading-search-empty {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: 1px solid #d2dbe3;
    background: rgba(255, 255, 255, 0.56);
    color: #142131;
}

.ffsd-loading-search-result {
    cursor: pointer;
}

.ffsd-loading-search-result--static {
    cursor: default;
}

.ffsd-loading-search-result__title,
.ffsd-loading-search-result__location,
.ffsd-loading-search-result__meta {
    display: block;
}

.ffsd-loading-search-result__title {
    font-weight: 700;
    line-height: 1.3;
}

.ffsd-loading-search-result__location {
    margin-top: 6px;
    color: #243447;
}

.ffsd-loading-search-result__meta {
    margin-top: 8px;
    font-size: 0.84rem;
    color: #526170;
}

.ffsd-loading-search-empty {
    color: #526170;
    border-radius: 16px;
}

.ffsd-vehicle-copy > *:first-child {
    margin-top: 0;
}

.ffsd-vehicle-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.45);
    border-left: 4px solid #b91c1c;
    color: #243447;
}

.ffsd-vehicle-data-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ffsd-vehicle-data-table th,
.ffsd-vehicle-data-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #d5dde5;
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ffsd-vehicle-data-table th {
    width: 36%;
    color: #0f172a;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.42);
}

.ffsd-vehicle-loading-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ffsd-compartment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.ffsd-vehicle-single__section + .ffsd-vehicle-single__section {
    margin-top: 14px;
}

.ffsd-compartment-card,
.ffsd-compartment-item {
    width: 100%;
    text-align: left;
    border: 1px solid #d2dbe3;
    background: rgba(255, 255, 255, 0.44);
    color: #142131;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 22px;
    box-shadow: none;
}

.ffsd-compartment-card {
    padding: 14px;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.44) !important;
    color: #142131 !important;
}

.ffsd-compartment-card__title,
.ffsd-compartment-item__title {
    display: block;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.ffsd-compartment-card__count,
.ffsd-compartment-item__meta {
    display: block;
    margin-top: 8px;
    font-size: 0.84rem;
    color: #526170;
}

.ffsd-loading-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 12px;
    border: 1px solid #d2dbe3;
    background: rgba(255, 255, 255, 0.44);
    color: #142131;
    border-radius: 18px;
}

.ffsd-loading-card__thumb {
    width: 72px;
    height: 72px;
    overflow: hidden;
    background: #d3d9df;
    border-radius: 14px;
}

.ffsd-loading-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ffsd-loading-card__title {
    display: block;
    font-weight: 700;
    line-height: 1.25;
}

.ffsd-loading-card__meta {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: #526170;
}

.ffsd-vehicle-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ffsd-vehicle-gallery img {
    height: 145px;
}

.ffsd-gallery-modal,
.ffsd-loading-modal,
.ffsd-compartment-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.ffsd-gallery-modal[hidden],
.ffsd-loading-modal[hidden],
.ffsd-compartment-modal[hidden] {
    display: none;
}

.ffsd-gallery-modal__backdrop,
.ffsd-loading-modal__backdrop,
.ffsd-compartment-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 25, 0.82);
}

.ffsd-gallery-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(94vw, 1080px);
    margin: 3vh auto;
    padding: 18px 58px;
    background: #dfe6ec;
    border: 1px solid #c3cdd6;
    min-height: min(72vh, 860px);
    max-height: 94vh;
    display: grid;
    align-items: center;
    overflow: hidden;
}

body.single-ff_vehicle {
    overflow-x: hidden;
}

.ffsd-gallery-modal__figure {
    margin: 0;
    touch-action: pan-y;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ffsd-gallery-modal__figure img {
    display: block;
    width: 100%;
    max-height: calc(94vh - 110px);
    object-fit: contain;
}

.ffsd-gallery-modal__close,
.ffsd-loading-modal__close,
.ffsd-compartment-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    background: #0f172a;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.ffsd-gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.ffsd-gallery-modal__nav--prev {
    left: 22px;
}

.ffsd-gallery-modal__nav--next {
    right: 22px;
}

.ffsd-loading-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 520px);
    margin: 10vh auto;
    padding: 22px;
    background: #edf2f6;
    border: 1px solid #cfd7df;
    color: #142131;
}

.ffsd-compartment-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 620px);
    margin: 10vh auto;
    padding: 22px;
    background: #edf2f6;
    border: 1px solid #cfd7df;
    color: #142131;
    max-height: 78vh;
    display: flex;
    flex-direction: column;
}

.ffsd-compartment-modal__dialog h3 {
    margin: 0 48px 14px 0;
    font-size: 1.24rem;
}

.ffsd-compartment-modal__list {
    display: grid;
    gap: 10px;
    overflow-y: auto;
    padding-right: 6px;
}

.ffsd-compartment-item {
    padding: 12px 14px;
}

.ffsd-compartment-item--static {
    cursor: default;
}

.ffsd-compartment-item--static .ffsd-compartment-item__meta {
    color: #7b8794;
}

.ffsd-loading-modal__dialog h3 {
    margin: 0 48px 12px 0;
    font-size: 1.28rem;
}

.ffsd-loading-modal__image {
    margin-bottom: 14px;
}

.ffsd-loading-modal__image img {
    display: block;
    width: 100%;
    height: auto;
}

.ffsd-loading-modal__text {
    color: #27384b;
    line-height: 1.55;
}

body.ffsd-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .ffsd-vehicle-grid {
        gap: 16px;
    }

    .ffsd-vehicle-single__hero,
    .ffsd-vehicle-single__content {
        grid-template-columns: 1fr;
    }

    .ffsd-vehicle-loading-list,
    .ffsd-vehicle-gallery,
    .ffsd-compartment-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ffsd-vehicle-single__main-image {
        min-height: 260px;
    }
}

@media (max-width: 560px) {
    .ffsd-vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ffsd-vehicle-card__body {
        padding: 12px;
    }

    .ffsd-vehicle-card__title {
        font-size: 1.05rem;
    }

    .ffsd-vehicle-card__meta {
        gap: 6px;
    }

    .ffsd-vehicle-card__meta span {
        font-size: 0.75rem;
        padding: 5px 8px;
    }

    .ffsd-vehicle-single {
        gap: 14px;
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
    }

    .ffsd-vehicle-single__panel,
    .ffsd-vehicle-single__section {
        padding: 14px;
    }

    .ffsd-vehicle-single__main-image {
        min-height: 210px;
    }

    .ffsd-vehicle-single__title {
        font-size: 1.45rem;
    }

    .ffsd-loading-search__controls {
        grid-template-columns: 1fr;
    }

    .ffsd-loading-search__clear {
        width: 100%;
    }

    .ffsd-vehicle-gallery-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .ffsd-vehicle-gallery-strip__item img {
        height: 58px;
    }

    .ffsd-loading-card {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .ffsd-loading-card__thumb {
        width: 56px;
        height: 56px;
    }

    .ffsd-vehicle-loading-list,
    .ffsd-vehicle-gallery,
    .ffsd-compartment-grid {
        grid-template-columns: 1fr;
    }

    .ffsd-vehicle-data-table th,
    .ffsd-vehicle-data-table td {
        display: block;
        width: auto;
    }

    .ffsd-vehicle-data-table th {
        border-bottom: 0;
        padding-bottom: 4px;
    }

    .ffsd-vehicle-data-table td {
        padding-top: 0;
    }

    .ffsd-gallery-modal__dialog {
        width: 100vw;
        min-height: 100vh;
        margin: 0;
        padding: 48px 14px 14px;
        border: 0;
    }

    .ffsd-gallery-modal__figure img {
        max-height: 78vh;
    }

    .ffsd-gallery-modal__nav {
        top: auto;
        bottom: 14px;
        transform: none;
    }

    .ffsd-gallery-modal__nav--prev {
        left: 14px;
    }

    .ffsd-gallery-modal__nav--next {
        right: 14px;
    }

    .ffsd-loading-modal__dialog {
        width: calc(100vw - 24px);
        margin: 8vh auto;
        padding: 18px;
    }

    .ffsd-compartment-modal__dialog {
        width: calc(100vw - 24px);
        margin: 8vh auto;
        padding: 18px;
        max-height: 82vh;
    }
}
