/* Single Listing Styles - Complete CSS with Touch-Enabled Carousel - UPDATED */
.lorry-single-listing-wrapper {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.lorry-single-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 15px;
}

/* Header Section */
.lorry-single-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.lorry-single-title-section {
    flex: 1 1 60%;
    padding-right: 20px;
}

.lorry-single-title {
    font-size: 38px;
    margin: 0 0 10px;
    color: #222 !important;
    line-height: 1.2;
    font-weight: 500;
}

.lorry-single-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.lorry-single-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.lorry-single-status.sold {
    background-color: #e53935;
    color: white;
}

.lorry-single-status.available {
    background-color: #43a047;
    color: white;
    display: none;
}

/* SIMPLIFIED PRICE SECTION - Orange Text Only */
.lorry-single-price-section {
    flex: 1 1 40%;
    text-align: right;
}

/* Market Price Styling */
.lorry-single-market-price {
    color: #888;
    font-size: 14px;
    margin-bottom: 6px;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.lorry-single-market-price span {
    font-weight: 600;
}

/* Normal/Offer Price Styling - Orange Text with Padding */
.lorry-single-normal-price {
    display: inline-block;
    background-color: darkorange;
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    padding: 8px 16px;
    border-radius: 6px;
}

.lorry-single-normal-price span {
    color: white;
}

/* Legacy support for original price styling */
.lorry-single-original-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin-bottom: 5px;
}

.lorry-single-offer-price {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* NEW: Special Offer Button Styles */
.special-offer-button {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #dc3545 !important;
    color: white !important;
    text-decoration: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    border: none !important;
    cursor: pointer !important;
}

/* UPDATED: Special Offer Button Hover - Darker Red */
.special-offer-button:hover {
    background-color: #b91d2a !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.4) !important;
}

.special-offer-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3) !important;
}

/* Content Section */
.lorry-single-content {
    display: grid;
    padding: 30px;
    width: 100%;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    box-sizing: border-box;
}

.lorry-single-left-column,
.lorry-single-right-column {
    /* Remove flex properties, let grid handle sizing */
}

/* Gallery - ENHANCED STYLES */
.lorry-single-gallery {
    position: relative;
    margin-bottom: 30px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}

.lorry-single-gallery-enhanced {
    width: 100%;
}

/* Main Gallery Container - Fixed Aspect Ratio */
.main-gallery-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    /* Set fixed aspect ratio - 16:9 (you can change this) */
    aspect-ratio: 3/2;
}

.main-gallery-image {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
    /* CRITICAL: Use object-fit cover to crop consistently */
    object-fit: cover;
    object-position: center;
}

.main-gallery-image:hover {
    transform: scale(1.02);
}

/* Gallery counter positioning remains the same */
.gallery-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
}

.gallery-nav-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px; 
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.gallery-nav-thumb:hover {
    border-color: #000;
    transform: scale(1.05);
}

