/* ==========================================================================
   v2 booking widget styles. Calendar, boat-info modal and slideshow rules are
   extracted verbatim from frontend/css/styles.css (the markup is generated by
   the shared home.js / boats.js), with v1 variables mapped to v2 brand tokens.
   Loaded only on v2 pages that include the booking widget.
   ========================================================================== */
:root {
    --primary-color: #0071bb;
    --secondary-color: #003366;
    --accent-color: #005a94;
    --text-primary: #0c2a48;
    --text-secondary: #5b6b7a;
    --text-white: #ffffff;
    --bg-secondary: #efe7d8;
    --bg-light: #f7f2e9;
    --error-color: #8a4a3c;
    --radius-lg: 14px;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --shadow-xl: 0 30px 60px -20px rgba(0, 51, 102, 0.45);
    --z-modal: 10001;
}

/* ---- extracted: calendar (styles.css 3315-3501) ---- */
.calendar-container {
    position: fixed;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    box-sizing: border-box;
    padding: 1.2rem;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.booking-form-modern .form-group {
    position: relative;
}

.booking-form-modern #dateRange {
    cursor: pointer;
    background: #f8fafc;
}

.booking-form-modern #dateRange:focus {
    background: #fff;
}

/* Remove browser validation styling (red border) for dateRange input */
.booking-form-modern #dateRange:invalid {
    border-color: #e0e7ef;
    box-shadow: none;
    outline: none;
}

.booking-form-modern #dateRange:invalid:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 187, 0.1);
}

/* Also remove any browser validation pseudo-elements */
.booking-form-modern #dateRange::-webkit-validation-bubble-message {
    display: none;
}

/* Calendar Styles */
.booking-calendar {
    width: 100%;
}

.calendar-header-inline {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    padding-top: 0.5rem;
}

.calendar-header-inline > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.calendar-header-inline h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
    min-width: 0;
    overflow-wrap: anywhere;
}

