/**
 * Boat Booking Core - Public Styles
 * Softer, elegant design with marine theme
 */

/* Font families inherited from theme */

/* CSS Variables for dynamic theming - inherit from theme where available */
:root {
    --bbc-primary-color: var(--e-global-color-primary, #0066cc);
    --bbc-secondary-color: var(--e-global-color-secondary, #0052a3);
    --bbc-accent-color: var(--e-global-color-accent, #00a0d2);
    --bbc-border-radius: 8px;
    --bbc-font-heading: inherit;
    --bbc-font-body: inherit;
}

.bbc-single-boat,
.bbc-boats-archive {
    font-family: inherit;
    color: inherit;
    background: inherit;
}

/* Typography Improvements */
.bbc-single-boat h1,
.bbc-single-boat h2,
.bbc-single-boat h3 {
    font-family: var(--bbc-font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.bbc-boat-name {
    font-family: var(--bbc-font-heading);
    font-weight: 700;
}

.bbc-section-title {
    font-family: var(--bbc-font-heading);
}

.bbc-card-label,
.bbc-card-value {
    font-family: var(--bbc-font-body);
}

/* Container - Full width with equal padding, works with any theme */
.bbc-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Single boat page wrapper - ensures equal padding on both sides */
.bbc-single-boat {
    width: 100%;
    overflow-x: hidden;
}

.bbc-single-boat .bbc-container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Boat Hero - Clean Design */
.bbc-boat-hero {
    position: relative;
    height: 300px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.bbc-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.bbc-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.bbc-hero-text {
    text-align: center;
    color: #fff;
}

.bbc-hero-type {
    display: inline-block;
    background: var(--bbc-primary-color, #1a73e8);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.bbc-hero-text .bbc-boat-name {
    font-size: 52px;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.bbc-hero-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive - Hero */
@media (max-width: 768px) {
    .bbc-boat-hero {
        height: 220px;
        min-height: 180px;
    }

    .bbc-hero-text .bbc-boat-name {
        font-size: 26px;
    }

    .bbc-hero-type {
        font-size: 11px;
        padding: 5px 12px;
    }

    .bbc-hero-location {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bbc-boat-hero {
        height: 180px;
        min-height: 150px;
    }

    .bbc-hero-text .bbc-boat-name {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .bbc-hero-type {
        font-size: 10px;
        padding: 4px 10px;
        margin-bottom: 8px;
    }

    .bbc-hero-location {
        font-size: 13px;
        gap: 6px;
    }

    .bbc-hero-location svg {
        width: 14px;
        height: 14px;
    }
}

/* Main Content */
.bbc-main-content {
    padding-top: 35px;
    padding-bottom: 50px;
}

/* Single Layout - Equal padding with wider sidebar */
.bbc-single-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    width: 100%;
    align-items: start;
}

.bbc-single-layout .bbc-main-content-area {
    min-width: 0;
    width: 100%;
}

.bbc-booking-sidebar {
    width: 100%;
    max-width: 380px;
    justify-self: end;
}

@media (max-width: 1024px) {
    .bbc-single-layout {
        grid-template-columns: 1fr 350px;
    }

    .bbc-booking-sidebar {
        max-width: 350px;
    }
}

@media (max-width: 900px) {
    .bbc-single-layout {
        grid-template-columns: 1fr;
    }

    .bbc-booking-sidebar {
        max-width: 100%;
        justify-self: stretch;
        position: static !important;
    }
}

@media (max-width: 480px) {
    .bbc-single-layout {
        gap: 20px;
    }
}

/* Gallery */
.bbc-gallery-section {
    margin-bottom: 25px;
}

.bbc-main-gallery {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bbc-gallery-slide {
    display: none;
    aspect-ratio: 16/9;
}

.bbc-gallery-slide.active {
    display: block;
}

.bbc-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbc-gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bbc-thumb {
    width: 80px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.bbc-thumb.active {
    opacity: 1;
    border-color: #1a73e8;
}

.bbc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Responsive */
@media (max-width: 768px) {
    .bbc-gallery-section {
        margin-bottom: 20px;
    }

    .bbc-main-gallery {
        border-radius: 8px;
    }

    .bbc-thumb {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .bbc-main-gallery {
        border-radius: 6px;
        margin-bottom: 8px;
    }

    .bbc-gallery-thumbs {
        gap: 6px;
    }

    .bbc-thumb {
        width: 50px;
        height: 38px;
        border-radius: 4px;
    }
}

/* Info Cards - Taller & Bolder Design */
.bbc-info-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.bbc-info-card {
    flex: 1;
    min-width: 110px;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.bbc-info-card:hover {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.bbc-info-icon {
    color: #1a73e8;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.bbc-info-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.bbc-info-card .bbc-card-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #777;
    line-height: 1.3;
}

.bbc-info-card .bbc-card-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-top: 4px;
}

/* Info Cards Responsive */
@media (max-width: 768px) {
    .bbc-info-cards {
        gap: 10px;
    }

    .bbc-info-card {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        min-height: 70px;
        padding: 14px 16px;
    }

    .bbc-info-icon {
        width: 24px;
        height: 24px;
    }

    .bbc-info-card .bbc-card-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bbc-info-cards {
        gap: 8px;
        margin-bottom: 25px;
    }

    .bbc-info-card {
        flex: 1 1 calc(50% - 4px);
        padding: 12px 14px;
        gap: 10px;
    }

    .bbc-info-card .bbc-card-label {
        font-size: 11px;
    }

    .bbc-info-card .bbc-card-value {
        font-size: 15px;
    }
}

/* Content Sections */
.bbc-content-section {
    margin-bottom: 30px;
}

.bbc-section-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
    color: #222;
}

.bbc-description {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: #444;
}

.bbc-description p {
    margin-bottom: 16px;
}

/* Amenities Grid - Soft Design */
.bbc-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.bbc-amenities-grid-fixed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.bbc-amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.bbc-amenity-item:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.bbc-amenity-item svg {
    color: #1a73e8;
    flex-shrink: 0;
}

/* Specs Grid - 2 Column Layout (Separate Columns) */
.bbc-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bbc-specs-column {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

/* Specs Table - Soft Design */
.bbc-spec-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    border-bottom: 1px solid #eee;
}

.bbc-spec-row:last-child {
    border-bottom: none;
}

.bbc-spec-row .bbc-spec-name {
    padding: 14px 16px;
    background: #f5f5f5;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    border-right: 1px solid #eee;
}

.bbc-spec-row .bbc-spec-value {
    padding: 14px 16px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* Booking Sidebar - Compact Marine Design */
.bbc-booking-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.bbc-booking-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

/* Booking Sidebar Responsive */
@media (max-width: 1024px) {
    .bbc-booking-card {
        padding: 18px;
    }
}

@media (max-width: 900px) {
    .bbc-booking-sidebar {
        position: static !important;
        margin-top: 20px;
    }

    .bbc-booking-card {
        padding: 20px;
        border-radius: 12px;
    }
}

@media (max-width: 600px) {
    .bbc-booking-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .bbc-booking-card {
        padding: 14px;
        border-radius: 10px;
    }
}

/* Compact Price Header */
.bbc-price-header {
    text-align: center;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* Video Container */
.bbc-video-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.bbc-video-container iframe {
    display: block;
}

.bbc-price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Smaller main price */
.bbc-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #0066cc;
    line-height: 1;
}

.bbc-price-unit {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.bbc-price-alt {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.bbc-security-inline {
    color: #888;
    font-size: 11px;
}

/* Compact Info Line - Security Deposit, Guests, Check-in, Check-out */
.bbc-compact-info {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #666;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
}

.bbc-compact-info svg {
    vertical-align: middle;
    margin-right: 2px;
    flex-shrink: 0;
}

.bbc-compact-item {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.bbc-compact-sep {
    color: #ccc;
    margin: 0 2px;
}

/* Compact Features Section */
.bbc-booking-features {
    margin-bottom: 15px;
}

.bbc-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.bbc-feature-item:last-child {
    border-bottom: none;
}

/* Marine-themed Icons in Sidebar */
.bbc-feature-item svg {
    color: #0066cc;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.bbc-btn-book {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
}

.bbc-inquiry-note {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

/* Modal */
.bbc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.bbc-modal-overlay.active {
    display: flex;
}

.bbc-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}

.bbc-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bbc-modal-close:hover {
    background: #eee;
}

/* Filters Widget - Soft Design */
.bbc-filters-widget {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.bbc-filters-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.bbc-filter-group {
    margin-bottom: 18px;
}

.bbc-filter-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #666;
}

.bbc-filter-select,
.bbc-filter-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    background: #fff;
    transition: all 0.2s;
}

.bbc-filter-select:focus,
.bbc-filter-input:focus {
    outline: none;
    border-color: #1a73e8;
}

/* Filters Responsive */
@media (max-width: 1024px) {
    .bbc-filters-widget {
        padding: 18px;
    }
}

@media (max-width: 900px) {
    .bbc-filters-widget {
        padding: 20px;
    }

    .bbc-filters-title {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .bbc-filters-widget {
        padding: 16px;
        border-radius: 10px;
    }

    .bbc-filters-title {
        font-size: 16px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    .bbc-filter-group {
        margin-bottom: 14px;
    }

    .bbc-filter-select,
    .bbc-filter-input {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Archive Layout */
/* Archive & Listing Layout */
.bbc-archive-layout {
    display: grid;
    grid-template-columns: 250px 1fr !important;
    gap: 24px;
    margin-bottom: 40px;
    align-items: start;
    width: 100%;
}

.bbc-listing-main {
    min-width: 0;
}

.bbc-boat-listing-widget {
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure Elementor widget containers for boat widgets stretch full width */
.elementor-widget-bbc_boat_listing .elementor-widget-container,
.elementor-widget-bbc_boat_grid .elementor-widget-container,
.elementor-widget-bbc_boat_listing,
.elementor-widget-bbc_boat_grid {
    width: 100%;
}

.bbc-boat-listing-widget .bbc-boats-grid {
    width: 100%;
}

/* Archive Responsive */
@media (max-width: 1024px) {
    .bbc-archive-layout {
        grid-template-columns: 220px 1fr !important;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .bbc-archive-layout {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .bbc-archive-sidebar {
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .bbc-archive-layout {
        gap: 20px;
    }

    .bbc-boat-listing-widget {
        padding: 0 10px;
    }
}

/* Boat Cards & Grids - Optimized for 3 columns */
.bbc-boats-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
    justify-items: stretch;
    width: 100%;
}

.bbc-boat-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.bbc-boat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--bbc-primary-color);
}

.bbc-boat-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bbc-boat-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.bbc-boat-image-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.bbc-boat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bbc-boat-card:hover .bbc-boat-image {
    transform: scale(1.05);
}

/* Boat Cards Responsive */
@media (max-width: 1024px) {
    .bbc-boats-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }

    .bbc-boat-image-wrap {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .bbc-boats-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .bbc-boat-image-wrap {
        height: 200px;
    }

    .bbc-boat-card {
        border-radius: 10px;
    }
}

@media (max-width: 600px) {
    .bbc-boats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bbc-boat-image-wrap {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .bbc-boats-grid {
        gap: 15px;
    }

    .bbc-boat-image-wrap {
        height: 180px;
    }
}

.bbc-boat-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bbc-boat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--bbc-primary-color);
}

.bbc-boat-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bbc-boat-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.bbc-boat-image-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.bbc-boat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bbc-boat-card:hover .bbc-boat-image {
    transform: scale(1.05);
}

.bbc-boat-type {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--bbc-primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bbc-boat-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bbc-name-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 2px;
}

.bbc-boat-name {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #111;
    flex: 1;
}

.bbc-price-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.bbc-price-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--bbc-primary-color);
    line-height: 1.1;
}

.bbc-location-period-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bbc-price-period {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 2px;
    color: #888;
    font-size: 13px;
    font-weight: 500;
}

.bbc-price-slash {
    opacity: 0.5;
}

.bbc-boat-location {
    font-size: 14px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.bbc-boat-location svg {
    width: 16px;
    height: 16px;
    color: var(--bbc-primary-color);
    opacity: 0.8;
}

.bbc-boat-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}

.bbc-boat-specs {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.bbc-spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    flex: 1;
    justify-content: center;
}

.bbc-spec-item svg {
    width: 18px;
    height: 18px;
    color: var(--bbc-primary-color);
    stroke-width: 2;
    flex-shrink: 0;
}

.bbc-boat-footer {
    margin-top: 10px;
}

.bbc-book-btn {
    display: block;
    width: 100%;
    background: var(--bbc-primary-color);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    text-decoration: none !important;
}

.bbc-book-btn:hover {
    background: var(--bbc-secondary-color);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.25);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.bbc-boat-card:hover .bbc-book-btn {
    background: var(--bbc-secondary-color);
    color: #fff;
}

/* Search Widget V2 - Enhanced Layouts */
.bbc-search-wrapper-v2 {
    width: 100%;
    position: relative;
    z-index: 10;
}

.bbc-search-form-v2 {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    border: 1px solid #eee;
}

/* Date field: full area is clickable */
.bbc-field-date { cursor: pointer; }
.bbc-field-date input[type="date"] { cursor: pointer; }

/* Horizontal Layout */
.bbc-search-form-v2.layout-horizontal {
    flex-direction: row;
    align-items: stretch;
    padding: 0;
}

.bbc-search-form-v2.layout-horizontal .bbc-search-group-v2 {
    flex: 1;
    min-width: 150px;
    padding: 10px 20px;
}

/* Vertical Layout */
.bbc-search-form-v2.layout-vertical {
    flex-direction: column;
    padding: 20px;
}

.bbc-search-form-v2.layout-vertical .bbc-search-group-v2 {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bbc-search-form-v2.layout-vertical .bbc-search-group-v2:last-of-type {
    border-bottom: none;
}

.bbc-search-form-v2.layout-vertical .bbc-search-divider-v2 {
    display: none;
}

.bbc-search-form-v2.layout-vertical .bbc-search-submit-btn-v2 {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
}

/* Common Search Elements */
.bbc-search-group-v2 {
    display: flex;
    flex-direction: column;
}

.bbc-search-group-v2 label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.bbc-search-input-clean-v2,
.bbc-search-select-clean-v2 {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    width: 100%;
    outline: none;
}

.bbc-search-divider-v2 {
    width: 1px;
    background: #eee;
    margin: 10px 0;
    align-self: stretch;
}

.bbc-search-submit-btn-v2 {
    background: var(--bbc-primary-color);
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bbc-search-submit-btn-v2:hover {
    background: var(--bbc-secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

@media (max-width: 768px) {
    .bbc-search-form-v2.layout-horizontal,
    .bbc-search-form-v2.layout-vertical {
        flex-direction: column !important;
        padding: 16px !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .bbc-search-divider-v2 {
        display: none !important;
    }

    .bbc-search-group-v2 {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 14px 0 !important;
        flex: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .bbc-search-group-v2:last-of-type {
        border-bottom: none !important;
    }

    .bbc-search-submit-btn-v2 {
        width: 100% !important;
        margin-top: 10px !important;
    }
}

/* Boat Grid - Stylish Design */
.bbc-boat-grid-wrapper {
    font-family: inherit;
}

.bbc-boat-grid-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.bbc-boat-grid {
    display: grid;
    gap: 24px;
}

.bbc-boat-grid-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.bbc-boat-grid-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.bbc-boat-grid-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bbc-boat-grid-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.bbc-boat-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bbc-boat-grid-card:hover .bbc-boat-grid-image img {
    transform: scale(1.05);
}

.bbc-boat-grid-type {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(26, 115, 232, 0.95);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.bbc-boat-grid-content {
    padding: 20px 22px 22px;
}

.bbc-boat-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 6px;
}

.bbc-boat-grid-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bbc-boat-grid-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
}

.bbc-boat-grid-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1a73e8;
    letter-spacing: -0.5px;
    line-height: 1;
}

.bbc-grid-price-unit {
    font-size: 13px;
    font-weight: 500;
    color: #888;
}

.bbc-boat-grid-location {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    font-weight: 500;
}

.bbc-boat-grid-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: auto;
}

.bbc-boat-grid-specs {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.bbc-grid-spec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.bbc-grid-spec svg {
    display: inline-block;
    color: #1a73e8;
    flex-shrink: 0;
    vertical-align: middle;
}

.bbc-grid-spec span {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    vertical-align: middle;
}

.bbc-boat-grid-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: #1a73e8;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bbc-boat-grid-view-btn:hover {
    background: #1557b0;
    color: #fff;
}

.bbc-boat-grid-view-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.bbc-boat-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.bbc-boat-header-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    /* For text ellipsis if needed */
}

.bbc-boat-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    text-align: right;
}

.bbc-boat-grid-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.bbc-boat-grid-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1a73e8;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.bbc-grid-price-unit {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    margin-top: 2px;
}

.bbc-boat-grid-location {
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

.bbc-boat-grid-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 14px;
    margin-top: 4px;
    /* Remove line clamping */
    display: block;
    height: auto;
    overflow: visible;
}

.bbc-boat-grid-meta-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.bbc-boat-grid-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
}

.bbc-boat-grid-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1a73e8;
    letter-spacing: -0.5px;
    line-height: 1;
}

.bbc-grid-price-unit {
    font-size: 13px;
    font-weight: 500;
    color: #888;
}

.bbc-boat-grid-location {
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

.bbc-boat-grid-price+.bbc-boat-grid-location {
    position: relative;
    padding-left: 12px;
}

.bbc-boat-grid-price+.bbc-boat-grid-location::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ccc;
}

.bbc-boat-grid-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
    max-height: 28px;
}

.bbc-boat-grid-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: #1a73e8;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bbc-boat-grid-view-btn:hover {
    background: #1557b0;
    color: #fff;
}

.bbc-boat-grid-view-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.bbc-boat-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
}

.bbc-boat-grid-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f8f8f8;
    color: #aaa;
    font-size: 14px;
}

/* Responsive Boat Grid */
@media (max-width: 768px) {
    .bbc-boat-grid {
        gap: 16px;
    }

    .bbc-boat-grid-card {
        border-radius: 12px;
    }

    .bbc-boat-grid-content {
        padding: 16px 18px 18px;
    }

    .bbc-boat-grid-header {
        flex-direction: row;
        gap: 12px;
        margin-bottom: 6px;
    }

    .bbc-boat-grid-card-title {
        font-size: 18px;
    }

    .bbc-boat-grid-price-amount {
        font-size: 18px;
    }

    .bbc-grid-price-unit {
        font-size: 12px;
    }

    .bbc-boat-grid-location {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .bbc-boat-grid-excerpt {
        font-size: 13px;
        margin-bottom: 12px;
        min-height: 2.4em;
    }

    .bbc-boat-grid-specs {
        gap: 8px;
        margin-bottom: 12px;
    }

    .bbc-grid-spec svg {
        width: 16px;
        height: 16px;
    }

    .bbc-grid-spec span {
        font-size: 12px;
    }

    .bbc-boat-grid-view-btn {
        padding: 12px 16px;
        border-radius: 8px;
    }

    .bbc-boat-grid-view-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Responsive Info Cards */
@media (max-width: 700px) {
    .bbc-boat-hero {
        height: 200px;
    }

    .bbc-boat-name {
        font-size: 28px;
    }

    .bbc-container {
        padding: 0 20px;
    }

    .bbc-info-cards {
        flex-wrap: wrap;
        gap: 10px;
    }

    .bbc-info-card {
        flex: 1 1 calc(50% - 5px);
        min-height: 70px;
        padding: 14px 16px;
    }

    .bbc-info-icon {
        width: 24px;
        height: 24px;
    }

    .bbc-info-card .bbc-card-value {
        font-size: 16px;
    }

    .bbc-specs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Custom Layout Modifications */
.bbc-boat-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.bbc-boat-subheader-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.bbc-boat-content .bbc-boat-title {
    margin-bottom: 0;
    line-height: 1.2;
}

.bbc-boat-content .bbc-boat-location {
    margin-bottom: 0;
}

.bbc-price-value {
    text-align: right;
    white-space: nowrap;
}

.bbc-price-unit-wrapper {
    text-align: right;
    white-space: nowrap;
}

/* Excerpt constrained to 3 lines with proper line height */
.bbc-boat-content .bbc-boat-excerpt {
    /* Removed specific margins to rely on default or Elementor controls if needed, 
       but keeping sensible defaults without !important */
    margin-top: 5px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    max-height: 4.8em;
    /* 1.6 * 3 */
    height: auto;
    min-height: auto;
}

/* Guard for large font sizes / small screens */
@media (max-width: 768px) {
    .bbc-boat-content .bbc-boat-excerpt {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: 3.2em;
        /* 1.6 * 2 */
    }
}

.bbc-btn-block {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Adjust specs spacing */
.bbc-boat-content .bbc-boat-specs {
    margin-top: 15px;
    border-bottom: none;
    padding-bottom: 10px;
}

/* Ensure Grid Widget Excerpt is also not cut off */
.bbc-boat-grid-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    max-height: 4.8em;
    /* 1.6 * 3 */
    height: auto;
    min-height: auto;
    /* Removed !important to allow Elementor controls to work */
    margin-top: 5px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .bbc-boat-grid-excerpt {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: 3.2em;
    }
}

/* Search Widget - Horizontal Bar Style */
.bbc-search-wrapper {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    font-family: inherit;
}

.bbc-search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.bbc-search-tab {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.bbc-search-tab.active {
    background: #fff;
    color: #222;
    font-weight: 600;
}

.bbc-search-bar-container {
    background: #fff;
    border-radius: 100px;
    /* Fully rounded pill shape like the image */
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.bbc-search-form-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.bbc-search-inputs-row {
    display: flex;
    flex: 1;
    align-items: center;
}

.bbc-search-group {
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bbc-search-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.bbc-search-input-clean,
.bbc-search-select-clean {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.bbc-search-select-clean {
    cursor: pointer;
    background-image: none;
    /* Remove default arrow */
}

/* Custom placeholder color */
.bbc-search-input-clean::placeholder {
    color: #222;
    opacity: 1;
}

.bbc-search-divider {
    width: 1px;
    height: 40px;
    background-color: #eee;
}

.bbc-search-submit-btn {
    background: #eebf99;
    /* Color from the image approx */
    color: #222;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    margin-left: 10px;
    flex-shrink: 0;
}

.bbc-search-submit-btn:hover {
    background: #e6b085;
    transform: translateY(-1px);
}

.bbc-search-submit-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .bbc-search-bar-container {
        border-radius: 20px;
        padding: 20px;
    }

    .bbc-search-form-horizontal {
        flex-direction: column;
        align-items: stretch;
    }

    .bbc-search-inputs-row {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 20px;
    }

    .bbc-search-group {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .bbc-search-group:last-child {
        border-bottom: none;
    }

    .bbc-search-divider {
        display: none;
    }

    .bbc-search-submit-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

/* Search Widget V2 - Blue Bar Style */
.bbc-search-wrapper-v2 {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.bbc-search-form-v2 {
    display: flex;
    align-items: stretch;
    background-color: #fff;
    width: 100%;
}

.bbc-search-group-v2 {
    flex: 1;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.bbc-search-group-v2 label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 4px;
    white-space: nowrap;
}

.bbc-search-input-clean-v2,
.bbc-search-select-clean-v2 {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.bbc-search-select-clean-v2 {
    cursor: pointer;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.bbc-search-divider-v2 {
    width: 1px;
    background-color: #e0e0e0;
    margin: 12px 0;
}

.bbc-search-submit-btn-v2 {
    background-color: var(--e-global-color-primary, #1a73e8);
    color: #fff;
    border: none;
    padding: 0 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    flex-shrink: 0;
    text-transform: none;
    letter-spacing: 0;
}

.bbc-search-submit-btn-v2:hover {
    filter: brightness(1.1);
}

/* Date input styling */
.bbc-date-input {
    cursor: pointer !important;
}

.bbc-search-group-v2.bbc-field-date {
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .bbc-search-wrapper-v2 {
        border-radius: 8px;
        width: 100% !important;
    }

    .bbc-search-form-v2 {
        flex-direction: column;
        height: auto;
    }

    .bbc-search-divider-v2 {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .bbc-search-submit-btn-v2 {
        width: 100%;
        padding: 16px;
        min-height: 50px;
    }

    .bbc-search-group-v2 {
        padding: 14px 16px;
    }
}

/* Search Widget V2 - Full Fixes */
.bbc-search-wrapper-v2 {
    width: 100%;
    margin: 0;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    /* Default */
}

.bbc-search-form-v2 {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.bbc-search-group-v2 {
    flex: 1;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.bbc-search-group-v2 label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #778899;
    margin-bottom: 4px;
    white-space: nowrap;
}

.bbc-search-input-clean-v2,
.bbc-search-select-clean-v2 {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.bbc-search-select-clean-v2 {
    cursor: pointer;
}

.bbc-search-divider-v2 {
    width: 1px;
    background-color: #e0e0e0;
    margin: 15px 0;
    /* Vertical margin to not touch top/bottom */
}

.bbc-search-submit-btn-v2 {
    background-color: var(--e-global-color-primary, #1a5c7a);
    /* Default to theme primary or fallback blue */
    color: #fff;
    border: none;
    padding: 0 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bbc-search-submit-btn-v2:hover {
    filter: brightness(1.1);
    /* Simple hover effect if color not overridden */
}

/* Specific field flex adjustments for better spacing */
.bbc-field-type {
    flex: 1.4;
}

.bbc-field-location {
    flex: 1.4;
}

.bbc-field-date {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .bbc-search-wrapper-v2 {
        border-radius: 8px;
        width: 100% !important;
        /* Force full width on mobile */
    }

    .bbc-search-form-v2 {
        flex-direction: column;
        height: auto;
    }

    .bbc-search-divider-v2 {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .bbc-search-submit-btn-v2 {
        width: 100%;
        padding: 18px;
        min-height: 50px;
    }

    .bbc-search-group-v2 {
        padding: 18px 20px;
    }
}

/* Force clean inputs - Remove boxes/borders from inputs inside the V2 form */
.bbc-search-group-v2 input,
.bbc-search-group-v2 select {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

/* Ensure container flex behavior */
.bbc-search-form-v2 {
    display: flex;
    align-items: stretch;
    background-color: #fff;
    width: 100%;
}

/* Make the button fill the height */
.bbc-search-submit-btn-v2 {
    height: auto;
}

/* Secondary Button */
.bbc-btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
}

.bbc-btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #ccc;
    color: #111;
}

/* Handled by global/consolidated styles */

/* Ensure grid matches listing page styling */
.bbc-boats-grid.bbc-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Ensure clean input styles for archive filters */
.bbc-filters-form select,
.bbc-filters-form input {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure filter words are not cut off */
.bbc-filter-select option {
    padding: 5px;
}

/* Boat Listing Widget - Base Styles (Elementor controls can override) */
.bbc-boat-listing-widget .bbc-boat-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0;
}

.bbc-boat-listing-widget .bbc-boat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.bbc-boat-listing-widget .bbc-name-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px;
    gap: 10px;
}

.bbc-boat-listing-widget .bbc-boat-name {
    font-size: 19px;
    font-weight: 700;
    color: #111 !important;
    margin: 0;
    flex: 1;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: none !important;
}

.bbc-boat-listing-widget .bbc-price-block {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.bbc-boat-listing-widget .bbc-price-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--bbc-primary-color);
    line-height: 1.1;
}

.bbc-boat-listing-widget .bbc-location-period-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bbc-boat-listing-widget .bbc-boat-location {
    font-size: 14px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.bbc-boat-listing-widget .bbc-price-period {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 2px;
    color: #888;
    font-size: 13px;
    font-weight: 500;
}

.bbc-boat-listing-widget .bbc-price-slash {
    opacity: 0.5;
}

.bbc-boat-listing-widget .bbc-boat-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.bbc-boat-listing-widget .bbc-boat-specs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: none;
    margin-bottom: 0;
}

.bbc-boat-listing-widget .bbc-spec-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.bbc-boat-listing-widget .bbc-spec-item svg {
    width: 18px;
    height: 18px;
    color: var(--bbc-primary-color);
    flex-shrink: 0;
}

.bbc-boat-listing-widget .bbc-spec-item span {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.bbc-boat-listing-widget .bbc-boat-footer {
    margin-top: 10px;
}

.bbc-boat-listing-widget .bbc-book-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--bbc-primary-color);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
    text-decoration: none;
}

.bbc-boat-listing-widget .bbc-book-btn:hover {
    background: var(--bbc-secondary-color);
    color: #fff;
    text-decoration: none;
}

/* Ensure no underlines on any card text */
.bbc-boat-card a,
.bbc-boat-card a:hover,
.bbc-boat-listing-widget .bbc-boat-name,
.bbc-boat-listing-widget .bbc-boat-location,
.bbc-boat-listing-widget .bbc-price-amount,
.bbc-boat-listing-widget .bbc-price-unit,
.bbc-boat-listing-widget .bbc-spec-item span,
.bbc-boat-listing-widget .bbc-boat-excerpt {
    text-decoration: none;
}

/* Hide duplicate theme archive output when Elementor widget is used */
body.post-type-archive-boat .bbc-boat-listing-widget~.bbc-boats-archive,
body.post-type-archive-boat .elementor-widget-bbc_boat_listing~.bbc-boats-archive {
    display: none !important;
}

/* Ensure Elementor container doesn't constrain too much */
.elementor-widget-bbc_boat_listing {
    width: 100%;
}

.elementor-section-wrap>.elementor-element.elementor-widget-bbc_boat_listing {
    width: 100%;
    max-width: 100%;
}

/* Booking Form in Sidebar - Premium Modern Styling */
.bbc-booking-form-container {
    margin-top: 15px;
    /* Inherit theme colors where possible */
    --bbc-primary: var(--e-global-color-primary, #1a73e8);
    --bbc-secondary: var(--e-global-color-secondary, #1557b0);
    --bbc-accent: var(--e-global-color-accent, #00a0d2);
    --bbc-text: var(--e-global-color-text, #222222);
    --bbc-text-light: #555555;
    --bbc-border: #e0e0e0;
}

.bbc-booking-form-container .bbc-booking-widget {
    background: #fff;
    border-radius: 16px;
}

/* Steps Indicator - Modern & Minimal */
.bbc-booking-form-container .bbc-booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
}

/* Booking Mode Notice */
.bbc-booking-mode-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
}

.bbc-booking-mode-notice.bbc-mode-instant {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.bbc-booking-mode-notice.bbc-mode-manual {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid #ff9800;
    color: #e65100;
}

.bbc-booking-mode-notice .bbc-mode-icon {
    font-size: 14px;
}

.bbc-booking-mode-notice .bbc-mode-text {
    flex: 1;
}

.bbc-booking-form-container .bbc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.bbc-booking-form-container .bbc-step.active {
    opacity: 1;
}

.bbc-booking-form-container .bbc-step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.3s ease;
}

.bbc-booking-form-container .bbc-step.active .bbc-step-number {
    background: var(--bbc-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.bbc-booking-form-container .bbc-step-label {
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.bbc-booking-form-container .bbc-step-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

/* Booking Type Options - Modern & Compact */
.bbc-booking-form-container .bbc-booking-types {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.bbc-booking-form-container .bbc-type-option {
    flex: 1;
    position: relative;
}

.bbc-booking-form-container .bbc-type-option input {
    position: absolute;
    opacity: 0;
}

.bbc-booking-form-container .bbc-type-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px;
    /* Reduced padding */
    border: 1.5px solid var(--bbc-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 70px;
    justify-content: center;
}

.bbc-booking-form-container .bbc-type-option label:hover {
    border-color: var(--bbc-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bbc-booking-form-container .bbc-type-option.active label,
.bbc-booking-form-container .bbc-type-option input:checked+label {
    border-color: var(--bbc-primary);
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(26, 115, 232, 0.02) 100%);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.bbc-booking-form-container .bbc-type-icon {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--bbc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    /* Fixed height for alignment */
}

.bbc-booking-form-container .bbc-type-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--bbc-primary);
}

.bbc-booking-form-container .bbc-type-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--bbc-text);
    margin-bottom: 2px;
    line-height: 1.2;
}

.bbc-booking-form-container .bbc-type-price {
    font-size: 11px;
    /* Smaller */
    font-weight: 400;
    /* Thinner */
    color: #222;
    /* Black */
    margin-top: 0;
    line-height: 1.2;
    white-space: nowrap;
    /* One line */
}

/* Make all booking type prices consistent */
.bbc-booking-form-container .bbc-booking-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bbc-booking-form-container .bbc-type-option {
    flex: 1;
    min-width: 80px;
}

.bbc-booking-form-container .bbc-type-option[data-type="hourly"] .bbc-type-price {
    font-size: 11px;
    color: #222;
}

/* Duration Options - Show only active */
.bbc-booking-form-container .bbc-duration-options {
    margin-bottom: 8px;
    display: none;
}

.bbc-booking-form-container .bbc-duration-options.active {
    display: block;
}

.bbc-booking-form-container .bbc-duration-options label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #444;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bbc-booking-form-container .bbc-duration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.bbc-booking-form-container .bbc-duration-btn {
    padding: 5px 4px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.2;
    min-height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bbc-booking-form-container .bbc-duration-btn.active {
    border-color: #1a73e8;
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    color: #1a73e8;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
}

.bbc-booking-form-container .bbc-duration-btn:hover {
    border-color: #1a73e8;
    background: #f5f9ff;
    transform: translateY(-1px);
}

/* Duration Cards - Bold Text, Compact Size */
.bbc-booking-form-container .bbc-duration-btn {
    padding: 6px 5px !important;
    min-height: 44px !important;
    border: 1.5px solid var(--bbc-border);
}

.bbc-booking-form-container .bbc-duration-btn:hover {
    border-color: var(--bbc-primary) !important;
    background: rgba(26, 115, 232, 0.05);
}

.bbc-booking-form-container .bbc-duration-btn .dur-hours {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
    display: block;
    margin-bottom: 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.bbc-booking-form-container .bbc-duration-btn.active .dur-hours {
    color: var(--bbc-primary);
}

.bbc-booking-form-container .bbc-dur-price {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.bbc-booking-form-container .bbc-duration-btn.active .bbc-dur-price {
    color: var(--bbc-primary);
    font-weight: 800;
}

/* Form Fields */
.bbc-booking-form-container .bbc-form-group {
    margin-bottom: 15px;
}

.bbc-booking-form-container .bbc-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.bbc-booking-form-container .bbc-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    background: #fff;
    transition: border-color 0.2s;
}

.bbc-booking-form-container .bbc-form-control:focus {
    outline: none;
    border-color: #1a73e8;
}

/* Price Summary */
.bbc-booking-form-container .bbc-price-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.bbc-booking-form-container .bbc-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #555;
}

.bbc-booking-form-container .bbc-summary-row:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #222;
    font-size: 16px;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 2px solid #1a73e8;
}

.bbc-booking-form-container .bbc-total-price {
    color: #1a73e8;
    font-size: 20px;
}

/* Submit Button */
.bbc-booking-form-container .bbc-btn-submit {
    width: 100%;
    padding: 16px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.bbc-booking-form-container .bbc-btn-submit:hover {
    background: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* Date Selection Container - Modern Styling */
.bbc-booking-form-container .bbc-date-selection-container {
    margin-bottom: 12px;
}

.bbc-booking-form-container .bbc-date-section {
    display: none;
}

.bbc-booking-form-container .bbc-date-section.active {
    display: block;
}

.bbc-booking-form-container .bbc-date-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hourly Date + Time */
.bbc-booking-form-container .bbc-date-time-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 8px;
}

.bbc-booking-form-container .bbc-date-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bbc-booking-form-container .bbc-date-input:hover,
.bbc-booking-form-container .bbc-date-input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.bbc-booking-form-container .bbc-time-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.bbc-booking-form-container .bbc-time-select:hover,
.bbc-booking-form-container .bbc-time-select:focus {
    border-color: #1a73e8;
    outline: none;
}

/* Date Range Selection (Daily & Weekly) */
.bbc-booking-form-container .bbc-date-range-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bbc-booking-form-container .bbc-date-field {
    display: flex;
    flex-direction: column;
}

.bbc-booking-form-container .bbc-date-field label {
    font-size: 11px;
    font-weight: 600;
    color: #777;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Weekly Info Badge */
.bbc-booking-form-container .bbc-weekly-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bbc-booking-form-container .bbc-weekly-badge {
    display: inline-block;
    padding: 3px 8px;
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bbc-booking-form-container .bbc-weekly-hint {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

/* Datetime Input (Legacy Support) */
.bbc-booking-form-container .bbc-datetime-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bbc-booking-form-container .bbc-datetime-input:hover,
.bbc-booking-form-container .bbc-datetime-input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Guests Section */
.bbc-booking-form-container .bbc-guests-section {
    margin-bottom: 12px;
    position: relative;
    z-index: 50;
}

.bbc-booking-form-container .bbc-guests-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bbc-booking-form-container .bbc-guests-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 45px;
    position: relative;
    z-index: 100;
    height: auto;
}

.bbc-booking-form-container .bbc-guests-select:hover,
.bbc-booking-form-container .bbc-guests-select:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Make the entire guest section clickable */
.bbc-guests-section {
    position: relative;
}

.bbc-guests-section label {
    display: block;
    margin-bottom: 6px;
}

/* Price Summary Box - Premium Design */
.bbc-booking-form-container .bbc-price-summary-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
    border: 1.5px solid #e8ecef;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.bbc-booking-form-container .bbc-price-summary-box .bbc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: #666;
}

.bbc-booking-form-container .bbc-price-summary-box .bbc-summary-row.bbc-total-row {
    border-top: 1.5px solid #1a73e8;
    margin-top: 8px;
    padding-top: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.bbc-booking-form-container .bbc-price-summary-box .bbc-summary-total {
    color: #1a73e8;
    font-size: 18px;
}

/* Navigation Buttons - Modern Styling */
.bbc-booking-form-container .bbc-nav-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.bbc-booking-form-container .bbc-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.bbc-booking-form-container .bbc-btn-primary {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.bbc-booking-form-container .bbc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.bbc-booking-form-container .bbc-btn-outline {
    background: #fff;
    color: #555;
    border: 1.5px solid #ddd;
}

.bbc-booking-form-container .bbc-btn-outline:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #f0f7ff;
}

/* Hourly Date & Time Picker */
.bbc-hourly-datetime-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbc-date-picker-wrapper {
    flex: 1;
    position: relative;
}

/* Time Picker Grid - Fix z-index to ensure clickability */
.bbc-time-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 100;
}

.bbc-time-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    /* Wider columns for single line */
    gap: 6px;
    position: relative;
    z-index: 101;
}

.bbc-time-btn {
    padding: 6px 4px;
    /* Reduced padding */
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
    /* Smaller font */
    font-weight: 700;
    color: #333;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    z-index: 102;
    white-space: nowrap;
    /* Single line */
}

.bbc-time-btn:hover {
    border-color: #1a73e8;
    background: #f0f7ff;
    color: #1a73e8;
}

.bbc-time-btn.active {
    border-color: #1a73e8;
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.bbc-time-btn.blocked {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
}

.bbc-time-btn.blocked:hover {
    border-color: #e0e0e0;
    background: #f5f5f5;
    color: #999;
}

/* Daily Hint */
.bbc-daily-hint {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #f0f4f8;
    border-radius: 6px;
    border-left: 3px solid #1a73e8;
    font-style: italic;
}

/* Daily/Weekly Month Selection */
.bbc-daily-month-row,
.bbc-weekly-month-row {
    margin-bottom: 10px;
}

.bbc-month-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    z-index: 100;
}

.bbc-month-select:hover,
.bbc-month-select:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Month Grid Selector - 2 rows x 6 columns */
.bbc-month-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.bbc-month-box {
    padding: 6px 2px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    line-height: 1.2;
}

.bbc-month-box span {
    font-size: 8px;
    font-weight: 500;
    color: #888;
    margin-top: 1px;
    line-height: 1;
}

.bbc-month-box:hover {
    border-color: #1a73e8;
    background: #e8f0fe;
    color: #1a73e8;
}

.bbc-month-box.active {
    border-color: #1a73e8;
    background: #1a73e8;
    color: #fff;
}

.bbc-month-box.active span {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   PRICE CARD CALENDAR
   ============================================ */

.bbc-price-calendar-wrapper {
    width: 100%;
    margin-bottom: 12px;
    overflow-x: auto;
    /* Fix for cutoff on small screens */
    padding-bottom: 2px;
}

.bbc-price-calendar {
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid #e8ecef;
    overflow: hidden;
}

/* Calendar Header — month navigation */
.bbc-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
    border-bottom: 1px solid #e8ecef;
}

.bbc-cal-month-label {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.bbc-cal-nav {
    width: 30px;
    height: 30px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.bbc-cal-nav:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
}

/* Weekday headers */
.bbc-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 6px;
    /* Match grid padding precisely */
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
}

.bbc-cal-weekday {
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 0;
}

/* Date Card Grid */
.bbc-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 6px;
}

/* Individual Date Card */
.bbc-date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    min-height: 52px;
    /* Slightly reduced */
    border-radius: 8px;
    border: 1.5px solid #f0f0f0;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    /* Prevent content spill */
}

.bbc-date-card:hover:not(.bbc-date-disabled):not(.bbc-date-empty) {
    border-color: #1a73e8;
    background: #f5f9ff;
    box-shadow: 0 3px 10px rgba(26, 115, 232, 0.15);
    transform: translateY(-1px);
}

/* Empty cells */
.bbc-date-card.bbc-date-empty {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

/* Disabled / past dates */
.bbc-date-card.bbc-date-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #fafafa;
}

.bbc-date-card.bbc-date-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #f0f0f0;
}

/* Weekend dates */
.bbc-date-card.bbc-date-weekend:not(.bbc-date-disabled) {
    background: #fefcf8;
}

/* Selected date card */
.bbc-date-card.bbc-date-selected {
    background: #1a73e8 !important;
    border-color: #1a73e8 !important;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}

.bbc-date-card.bbc-date-selected .bbc-card-day {
    color: #fff;
}

.bbc-date-card.bbc-date-selected .bbc-card-price {
    background: rgba(255, 255, 255, 0.92);
    color: #1a73e8;
}

/* In-range (for daily bookings) */
.bbc-date-card.bbc-date-in-range {
    background: #e8f0fe;
    border-color: #b3d4fc;
}

.bbc-date-card.bbc-date-in-range .bbc-card-day {
    color: #1a73e8;
}

/* Day number */
.bbc-card-day {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 2px;
}

/* Price badge */
.bbc-card-price {
    font-size: 8px;
    /* Even smaller to be safe */
    font-weight: 800;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 1px 3px;
    border-radius: 6px;
    line-height: 1;
    white-space: nowrap;
    max-width: 90%;
    display: inline-block;
    vertical-align: middle;
}

.bbc-card-price.bbc-card-closed {
    background: #f5f5f5;
    color: #bbb;
    font-size: 12px;
}

/* Half Day Session Selector */
.bbc-session-selector {
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.bbc-session-selector label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bbc-session-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.bbc-session-btn {
    padding: 10px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bbc-session-btn .session-time {
    font-size: 11px;
    font-weight: 600;
    color: #666;
}

.bbc-session-btn .session-label {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.bbc-session-btn:hover {
    border-color: #1a73e8;
    background: #e8f0fe;
}

.bbc-session-btn.active {
    border-color: #1a73e8;
    background: #1a73e8;
}

.bbc-session-btn.active .session-time,
.bbc-session-btn.active .session-label {
    color: #fff;
}

/* Range Summary */
.bbc-range-summary {
    margin-top: 8px;
    padding: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.bbc-range-days {
    font-size: 12px;
    font-weight: 700;
    color: #1a73e8;
    display: block;
    text-align: center;
}

/* Ensure booking widget has proper stacking context */
.bbc-booking-widget {
    position: relative;
    z-index: 1;
}

/* Hide step content by default */
.bbc-booking-form-container .bbc-booking-step-content {
    display: none;
}

.bbc-booking-form-container .bbc-booking-step-content.active {
    display: block;
}

/* Payment Method Section */
.bbc-payment-method-section {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.bbc-payment-method-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.bbc-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bbc-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bbc-payment-option:hover {
    border-color: #1a73e8;
    background: #f0f7ff;
}

.bbc-payment-option input[type="radio"] {
    margin: 0;
}

.bbc-payment-option:has(input:checked) {
    border-color: #1a73e8;
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
}

.bbc-payment-icon {
    font-size: 20px;
}

.bbc-payment-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* ============================================
   FRONTEND — Policies & Rules Section
   ============================================ */

.bbc-policies-section {
    margin-bottom: 30px;
}

.bbc-policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.bbc-policy-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
}

.bbc-policy-item:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.bbc-policy-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.bbc-policy-status {
    font-weight: 600;
}

.bbc-policy-status.bbc-status-yes {
    color: #2e7d32;
}

.bbc-policy-status.bbc-status-no {
    color: #c62828;
}

.bbc-house-rules {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.bbc-house-rules-label {
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    display: block;
}

/* ============================================
   FRONTEND — Operating Hours
   ============================================ */

.bbc-hours-section {
    margin-bottom: 30px;
}

.bbc-hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.bbc-hours-day {
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.2s;
}

.bbc-hours-day:hover {
    background: #f0f7ff;
    border-color: #ddd;
}

.bbc-hours-day-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.bbc-hours-day-time {
    font-size: 13px;
    font-weight: 500;
    color: #1a73e8;
}

.bbc-hours-day.bbc-day-closed {
    opacity: 0.5;
}

.bbc-hours-day.bbc-day-closed .bbc-hours-day-time {
    color: #999;
}

/* ============================================
   FRONTEND — YouTube Video Overlay
   ============================================ */

.bbc-video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.bbc-video-wrapper iframe {
    display: block;
    border: none;
}

/* Redesigned Policies & Rules (Matching Specs) */
.bbc-policies-grid {
    margin-bottom: 25px;
}

.bbc-house-rules-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bbc-rules-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bbc-rules-subtitle::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #1a73e8;
    border-radius: 2px;
}

.bbc-rules-content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    font-style: italic;
}

/* Sleek Operating Hours - 7 Columns */
.bbc-sleek-hours {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.bbc-hours-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bbc-hours-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-color: #1a73e8;
}

.bbc-hours-day-name {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.bbc-hours-time-status {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.bbc-time-range {
    color: #1a73e8;
}

.bbc-closed-label {
    color: #dc3545;
    opacity: 0.7;
    font-weight: 500;
}

.bbc-hours-closed {
    background: #fafafa;
    border-color: #f0f0f0;
    opacity: 0.8;
}

.bbc-hours-closed:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border-color: #f0f0f0;
}

.bbc-hours-closed .bbc-hours-day-name {
    color: #bbb;
}

/* Operating Hours Responsive */
@media (max-width: 1200px) {
    .bbc-sleek-hours {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .bbc-sleek-hours {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .bbc-hours-card {
        padding: 10px 6px;
    }
    
    .bbc-hours-day-name {
        font-size: 11px;
    }
    
    .bbc-hours-time-status {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .bbc-sleek-hours {
        grid-template-columns: 1fr;
    }
}

/* Success message */
.bbc-success-message {
    display: none;
    text-align: center;
    padding: 30px 20px;
}

.bbc-success-message h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 10px;
}

.bbc-success-message p {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.bbc-success-message .bbc-ref {
    font-weight: 700;
    color: #1a73e8;
    font-size: 16px;
}

/* Time picker in hourly bookings */
.bbc-time-picker-wrapper h5 {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* Booking Form Container - Mobile Responsive */
@media (max-width: 768px) {
    .bbc-booking-form-container {
        margin-top: 10px;
    }

    .bbc-booking-form-container .bbc-booking-steps {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .bbc-booking-form-container .bbc-step-number {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .bbc-booking-form-container .bbc-step-label {
        font-size: 8px;
    }

    .bbc-booking-form-container .bbc-step-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .bbc-booking-form-container .bbc-booking-types {
        flex-direction: column;
        gap: 6px;
    }

    .bbc-booking-form-container .bbc-type-option label {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 12px;
        min-height: auto;
    }

    .bbc-booking-form-container .bbc-type-icon {
        margin-bottom: 0;
    }

    .bbc-booking-form-container .bbc-type-name {
        font-size: 14px;
    }

    .bbc-booking-form-container .bbc-type-price {
        font-size: 12px;
        margin-left: auto;
    }

    .bbc-booking-form-container .bbc-duration-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .bbc-booking-form-container .bbc-duration-btn {
        padding: 8px 6px;
        min-height: 50px;
    }

    .bbc-booking-form-container .dur-hours {
        font-size: 13px;
    }

    .bbc-booking-form-container .bbc-dur-price {
        font-size: 11px;
    }

    .bbc-booking-form-container .bbc-date-selection-container {
        margin-bottom: 10px;
    }

    .bbc-booking-form-container .bbc-date-section h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .bbc-booking-form-container .bbc-guests-section {
        margin-bottom: 10px;
    }

    .bbc-booking-form-container .bbc-guests-section label {
        font-size: 11px;
    }

    .bbc-booking-form-container .bbc-guests-select {
        padding: 10px 14px;
        font-size: 14px;
    }

    .bbc-booking-form-container .bbc-price-summary-box {
        padding: 10px;
        margin-bottom: 10px;
    }

    .bbc-booking-form-container .bbc-summary-row {
        font-size: 12px;
        padding: 6px 0;
    }

    .bbc-booking-form-container .bbc-summary-total {
        font-size: 16px;
    }

    .bbc-booking-form-container .bbc-btn {
        padding: 12px 14px;
        font-size: 14px;
    }

    .bbc-booking-form-container .bbc-nav-row {
        gap: 8px;
    }

    .bbc-booking-form-container .bbc-field-group label {
        font-size: 12px;
    }

    .bbc-booking-form-container .bbc-field-group input,
    .bbc-booking-form-container .bbc-field-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bbc-booking-form-container .bbc-booking-steps {
        gap: 4px;
    }

    .bbc-booking-form-container .bbc-step-label {
        font-size: 7px;
        letter-spacing: 0.3px;
    }

    .bbc-booking-form-container .bbc-step-title {
        font-size: 13px;
    }

    .bbc-booking-form-container .bbc-booking-mode-notice {
        padding: 6px 10px;
        font-size: 11px;
    }

    .bbc-booking-form-container .bbc-type-option label {
        padding: 8px 10px;
    }

    .bbc-booking-form-container .bbc-type-name {
        font-size: 13px;
    }

    .bbc-booking-form-container .bbc-type-price {
        font-size: 11px;
    }

    .bbc-booking-form-container .bbc-duration-grid {
        gap: 6px;
    }

    .bbc-booking-form-container .bbc-duration-btn {
        padding: 6px 5px;
        min-height: 44px;
    }

    .bbc-booking-form-container .dur-hours {
        font-size: 12px;
    }

    .bbc-booking-form-container .bbc-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Price Calendar Mobile Responsive */
@media (max-width: 768px) {
    .bbc-price-calendar-wrapper {
        padding-bottom: 0;
    }

    .bbc-cal-header {
        padding: 8px 10px;
    }

    .bbc-cal-month-label {
        font-size: 14px;
    }

    .bbc-cal-nav {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .bbc-cal-weekdays {
        padding: 4px;
    }

    .bbc-cal-weekday {
        font-size: 8px;
        padding: 3px 0;
    }

    .bbc-cal-grid {
        gap: 3px;
        padding: 4px;
    }

    .bbc-date-card {
        padding: 3px 2px;
        min-height: 44px;
    }

    .bbc-card-day {
        font-size: 14px;
    }

    .bbc-card-price {
        font-size: 7px;
        padding: 1px 2px;
    }
}

@media (max-width: 480px) {
    .bbc-cal-month-label {
        font-size: 13px;
    }

    .bbc-date-card {
        min-height: 38px;
    }

    .bbc-card-day {
        font-size: 12px;
    }

    .bbc-card-price {
        font-size: 6px;
    }
}

/* Time Picker Mobile Responsive */
@media (max-width: 768px) {
    .bbc-time-picker-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .bbc-time-btn {
        padding: 5px 3px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .bbc-time-picker-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .bbc-time-btn {
        padding: 4px 2px;
        font-size: 9px;
    }
}

/* Operating Hours Mobile Responsive */
@media (max-width: 768px) {
    .bbc-sleek-hours {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .bbc-hours-card {
        padding: 12px;
    }

    .bbc-hours-day-name {
        font-size: 11px;
        letter-spacing: 0.6px;
    }

    .bbc-hours-time-status {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .bbc-sleek-hours {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }

    .bbc-hours-card {
        padding: 10px 8px;
    }

    .bbc-hours-day-name {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .bbc-hours-time-status {
        font-size: 11px;
    }
}

/* Policies Grid Mobile Responsive */
@media (max-width: 768px) {
    .bbc-policies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 10px;
    }

    .bbc-house-rules-card {
        padding: 16px;
        margin-top: 16px;
    }

    .bbc-rules-subtitle {
        font-size: 16px;
    }

    .bbc-rules-content {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bbc-policies-grid {
        grid-template-columns: 1fr;
    }

    .bbc-house-rules-card {
        padding: 14px;
    }

    .bbc-rules-subtitle {
        font-size: 15px;
    }

    .bbc-rules-content {
        font-size: 13px;
    }
}

/* Amenities Grid Mobile Responsive */
@media (max-width: 768px) {
    .bbc-amenities-grid,
    .bbc-amenities-grid-fixed {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
    }

    .bbc-amenity-item {
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bbc-amenities-grid,
    .bbc-amenities-grid-fixed {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 6px;
    }

    .bbc-amenity-item {
        padding: 10px 12px;
        font-size: 13px;
        gap: 10px;
    }
}

/* Specs Grid Mobile Responsive */
@media (max-width: 768px) {
    .bbc-specs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bbc-spec-row {
        grid-template-columns: 100px 1fr;
    }

    .bbc-spec-row .bbc-spec-name,
    .bbc-spec-row .bbc-spec-value {
        padding: 12px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .bbc-spec-row {
        grid-template-columns: 90px 1fr;
    }

    .bbc-spec-row .bbc-spec-name,
    .bbc-spec-row .bbc-spec-value {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Content Sections Mobile Responsive */
@media (max-width: 768px) {
    .bbc-content-section {
        margin-bottom: 25px;
    }

    .bbc-section-title {
        font-size: 20px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .bbc-description {
        font-size: 15px;
        line-height: 1.65;
    }

    .bbc-description p {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .bbc-content-section {
        margin-bottom: 20px;
    }

    .bbc-section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .bbc-description {
        font-size: 14px;
    }
}

/* Container Mobile Responsive */
@media (max-width: 768px) {
    .bbc-container {
        padding: 0 15px;
    }

    .bbc-single-boat .bbc-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .bbc-main-content {
        padding-top: 25px;
        padding-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .bbc-container {
        padding: 0 12px;
    }

    .bbc-single-boat .bbc-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .bbc-main-content {
        padding-top: 20px;
        padding-bottom: 30px;
    }
}

/* Modal Mobile Responsive */
@media (max-width: 768px) {
    .bbc-modal-overlay {
        padding: 10px;
    }

    .bbc-modal {
        padding: 20px;
        max-height: 85vh;
    }

    .bbc-modal-close {
        width: 28px;
        height: 28px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .bbc-modal {
        padding: 16px;
        border-radius: 10px;
    }

    .bbc-modal-close {
        width: 26px;
        height: 26px;
        font-size: 18px;
    }
}

/* Video Container Mobile Responsive */
@media (max-width: 768px) {
    .bbc-video-wrapper iframe {
        height: 280px !important;
    }
}

@media (max-width: 480px) {
    .bbc-video-wrapper iframe {
        height: 220px !important;
    }
}

/* Buttons Mobile Responsive */
@media (max-width: 768px) {
    .bbc-book-btn,
    .bbc-boat-listing-widget .bbc-book-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .bbc-btn-primary,
    .bbc-btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .bbc-book-btn,
    .bbc-boat-listing-widget .bbc-book-btn {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 6px;
    }

    .bbc-btn-primary,
    .bbc-btn-secondary {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* Boat Type Badge Mobile Responsive */
@media (max-width: 768px) {
    .bbc-boat-type {
        padding: 4px 10px;
        font-size: 10px;
        top: 10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .bbc-boat-type {
        padding: 3px 8px;
        font-size: 9px;
        top: 8px;
        left: 8px;
    }
}

/* =============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================= */

/* Availability Calendar Widget - Mobile */
.bbc-availability-calendar {
    width: 100%;
    overflow-x: auto;
}

.bbc-calendar-grid {
    min-width: 280px;
}

.bbc-calendar-legend {
    flex-wrap: wrap;
    gap: 10px !important;
}

@media (max-width: 768px) {
    .bbc-calendar-grid {
        gap: 3px !important;
    }

    .bbc-calendar-grid > div {
        font-size: 12px !important;
        padding: 6px !important;
    }

    .bbc-calendar-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px !important;
    }

    .bbc-calendar-title {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .bbc-calendar-grid {
        gap: 2px !important;
    }

    .bbc-calendar-grid > div {
        font-size: 11px !important;
        padding: 4px !important;
        border-radius: 3px !important;
    }

    .bbc-calendar-legend div {
        font-size: 12px !important;
    }

    .bbc-calendar-legend div > div:first-child {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Booking Form Widget - Mobile */
.bbc-booking-widget {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .bbc-booking-widget {
        padding: 20px !important;
        max-width: 100% !important;
    }

    .bbc-booking-steps {
        margin-bottom: 20px;
    }

    .bbc-booking-steps::before {
        left: 30px;
        right: 30px;
    }

    .bbc-step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .bbc-step-label {
        font-size: 11px;
    }

    .bbc-price-summary {
        flex-direction: column;
        gap: 12px !important;
    }

    .bbc-price-item {
        padding: 10px 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .bbc-price-item:last-child {
        border-bottom: none;
    }

    .bbc-field-group input,
    .bbc-field-group select,
    .bbc-field-group textarea {
        padding: 12px 14px !important;
        font-size: 15px !important;
    }

    .bbc-btn {
        padding: 14px 20px !important;
        font-size: 15px !important;
    }

    .bbc-booking-navigation {
        flex-direction: column;
        gap: 10px !important;
    }

    .bbc-booking-navigation .bbc-btn {
        width: 100%;
    }

    .bbc-booking-summary {
        padding: 16px !important;
    }

    .bbc-booking-summary h4 {
        font-size: 16px !important;
    }

    .bbc-summary-details p {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .bbc-booking-widget {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px !important;
        border-radius: 10px !important;
    }

    .bbc-booking-steps {
        margin-bottom: 16px;
    }

    .bbc-booking-steps::before {
        left: 24px;
        right: 24px;
    }

    .bbc-step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-bottom: 4px;
    }

    .bbc-step-label {
        font-size: 10px;
    }

    .bbc-price-value {
        font-size: 18px !important;
    }

    .bbc-price-label {
        font-size: 12px !important;
    }

    .bbc-field-group {
        margin-bottom: 14px !important;
    }

    .bbc-field-group label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    .bbc-field-group input,
    .bbc-field-group select,
    .bbc-field-group textarea {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    .bbc-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
    }

    .bbc-price-calculation {
        padding: 14px !important;
        border-radius: 8px !important;
    }

    .bbc-calculation-row {
        padding: 8px 0 !important;
        font-size: 14px !important;
    }

    .bbc-total-row {
        font-size: 16px !important;
        padding-top: 12px !important;
    }

    .bbc-booking-success {
        padding: 30px 16px !important;
    }

    .bbc-success-icon {
        width: 56px !important;
        height: 56px !important;
        font-size: 28px !important;
    }

    .bbc-booking-success h3 {
        font-size: 20px !important;
    }

    .bbc-reference-number {
        font-size: 15px !important;
    }
}

/* Small phone breakpoints — e.g. Tecno Camon, 390px devices */
@media (max-width: 390px) {
    .bbc-booking-widget { padding: 14px !important; }
    .bbc-calendar-grid > div { font-size: 10px !important; padding: 3px !important; }
    .bbc-duration-option { min-width: 80px !important; font-size: 12px !important; }
    .bbc-btn { font-size: 13px !important; padding: 11px 14px !important; }
    .bbc-summary-label, .bbc-summary-value { font-size: 13px !important; }
}

@media (max-width: 360px) {
    .bbc-booking-widget { padding: 12px !important; }
    .bbc-step-label { font-size: 9px !important; }
    .bbc-booking-nav { gap: 8px !important; }
    .bbc-btn { font-size: 12px !important; padding: 10px 12px !important; }
    .bbc-field-group input,
    .bbc-field-group select,
    .bbc-field-group textarea { font-size: 13px !important; padding: 9px 10px !important; }
    .bbc-calendar-grid > div { font-size: 9px !important; }
    .bbc-summary-label, .bbc-summary-value { font-size: 12px !important; }
}

/* Booking Button Widget - Mobile */
.bbc-booking-button-wrap {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .bbc-booking-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    .bbc-button-price {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .bbc-booking-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
        width: 100% !important;
    }

    .bbc-button-price {
        font-size: 12px !important;
        margin-top: 8px !important;
    }
}

/* Price Inputs in Filters - Mobile */
.bbc-price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 480px) {
    .bbc-price-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .bbc-price-inputs span {
        display: none;
    }

    .bbc-price-inputs .bbc-filter-input {
        width: 100% !important;
    }
}

/* Boat Card Content - Extra Mobile Fixes */
@media (max-width: 480px) {
    .bbc-boat-content {
        padding: 12px !important;
    }

    .bbc-boat-name {
        font-size: 15px !important;
    }

    .bbc-price-amount {
        font-size: 17px !important;
    }

    .bbc-boat-location {
        font-size: 12px !important;
    }

    .bbc-price-period {
        font-size: 11px !important;
    }

    .bbc-boat-excerpt {
        font-size: 12px !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        margin-bottom: 8px !important;
    }

    .bbc-boat-specs {
        gap: 6px !important;
        padding: 6px 0 !important;
    }

    .bbc-spec-item {
        font-size: 11px !important;
    }

    .bbc-spec-item svg {
        width: 14px !important;
        height: 14px !important;
    }

    .bbc-boat-footer {
        margin-top: 8px !important;
    }
}

/* Single Boat Info Widget - Mobile */
.bbc-single-boat-info {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .bbc-boat-title {
        font-size: 22px !important;
    }

    .bbc-boat-location {
        font-size: 14px !important;
    }

    .bbc-boat-price {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .bbc-boat-title {
        font-size: 18px !important;
    }

    .bbc-boat-location {
        font-size: 13px !important;
    }

    .bbc-boat-price {
        font-size: 18px !important;
    }

    .bbc-spec-card {
        padding: 12px !important;
    }

    .bbc-spec-label {
        font-size: 11px !important;
    }

    .bbc-spec-value {
        font-size: 15px !important;
    }
}

/* Grid Default Responsive Behavior */
.bbc-boats-grid {
    display: grid;
    gap: 24px;
    justify-items: stretch;
}

@media (max-width: 1024px) {
    .bbc-boats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        justify-items: stretch;
    }
}

@media (max-width: 600px) {
    .bbc-boats-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        justify-items: stretch;
    }
}

/* Fix for boat grid cards on mobile */
@media (max-width: 600px) {
    .bbc-boat-card {
        border-radius: 10px !important;
    }

    .bbc-boat-image-wrap {
        height: 180px !important;
    }

    .bbc-boat-card-link {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
}

/* =============================================
   BOAT SEARCH WIDGET - COMPREHENSIVE MOBILE STYLES
   ============================================= */

/* Base Search Widget Styles */
.bbc-search-wrapper-v2 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bbc-search-form-v2 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.bbc-search-form-v2.layout-horizontal {
    flex-direction: row;
}

.bbc-search-form-v2.layout-vertical {
    flex-direction: column;
}

.bbc-search-group-v2 {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.bbc-search-group-v2 label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.bbc-search-input-clean-v2,
.bbc-search-select-clean-v2 {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.bbc-search-select-clean-v2 {
    cursor: pointer;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.bbc-search-divider-v2 {
    width: 1px;
    background: #eee;
    margin: 10px 0;
    align-self: stretch;
    flex-shrink: 0;
}

.bbc-search-submit-btn-v2 {
    background: var(--bbc-primary-color, #1a73e8);
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.bbc-search-submit-btn-v2:hover {
    background: var(--bbc-secondary-color, #1557b0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* Date input specific fixes */
.bbc-search-group-v2.bbc-field-date input[type="date"] {
    cursor: pointer;
}

.bbc-search-group-v2.bbc-field-date input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

/* Tablet Responsive - 768px to 1024px */
@media (max-width: 1024px) {
    .bbc-search-form-v2.layout-horizontal .bbc-search-group-v2 {
        padding: 10px 14px;
    }

    .bbc-search-form-v2.layout-horizontal .bbc-search-input-clean-v2,
    .bbc-search-form-v2.layout-horizontal .bbc-search-select-clean-v2 {
        font-size: 15px;
    }

    .bbc-search-form-v2.layout-horizontal .bbc-search-group-v2 label {
        font-size: 11px;
    }

    .bbc-search-submit-btn-v2 {
        padding: 12px 25px;
        font-size: 15px;
    }
}

/* CRITICAL: Mobile Responsive - under 768px - Override Elementor inline styles */
@media (max-width: 768px) {
    /* Force the form to be vertical and auto height on mobile */
    .bbc-search-wrapper-v2,
    .elementor-widget-container .bbc-search-wrapper-v2 {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .bbc-search-form-v2,
    .bbc-search-form-v2.layout-horizontal,
    .bbc-search-form-v2.layout-vertical,
    .elementor-widget-container .bbc-search-form-v2,
    .elementor-widget-container .bbc-search-form-v2.layout-horizontal {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 16px !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .bbc-search-divider-v2,
    .elementor-widget-container .bbc-search-divider-v2 {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .bbc-search-group-v2,
    .elementor-widget-container .bbc-search-group-v2 {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 14px 0 !important;
        flex: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .bbc-search-group-v2:last-of-type {
        border-bottom: none !important;
    }

    .bbc-search-group-v2 label {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }

    .bbc-search-input-clean-v2,
    .bbc-search-select-clean-v2,
    .elementor-widget-container .bbc-search-input-clean-v2,
    .elementor-widget-container .bbc-search-select-clean-v2 {
        font-size: 15px !important;
        padding: 4px 0 !important;
    }

    /* Make selects and inputs full width with proper styling */
    .bbc-search-select-clean-v2 {
        background-position: right 0 center !important;
    }

    .bbc-search-submit-btn-v2,
    .elementor-widget-container .bbc-search-submit-btn-v2 {
        width: 100% !important;
        margin-top: 12px !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
        min-width: 0 !important;
    }
}

/* Small Mobile - under 480px */
@media (max-width: 480px) {
    .bbc-search-wrapper-v2,
    .elementor-widget-container .bbc-search-wrapper-v2 {
        border-radius: 10px !important;
    }

    .bbc-search-form-v2,
    .elementor-widget-container .bbc-search-form-v2 {
        padding: 14px !important;
    }

    .bbc-search-group-v2,
    .elementor-widget-container .bbc-search-group-v2 {
        padding: 12px 0 !important;
    }

    .bbc-search-group-v2 label {
        font-size: 10px !important;
        letter-spacing: 0.3px !important;
        margin-bottom: 5px !important;
    }

    .bbc-search-input-clean-v2,
    .bbc-search-select-clean-v2 {
        font-size: 14px !important;
    }

    .bbc-search-submit-btn-v2,
    .elementor-widget-container .bbc-search-submit-btn-v2 {
        padding: 14px 16px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
        margin-top: 10px !important;
    }
}

/* Extra Small Mobile - under 360px */
@media (max-width: 360px) {
    .bbc-search-form-v2,
    .elementor-widget-container .bbc-search-form-v2 {
        padding: 12px !important;
    }

    .bbc-search-group-v2,
    .elementor-widget-container .bbc-search-group-v2 {
        padding: 10px 0 !important;
    }

    .bbc-search-group-v2 label {
        font-size: 9px !important;
    }

    .bbc-search-input-clean-v2,
    .bbc-search-select-clean-v2 {
        font-size: 13px !important;
    }

    .bbc-search-submit-btn-v2,
    .elementor-widget-container .bbc-search-submit-btn-v2 {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
}

/* Touch-friendly date pickers on mobile */
@media (max-width: 768px) {
    .bbc-search-group-v2.bbc-field-date {
        cursor: pointer;
    }

    .bbc-search-group-v2.bbc-field-date input[type="date"] {
        min-height: 24px;
    }

    /* Style the date picker button for touch */
    input[type="date"]::-webkit-calendar-picker-indicator {
        width: 24px;
        height: 24px;
    }
}

/* Ensure inputs don't have unwanted borders/backgrounds */
.bbc-search-group-v2 input,
.bbc-search-group-v2 select {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Legacy Search Widget Support (older version) */
.bbc-search-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .bbc-search-bar-container {
        border-radius: 16px !important;
        padding: 16px !important;
    }

    .bbc-search-form-horizontal {
        flex-direction: column !important;
    }

    .bbc-search-inputs-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .bbc-search-group {
        padding: 14px 0 !important;
        border-bottom: 1px solid #eee;
    }

    .bbc-search-group:last-child {
        border-bottom: none;
    }

    .bbc-search-divider {
        display: none !important;
    }

    .bbc-search-submit-btn {
        width: 100% !important;
        margin-left: 0 !important;
        border-radius: 12px !important;
        padding: 14px 24px !important;
    }
}

@media (max-width: 480px) {
    .bbc-search-bar-container {
        border-radius: 12px !important;
        padding: 12px !important;
    }

    .bbc-search-group {
        padding: 12px 0 !important;
    }

    .bbc-search-group label {
        font-size: 10px !important;
    }

    .bbc-search-input-clean,
    .bbc-search-select-clean {
        font-size: 14px !important;
    }

    .bbc-search-submit-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }
}

/* =============================================
   iOS AND MOBILE BROWSER SPECIFIC FIXES
   ============================================= */

/* iOS Safari specific fixes for date inputs */
@supports (-webkit-touch-callout: none) {
    .bbc-search-group-v2 input[type="date"],
    .bbc-search-group-v2 input[type="date"]:focus {
        -webkit-appearance: none;
        appearance: none;
        min-height: 28px;
        line-height: 28px;
    }

    /* Prevent iOS zoom on input focus */
    .bbc-search-group-v2 input,
    .bbc-search-group-v2 select {
        font-size: 16px !important;
    }
}

/* Android specific fixes */
@media (max-width: 768px) {
    /* Ensure select dropdown text is visible */
    .bbc-search-select-clean-v2 {
        padding-right: 24px !important;
        background-position: right 4px center !important;
    }

    /* Make date inputs properly sized */
    .bbc-date-input {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Fix for smaller screens where content might overflow */
@media (max-width: 360px) {
    .bbc-search-group-v2 label {
        font-size: 9px !important;
    }

    .bbc-search-input-clean-v2,
    .bbc-search-select-clean-v2 {
        font-size: 14px !important;
    }

    /* Ensure the search button doesn't overflow */
    .bbc-search-submit-btn-v2 {
        padding: 12px 16px;
        font-size: 14px;
    }

    .bbc-search-submit-btn-v2 .bbc-btn-text {
        display: inline;
    }

    .bbc-search-submit-btn-v2 .bbc-btn-icon {
        display: none !important;
    }
}

/* Fix for landscape orientation on mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .bbc-search-form-v2.layout-horizontal {
        flex-wrap: wrap;
    }

    .bbc-search-group-v2 {
        flex: 1 1 45%;
        min-width: 140px;
    }

    .bbc-search-divider-v2 {
        display: none;
    }

    .bbc-search-submit-btn-v2 {
        flex: 1 1 100%;
        margin-top: 8px;
    }
}

/* Ensure proper tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
    .bbc-search-group-v2 {
        min-height: 44px;
    }

    .bbc-search-submit-btn-v2 {
        min-height: 44px;
    }

    .bbc-search-select-clean-v2 {
        min-height: 28px;
    }

    input[type="date"]::-webkit-calendar-picker-indicator {
        width: 28px;
        height: 28px;
        padding: 4px;
    }
}
/* =============================================
   CRITICAL MOBILE FIXES - OVERRIDE ALL
   These use highest specificity and !important
   ============================================= */

/* Force search widget to display correctly on mobile */
@media screen and (max-width: 768px) {
    div.bbc-search-wrapper-v2,
    div.bbc-search-wrapper-v2 * {
        box-sizing: border-box !important;
    }
    
    div.bbc-search-wrapper-v2 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow: visible !important;
    }
    
    form.bbc-search-form-v2 {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        max-height: none !important;
        padding: 16px !important;
        margin: 0 !important;
        gap: 0 !important;
        align-items: stretch !important;
    }
    
    div.bbc-search-divider-v2 {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    div.bbc-search-group-v2 {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        padding: 14px 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #e0e0e0 !important;
    }
    
    div.bbc-search-group-v2:last-of-type {
        border-bottom: none !important;
    }
    
    button.bbc-search-submit-btn-v2 {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 16px 20px !important;
        margin-top: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media screen and (max-width: 480px) {
    form.bbc-search-form-v2 {
        padding: 12px !important;
    }
    
    div.bbc-search-group-v2 {
        padding: 12px 0 !important;
    }
    
    div.bbc-search-group-v2 label {
        font-size: 11px !important;
    }
    
    button.bbc-search-submit-btn-v2 {
        padding: 14px 16px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
    }
}

/* =========================================
   ADD-ONS PANEL
   ========================================= */

.bbc-addons-wrapper {
    margin-top: 20px;
}

.bbc-addons-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #f0f7ff;
    border: 1px solid #c2d9f0;
    border-radius: var(--bbc-border-radius);
    font-family: var(--bbc-font-body);
    font-size: 15px;
    font-weight: 500;
    color: #0052a3;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
}

.bbc-addons-toggle:hover {
    background: #dff0ff;
    border-color: #0066cc;
}

.bbc-addons-toggle-icon {
    font-size: 18px;
    line-height: 1;
    font-style: normal;
}

.bbc-addons-count-chip {
    display: none;
    margin-left: auto;
    background: #0066cc;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.bbc-addons-panel {
    display: none;
    border: 1px solid #c2d9f0;
    border-top: none;
    border-radius: 0 0 var(--bbc-border-radius) var(--bbc-border-radius);
    background: #fff;
    overflow: hidden;
}

.bbc-addon-category-block {
    border-bottom: 1px solid #e8f0fa;
}

.bbc-addon-category-block:last-child {
    border-bottom: none;
}

.bbc-category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    font-family: var(--bbc-font-body);
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.bbc-category-toggle:hover {
    background: #f8f9fa;
}

.bbc-cat-chevron {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s;
}

.bbc-category-items {
    display: none;
    padding: 0 16px 12px;
}

.bbc-addon-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.bbc-addon-row:last-child {
    border-bottom: none;
}

.bbc-addon-checkbox {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #0066cc;
    cursor: pointer;
    margin-top: 2px;
}

.bbc-addon-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bbc-addon-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.bbc-addon-desc {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bbc-addon-price-tag {
    flex-shrink: 0;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #0052a3;
    white-space: nowrap;
}

.bbc-addon-price-tag small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #888;
}

/* Upsell page add-ons */
.bbc-upsell-wrap {
    max-width: 680px;
    margin: 40px auto;
    font-family: var(--bbc-font-body);
}

.bbc-upsell-booking-summary {
    background: #f0f7ff;
    border: 1px solid #c2d9f0;
    border-radius: var(--bbc-border-radius);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.bbc-upsell-booking-summary h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #0052a3;
}

.bbc-upsell-booking-summary p {
    margin: 4px 0;
    font-size: 14px;
    color: #444;
}

.bbc-upsell-addons-section h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

.bbc-upsell-addon-category {
    border: 1px solid #e0e8f4;
    border-radius: var(--bbc-border-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.bbc-upsell-cat-header {
    background: #f8f9fa;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #e0e8f4;
}

.bbc-upsell-cat-items {
    padding: 0 16px;
}

.bbc-upsell-total-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 2px solid #0066cc;
    padding: 16px 0;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bbc-upsell-total-label {
    font-size: 16px;
    color: #444;
}

.bbc-upsell-total-amount {
    font-size: 22px;
    font-weight: 700;
    color: #0052a3;
}

.bbc-upsell-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bbc-btn-addon-pay {
    flex: 1;
    padding: 14px 24px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: var(--bbc-border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.bbc-btn-addon-pay:hover {
    background: #0052a3;
}

.bbc-btn-addon-pay:disabled {
    background: #99c2e8;
    cursor: not-allowed;
}

.bbc-btn-addon-skip {
    padding: 14px 24px;
    background: none;
    color: #666;
    border: 1px solid #ccc;
    border-radius: var(--bbc-border-radius);
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.bbc-btn-addon-skip:hover {
    border-color: #999;
    color: #333;
}

.bbc-upsell-notice {
    background: #fff8e6;
    border: 1px solid #f5c842;
    border-radius: var(--bbc-border-radius);
    padding: 14px 18px;
    font-size: 14px;
    color: #7a5a00;
    margin-bottom: 20px;
}


/* ============================================================
   BOOKING SUMMARY CARD — Step 3
   ============================================================ */
.bbc-summary-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.bbc-summary-card-title {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 13px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #64748b;
}
.bbc-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
.bbc-summary-line:last-child { border-bottom: none; }
.bbc-summary-label { color: #64748b; }
.bbc-summary-value { font-weight: 500; color: #1e293b; text-align: right; }
.bbc-summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0;
}
.bbc-summary-total-row {
    padding: 14px 18px;
    background: #f8fafc;
}
.bbc-summary-total-row .bbc-summary-label {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}
.bbc-summary-total-row .bbc-summary-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--bbc-primary, #0066cc);
}

/* ============================================================
   PAYMENT METHOD CARDS — Step 3
   ============================================================ */
.bbc-payment-method-section { margin-bottom: 20px; }
.bbc-payment-method-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}
.bbc-payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bbc-payment-card {
    display: block;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.bbc-payment-card:hover { border-color: #93c5fd; }
.bbc-payment-card input[type="radio"] { display: none; }
.bbc-payment-card input[type="radio"]:checked + .bbc-payment-card-inner {
    /* handled by sibling selector below */
}
.bbc-payment-card:has(input:checked) {
    border-color: var(--bbc-primary, #0066cc);
    box-shadow: 0 0 0 3px rgba(0,102,204,.1);
    background: #f0f7ff;
}
.bbc-payment-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
}
.bbc-payment-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
}
.bbc-payment-logo svg { display: block; }
.bbc-payment-card-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bbc-payment-card-label strong {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}
.bbc-payment-card-label small {
    font-size: 12px;
    color: #94a3b8;
}
.bbc-payment-card-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    flex-shrink: 0;
    transition: background .15s, border-color .15s, color .15s;
}
.bbc-payment-card:has(input:checked) .bbc-payment-card-check {
    background: var(--bbc-primary, #0066cc);
    border-color: var(--bbc-primary, #0066cc);
    color: #fff;
}
