.boel-listing {
    --boel-navy: #0b2538;
    --boel-ink: #183242;
    --boel-muted: #5f7180;
    --boel-line: #d8e2e8;
    width: 100%;
    min-width: 100%;
    color: var(--boel-ink);
    background: #fff;
}

body.boel-listing-template .pxl-page-title,
body.boel-listing-template #pxl-page-title-elementor,
body.boel-listing-template #pxl-page-title-default,
body.boel-listing-template [id^="pxl-page-title"],
body.boel-listing-template .pxl-page-title-area,
body.boel-listing-template .pxl-pagetitle,
body.boel-listing-template .pxl-breadcrumb-wrap,
body.boel-listing-template .ct-page-title,
body.boel-listing-template .case-page-title,
body.boel-listing-template .cms-page-title,
body.boel-listing-template .site-page-title,
body.boel-listing-template .page-title-area,
body.boel-listing-template .page-title-section,
body.boel-listing-template .page-title-wrapper,
body.boel-listing-template .page-title-wrap,
body.boel-listing-template .page-header,
body.boel-listing-template .breadcrumb-area,
body.boel-listing-template .breadcrumb-wrap {
    display: none !important;
}

.boel-hero {
    position: relative;
    width: 100%;
    min-width: 100%;
    min-height: clamp(280px, 34vw, 420px);
    display: flex;
    align-items: flex-end;
    background-color: var(--boel-navy);
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.boel-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 37, 56, 0.12), rgba(11, 37, 56, 0.64));
}

.boel-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 96px 0 56px;
    color: #fff;
}

.boel-hero__inner h1 {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.boel-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 76px);
}

.boel-content {
    min-width: 100%;
}

.boel-content > *:first-child {
    margin-top: 0;
}

.boel-content img,
.boel-content iframe {
    max-width: 100%;
}

body.boel-agent-template .es-request-form {
    padding: 16px 16px;
    background-color: #036471 !important;
    max-width: 100%;
    box-sizing: border-box;
}

body.boel-listing-template:not(.boel-agent-template) .es-privacy-policy-container,
body.boel-listing-template:not(.boel-agent-template) .es-privacy-policy-container a {
    color: #183242 !important;
}

.boel-share-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin: clamp(36px, 5vw, 64px) auto 0;
    padding-top: 34px;
    border-top: 1px solid var(--boel-line);
}

.boel-share-footer__label {
    color: var(--boel-navy);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.boel-share-footer__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.boel-share-footer__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--boel-navy);
    background: #fff;
    border: 1px solid var(--boel-line);
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.boel-share-footer__link:hover,
.boel-share-footer__link:focus {
    color: #fff;
    background: var(--boel-navy);
    border-color: var(--boel-navy);
    text-decoration: none;
}

.boel-share-footer__link svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: currentColor;
}

body.boel-listing-template .es-single--single-slider .es-slider {
    display: block !important;
}

body.boel-listing-template .es-single--single-slider .es-mobile-gallery-wrap,
body.boel-listing-template #es-mobile-gallery-popup {
    display: none !important;
}

html.boel-mfp-open,
body.boel-listing-template.boel-mfp-open {
    touch-action: pan-x pan-y pinch-zoom;
}

body.boel-listing-template .mfp-bg {
    background: #000 !important;
    opacity: 0.8 !important;
    z-index: 999990 !important;
}

body.boel-listing-template .mfp-wrap,
body.boel-listing-template .mfp-container {
    background: transparent !important;
    z-index: 999991 !important;
}

body.boel-listing-template .mfp-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.boel-listing-template .mfp-content,
body.boel-listing-template .mfp-figure {
    position: relative;
    z-index: 999992 !important;
    background: transparent !important;
}

body.boel-listing-template .mfp-image-holder .mfp-content {
    max-width: 100vw !important;
    background: transparent !important;
}

body.boel-listing-template .mfp-figure {
    line-height: 0;
}

body.boel-listing-template .mfp-figure:after {
    display: none !important;
}

body.boel-listing-template .mfp-content .mfp-close,
body.boel-listing-template .mfp-figure .mfp-close {
    display: none !important;
}

body.boel-listing-template img.mfp-img {
    display: block;
    position: relative;
    z-index: 999992 !important;
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 88px) !important;
    max-height: calc(100svh - 88px) !important;
    height: auto !important;
    padding: 0 !important;
    object-fit: contain;
    touch-action: pan-x pan-y pinch-zoom;
}

body.boel-listing-template .mfp-bottom-bar {
    margin-top: -48px;
}

body.boel-listing-template .mfp-title {
    display: none !important;
}

body.boel-listing-template .mfp-counter {
    top: auto;
    right: 50%;
    bottom: 22px;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    transform: translateX(50%);
}

body.boel-listing-template .boel-swipe-hint {
    display: none;
}

body.boel-listing-template .mfp-close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    color: #111 !important;
    background: #fff !important;
    border-radius: 4px;
    border: 0 !important;
    opacity: 1;
    font-size: 32px;
    font-weight: 400;
    line-height: 48px;
    text-align: center;
    text-shadow: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    z-index: 999993 !important;
}

