/* Basic styles for the single boat container */
.blm-single-boat-container {
    /* Adjust padding/margins as needed for overall layout */
}

/* --- NEW GALLERY LAYOUT STYLES --- */
.blm-single-boat-gallery-wrapper {
    display: flex;
    gap: 15px; /* Space between the main image and thumbnails */
    max-width: 100%; /* Adjust as needed for your content area */
    margin: 20px auto; /* Center the gallery */
    align-items: flex-start; /* Align items to the top */
}

.blm-main-image-container {
    flex: 0 0 600px; /* Fixed width for the main image container */
    height: 480px; /* Fixed height */
    overflow: hidden; /* Hide parts of the image that go beyond the container */
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.blm-main-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop image to fit the container */
    display: block;
}

.blm-thumbnails-grid {
    flex: 1; /* Take up the remaining space */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns, equal width */
    grid-template-rows: repeat(2, 1fr); /* 2 rows, equal height */
    gap: 15px; /* Space between thumbnails */
    height: 480px; /* Match the height of the main image */
}

.blm-thumbnail-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    /* cursor: pointer; */ /* Removed cursor for now as no JS functionality attached */
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.blm-thumbnail-item:hover {
    transform: translateY(-2px);
    border-color: #0073aa; /* Highlight on hover */
}

.blm-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop image to fit thumbnail container */
    display: block;
}

/* Fallback/Placeholder Thumbnail Styling */
.blm-placeholder-thumb {
    background-color: #f0f0f0; /* Light gray background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9em;
    text-align: center;
}
.blm-placeholder-thumb img {
    opacity: 0.5; /* Dim the placeholder image */
}

/* Responsive Adjustments for Gallery */
@media (max-width: 992px) { /* Adjust breakpoint as needed */
    .blm-single-boat-gallery-wrapper {
        flex-direction: column; /* Stack main image and thumbnails */
        max-width: 100%; /* Allow full width */
    }

    .blm-main-image-container {
        flex: none; /* Remove flex sizing */
        width: 100%; /* Take full width */
        height: 400px; /* Adjust height for smaller screens */
    }

    .blm-thumbnails-grid {
        flex: none; /* Remove flex sizing */
        width: 100%; /* Take full width */
        height: auto; /* Allow height to adjust based on content */
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Flexible columns for thumbnails */
    }

    .blm-thumbnail-item {
        height: 150px; /* Adjust thumbnail height */
    }
}

@media (max-width: 576px) {
    .blm-main-image-container {
        height: 300px; /* Even smaller height for main image on very small screens */
    }
    .blm-thumbnail-item {
        height: 100px; /* Even smaller thumbnail height */
    }
}
/* --- END NEW GALLERY LAYOUT STYLES --- */


/* Styles for the 'Boat Description' heading */
.blm-description-heading {
    margin-bottom: 20px;
    font-size: 2em;
    text-align: left;
    margin-top: 25px;
}
.blm-boat-description {
    margin-bottom: 30px;
    line-height: 1.7;
}
.blm-boat-details-section,
.blm-extra-features-section,
.blm-vendor-info-section {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
}
.blm-boat-details-section h2,
.blm-extra-features-section h2,
.blm-vendor-info-section h2,
.blm-booking-form-section h2,
.blm-optional-extras-section h2 { /* Added optional extras heading */
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
}


.blm-detail-list, .blm-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}
.blm-detail-list li, .blm-feature-list li {
    margin-bottom: 5px;
}

/* Booking Form Styles */
.blm-booking-form-section {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    color: #333;
}
.blm-booking-form-section label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #555;
}
.blm-booking-form-section .blm-date-input,
.blm-booking-form-section input[type="text"],
.blm-booking-form-section .blm-time-input, /* Changed to type="text" */
.blm-booking-form-section select {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.blm-booking-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-end;
}
.blm-booking-form-column {
    flex: 1;
    min-width: 200px;
}
 
/* New styles for price breakdown */
.blm-price-breakdown-section {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.blm-price-breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #333;
}

.blm-price-breakdown-row.total-price {
    font-size: 1.4em;
    font-weight: bold;
    color: #0073aa;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 15px;
}
 
.blm-price-message {
    color: #d63638;
    font-size: 0.9em;
    margin-bottom: 15px;
}
.blm-booking-button-wrapper {
    text-align: right;
    margin-top: 20px;
}
.blm-book-now-button {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.blm-book-now-button:hover:not(:disabled) {
    background-color: #005177;
}
.blm-book-now-button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}
.blm-skipper-price-row { /* New container for skipper checkbox and price */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spreads out checkbox and price */
    margin-bottom: 15px;
    border-top: 1px solid #eee; /* Separator */
    padding-top: 10px;
    margin-top: 10px;
}
.blm-skipper-price-row input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}
.blm-skipper-price-row label {
    margin-bottom: 0; /* Remove default label margin */
}
.blm-skipper-price-row .price {
    font-weight: bold;
    color: #333;
}

/* Styles for Optional Extras section */
.blm-optional-extras-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.blm-optional-extras-section h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}
.blm-optional-extras-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.blm-optional-extra-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.blm-optional-extra-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-color: #a0a0a0;
}
.blm-optional-extra-item input[type="checkbox"] {
    margin-right: 10px;
    width: auto; /* Override general input width */
    flex-shrink: 0; /* Prevent checkbox from shrinking */
}
.blm-optional-extra-item label {
    flex-grow: 1; /* Allow label to take up space */
    margin-bottom: 0; /* Remove default label margin */
    font-weight: normal;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.blm-optional-extra-item .extra-price {
    font-weight: bold;
    color: #0073aa;
    margin-left: 10px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .blm-detail-list, .blm-feature-list {
        grid-template-columns: 1fr;
    }
    .blm-booking-form-row {
        flex-direction: column;
        gap: 0;
    }
    .blm-booking-form-column {
        min-width: unset;
        width: 100%;
    }
    .blm-booking-button-wrapper {
        text-align: center;
    }
}
/* --- Tour Page: 2-Column Details & Itinerary Layout --- */

.blm-tour-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates two equal columns */
    gap: 40px; /* Space between the columns */
    margin-top: 30px;
    margin-bottom: 30px;
}

/* --- Itinerary Timeline Design --- */

.blm-timeline {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid var(--border-color); /* The main timeline bar */
}

.blm-timeline-item {
    position: relative;
    margin-bottom: 30px;
}

/* This creates the circle on the timeline */
.blm-timeline-item::before {
    content: '';
    background-color: var(--primary-color);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: absolute;
    left: -39px; /* Position it perfectly on the timeline bar */
    top: 5px;
    border: 3px solid var(--white);
}

.blm-timeline-time {
    font-weight: 700;
    color: var(--text-color-body);
    margin-bottom: 5px;
    display: block;
}

.blm-timeline-content h4 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--text-color-headings);
}

.blm-timeline-content p {
    margin-top: 5px;
    margin-bottom: 0;
}

/* Responsive: On smaller screens, stack the columns */
@media (max-width: 768px) {
    .blm-tour-content-wrapper {
        grid-template-columns: 1fr; /* Switch to a single column */
    }
}