/* WooCommerce Booking Results - Mobile Optimized Version */

/* Container */
.wbs-results-container {
    width: 100%;
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 20px;
}

/* Search Summary */
.wbs-search-summary {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wbs-summary-content {
    position: relative;
}

.wbs-search-summary h2 {
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wbs-summary-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    color: #374151;
    font-size: 14px;
}

.wbs-summary-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wbs-summary-item strong {
    font-weight: 600;
    color: #111827;
    font-size: 20px;
}

.wbs-summary-divider {
    color: #d1d5db;
    font-weight: 300;
}

.wbs-modify-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: #212168;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.wbs-modify-search:hover {
    background: #fef3e7;
    border-color: #212168;
    color: #212168;
}

/* No Results */
.wbs-no-results {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wbs-no-results h2 {
    font-size: 20px;
    margin: 0 0 12px 0;
    color: #111827;
    font-weight: 600;
}

.wbs-no-results p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Section Headers */
.wbs-section-header {
    margin-bottom: 20px;
}

.wbs-section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.wbs-section-header p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}

/* Recommended Section */
.wbs-recommended-section {
    margin-bottom: 32px;
}

/* Vehicle Cards */
.wbs-vehicle-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
}

.wbs-vehicle-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Recommended Vehicle */
.wbs-vehicle-card.wbs-recommended {
    border-color: #212168;
    border-width: 2px;
    background: #ffffff;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    width: fit-content;
    min-height: 175px !important;
    height: fit-content;
    max-height: fit-content;
}

.wbs-recommended-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #212168;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wbs-vehicle-icon {
    font-size: 36px;
    line-height: 1;
    color: #374151;
}

.wbs-vehicle-details h3,
.wbs-vehicle-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.wbs-vehicle-capacity {
    margin-bottom: 8px;
}

.wbs-capacity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #54779270;
    color: #2a2828;
}

.wbs-capacity-badge.wbs-capacity-fits {
    background: #54779270;
    color: #2a2828;
}

.wbs-capacity-badge.wbs-capacity-partial {
    background: #54779270;
    color: #2a2828;
}

