/**
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;
    z-index: 9999 !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;
}


/* =========================================
   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;
    }
}

/* =========================================
   Pending sale badge
========================================= */

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

.bo-status-badge {
    position: absolute;
    top: 200px;
    right: -55px;

    width: 120px;

    transform: rotate(45deg);

    background: #4ba6dc;

    z-index: 9999;

    text-align: center;

    pointer-events: none;
}

.bo-status-badge span {
    display: block;

    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    padding: 10px 0;

    letter-spacing: 0px;
}

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

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

/* Smaller image */

.bo-salesman-photo img,
.bo-salesman-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* All text black */

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

/* Label */

.bo-salesman-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    text-transform: uppercase;
}

/* Name same size as other text */

.bo-salesman-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

/* Title */

.bo-salesman-title {
    font-size: 16px;
    margin-top: 2px;
}

/* Contact info */

.bo-salesman-phone,
.bo-salesman-email,
.bo-salesman-whatsapp {
    font-size: 16px;
    margin-top: 2px;
}

/* Links */

.bo-salesman-card a {
    color: #000000 !important;
    text-decoration: none;
}

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

/* Mobile */

@media (max-width: 767px) {

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

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

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

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