/**
Theme Name: Blueocean Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra child theme for Blueocean.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blueocean-astra-child
Template: astra
*/


/* =========================================
   SINGLE BOAT PRICE
========================================= */

.bo-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    text-align: right;
}

.bo-price-normal,
.bo-price-sale {
    font-size: 30px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.bo-price-old {
    position: relative !important;
    display: inline-block;
    font-size: 30px;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.75 !important;
    line-height: 1;
    padding: 0 2px;
}

.bo-price-old::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 50% !important;
    height: 2px !important;
    background: currentColor !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

.bo-price-sold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bo-price-sold-text {
    display: inline-block;
    background: #4ba6dc;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 18px;
    border-radius: 4px;
}


/* =========================================
   LOOP GRID CARD
========================================= */

a.bo-loop-card,
.bo-loop-card {
    text-decoration: none !important;
    overflow: hidden;
}


/* =========================================
   LOOP GRID IMAGE WRAPPER
========================================= */

.bo-loop-image-wrap {
    position: relative !important;
    overflow: hidden !important;
}

.bo-loop-image-wrap img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}


/* =========================================
   LOOP GRID PRICE POSITIONING
========================================= */

.bo-loop-image-wrap .bo-loop-price-wrap {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    top: auto !important;

    z-index: 40 !important;

    width: auto !important;
    max-width: max-content !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;
}

.bo-loop-price-wrap .elementor-widget-container,
.bo-loop-price-wrap .elementor-shortcode {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}


/* =========================================
   LOOP GRID PRICE BADGE
========================================= */

.bo-loop-price-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;

    background: #4ba6dc !important;
    color: #fff !important;

    padding: 6px 12px !important;

    line-height: 1 !important;

    width: auto !important;
    max-width: max-content !important;

    margin: 0 !important;

    text-decoration: none !important;
}

.bo-loop-price-badge,
.bo-loop-price-badge *,
.bo-loop-price-badge span,
.bo-loop-price-badge a {
    color: #fff !important;
    text-decoration: none !important;
}