.calendar-nav-btn-inline {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.calendar-nav-btn-inline:hover {
    background: var(--accent-color);
}

.calendar-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.calendar-close-btn:hover {
    background: #f0f0f0;
    color: var(--error-color, #c62828);
}

.calendar-grid-inline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
    min-width: 0;
}

.calendar-day-header-inline {
    text-align: center;
    font-weight: 600;
    padding: 8px 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.calendar-day-inline {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #e8f5e9;
    color: var(--text-primary);
    min-height: 36px;
}

.calendar-day-inline:hover:not(.unavailable-inline):not(.empty-inline):not(.past-inline) {
    background: var(--primary-color);
    color: white;
}

.calendar-day-inline.unavailable-inline {
    background: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day-inline.past-inline {
    background: #fafafa;
    color: #ddd;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day-inline.empty-inline {
    background: transparent;
    cursor: default;
}

.calendar-day-inline.today-inline {
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.calendar-day-inline.selected-start-inline,
.calendar-day-inline.selected-end-inline {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

.calendar-day-inline.selected-range-inline {
    background: #b3e5fc;
    color: var(--text-primary);
}

/* ---- extracted: modals (styles.css 1631-2198) ---- */
/* ---------------------------------------------------------------------
   --- MODALS
   ------------------------------------------------------------------ */
.modal,
.boat-modal,
.boat-info-modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal.active,
.boat-modal.active,
.boat-info-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content,
.boat-modal-content {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;
    width: 95%;
    max-height: 95%;
    overflow-y: auto;
    padding: var(--spacing-lg);
    position: relative;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.boat-info-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.3s ease-out;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--bg-secondary);
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: var(--spacing-md);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-white);
    font-size: var(--font-size-2xl);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-3xl);
    color: var(--text-white);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Boat modal close button */
.boat-modal-close,
.boat-info-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.boat-modal-close:hover,
.boat-info-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--color-primary);
}

/* Boat Info Modal - More Information Section (Original Design) */
.boat-modal-header {
    display: flex;
    gap: 20px;
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.boat-modal-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.boat-modal-image.placeholder {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

.boat-modal-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.boat-modal-title h2 {
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}

.boat-modal-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0 5px 0;
}

.boat-modal-capacity {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.boat-modal-body {
    padding: 30px;
}

.boat-modal-section {
    margin-bottom: 30px;
}

.boat-modal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.boat-modal-section-header h3 {
    margin: 0;
}

.boat-modal-section-body {
    display: block;
}

.boat-modal-section-close {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.boat-modal-section-close:hover {
    background: var(--bg-secondary);
}

.boat-modal-section-scroll {
    max-height: 60vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.boat-modal-section:last-child {
    margin-bottom: 0;
}

.boat-modal-section h3 {
    color: var(--secondary-color);
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.boat-modal-section p {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

/* Kenmerken list with checkmark anchors */
.boat-modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.boat-modal-section li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-primary);
}

.boat-modal-section li:last-child {
    border-bottom: none;
}

.boat-modal-section li::before {
    content: "⚓";
    color: var(--primary-color);
    margin-right: 10px;
}

.boat-modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.boat-modal-footer .btn {
    min-width: 120px;
    text-align: center;
}

.boat-modal-footer .btn-primary {
    background: var(--primary-color);
    color: white;
}

.boat-modal-footer .btn-primary:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .boat-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .boat-modal-image {
        width: 100%;
        height: 200px;
    }

    .boat-modal-title {
        align-items: center;
    }

    .boat-modal-body {
        padding: 20px;
    }

    .boat-modal-footer {
        flex-direction: column;
        padding: 20px;
    }

    .boat-modal-footer .btn {
        width: 100%;
    }

    .boat-modal-section-scroll {
        max-height: 50vh;
    }

    .modal-content,
    .boat-modal-content,
    .boat-info-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px;
    }

    .btn {
        min-height: 44px;
    }
}

/* Boat Info Modal Slideshow Integration */
.boat-info-content .modal-slideshow {
    border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
    box-shadow: none;
}

.boat-info-content .modal-slideshow-main {
    height: 360px;
}

.boat-info-content .boat-modal-header {
    padding: 0;
    border-bottom: none;
}

@media (max-width: 768px) {
    .boat-info-content .modal-slideshow-main {
        height: 240px;
    }
}

.modal-body {
    padding: var(--spacing-lg);
    max-height: 60vh;
    overflow-y: auto;
    padding: var(--spacing-md);
    max-height: 70vh;
}

.modal-boats,
.modal-boats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.modal-boat-card {
    background-color: #ffffff;
    border: 1px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: var(--transition-normal);
    cursor: pointer;
    overflow: hidden;
}

.modal-boat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.modal-boat-card h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.modal-boat-card .boat-capacity {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

.modal-boat-card .boat-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
}

.modal-boat-card .boat-status {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-boat-card .boat-status.available {
    background-color: var(--success-color);
    color: var(--text-white);
}

.modal-boat-card .boat-status.occupied {
    background-color: var(--error-color);
    color: var(--text-white);
}

.modal-boat-image,
.modal-boat-slideshow {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 220px;
    max-width: 350px;
    max-height: 350px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.modal-boat-image img,
.modal-boat-slideshow .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
    display: block;
    max-width: 350px;
    max-height: 350px;
    transition: none !important;
    transform: none !important;
}

/* Prevent scaling on hover for modal images */
.modal-boat-card:hover .modal-boat-image img,
.modal-boat-card:hover .modal-boat-slideshow .slide img {
    transform: none !important;
}

.modal-boat-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-boat-slideshow .slide.placeholder {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-md);
}

.modal-boat-slideshow .slide.active {
    opacity: 1;
}

.modal-boat-slideshow .slideshow-controls {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 10;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    bottom: 5px;
    padding: 0 5px;
}

.modal-boat-slideshow .slideshow-btn {
    position: static;
    transform: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 14px;
    transition: background 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.modal-boat-slideshow .slideshow-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-boat-slideshow .slideshow-dots {
    position: static;
    transform: none;
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
    margin: 0 10px;
}

.modal-boat-slideshow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
    width: 5px;
    height: 5px;
}

.modal-boat-slideshow .dot.active,
.modal-boat-slideshow .dot:hover {
    background: white;
}

/* Make category cards clickable */
.category-card {
    cursor: pointer;
    transition: var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}


/* ---- extracted: keyframes (styles.css 2321-2342) ---- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ---- extracted: slideshows (styles.css 5846-6173) ---- */
.modal-slideshow {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-slideshow-main {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    cursor: pointer;
}

.modal-slideshow-main .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f7fa;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.modal-slideshow-main .slide.active {
    opacity: 1;
    z-index: 2;
}

.modal-slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.modal-slideshow-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.modal-slideshow-btn.prev {
    left: 16px;
}

.modal-slideshow-btn.next {
    right: 16px;
}

.modal-slideshow-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.modal-fullscreen-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-fullscreen-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.modal-slideshow-thumbnails {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.05);
    scroll-behavior: smooth;
}

.modal-slideshow-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.modal-slideshow-thumbnails::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.modal-slideshow-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.modal-slideshow-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.modal-slideshow-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.modal-slideshow-thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.08);
}

.modal-slideshow-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fullscreen Slideshow Styles */
.fullscreen-slideshow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 20px 0;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 28px;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10001;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.fullscreen-slideshow-main {
    position: relative;
    width: 100%;
    max-width: 1400px;
    flex: 1 1 0;
    min-height: 0;
    margin: 40px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.fullscreen-slide.active {
    opacity: 1;
    z-index: 2;
}

.fullscreen-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    z-index: 10001;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.fullscreen-btn.prev {
    left: 20px;
}

.fullscreen-btn.next {
    right: 20px;
}

.fullscreen-btn svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.fullscreen-thumbnails {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow-x: auto;
    max-width: 90%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.fullscreen-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.fullscreen-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.fullscreen-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.fullscreen-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.fullscreen-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.fullscreen-thumbnail.active {
    border-color: white;
    opacity: 1;
    transform: scale(1.15);
}

.fullscreen-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   v2 overrides: booking widget card, fields, fleet grid (home.js cards)
   ========================================================================== */
body.v2 .booking-form-modern { position: relative; width: 100%; max-width: 400px; padding: 1.75rem; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 30, 61, 0.55), 0 2px 6px rgba(0, 0, 0, 0.08); }
body.v2 .booking-form-modern .form-subtitle { font-family: var(--display); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; color: var(--brand); margin: 0 0 0.35rem; }
body.v2 .booking-form-modern .form-header p:not(.form-subtitle) { font-size: 0.95rem; color: var(--muted); margin: 0 0 1.25rem; }
body.v2 .booking-form-modern .form-row { margin-bottom: 1rem; }
body.v2 .booking-form-modern .form-group { position: relative; }
body.v2 .booking-form-modern label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-bottom: 0.35rem; }
body.v2 .booking-form-modern input, body.v2 .booking-form-modern select { width: 100%; min-height: 50px; padding: 0.75rem 0.9rem 0.75rem 2.6rem; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: 500 1rem var(--body); appearance: none; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
body.v2 .booking-form-modern select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23003366' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 12px; padding-right: 2.25rem; }
body.v2 .booking-form-modern input:hover, body.v2 .booking-form-modern select:hover { border-color: var(--ink-soft); }
body.v2 .booking-form-modern input:focus, body.v2 .booking-form-modern select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 187, 0.15); }
body.v2 .booking-form-modern .input-icon { position: absolute; left: 0.85rem; bottom: 15px; width: 18px; height: 18px; color: var(--accent); pointer-events: none; }
body.v2 .booking-form-modern .input-icon svg { width: 18px; height: 18px; }
body.v2 #priceDisplay { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: var(--accent-wash); text-align: center; }
body.v2 #priceDisplay .v2-price-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.25rem; }
body.v2 #priceAmount { font-family: var(--display); font-size: 1.8rem; color: var(--brand); font-variant-numeric: tabular-nums; }
body.v2 .booking-form-modern .form-actions { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
body.v2 .booking-form-modern .form-actions .btn { width: 100%; min-height: 50px; }
body.v2 .booking-form-modern .btn-cart-secondary { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px var(--line-strong); }
body.v2 .booking-form-modern .btn-cart-secondary:hover { background: var(--paper); color: var(--brand); }
body.v2 .calendar-container { border: 0; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 30, 61, 0.45); font-family: var(--body); }
body.v2 .calendar-day-inline { background: rgba(47, 107, 79, 0.1); }
body.v2 .calendar-day-inline.selected-range-inline { background: rgba(0, 113, 187, 0.18); }
body.v2 #bookingSeasonMessage, body.v2 #boatAvailabilityMessage { font-size: 0.875rem; color: var(--muted); margin: 0.5rem 0 1rem; }

