/* Compact, consistent public fleet cards. */
body:not(.admin) .fleet-grid,
body:not(.admin) .rc-fleet-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    min-width: 0;
}

body:not(.admin) .fleet-product-card,
body:not(.admin) .rc-fleet .rc-card {
    display: flex;
    height: 100%;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 32, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}

body:not(.admin) .fleet-product-card:hover,
body:not(.admin) .rc-fleet .rc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(16, 24, 32, .14);
}

body:not(.admin) .fleet-product-card__media,
body:not(.admin) .rc-fleet .rc-card-photo {
    display: flex;
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    border-radius: 0;
    background: #f8fafc;
}

body:not(.admin) .fleet-product-card__media > a,
body:not(.admin) .rc-fleet .rc-card-photo > img {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
}

body:not(.admin) .fleet-product-card__media img,
body:not(.admin) .rc-fleet .rc-card-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    transform: none;
}

body:not(.admin) .fleet-product-card__body,
body:not(.admin) .rc-fleet .rc-card-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

body:not(.admin) .fleet-product-card__body h3,
body:not(.admin) .rc-fleet .rc-card-body h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.3;
}

body:not(.admin) .fleet-product-card__description,
body:not(.admin) .rc-fleet .rc-card-description {
    display: -webkit-box;
    min-height: 4.65em;
    margin: 0;
    overflow: hidden;
    color: #64748b;
    font-size: .92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

body:not(.admin) .fleet-product-card__specs {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px;
    padding: 10px 0;
    border-top: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
    font-size: .76rem;
}

body:not(.admin) .fleet-product-card__specs span,
body:not(.admin) .fleet-product-card__highlights span,
body:not(.admin) .rc-card-highlights span {
    max-width: 100%;
    overflow: hidden;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f5f6;
    color: #43505b;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.admin) .fleet-product-card__highlights,
body:not(.admin) .rc-card-highlights {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
}

body:not(.admin) .fleet-product-card .fleet-card__footer {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

body:not(.admin) .fleet-product-card .cab-price {
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

body:not(.admin) .fleet-product-card .cab-price b {
    color: #101820;
    font-size: 1rem;
}

body:not(.admin) .fleet-product-card .fleet-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body:not(.admin) .fleet-product-card .fleet-card__actions .btn {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: .82rem;
    text-align: center;
    text-decoration: none;
}

body:not(.admin) .fleet-product-card .fleet-card__actions .btn:first-child {
    border: 1px solid #dce2e6;
    background: #fff;
    color: #101820;
}

body:not(.admin) .rc-fleet .rc-card-foot {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

body:not(.admin) .rc-fleet .rc-card-price {
    min-height: 2.5em;
}

body:not(.admin) .rc-fleet .rc-card-btn {
    min-height: 44px;
    justify-content: center;
}

body:not(.admin) .rc-fleet .rc-card-enquire,
body:not(.admin) .rc-fleet .rc-card-details {
    min-height: 36px;
    margin-top: 0;
}

body:not(.admin) .fleet-product-card a:focus-visible,
body:not(.admin) .fleet-product-card button:focus-visible,
body:not(.admin) .rc-fleet .rc-card a:focus-visible,
body:not(.admin) .rc-fleet .rc-card button:focus-visible {
    outline: 3px solid #e58d16;
    outline-offset: 3px;
}

@media (max-width: 1199px) {
    body:not(.admin) .fleet-grid,
    body:not(.admin) .rc-fleet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    body:not(.admin) .fleet-grid,
    body:not(.admin) .rc-fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body:not(.admin) .fleet-grid,
    body:not(.admin) .rc-fleet-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    body:not(.admin) .fleet-product-card__body,
    body:not(.admin) .rc-fleet .rc-card-body { padding: 16px; }

    /* Mobile home page card sliders — horizontal auto-rotating rows */
    body:not(.admin) .rc-fleet-grid.is-mobile-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -ms-overflow-style: none;
        scrollbar-width: none;
        gap: 16px;
        padding: 2px;
        cursor: grab;
    }
    body:not(.admin) .rc-fleet-grid.is-mobile-slider:active { cursor: grabbing; }
    body:not(.admin) .rc-fleet-grid.is-mobile-slider::-webkit-scrollbar { display: none; }

    body:not(.admin) .rc-fleet-grid.is-mobile-slider > .rc-card {
        flex: 0 0 calc(86% - 8px);
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        scroll-margin-inline: 2px;
        cursor: grab;
        transition: none;
    }
    body:not(.admin) .rc-fleet-grid.is-mobile-slider > .rc-card:hover {
        transform: none;
        box-shadow: 0 10px 28px rgba(16, 24, 32, .08);
    }

    /* Compact slider controls — one row, centered below the track */
    body:not(.admin) .home-slider-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 14px;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    body:not(.admin) .home-slider-arrow {
        display: inline-grid;
        place-items: center;
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .55);
        border-radius: 50%;
        background: rgba(255, 255, 255, .75);
        color: #101820;
        font-size: 1.15rem;
        line-height: 1;
        cursor: pointer;
        touch-action: manipulation;
        box-shadow: 0 2px 6px rgba(16, 24, 32, .12);
        transition: border-color .2s ease, color .2s ease, background .2s ease;
    }
    body:not(.admin) .home-slider-arrow:hover,
    body:not(.admin) .home-slider-arrow:focus-visible {
        border-color: var(--rc-orange, #ff4f00);
        color: var(--rc-orange, #ff4f00);
        background: rgba(255, 255, 255, .95);
    }
    body:not(.admin) .home-slider-arrow:focus-visible {
        outline: 2px solid var(--rc-orange, #ff4f00);
        outline-offset: 2px;
    }

    /* Compact slider dots — mobile only */
    body:not(.admin) .home-slider-dots {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }
    body:not(.admin) .home-slider-dot {
        width: 7px;
        height: 7px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(16, 24, 32, .22);
        cursor: pointer;
        touch-action: manipulation;
        transition: background-color .25s ease, width .25s ease, border-radius .25s ease;
    }
    body:not(.admin) .home-slider-dot.is-active {
        width: 20px;
        border-radius: 8px;
        background: var(--rc-orange, #ff4f00);
    }
    body:not(.admin) .home-slider-dot:focus-visible {
        outline: 2px solid var(--rc-orange, #ff4f00);
        outline-offset: 3px;
        border-radius: 3px;
    }
}

/* Desktop (≥601px): the homepage card sliders above are mobile-only; hide
   their prev/next arrows, dots and the controls row they live in. Mobile
   (≤600px) keeps them exactly as before. */
@media (min-width: 601px) {
    body:not(.admin) .home-slider-controls {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.admin) .rc-fleet-grid.is-mobile-slider { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.admin) .fleet-product-card,
    body:not(.admin) .rc-fleet .rc-card { transition: none; }
}

/* Homepage-only compact preview cards. */
body:not(.admin) .rc-fleet .home-vehicle-card,
body:not(.admin) .rc-fleet .home-package-card {
    height: auto;
    min-height: 0;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(16, 24, 32, .08);
}

body:not(.admin) .rc-fleet .home-vehicle-card__media,
body:not(.admin) .rc-fleet .home-package-card__media {
    flex: 0 0 auto;
    aspect-ratio: 16 / 10;
    padding: 10px;
    background: #f8fafc;
}

body:not(.admin) .rc-fleet .home-vehicle-card__media img,
body:not(.admin) .rc-fleet .home-package-card__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

body:not(.admin) .rc-fleet .home-vehicle-card__body,
body:not(.admin) .rc-fleet .home-package-card__body {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
    padding: 16px 18px 18px;
}

body:not(.admin) .rc-fleet .home-vehicle-card__type {
    align-self: flex-start;
    max-width: 100%;
    overflow: hidden;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff0dc;
    color: #93430d;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

body:not(.admin) .rc-fleet .home-vehicle-card__title-row,
body:not(.admin) .rc-fleet .home-package-card__title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body:not(.admin) .rc-fleet .home-vehicle-card__title-row h3,
body:not(.admin) .rc-fleet .home-package-card__title-row h3 {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    font-size: 1.05rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

body:not(.admin) .rc-fleet .home-vehicle-card__whatsapp {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid #cce8d7;
    border-radius: 50%;
    background: #f0fbf4;
    color: #16864b;
}

body:not(.admin) .rc-fleet .home-vehicle-card__whatsapp svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

body:not(.admin) .rc-fleet .home-vehicle-card__specs,
body:not(.admin) .rc-fleet .home-package-card__specs {
    display: -webkit-box;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #64717c;
    font-size: .8rem;
    line-height: 1.5;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

body:not(.admin) .rc-fleet .home-vehicle-card__price {
    margin: 0;
    color: #101820;
    font-size: .96rem;
    font-weight: 800;
    line-height: 1.4;
}

body:not(.admin) .rc-fleet .home-vehicle-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 0;
    padding-top: 7px;
}

body:not(.admin) .rc-fleet .home-vehicle-card__actions > * {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

body:not(.admin) .rc-fleet .home-vehicle-card__actions .rc-card-btn {
    background: var(--rc-orange, #ff4f00);
    color: #fff;
}

body:not(.admin) .rc-fleet .home-vehicle-card__details {
    border: 1px solid #dce2e6;
    background: #fff;
    color: #101820;
}

body:not(.admin) .rc-fleet .home-vehicle-card a:focus-visible,
body:not(.admin) .rc-fleet .home-vehicle-card button:focus-visible {
    outline: 3px solid #e58d16;
    outline-offset: 3px;
}

@media (max-width: 430px) {
    body:not(.admin) .rc-fleet .home-vehicle-card__specs {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* Compact homepage travel guide previews. */
body:not(.admin) .rc-blogs .home-guides-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    min-width: 0;
}

body:not(.admin) .rc-blogs .home-guide-card {
    display: flex;
    height: 100%;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 24, 32, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}

body:not(.admin) .rc-blogs .home-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(16, 24, 32, .14);
}

body:not(.admin) .rc-blogs .home-guide-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    background: #f8fafc;
}

body:not(.admin) .rc-blogs .home-guide-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

body:not(.admin) .rc-blogs .home-guide-card__body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
    padding: 17px 18px 18px;
}

body:not(.admin) .rc-blogs .home-guide-card__body h3 {
    display: -webkit-box;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 1.02rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

body:not(.admin) .rc-blogs .home-guide-card__body time {
    color: #64717c;
    font-size: .78rem;
}

body:not(.admin) .rc-blogs .home-guide-card__action {
    margin-top: auto;
    padding-top: 8px;
}

body:not(.admin) .rc-blogs .home-guide-card__action a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1.5px solid #D7A84A;
    border-radius: 9px;
    background: transparent;
    color: #101820;
    font-size: .84rem;
    font-weight: 750;
    text-decoration: none;
    transition: background-color .2s ease, box-shadow .2s ease;
}

body:not(.admin) .rc-blogs .home-guide-card__action a:hover {
    background: rgba(215, 168, 74, .12);
    box-shadow: 0 8px 20px rgba(215, 168, 74, .18);
    color: #101820;
}

body:not(.admin) .rc-blogs .home-guides-all {
    display: flex;
    justify-content: center;
    margin: 22px auto 0;
}

body:not(.admin) .rc-blogs .home-guides-all a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #dce2e6;
    border-radius: 9px;
    background: #fff;
    color: #101820;
    font-size: .84rem;
    font-weight: 700;
}

body:not(.admin) .rc-blogs .home-guide-card a:focus-visible,
body:not(.admin) .rc-blogs .home-guides-all a:focus-visible {
    outline: 3px solid #e58d16;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    body:not(.admin) .rc-blogs .home-guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body:not(.admin) .rc-blogs .home-guides-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.admin) .rc-blogs .home-guide-card { transition: none; }
}

/* Public listing cards retain matched rows. Homepage cards size to their content. */
body:not(.admin) .fleet-grid {
    grid-auto-rows: 1fr;
    align-items: stretch;
}

body:not(.admin) .rc-fleet-grid {
    grid-auto-rows: auto;
    align-items: start;
}

body:not(.admin) .fleet-product-card {
    height: 100%;
    min-height: 0;
}

body:not(.admin) .fleet-product-card__media,
body:not(.admin) .rc-fleet .home-vehicle-card__media {
    flex: 0 0 auto;
    aspect-ratio: 16 / 10;
}

body:not(.admin) .fleet-product-card__media img,
body:not(.admin) .rc-fleet .home-vehicle-card__media img {
    object-fit: contain !important;
    object-position: center !important;
}

body:not(.admin) .fleet-product-card__body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
}

body:not(.admin) .fleet-product-card__description {
    min-height: 3.1em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

body:not(.admin) .fleet-product-card .fleet-card__footer {
    margin-top: auto;
}

body:not(.admin) .fleet-product-card .fleet-card__actions,
body:not(.admin) .rc-fleet .home-vehicle-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

body:not(.admin) .fleet-product-card .fleet-card__actions .btn,
body:not(.admin) .rc-fleet .home-vehicle-card__actions > * {
    box-sizing: border-box;
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

body:not(.admin) .fleet-product-card .fleet-card__actions > :only-child,
body:not(.admin) .rc-fleet .home-vehicle-card__actions > :only-child {
    grid-column: 1 / -1;
}

body:not(.admin) .fleet-product-card .fleet-card__actions .fleet-card__call,
body:not(.admin) .rc-fleet .home-vehicle-card__actions .vehicle-card__call {
    background: #ff5a1f;
    color: #fff;
}

body:not(.admin) .fleet-product-card .fleet-card__actions .wa-btn,
body:not(.admin) .rc-fleet .home-vehicle-card__actions .home-vehicle-card__whatsapp-link {
    background: #FFFFFF;
    color: #101820;
}

body:not(.admin) .fleet-product-card .fleet-card__actions .wa-btn svg,
body:not(.admin) .rc-fleet .home-vehicle-card__actions .home-vehicle-card__whatsapp-link svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

body:not(.admin) .fleet-product-card .fleet-card__actions .btn:not(.public-contact-btn):hover,
body:not(.admin) .rc-fleet .home-vehicle-card__actions > :not(.public-contact-btn):hover {
    filter: brightness(.95);
}

@media (max-width: 360px) {
    body:not(.admin) .fleet-product-card .fleet-card__actions,
    body:not(.admin) .rc-fleet .home-vehicle-card__actions { gap: 8px; }
    body:not(.admin) .fleet-product-card .fleet-card__actions .btn,
    body:not(.admin) .rc-fleet .home-vehicle-card__actions > * {
        min-height: 48px;
        padding-inline: 8px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    body:not(.admin) .fleet-grid,
    body:not(.admin) .rc-fleet-grid { grid-template-columns: minmax(0, 1fr); }
}

body:not(.admin) .rc-fleet .home-package-card__media {
    background: #fff;
    aspect-ratio: auto;
    padding: 0;
}
body:not(.admin) .rc-fleet .home-package-card__media > img {
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
}
body:not(.admin) .rc-fleet .home-package-card__destination {
    align-self: flex-start;
    max-width: 100%;
    overflow: hidden;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff0dc;
    color: #93430d;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
body:not(.admin) .rc-fleet .home-package-card__whatsapp-link {
    background: #fff;
    border: 1.5px solid #d7a84a;
    color: #101820;
}
body:not(.admin) .rc-fleet .home-package-card__whatsapp-link:hover {
    background: #fff8ec;
}
body:not(.admin) .rc-fleet .home-package-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
    padding-top: 7px;
}

body:not(.admin) .rc-fleet .home-package-card__actions > * {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 8px;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

body:not(.admin) .rc-fleet .home-package-card__actions > * {
    background: #fff;
    border: 1.5px solid #d7a84a;
    color: #101820;
    gap: 6px;
}

body:not(.admin) .rc-fleet .home-package-card__actions > * svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

body:not(.admin) .rc-fleet .home-package-card__actions .home-package-card__whatsapp-link svg {
    color: #25d366;
}

body:not(.admin) .rc-fleet .home-package-card__actions > *:hover {
    background: #fff8ec;
}