.bo-loop-price-current {
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.bo-loop-price-separator {
    font-size: 14px !important;
    font-weight: 400 !important;
    opacity: 0.9 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.bo-loop-price-old {
    position: relative !important;
    display: inline-block !important;

    font-size: 14px !important;
    font-weight: 400 !important;

    opacity: 0.9 !important;

    white-space: nowrap !important;
    line-height: 1 !important;

    padding: 0 2px;
}

.bo-loop-price-old::after {
    content: "" !important;

    position: absolute !important;

    left: 0 !important;
    right: 0 !important;
    top: 50% !important;

    height: 1px !important;

    background: #fff !important;

    transform: translateY(-50%) !important;

    pointer-events: none !important;
}

.bo-loop-price-badge-sold {
    background: #4ba6dc !important;
}


/* =========================================
   LOOP GRID CONTENT
========================================= */

.bo-loop-content {
    padding-top: 16px;
}


/* =========================================
   BOAT DETAIL ROWS
========================================= */

.bo-spec-row {
    display: flex !important;
    align-items: center !important;

    width: 100% !important;

    gap: 10px !important;
}

.bo-spec-label {
    width: 150px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.bo-spec-row .bo-spec-dots {
    flex: 1 1 auto !important;
    min-width: 40px !important;
}

.bo-spec-row .bo-spec-dots .elementor-divider {
    padding: 0 !important;
}

.bo-spec-row .bo-spec-dots .elementor-divider-separator {
    width: 100% !important;

    border-top:
        2px dotted rgba(0, 0, 0, 0.35) !important;
}

.bo-spec-value {
    white-space: nowrap;
    flex: 0 0 auto;

    text-align: right;

    font-weight: 600;
}


/* =========================================
   SHORTCODE COUNTERS
========================================= */

.bo-counter {
    font-size: 50px !important;
    color: #fff !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}


/* =========================================
   BOAT STATUS BADGE
   Kauppa vireillä
========================================= */

.bo-loop-image-wrap {
    position: relative !important;
    overflow: hidden !important;
}

.bo-loop-image-wrap .bo-status-badge {
    position: absolute !important;

    top: 0px !important;
    right: 0 !important;

    bottom: auto !important;
    left: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #4ba6dc !important;

    transform: none !important;

    z-index: 50 !important;

    pointer-events: none !important;

    text-align: center !important;
}

.bo-loop-image-wrap .bo-status-badge::before,
.bo-loop-image-wrap .bo-status-badge::after {
    content: none !important;
    display: none !important;
}

.bo-loop-image-wrap .bo-status-badge span {
    display: block !important;

    margin: 0 !important;

    padding: 9px 16px !important;

    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    letter-spacing: 0.3px !important;

    white-space: nowrap !important;

    text-transform: uppercase !important;
}


/* =========================================
   SALESMAN CARD
========================================= */

.bo-salesman-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bo-salesman-photo img,
.bo-salesman-image {
    width: 80px;
    height: 80px;

    object-fit: cover;

    border-radius: 50%;

    display: block;
}

.bo-salesman-card,
.bo-salesman-card * {
    color: #000000 !important;
}

.bo-salesman-label {
    font-size: 16px;
    font-weight: 600;

    margin-bottom: 2px;

    text-transform: uppercase;
}

.bo-salesman-name {
    margin: 0;

    font-size: 16px;
    font-weight: 600;

    line-height: 1.4;
}

.bo-salesman-title {
    font-size: 16px;

    margin-top: 2px;
}

.bo-salesman-phone,
.bo-salesman-email,
.bo-salesman-whatsapp {
    font-size: 16px;

    margin-top: 2px;
}

.bo-salesman-card a {
    color: #000000 !important;

    text-decoration: none;
}

.bo-salesman-card a:hover {
    text-decoration: underline;
}


/* =========================================
   SAILBOAT-ONLY ELEMENTS
========================================= */

.show-only-sailboats {
    display: none !important;
}

body.bo-boat-type-purjeveneet .show-only-sailboats {
    display: flex !important;
}


/* =========================================
   BOAT YOUTUBE VIDEO GRID
========================================= */

/*
 * Add CSS class "bo-video-grid" to the
 * parent Elementor container holding
 * Video 1, Video 2 and Video 3.
 *
 * Desktop:
 * 1 video  = 1/3 width
 * 2 videos = 2 x 1/3 width
 * 3 videos = 3 x 1/3 width
 */

.bo-video-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    gap: 20px !important;

    width: 100% !important;
}

/*
 * Force each direct Elementor child
 * to occupy exactly one third of the row.
 */

.bo-video-grid > .e-con,
.bo-video-grid > .elementor-element {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: calc((100% - 40px) / 3) !important;

    width: calc((100% - 40px) / 3) !important;
    max-width: calc((100% - 40px) / 3) !important;

    min-width: 0 !important;
}

/*
 * Video itself fills its own 1/3 column,
 * not the entire parent container.
 */

.bo-video-grid .elementor-widget-video,
.bo-video-grid .elementor-widget-container,
.bo-video-grid .elementor-wrapper,
.bo-video-grid iframe {
    width: 100% !important;
    max-width: 100% !important;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .bo-video-grid {
        flex-wrap: wrap !important;
    }

    .bo-video-grid > .e-con,
    .bo-video-grid > .elementor-element {
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        flex-basis: calc((100% - 20px) / 2) !important;

        width: calc((100% - 20px) / 2) !important;
        max-width: calc((100% - 20px) / 2) !important;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .bo-price-normal,
    .bo-price-sale,
    .bo-price-old {
        font-size: 24px;
    }

    .bo-price-sold-text {
        font-size: 18px;

        padding: 8px 14px;
    }

    .bo-loop-price-badge {
        padding: 5px 10px !important;

        gap: 6px !important;
    }

    .bo-loop-price-current,
    .bo-loop-price-separator,
    .bo-loop-price-old {
        font-size: 13px !important;
    }

    .bo-spec-row {
        gap: 6px !important;
    }

    .bo-spec-label {
        width: 110px;

        font-size: 14px;
    }

    .bo-spec-value {
        font-size: 14px;
    }

    .bo-loop-image-wrap .bo-status-badge {
        top: 10px !important;
        right: 0 !important;
    }

    .bo-loop-image-wrap .bo-status-badge span {
        padding: 8px 13px !important;

        font-size: 12px !important;
    }

    .bo-salesman-card {
        gap: 14px;
    }

    .bo-salesman-photo img,
    .bo-salesman-image {
        width: 50px;
        height: 50px;
    }

    /*
     * Videos stack full-width on mobile.
     */

    .bo-video-grid {
        display: block !important;
    }

    .bo-video-grid > .e-con,
    .bo-video-grid > .elementor-element {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;

        margin-bottom: 15px !important;
    }
}


/* =========================================
   BOAT SEARCH & SORT
========================================= */

.bo-boat-filter-form {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.bo-boat-filter-search {
    flex: 1 1 300px;
}

.bo-boat-filter-sort {
    flex: 0 1 240px;
}

.bo-boat-filter-search input,
.bo-boat-filter-sort select {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #d5d5d5;
    border-radius: 0;
    background: #ffffff;
    color: #222222;
    font-size: 15px;
    line-height: 1;
    box-sizing: border-box;
}

.bo-boat-filter-search input:focus,
.bo-boat-filter-sort select:focus {
    outline: none;
    border-color: #222222;
}

.bo-boat-filter-submit button {
    height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bo-boat-filter-reset {
    display: flex;
    align-items: center;
}

.bo-boat-filter-reset a {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}


/* =========================================
   BOAT SEARCH & SORT - MOBILE
========================================= */

@media (max-width: 767px) {

    .bo-boat-filter-form {
        display: block;
    }

    .bo-boat-filter-search,
    .bo-boat-filter-sort,
    .bo-boat-filter-submit,
    .bo-boat-filter-reset {
        width: 100%;
        margin-bottom: 10px;
    }

    .bo-boat-filter-submit button {
        width: 100%;
    }

    .bo-boat-filter-reset {
        justify-content: center;
        margin-top: 5px;
    }
}