body.boel-listing-template .mfp-arrow {
    width: 56px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    min-height: 56px;
    max-height: 56px;
    padding: 0 !important;
    margin-top: -28px;
    box-sizing: border-box;
    background: #fff !important;
    border: 0 !important;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    opacity: 1;
    z-index: 999993 !important;
}

body.boel-listing-template .mfp-arrow-left {
    left: clamp(24px, 3vw, 56px) !important;
}

body.boel-listing-template .mfp-arrow-right {
    right: clamp(24px, 3vw, 56px) !important;
}

body.boel-listing-template .mfp-arrow:hover,
body.boel-listing-template .mfp-arrow:focus {
    background: #fff !important;
    opacity: 1;
}

body.boel-listing-template .mfp-arrow:before,
body.boel-listing-template .mfp-arrow:after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 1 !important;
}

body.boel-listing-template .mfp-arrow:before {
    display: none !important;
}

body.boel-listing-template .mfp-arrow-left:after {
    border-left: 3px solid #111 !important;
    border-bottom: 3px solid #111 !important;
    transform: translate(-35%, -50%) rotate(45deg);
}

body.boel-listing-template .mfp-arrow-right:after {
    border-right: 3px solid #111 !important;
    border-top: 3px solid #111 !important;
    transform: translate(-65%, -50%) rotate(45deg);
}

@media (max-width: 640px) {
    body.boel-listing-template .mfp-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.boel-listing-template .mfp-image-holder .mfp-content {
        max-width: 100vw !important;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    body.boel-listing-template img.mfp-img {
        width: auto !important;
        max-width: 100% !important;
        max-height: calc(100vh - 120px) !important;
        max-height: calc(100svh - 120px) !important;
        padding: 0 !important;
    }

    body.boel-listing-template .mfp-arrow {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        padding: 0 !important;
        margin-top: 0 !important;
        top: var(--boel-gallery-controls-top, calc(50% + 190px)) !important;
        bottom: auto !important;
        border-radius: 999px;
        line-height: 44px;
        box-sizing: border-box;
        appearance: none;
        transform: none !important;
    }

    body.boel-listing-template .mfp-arrow-left {
        left: calc(50% - 48px) !important;
        right: auto !important;
    }

    body.boel-listing-template .mfp-arrow-right {
        right: calc(50% - 48px) !important;
        left: auto !important;
    }

    body.boel-listing-template .mfp-arrow:after {
        width: 12px !important;
        height: 12px !important;
    }

    body.boel-listing-template .mfp-arrow-left:after {
        transform: translate(-32%, -50%) rotate(45deg);
    }

    body.boel-listing-template .mfp-arrow-right:after {
        transform: translate(-68%, -50%) rotate(45deg);
    }

    body.boel-listing-template .mfp-close {
        top: 10px;
        right: 10px;
    }

    body.boel-listing-template .mfp-counter {
        top: var(--boel-gallery-counter-top, calc(50% + 150px));
        right: 50%;
        bottom: auto;
    }

    body.boel-listing-template .boel-swipe-hint {
        position: fixed;
        left: 50%;
        top: var(--boel-gallery-hint-top, calc(50% + 120px));
        bottom: auto;
        z-index: 999993;
        display: block;
        padding: 7px 14px;
        color: #fff;
        background: rgba(0, 0, 0, 0.68);
        border-radius: 999px;
        font-size: 13px;
        line-height: 1;
        letter-spacing: 0;
        transform: translateX(-50%);
        pointer-events: none;
        transition: opacity 160ms ease, visibility 160ms ease;
        white-space: nowrap;
    }

    body.boel-listing-template.boel-gallery-swiped .boel-swipe-hint {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 560px) {
    body.boel-listing-template #pxl-main,
    body.boel-listing-template .boel-listing {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .boel-hero {
        margin-top: 0;
        padding-top: 0;
        min-height: 280px;
    }

    .boel-hero__inner {
        width: min(100% - 28px, 1180px);
    }

    .boel-shell {
        width: 100%;
        padding: clamp(40px, 5vw, 72px) 20px clamp(48px, 6vw, 76px);
        box-sizing: border-box;
    }

    .boel-hero__inner {
        padding: 84px 0 40px;
    }

    .boel-hero__inner h1 {
        font-size: clamp(1.9rem, 9vw, 3rem);
    }

    body.boel-listing-template .es-single--single-slider .es-slider {
        display: block !important;
    }

    body.boel-listing-template .es-single--single-slider .es-slider__image,
    body.boel-listing-template .es-single--single-slider .es-slider__image-inner {
        display: block !important;
    }

    body.boel-listing-template .es-single--single-slider .es-slider__pager {
        display: block !important;
    }

    body.boel-listing-template .es-single--single-slider .es-mobile-gallery-wrap,
    body.boel-listing-template #es-mobile-gallery-popup {
        display: none !important;
    }

    .boel-share-footer {
        flex-direction: column;
        gap: 14px;
        padding-top: 28px;
    }

}

@media (max-width: 1200px) {
    body.boel-listing-template #pxl-main,
    body.boel-listing-template.elementor-page:not(.single-product, .single-post) #pxl-main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}
