/**
 * ATT Rental - Car Showcase Carousel Styles
 */

.att-car-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.att-showcase-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px;
    color: #333;
}

.att-showcase-container {
    position: relative;
}

/* Navigation Arrows - ATT branded */
.att-showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #e5161c;
    color: #fff;
    box-shadow: 0 3px 12px rgba(229, 22, 28, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
}

.att-showcase-nav:hover {
    background: #c41318;
    box-shadow: 0 4px 16px rgba(229, 22, 28, 0.5);
    transform: translateY(-50%) scale(1.08);
}

.att-showcase-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.att-showcase-prev {
    left: -21px;
}

.att-showcase-next {
    right: -21px;
}

.att-showcase-nav svg {
    width: 18px;
    height: 18px;
}

/* Track Wrapper - overflow hidden with peek on mobile */
.att-showcase-track-wrapper {
    overflow: hidden;
    min-width: 0;
}

.att-showcase-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    touch-action: pan-y; /* Allow vertical scroll, capture horizontal for swipe */
}

/* Car Card */
.att-showcase-card {
    flex-shrink: 0;
    padding: 0 8px;
    box-sizing: border-box;
}

/* Entire card is a link */
a.att-showcase-card-inner {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

a.att-showcase-card-inner:hover {
    border-color: #e5161c;
    box-shadow: 0 8px 24px rgba(229, 22, 28, 0.12);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

/* Square image container */
.att-showcase-card-image {
    position: relative;
    width: 100%;
    padding-top: 85%;
    overflow: hidden;
    background: #f7f7f7;
}

.att-showcase-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

a.att-showcase-card-inner:hover .att-showcase-card-image img {
    transform: scale(1.05);
}

.att-showcase-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #aaa;
    font-size: 13px;
}

/* Card Body */
.att-showcase-card-body {
    text-align: center;
    padding: 14px 12px 18px;
}

/* Car name - smaller, secondary */
.att-showcase-card-name {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin: 0 0 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Price Display - focal point */
.att-showcase-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.att-showcase-from {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.att-showcase-price-amount {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: #e5161c;
    padding: 5px 12px;
    border-radius: 4px;
}

.att-showcase-price-period {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.att-showcase-price-na {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* Book Now Button */
.att-showcase-book-btn {
    display: inline-block;
    padding: 9px 24px;
    background: #e5161c;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

a.att-showcase-card-inner:hover .att-showcase-book-btn {
    background: #c41318;
}

/* Loading State */
.att-showcase-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 60px 20px;
    width: 100%;
    color: #666;
}

.att-showcase-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #e5161c;
    border-radius: 50%;
    animation: att-showcase-spin 0.8s linear infinite;
}

@keyframes att-showcase-spin {
    to { transform: rotate(360deg); }
}

/* Error/Empty States */
.att-showcase-error,
.att-showcase-empty {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    width: 100%;
}

.att-showcase-error {
    color: #dc3545;
}

/* ============================================================
   TABLET
   ============================================================ */
@media (max-width: 991px) {
    .att-showcase-price-amount {
        font-size: 30px;
    }

    .att-showcase-nav {
        width: 38px;
        height: 38px;
    }

    .att-showcase-prev { left: -19px; }
    .att-showcase-next { right: -19px; }

    .att-car-showcase {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ============================================================
   MOBILE - Peek layout: center card + partial left/right
   ============================================================ */
@media (max-width: 575px) {
    .att-car-showcase {
        padding: 20px 0;
    }

    /* Let cards overflow slightly so neighbors peek in */
    .att-showcase-track-wrapper {
        overflow: visible;
    }

    /* Clip the outer container instead */
    .att-showcase-container {
        overflow: hidden;
        padding: 0 12px;
    }

    /* Cards narrower so ~15% peeks on each side */
    .att-showcase-card {
        padding: 0 6px;
    }

    .att-showcase-card-image {
        padding-top: 75%;
    }

    .att-showcase-card-name {
        font-size: 11px;
    }

    .att-showcase-price-amount {
        font-size: 26px;
        padding: 4px 10px;
    }

    .att-showcase-book-btn {
        padding: 8px 18px;
        font-size: 10px;
    }

    .att-showcase-card-body {
        padding: 10px 8px 14px;
    }

    /* Nav buttons on top of cards, smaller and branded */
    .att-showcase-nav {
        width: 34px;
        height: 34px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .att-showcase-prev { left: 16px; }
    .att-showcase-next { right: 16px; }

    .att-showcase-nav svg {
        width: 15px;
        height: 15px;
    }
}