/* Hero with booking card */
.v2-hero--booking .v2-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.v2-hero--booking .v2-hero__copy { min-width: 0; }

/* Fleet toolbar + home.js cards */
body.v2 .home-fleet-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line-strong); }
body.v2 .home-fleet-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
body.v2 .home-fleet-filter { border: 0; border-radius: 999px; padding: 0.55rem 1rem; background: transparent; color: var(--ink-soft); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background 200ms var(--ease), color 200ms var(--ease); }
body.v2 .home-fleet-filter:hover { box-shadow: inset 0 0 0 1px var(--brand); }
body.v2 .home-fleet-filter.is-active { background: var(--brand); color: #fff; box-shadow: none; }
body.v2 .home-fleet-filter__label--short { display: none; }
body.v2 .home-fleet-sort { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); }
body.v2 .home-fleet-sort select { border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 0.9rem; background: transparent; font: inherit; color: var(--ink); }
body.v2 .home-boat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2rem 1.5rem; }
body.v2 .home-boat-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
body.v2 .home-boat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
body.v2 .home-boat-card.is-unavailable { opacity: 0.6; }
body.v2 .home-boat-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
body.v2 .home-boat-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
body.v2 .home-boat-card:hover .home-boat-image img { transform: scale(1.04); }
body.v2 .home-boat-status { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1; padding: 0.3rem 0.55rem; border-radius: 4px; background: rgba(255, 255, 255, 0.92); font-size: 0.75rem; font-weight: 500; color: var(--ink); }
body.v2 .home-boat-status.is-available { color: var(--yes); }
body.v2 .home-boat-status.is-rented { color: var(--no); }
body.v2 .home-boat-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
body.v2 .home-boat-meta-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
body.v2 .home-boat-type { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
body.v2 .home-boat-card h3 { font-size: 1.3rem; }
body.v2 .home-boat-price { text-align: right; flex-shrink: 0; }
body.v2 .home-boat-price span { display: block; font-size: 0.75rem; color: var(--muted); }
body.v2 .home-boat-price strong { font-family: var(--display); font-weight: 500; font-size: 1.5rem; color: var(--brand); font-variant-numeric: tabular-nums; }
body.v2 .home-boat-specs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0; }
body.v2 .home-boat-specs span { padding: 0.25rem 0.55rem; border-radius: 4px; background: rgba(0, 51, 102, 0.06); font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); }
body.v2 .home-boat-summary { font-size: 0.95rem; color: var(--muted); }
body.v2 .home-boat-divider { height: 1px; background: var(--line); margin: auto 0 1rem; }
body.v2 .home-boat-card .boat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
body.v2 .home-boat-loading, body.v2 .home-boat-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* Boat-info modal look */
body.v2 .boat-info-content { border-radius: 18px; font-family: var(--body); }
body.v2 .boat-modal-title h2 { font-family: var(--display); font-weight: 500; color: var(--brand); }

@media (max-width: 1024px) {
    .v2-hero--booking .v2-hero__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
    body.v2 .booking-form-modern { max-width: 520px; }
}
@media (max-width: 600px) {
    body.v2 .home-fleet-filter__label:not(.home-fleet-filter__label--short) { display: none; }
    body.v2 .home-fleet-filter__label--short { display: inline; }
}