.gallery-nav-thumb.active {
    border-color: orange;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 768px) {
    .main-gallery-container {
        /* Slightly taller aspect ratio for mobile */
        aspect-ratio: 3/2;
    }
    
    .gallery-nav-thumb {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .main-gallery-container {
        /* Even taller for very small screens */
        aspect-ratio: 3/2;
    }
    
    .gallery-nav-thumb {
        width: 50px;
        height: 38px;
    }
}

/* Alternative aspect ratios - uncomment the one you prefer */

/* Option 1: Classic 4:3 aspect ratio 
.main-gallery-container {
    aspect-ratio: 4/3;
}
*/

/* Option 2: Square aspect ratio 
.main-gallery-container {
    aspect-ratio: 1/1;
}
*/

/* Option 3: Wide cinematic 21:9 
.main-gallery-container {
    aspect-ratio: 21/9;
}
*/

/* Option 4: Photography standard 3:2 
.main-gallery-container {
    aspect-ratio: 3/2;
}
*/

/* Lightbox Styles */
.lorry-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.lorry-lightbox.active {
    display: flex;
}

/* FIXED: Lightbox content container with proper sizing */
.lightbox-content {
    position: relative;
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* FIXED: Image styling to properly fit within container */
.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0;
    /* Ensure image never exceeds container */
    flex-shrink: 1;
}

/* Close button - positioned outside content area */
.lightbox-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 24px !important;
    font-weight: bold !important;
    cursor: pointer;
    padding: 0 !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10001 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #000 !important;
    border-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.lightbox-close:active {
    transform: scale(0.95) !important;
}

.lightbox-close.style-2 {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.lightbox-close.style-2:hover {
    background: #ff4444 !important;
    color: white !important;
    transform: scale(1.1) rotate(90deg) !important;
}

/* Small desktop screens - adjust container size */
@media (max-height: 700px) and (min-width: 769px) {
    .lightbox-content {
        width: calc(100vw - 60px);
        height: calc(100vh - 80px);
        max-width: calc(100vw - 60px);
        max-height: calc(100vh - 80px);
    }
    
    .lightbox-close {
        top: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 22px !important;
    }
}

/* Very small desktop height */
@media (max-height: 600px) and (min-width: 769px) {
    .lightbox-content {
        width: calc(100vw - 80px);
        height: calc(100vh - 100px);
        max-width: calc(100vw - 80px);
        max-height: calc(100vh - 100px);
    }
    
    .lightbox-close {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
}

/* Tablet styles */
@media (max-width: 768px) {
    .lorry-lightbox {
        padding: 15px;
    }
    
    .lightbox-content {
        width: calc(100vw - 30px);
        height: calc(100vh - 120px);
        max-width: calc(100vw - 30px);
        max-height: calc(100vh - 120px);
    }
    
    .lightbox-close {
        top: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 22px !important;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .lorry-lightbox {
        padding: 10px;
    }
    
    .lightbox-content {
        width: calc(100vw - 20px);
        height: calc(100vh - 140px);
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 140px);
        min-height: 200px;
    }
    
    .lightbox-close {
        top: 10px !important;
        right: 10px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}

/* Focus and accessibility */
.lightbox-close:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .lightbox-close {
        transition: none;
    }
    
    .lightbox-close:hover {
        transform: none !important;
    }
}

/* CONDITION AND BODY TYPE BADGES */
.condition-badge, .body-type-badge {
    display: inline-block !important;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

/* Condition-specific colors */
.condition-new {
    background: linear-gradient(135deg, darkviolet, darkviolet);
    position: static !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
}

.condition-used {
    background: linear-gradient(135deg, dimgrey, dimgrey);
    position: static !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
}

.condition-rebuilt {
    background: linear-gradient(135deg, darkorange, darkorange);
    position: static !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
}

.condition-direct-owner {
    background: linear-gradient(135deg, darkgreen, darkgreen);
    position: static !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
}

/* Body type badge */
.body-type-badge {
    background: linear-gradient(135deg, #607D8B, #455A64);
    box-shadow: 0 2px 4px rgba(96, 125, 139, 0.3);
}

.lorry-single-section-title {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.lorry-single-description-block,
.lorry-single-details-block,
.lorry-single-action-block {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.lorry-specs {
    line-height: 0.6;
    color: #444;
}

.lorry-single-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lorry-single-details-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.lorry-single-details-list li:last-child {
    border-bottom: none;
}

.detail-label {
    flex: 0 0 40%;
    font-weight: bold;
    color: #555;
}

.detail-value {
    flex: 0 0 60%;
    color: #333;
}

/* Action Buttons */
.lorry-whatsapp-container,
.lorry-inquiry-container {
    margin-bottom: 20px;
}

.lorry-wwhatsapp-button,
.lorry-inquiry-button,
.lorry-browse-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lorry-wwhatsapp-button {
    background-color: #25D366;
    color: white !important;
}

.lorry-wwhatsapp-button:hover {
    background-color: #128C7E;
    color: white !important;
}

.lorry-inquiry-button {
    background-color: #1976D2;
    color: white !important;
}

.lorry-inquiry-button:hover {
    background-color: #1565C0;
    color: white;
}

.lorry-browse-button {
    background-color: #4CAF50;
    color: white;
    text-align: center;
}

.lorry-browse-button:hover {
    background-color: #388E3C;
}

.whatsapp-icon,
.inquiry-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.whatsapp-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="white" d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>');
    background-size: contain;
}

.inquiry-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="white" d="M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"/></svg>');
    background-size: contain;
}

/* Social Share */
.lorry-share-container {
    margin-top: 20px;
}

.lorry-share-container h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.lorry-share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lorry-share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.lorry-share-buttons a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-whatsapp {
    background-color: #25D366;
}

.share-email {
    background-color: #757575;
}

.lorry-share-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Sold Info */
.lorry-sold-info {
    text-align: center;
    padding: 20px;
}

.lorry-winner-info {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.lorry-other-offers {
    margin-bottom: 15px;
    color: #555;
}

/* SIMPLIFIED PRICE LABELS */
.lorry-price-labels {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.price-label {
    background-color: #4CAF50;
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 1px !important;
    margin-top: 6px !important;
}

.price-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Specific label colors */
.label-below-market {
    background-color: #4CAF50;
}

.label-special-discount {
    background-color: #FF5722;
}

.label-otr {
    background-color: #2196F3;
}

.label-inspection {
    background-color: #9C27B0;
}

/* Modal */
.lorry-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.lorry-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.lorry-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.lorry-modal-close:hover {
    color: #333;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.lorry-submit-button {
    background-color: #1976D2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s;
}

.lorry-submit-button:hover {
    background-color: #1565C0;
}

/* Additional styles for the success message */
.inquiry-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    font-size: 30px;
    margin-bottom: 20px;
}

.inquiry-success h3 {
    margin-top: 0;
    color: #333;
    margin-bottom: 10px;
}

.inquiry-success p {
    color: #666;
    margin-bottom: 20px;
}

#close-modal-btn {
    background-color: #4CAF50;
}

#close-modal-btn:hover {
    background-color: #388E3C;
}

/* UPDATED: Clickable taxonomy link styles */
.clickable-taxonomy-link {
    color: #0073aa;
    text-decoration: none;
    transition: all 0.2s ease;
}

.clickable-taxonomy-link:hover {
    color: #005177;
    text-decoration: none;
    border-bottom: 1px solid #005177;
}

.condition-badge,
.body-type-badge {
    position: none !important;
    border-radius: 5px !important;
}

.condition-badge.clickable,
.body-type-badge.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.condition-badge.clickable:hover,
.body-type-badge.clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* INLINE OFFER BUTTON STYLES */
.price-and-offer-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    justify-content: flex-end;
}

.price-and-offer-container.desktop-order .lorry-single-normal-price {
    order: 2;
}

.price-and-offer-container.desktop-order a,
.price-and-offer-container.desktop-order span {
    order: 1;
}

/* Desktop: Special Offer First, Price Second */
.price-and-offer-container.desktop-order {
    flex-direction: row;
}

/* UPDATED: PEOPLE ALSO SEARCH CAROUSEL STYLES WITH FIXED NAVIGATION */
.people-also-search-section {
    margin-top: 50px;
    margin-bottom: -20px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-left: -15px;
    margin-right: -15px;
    position: relative;
    /*left: calc(-50vw + 50%);*/
    /*width: 100vw;*/
}

.people-also-search-section .container {
    max-width: 100%;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-header p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

/* UPDATED: CAROUSEL CONTAINER WITH NAVIGATION ABOVE */
.carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 0 60px;
    touch-action: manipulation;
}

/* NEW: Navigation header above carousel */
.carousel-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 20px;
}

.carousel-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* UPDATED: Navigation buttons container - now in header, not overlaid */
.carousel-nav-container {
    display: flex;
    gap: 10px;
    position: static;
    top: auto;
    right: auto;
    z-index: 20;
    touch-action: manipulation;
    justify-content: flex-end;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    touch-action: pan-y;
    padding-top: 0;
}

/* MAIN CAROUSEL TRACK WITH IMPROVED TOUCH SUPPORT */
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
    cursor: grab;
    /* CRITICAL: Allow horizontal panning only */
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    position: relative;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track.dragging {
    cursor: grabbing;
    transition: none;
}

/* CAROUSEL ITEMS WITH PROPER TOUCH HANDLING */
.carousel-item {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    pointer-events: auto;
}

/* Ensure all content inside items is touchable */
.carousel-item * {
    pointer-events: auto;
}

.carousel-item a {
    pointer-events: auto;
    touch-action: manipulation;
}

/* UPDATED: NAVIGATION BUTTONS - styled for header position */
.carousel-nav {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: static;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.carousel-nav:hover {
    background: lightgrey;
    color: white;
    border-color: darkorange !important;
    transform: scale(0.9);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.95);
    color: inherit;
    border-color: rgba(0, 0, 0, 0.1);
    transform: none;
}

.carousel-nav i {
    font-size: 14px;
}

/* VEHICLE CARD STYLES */
.related-vehicle-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-vehicle-card.sold {
    opacity: 0.7;
}

.related-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.related-card-image a {
    display: block;
    height: 100%;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-vehicle-card:hover .related-card-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #6c757d;
}

.no-image-placeholder i {
    font-size: 48px;
    margin-bottom: 8px;
}

.no-image-placeholder span {
    font-size: 14px;
    font-weight: 500;
}

.condition-badge-small {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.condition-badge-small.condition-new {
    background-color: #6f42c1;
}

.condition-badge-small.condition-used {
    background-color: #6c757d;
}

.condition-badge-small.condition-rebuilt {
    background-color: #fd7e14;
}

.sold-badge-small {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.related-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-vehicle-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.related-vehicle-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-vehicle-title a:hover {
    color: #007cba;
}

.related-vehicle-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
}

.related-vehicle-details {
    margin-bottom: 15px;
}

.location-detail {
    font-size: 13px;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.location-detail i {
    font-size: 12px;
}

.related-vehicle-price {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.related-vehicle-price .price {
    font-size: 18px;
    font-weight: bold;
    color: darkorange;
}

.view-more-container {
    text-align: center;
    margin-top: 30px;
}

.view-more-button {
    display: inline-block;
    padding: 12px 30px;
    background: darkorange;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-more-button:hover {
    background: #f08400;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

/* Pulse animation for the offer icon */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* COMPREHENSIVE RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .carousel-container {
        padding: 0 50px;
    }
    
    .carousel-item {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
    }
    
    .carousel-nav {
        width: 38px;
        height: 38px;
    }
    
    .carousel-nav i {
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .carousel-container {
        padding: 0 45px;
    }
    
    .carousel-item {
        flex: 0 0 250px;
        min-width: 250px;
        max-width: 250px;
    }
    
    .carousel-track {
        gap: 16px;
    }
    
    .lorry-single-price-section {
        padding: 14px;
    }
    
    .lorry-single-normal-price,
    .lorry-single-offer-price {
        font-size: 34px;
    }
    
    .special-offer-button {
        font-size: 13px !important;
        padding: 7px 14px !important;
    }
}

@media (max-width: 768px) {
    .lorry-single-listing-wrapper {
        padding: 0 2px;
        margin: 20px 2px;
    }
    
    .lorry-single-header {
        flex-direction: column;
        padding: 15px 3px;
        align-items: stretch;
        margin-bottom: -40px;
    }
    
    .lorry-single-content {
        flex-direction: column;
        padding: 15px;
        display: flex;
        grid-template-columns: 1fr;
    }
    
    .lorry-single-title-section,
    .lorry-single-price-section {
        flex: 1 1 100%;
        padding-right: 0;
        text-align: left;
    }
    
    .lorry-single-price-section {
        padding: 16px;
        border-radius: 10px;
        text-align: left;
    }
    
    .lorry-single-left-column,
    .lorry-single-right-column {
        flex: 1 1 100%;
        padding-right: 0;
    }
    
    .lorry-single-description-block,
    .lorry-single-details-block,
    .lorry-single-action-block {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .lorry-single-title {
        font-size: 24px;
    }
    
    .lorry-single-normal-price,
    .lorry-single-offer-price {
        font-size: 28px !important;
        margin-bottom: 10px;
    }
    
    .lorry-single-market-price {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .lorry-price-labels {
        justify-content: flex-start;
    }
    
    .price-label {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .special-offer-button {
        font-size: 10px !important;
        padding: 8px 16px !important;
    }
    
    .lorry-modal-content {
        margin: 10% auto;
        padding: 15px;
        width: 95%;
    }
    
    .gallery-nav-thumb {
        width: 60px;
        height: 60px;
    }
    
    .gallery-thumbnail-nav {
        gap: 8px;
        padding: 5px 0;
    }
    
    .main-gallery-container {
        margin-bottom: 10px;
    }
    
    .condition-badge, .body-type-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .lorry-share-buttons a {
        width: 35px;
        height: 35px;
    }
    
    .lorry-share-buttons a svg {
        width: 18px;
        height: 18px;
    }
    
    /* Mobile: Price First, Special Offer Second */
    .price-and-offer-container.desktop-order {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: flex-start;
        justify-items: center;
        flex-wrap: wrap;
    }
    
    .price-and-offer-container.desktop-order .lorry-single-normal-price {
        order: 1 !important;
    }
    
    .price-and-offer-container.desktop-order a,
    .price-and-offer-container.desktop-order span {
        order: 2 !important;
    }
    
    /* UPDATED: CAROUSEL MOBILE STYLES */
    .people-also-search-section {
        margin-top: 30px;
        padding: 30px 0;
    }
    
    .section-header h3 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    .carousel-container {
        padding: 0 20px;
    }
    
    .carousel-header {
        padding: 0 10px;
        margin-bottom: 12px;
    }
    
    .carousel-title {
        font-size: 16px;
    }
    
    .carousel-item {
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 240px;
    }
    
    .carousel-track {
        gap: 15px;
    }
    
    .related-card-image {
        height: 160px;
    }
    
    .related-card-content {
        padding: 15px;
    }
    
    /* Larger touch targets for mobile navigation */
    .carousel-nav {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .carousel-nav i {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .carousel-container {
        padding: 0 15px;
    }
    
    .carousel-item {
        flex: 0 0 220px;
        min-width: 220px;
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .lorry-single-price-section {
        padding: 14px;
        border-radius: 8px;
    }
    
    .lorry-single-normal-price,
    .lorry-single-offer-price {
        font-size: 18px !important;
        line-height: 1.2;
    }
    
    .lorry-single-market-price {
        font-size: 14px;
    }
    
    .price-label {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .special-offer-button {
        font-size: 10px !important;
        padding: 7px 14px !important;
    }
    
    /* UPDATED: CAROUSEL SMALL MOBILE */
    .carousel-container {
        padding: 0 10px;
    }
    
    .carousel-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    
    .carousel-item {
        flex: 0 0 200px;
        min-width: 200px;
        max-width: 200px;
    }
    
    .carousel-track {
        gap: 12px;
    }
    
    /* Even larger touch targets on small screens */
    .carousel-nav {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
    
    .carousel-nav-container {
        gap: 15px;
    }
    
    .carousel-nav i {
        font-size: 12px;
    }
    
    .related-card-image {
        height: 140px;
    }
    
    .related-card-content {
        padding: 12px;
    }
    
    .related-vehicle-title {
        font-size: 14px;
    }
    
    .related-vehicle-price .price {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .carousel-container {
        padding: 0 0px;
    }
    
    .carousel-item {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
    }
    
    .related-card-image {
        height: 120px;
    }
    
    .related-card-content {
        padding: 10px;
    }
}

/* Mobile lightbox improvements */
@media (max-width: 768px) {
    .lorry-lightbox {
        padding: 10px;
    }
    
    .lightbox-content {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .lightbox-close {
        top: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    .lorry-lightbox {
        padding: 5px;
    }
    
    .lightbox-content {
        max-width: calc(100vw - 10px);
        max-height: calc(100vh - 10px);
    }
    
    .lightbox-close {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
}

/* Accessibility improvements */
.carousel-nav:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.carousel-track:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .carousel-nav {
        border-width: 3px;
        border-color: currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: none;
    }
    
    .carousel-nav {
        transition: none;
    }
    
    .related-vehicle-card {
        transition: none;
    }
}

/* Print styles */
@media print {
    .lorry-single-price-section {
        background: #ff6b35 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .price-label {
        background: #ff6b35 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .carousel-nav-container {
        display: none;
    }
    
    .carousel-track {
        display: block;
    }
    
    .carousel-item {
        display: block;
        width: 100%;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
}

/* ================================================= */
/* Facebook Campaign Section Integration CSS */
/* UPDATED WITH ORANGE BACKGROUND */
/* ================================================= */

/* Main Facebook campaign section wrapper - CHANGED TO ORANGE */
.lorry-facebook-campaign-section {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
    background: linear-gradient(135deg, #ff4400 0%, #f7931e 100%);
    position: relative;
}

/* Ensure proper spacing with gallery and description */
.lorry-single-gallery + .lorry-facebook-campaign-section {
    margin-top: 25px;
}

.lorry-facebook-campaign-section + .lorry-single-description-block {
    margin-top: 25px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .lorry-facebook-campaign-section {
        margin: 20px 0;
        border-radius: 12px;
    }
    
    .lorry-single-gallery + .lorry-facebook-campaign-section {
        margin-top: 20px;
    }
    
    .lorry-facebook-campaign-section + .lorry-single-description-block {
        margin-top: 20px;
    }
}

/* Additional refinements for single listing integration */
.lorry-single-left-column .lorry-facebook-share-widget {
    margin: 0; /* Remove default margins since container handles spacing */
    width: 100%;
    max-width: none;
}

/* Ensure campaign section doesn't conflict with gallery lightbox */
.lorry-facebook-share-widget {
    z-index: 10;
}

.lorry-lightbox {
    z-index: 9999; /* Keep lightbox above everything */
}

/* Special styling for threshold reached state in single listing - UPDATED TO GREEN */
.lorry-facebook-campaign-section .lorry-facebook-share-widget.threshold-reached {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    animation: successGlow 2s ease-in-out infinite alternate;
}

@keyframes successGlow {
    0% { 
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
        transform: scale(1.02);
    }
}

/* Compact style for smaller screens */
@media (max-width: 480px) {
    .lorry-facebook-campaign-section {
        margin: 15px 0;
        border-radius: 10px;
    }
    
    .lorry-facebook-campaign-section .campaign-text {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .lorry-facebook-campaign-section .facebook-share-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Integration with existing single listing styles */
.lorry-single-left-column > * {
    margin-bottom: 25px;
}

.lorry-single-left-column > *:last-child {
    margin-bottom: 0;
}

/* Ensure campaign section adapts to left column width */
.lorry-single-left-column .lorry-facebook-share-widget {
    box-sizing: border-box;
}

/* Style adjustments for campaign in single listing context */
.lorry-facebook-campaign-section .share-price-display {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.lorry-facebook-campaign-section .slashed-price-reveal {
    font-size: 38px;
    text-shadow: 0 2px 10px rgba(144,238,144,0.7);
    font-weight: bold;
    color: white;
}

.lorry-facebook-campaign-section .original-price-slashed {
    font-size: 17px;
}

/* Enhanced share button styling for single listing */
.lorry-facebook-campaign-section .facebook-share-btn {
    background: linear-gradient(45deg, #1877f2, #42a5f5);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(24,119,242,0.4);
}

.lorry-facebook-campaign-section .facebook-share-btn:hover {
    background: linear-gradient(45deg, #166fe5, #3a9ae8);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(24,119,242,0.5);
}

/* Progress bar enhancements */
.lorry-facebook-campaign-section .progress-bar {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.lorry-facebook-campaign-section .progress-fill {
    background: linear-gradient(90deg, #90EE90, #32CD32, #228B22);
    box-shadow: 0 0 15px rgba(144,238,144,0.8);
}

/* Share count display styling */
.lorry-facebook-campaign-section .share-count-display {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

/* Special animation for when campaign is successful - UPDATED COLORS */
.lorry-facebook-campaign-section.campaign-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    animation: celebrationGlow 3s ease-in-out infinite;
}

@keyframes celebrationGlow {
    0%, 100% { 
        filter: brightness(1);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.1);
        transform: scale(1.01);
    }
}

/* Loading state for share tracking */
.lorry-facebook-share-widget.loading .facebook-share-btn {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.lorry-facebook-share-widget.loading .facebook-share-btn::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* ADDITIONAL ORANGE THEME ENHANCEMENTS */

/* Enhanced orange gradient variations */
.lorry-facebook-campaign-section {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 70%, #ff8c42 100%);
    position: relative;
}

/* Add subtle texture overlay for depth */
.lorry-facebook-campaign-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,140,66,0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure content stays above overlay */
.lorry-facebook-campaign-section .lorry-facebook-share-widget {
    position: relative;
    z-index: 2;
    background: transparent !important;
    box-shadow: none !important;
}

/* Success state - transition to green */
.lorry-facebook-campaign-section.threshold-reached {
    background: linear-gradient(135deg, #28a745 0%, #20c997 70%, #17a2b8 100%) !important;
}

.lorry-facebook-campaign-section.threshold-reached::before {
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(32,201,151,0.3) 0%, transparent 50%);
}

/* Slashed badge gets orange accent when price is revealed */
.lorry-facebook-campaign-section .slashed-badge {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4) !important;
    font-size: 22px; !important;
}

/* Price display enhancements with orange accents */
.lorry-facebook-campaign-section .current-price {
    text-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.lorry-facebook-campaign-section .slashed-price-reveal {
    text-shadow: 0 2px 10px rgba(144,238,144,0.7),
                 0 0 20px rgba(255, 107, 53, 0.2);
}

/* Mobile specific orange theme adjustments */
@media (max-width: 768px) {
    .lorry-facebook-campaign-section {
        background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
	}
    .lorry-facebook-campaign-section .slashed-price-reveal {
        font-size: 32px; /* Responsive scaling for mobile */
    }
}

@media (max-width: 480px) {
    .lorry-facebook-campaign-section::before {
        opacity: 0.7;
	}
    .lorry-facebook-campaign-section .slashed-price-reveal {
        font-size: 28px; /* Further scaling for small screens */
    }
}