.wbs-vehicle-info {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

.wbs-vehicle-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Terms & Conditions */
.wbs-vehicle-terms {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.wbs-vehicle-terms details {
    font-size: 12px;
}

.wbs-vehicle-terms summary {
    cursor: pointer;
    color: #6b7280;
    font-weight: 500;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    transition: color 0.15s;
}

.wbs-vehicle-terms summary:hover {
    color: #374151;
}

.wbs-vehicle-terms summary::marker {
    color: #9ca3af;
}

.wbs-vehicle-terms p {
    margin: 8px 0 0 0;
    padding: 10px 12px;
    background: #f9fafb;
    border-left: 2px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: #4b5563;
}

/* Vehicle Pricing */
.wbs-vehicle-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.wbs-price {
    text-align: right;
}

.wbs-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.wbs-select-vehicle,
.button.wbs-select-vehicle {
    background: #212168 !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
}

.wbs-select-vehicle:hover,
.button.wbs-select-vehicle:hover {
    background: #e87214 !important;
    color: #ffffff !important;
}

/* Additional Vehicles Grid */
.wbs-additional-section {
    margin-top: 32px;
}

.wbs-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.wbs-vehicle-card.wbs-selectable {
    display: flow;
    grid-template-columns: auto;
    gap: 12px;
    align-items: start;
    padding: 16px;
    cursor: pointer;
}

.wbs-vehicle-card.wbs-selectable:hover {
    border-color: #212168;
}

.wbs-vehicle-card.wbs-fits-all {
    border-color: #547792;
}

.wbs-vehicle-card.wbs-fits-all:hover {
    border-color: #10b981;
}

/* Vehicle Checkbox */
.wbs-vehicle-checkbox {
    position: relative;
    display: flex;
    align-items: center;
}

.wbs-vehicle-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #212168;
    border-radius: 4px;
}

.wbs-vehicle-card.wbs-selectable .wbs-vehicle-icon {
    font-size: 28px;
}

.wbs-vehicle-card.wbs-selectable .wbs-vehicle-details h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.wbs-vehicle-price {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-top: 6px;
}

/* Selection Summary */
.wbs-selection-summary {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: sticky;
    bottom: 20px;
    z-index: 10;
}

.wbs-summary-left {
    flex: 1;
}

.wbs-selected-count {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.wbs-selected-count strong {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.wbs-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wbs-selected-item {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #4b5563;
    font-weight: 500;
}

.wbs-summary-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wbs-total-price {
    text-align: right;
}

.wbs-total-price span {
    display: block;
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.wbs-total-price strong {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

#wbs-add-to-cart-multiple,
.button#wbs-add-to-cart-multiple {
    background: #212168 !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 12px 32px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

#wbs-add-to-cart-multiple:hover,
.button#wbs-add-to-cart-multiple:hover {
    background: #e87214 !important;
    color: #ffffff !important;
}

#wbs-add-to-cart-multiple:disabled,
.button#wbs-add-to-cart-multiple:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #9ca3af !important;
}

/* Capacity Warning */
.wbs-capacity-warning {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
    color: #92400e;
}

/* ========================================
   MOBILE OPTIMIZATIONS - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .wbs-results-container {
        max-width: 900px;
    }
    
    .wbs-vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .wbs-vehicle-card.wbs-recommended {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .wbs-vehicle-pricing {
        align-items: center;
    }
    
    .wbs-price {
        text-align: center;
    }
}

/* ========================================
   MOBILE OPTIMIZATIONS - MEDIUM PHONES
   ======================================== */
@media (max-width: 768px) {
    .wbs-results-container {
        padding: 0 16px;
        margin: 16px auto;
    }
    
    /* Search Summary - Mobile Optimized */
    .wbs-search-summary {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .wbs-search-summary h2 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .wbs-summary-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 13px;
    }
    
    .wbs-summary-divider {
        display: none;
    }
    
    .wbs-modify-search {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    /* Section Headers - Mobile */
    .wbs-section-header {
        margin-bottom: 16px;
    }
    
    .wbs-section-header h2 {
        font-size: 16px;
    }
    
    /* Recommended Vehicle Card - Mobile */
    .wbs-vehicle-card.wbs-recommended {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 16px;
        text-align: center;
    }
    
    .wbs-recommended-badge {
        top: 8px;
        right: 8px;
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .wbs-vehicle-icon {
        margin: 0 auto;
        font-size: 48px;
    }
    
    .wbs-vehicle-details {
        text-align: center;
    }
    
    .wbs-vehicle-details h3 {
        font-size: 20px;
    }
    
    .wbs-vehicle-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }
    
    .wbs-vehicle-pricing {
        align-items: center;
        width: 100%;
    }
    
    .wbs-price {
        text-align: center;
        width: 100%;
    }
    
    .wbs-price-amount {
        font-size: 28px;
    }
    
    .wbs-select-vehicle,
    .button.wbs-select-vehicle {
        width: 100%;
        padding: 12px 24px !important;
        font-size: 15px !important;
    }
    
    /* Additional Vehicles Grid - Mobile */
    .wbs-vehicles-grid {
        grid-template-columns: max-content;
        gap: 12px;
        padding-bottom: 30px!important;
    }
    
    /* Selection Summary - Mobile */
    .wbs-selection-summary {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 16px;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
        margin: 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }
    
    .wbs-summary-left {
        text-align: center;
    }
    
    .wbs-selected-list {
        justify-content: center;
    }
    
    .wbs-summary-right {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .wbs-total-price {
        text-align: center;
    }
    
    #wbs-add-to-cart-multiple,
    .button#wbs-add-to-cart-multiple {
        width: 100%;
        padding: 14px 24px !important;
        font-size: 15px !important;
    }
    
    /* No Results - Mobile */
    .wbs-no-results {
        padding: 32px 20px;
    }
    
    .wbs-no-results h2 {
        font-size: 18px;
    }
}

/* ========================================
   MOBILE OPTIMIZATIONS - SMALL PHONES
   ======================================== */
@media (max-width: 480px) {
    .wbs-results-container {
        padding: 0 12px;
        margin: 12px auto;
    }
    
    /* Smaller Section Headers */
    .wbs-section-header h2 {
        font-size: 15px;
    }
    
    .wbs-section-header p {
        font-size: 12px;
    }
    
    /* Compact Vehicle Cards */
    .wbs-vehicle-card {
        padding: 14px;
    }
    
    .wbs-vehicle-card.wbs-recommended {
        padding: 16px 12px;
    }
    
    .wbs-vehicle-details h3,
    .wbs-vehicle-details h4 {
        font-size: 16px;
    }
    
    .wbs-vehicle-icon {
        font-size: 40px;
    }
    
    /* Selectable Cards Optimization */
    .wbs-vehicle-card.wbs-selectable {
        grid-template-columns: auto 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .wbs-vehicle-checkbox {
        grid-row: 1;
        grid-column: 1;
        align-self: start;
        margin-top: 4px;
    }
    
    .wbs-vehicle-card.wbs-selectable .wbs-vehicle-icon {
        grid-row: 1;
        grid-column: 2;
        font-size: 32px;
        justify-self: start;
    }
    
    .wbs-vehicle-card.wbs-selectable .wbs-vehicle-details {
        grid-row: 2;
        grid-column: 1 / -1;
        text-align: left;
    }
    
    .wbs-vehicle-card.wbs-selectable .wbs-vehicle-details h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .wbs-vehicle-price {
        font-size: 15px;
        margin-top: 4px;
    }
    
    /* Capacity Badges */
    .wbs-capacity-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .wbs-vehicle-info {
        font-size: 11px;
        gap: 6px;
    }
    
    /* Price Display */
    .wbs-price-amount {
        font-size: 24px;
    }
    
    /* Selection Summary - Extra Compact */
    .wbs-selection-summary {
        padding: 12px;
    }
    
    .wbs-selected-count {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .wbs-selected-count strong {
        font-size: 16px;
    }
    
    .wbs-selected-item {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .wbs-total-price span {
        font-size: 10px;
    }
    
    .wbs-total-price strong {
        font-size: 20px;
    }
    
    /* Terms & Conditions */
    .wbs-vehicle-terms summary {
        font-size: 11px;
    }
    
    .wbs-vehicle-terms p {
        font-size: 11px;
        padding: 8px 10px;
    }
    
    /* Capacity Warning */
    .wbs-capacity-warning {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* ========================================
   EXTRA SMALL DEVICES
   ======================================== */
@media (max-width: 360px) {
    .wbs-results-container {
        padding: 0 10px;
    }
    
    .wbs-search-summary {
        padding: 12px;
    }
    
    .wbs-vehicle-card {
        padding: 12px;
    }
    
    .wbs-vehicle-details h3,
    .wbs-vehicle-details h4 {
        font-size: 15px;
    }
    
    .wbs-price-amount {
        font-size: 22px;
    }
    
    .wbs-select-vehicle,
    .button.wbs-select-vehicle {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .wbs-modify-search {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .wbs-select-vehicle,
    .button.wbs-select-vehicle {
        min-height: 44px;
    }
    
    .wbs-vehicle-checkbox input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }
    
    .wbs-vehicle-terms summary {
        padding: 8px 0;
    }
    
    /* Remove hover states on touch devices */
    .wbs-vehicle-card:hover {
        border-color: #e5e7eb;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .wbs-vehicle-card.wbs-selectable:hover {
        border-color: #e5e7eb;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.wbs-vehicle-card {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .wbs-search-summary,
    .wbs-vehicle-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
        break-inside: avoid;
    }
    
    .wbs-modify-search,
    .wbs-select-vehicle,
    #wbs-add-to-cart-multiple,
    .wbs-vehicle-checkbox {
        display: none !important;
    }
    
    .wbs-selection-summary {
        bottom: auto;
    }
}
.wbs-vehicle-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f5f5f5;
}

.wbs-vehicle-photo {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    transition: transform 0.3s ease;
    background-color: white;
}

.wbs-vehicle-card:hover .wbs-vehicle-photo {
    transform: scale(1.05);
}

.wbs-vehicle-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Recommended card - larger image */
.wbs-recommended .wbs-vehicle-image {
    max-height: fit-content;
    min-height: revert;
    background-color: white;
}

/* Grid cards - slightly smaller */
.wbs-vehicles-grid .wbs-vehicle-image  {
    height: fit-content;
    align-content: center;
    background-color: white;
}