/**
 * Theme Name: ExboTest
 * Template:   Divi
 * Version: 1.0.10
 * ...other header fields
 */

h1 {
    font-family: "Lora", serif;
}

a {
   color: #E77D1F;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 32, 32, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    visibility: hidden;
    z-index: 99999;
}

.menu-overlay.open {
    visibility: visible;
    opacity: 1;
}


.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 32, 32, 0.94);
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    visibility: hidden;
    z-index: 999999;
}

.search-overlay.open {
    visibility: visible;
    opacity: 1;
}

.search-overlay form {
    position: relative;
    margin: 33vh auto 0 auto;
    max-width: 300px;
}

.search-overlay p {
    color: #efefef;
    font-size: 18px;
    text-align: center;
}

.search-overlay .search-field {
    padding: 0 12px;
    background: transparent;
    color: #efefef;
    width: 100%;
    font-size: 24px;
    border: none;
}

.search-overlay .overlay-close-sok {
    position: absolute;
    top: -50px;
    right: 0;
    cursor: pointer;
}

.search-overlay .search-input-and-submit {
    display: flex;
    justify-content: space-between;
    border: 1px solid #efefef;
    margin-top: 30px;
    width: 100%;
}

.search-overlay .search-submit {
    width: 80px;
    background-color: #efefef;
    color: #171717;
    border: none;
    cursor: pointer;
}

@media only screen and (min-width: 768px) {
    .search-overlay form {
        max-width: 600px;
    }

    .search-overlay p {
        font-size: 40px;
    }

    .search-overlay .search-field {
        font-size: 40px;
    }

    .search-overlay .overlay-close-sok {
        top: -50px;
    }
}


header {
    background-color: red !important;
}

.custom-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

.custom-header-left {
    display: flex;
    justify-content: center;
    margin: 0;
}

.custom-header-center {
    display: flex;
    justify-content: center;
}

.custom-header-logo {
    width: 120px;
}

.custom-header-right {
    display: flex;
    justify-content: center;
}

/* Underline active menu item */
header .nav li.current-menu-item > a,
header .nav li.current_page_item > a,
header .nav li.current-menu-ancestor > a {
    border-bottom: 1px solid #e77d1f; /* Change color and thickness as needed */
}

header .et_pb_column {
    margin-bottom: 0 !important;
}


header .et_mobile_nav_menu {
    display: none !important;
}

.header-mobile-search svg {
    vertical-align: middle;
}

.header-mobile-menu svg {
    vertical-align: middle;
}

body.home .et_pb_section_0.et_pb_section {
    margin-top: -132px !important;
}

body.home .header-mobile-menu svg {
    color: #fff;
}

body.home .header-mobile-search svg {
    color: #fff;
}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

/*Attributes*/

.product-attributes-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 15px;
}

.attribute-box {
    /*background-color: #f9f9f9;*/
    /*border-radius: 8px;*/
    /*padding: 12px 16px;*/
    /*box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);*/
    text-wrap: nowrap;
}

.attribute-name {
    font-weight: normal;
    margin-bottom: 5px;
    display: block;
    font-size: 18px;
    color: #000;
}

.attribute-value {
    font-weight: bold;
    font-size: 18px;
    color: #000;
}

table.dataTable {
    border: 1px solid;
}

table.dataTable,
table.dataTable th,
table.dataTable td {
    border-color: #d9d9d9 !important;
}

/*Toggle*/

.toggle-item {
    margin-bottom: 40px;
    font-size: 16px;
    font-weight: 300;
    color: #4A4A4A;
}

/* Remove background from toggle headers */
.et_pb_toggle {
    background-color: transparent !important;
    padding: 20px 0 !important;
}

h3.et_pb_toggle_title {
    color: #171717 !important;
}

/*Shop page*/

.heading-find-next-estate {
    margin-bottom: 10px !important;
}

.estate-location-before-title {
    font-family: "Inter", sans-serif;
    font-weight: normal;
    font-size: 16px;
    color: #e77d1f;
    margin-top: 10px;
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    padding: 0.1em 0 0.2em 0;
}

.estate-data-after-title {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #3c3c3c;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: "Lora", serif;
    font-weight: 600;
    font-size: 20px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.data-after-title {
    font-family: "Inter", sans-serif;
    font-weight: normal;
    font-size: 16px;
    color: #000;
}

/*Sidebar*/


/* Result count centered above everything */
.custom-shop-count {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}



.shop-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
    width: 100%;
}

.custom-ordering {
    display: flex;
    flex-direction: column;
    color: #1f1f1f;
}

.woocommerce-ordering select {
    background-color: #fff;
    border: 1px solid #707070;
    padding-top: 12px;
    padding-bottom: 12px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #3c3c3c !important;
}

.woocommerce-ordering {
    margin: 0 !important;
}

#filter-toggle {
    background: #f9f3ef;;
    color: #1f1f1f;
    border: none;
    padding: 14px 16px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    display: flex;
    gap: 40px;
}

#filter-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 350px;
    height: 100vh;
    background: #fff;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 9999;
    padding: 0;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.35);
}

#filter-sidebar.active {
    left: 0;
}

.widget_wpc_filters_widget {
    padding: 20px;
}


.estate-filter-title-and-close {
    display: flex;
    justify-content: space-between;
    background-color: #233739;
    font-size: 18px;
    color: #fff;
    padding: 30px 20px;
}

.estate-filter-close {
    cursor: pointer;
}

#filter-sidebar .wpc-term-item-content-wrapper label a {
    color: #171717 !important;
}

.wpc-filter-header {
    font-weight: 600;
}

#filter-sidebar .wpc-filters-apply-button {
    color: #fff !important;
}

#filter-sidebar .wpc-filters-close-button {
    color: #171717 !important;
}

.wpc-filters-widget-controls-container {
    display: block !important;
}


body.woocommerce-shop .et_overlay {
    display:none !important;
}


body.woocommerce-shop #main-content .et_builder_inner_content {
    z-index: 2 !important;
}


/*Pop-out menu*/
/* Container offscreen and sliding effect */
.pop-out-content {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding: 40px;
    gap: 15px;
}

.pop-out-header {
    align-self: flex-end;
}

.pop-out-close:hover {
    cursor: pointer;
}

.pop-out-menu-container {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100%;
    background: #f9f3ef;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 999999;
    padding: 20px;
}

/* Menu items */
.pop-out-menu-items {
    list-style: none;
    padding: 0 !important;
}

.pop-out-menu-items li {
    font-family: "Lora", serif;
    font-weight: 500;
    font-size: 24px;
    list-style: none;
    margin: 15px 0;
    border-bottom: 1px solid #03050a;
    padding: 12px 0;
}

.pop-out-menu-items li a {
    color: #03050a !important;
}

.pop-out-menu-container.active {
    right: 0;
}

.pop-out-footer {
    font-size: 18px;
    color: #e09200;
}






.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
    opacity: 0.8 !important;
    color: black !important;
    text-align: end;
}
.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::-webkit-input-placeholder {
    opacity: 0.8 !important;
    color: black !important;
    text-align: end;
}
.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:-moz-placeholder {
    opacity: 0.8 !important;
    color: black !important;
    text-align: end;
}
.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::-moz-placeholder {
    opacity: 0.8 !important;
    color: black !important;
    text-align: end;
}
.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:-ms-input-placeholder {
    opacity: 0.8 !important;
    color: black !important;
    text-align: end;
}

#dgwt-wcas-search-input-1 {
    border-radius: 4px;
    border-color: #fff;
    outline-color: #fff;
    box-shadow: none;
    /*text-align: end;*/
}

/*.dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {*/
/*    display: none !important;*/
/*}*/







/* Toggle button style */
#toggle-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: #000;
    color: #fff;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}










/* General Wrapper */
.custom-toggle-wrapper {
    position: relative;
}

#imageMapToggle {
    height: 210px;
}

#imageMapToggle #imageContainer {
    height: 100%;
}

.main-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 4px;
}

.overlay-buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.overlay-buttons button {
    font-size: 16px;
    background: #fff;
    color: #3C3C3C;
    border-style: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    opacity: 1;
}

.overlay-buttons button:hover {
    opacity: 0.9;
}

/* Fullscreen gallery grid */
.gallery-grid {
    position: fixed;
    top: 0;
    width: 100%; /* Full width */
    height: 100vh; /* Full screen height */
    background: #fff;
    overflow-y: auto;
    padding: 20px;
    z-index: 100000; /* Ensures it's above the header */
    box-sizing: border-box;
    margin-left: 0; /* Remove left margin */
    margin-right: 0; /* Remove right margin */
}

.gallery-grid2 {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 15px; /* Add spacing between images */
    max-width: 1200px;
    margin: 40px auto 40px auto;
}

/* Ensures gallery doesn't overlap text */
.custom-toggle-wrapper {
    position: relative;
    z-index: 1; /* Text is under the gallery */
}

/* Gallery grid item styling */
.gallery-grid-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px; /* Optional: rounded corners */
}

.gallery-grid-item img:hover {
    transform: scale(1.05);
}

/* Close button styling */
.close-gallery-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #000;
    border-radius: 50%;
    padding: 10px 10px;
    cursor: pointer;
    z-index: 100001; /* Make sure the close button is on top of the gallery */
}



.fancybox__container {
    z-index: 100001 !important;
}









.side-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f9f3ef;
    gap: 8px;
    padding: 20px 30px 30px 30px;
    border-radius: 4px;
}

.side-box-showing {
    font-size: 16px;
    color: #e77e21;
}

.side-box-date {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    font-size: 26px;
    color: #2f2f2f;
}

.side-box-time {
    font-size: 18px;
    font-weight: bold;
    color: #2f2f2f;
}

.side-box-buttons {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 8px;
    width: 100%;
}

.side-box-buttons a {
    padding: 12px 24px;
    border-radius: 4px;
    background-color: #fff;
    color: #000 !important;
    font-size: 18px;
}

.side-box-buttons a.btn-bid {
    background-color: #e77e21;
    color: #fff !important;
    font-weight: bold;
}

.free-value-image {
    width: 70%;
    margin: 20px auto !important;
}


.broker-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: #F9F3EF;
    border-radius: 4px;
    padding: 30px;
}

.broker-box .image-container {
    width: 70%;
}

.broker-box img {
    border-radius: 50%;
}

.broker-box .broker-text {
    font-size: 18px;
    color: #171717;
    margin-bottom: 20px;
    text-align: center;
}

.broker-box .broker-name {
    font-size: 20px;
    font-weight: 700;
}

.broker-box a {
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 4px;
    background-color: #2C3D49;
    color: #fff;
    width: 100%;
    text-align: center;
}




.estate-product-section {
    background-image: linear-gradient(180deg, #f9f3ef 22%, #ffffff 22%) !important;
}


.estate-info-row {
    padding-top: 20px !important;
}

.estate-image-row {
    padding-top: 16px !important;
}


.swiper-slide img {
    width: 100%;
    border-radius: 4px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.swiper-slide .estate-title {
    font-family: "Lora", serif;
    font-weight: 600;
    font-size: 20px;
    color: #171717;
    margin: 6px 0 10px 0;
}

.swiper-button-next::after, .swiper-button-prev::after {
    color: #707070;
    font-size: 20px;
}

.swiper-button-prev {
    top: 42%;
    left: -40px;
}

.swiper-button-next {
    top: 42%;
    right: -40px;
}


p.unit-parent-link {
    font-size: 14px;
    margin-bottom: 20px;
}

.unit-parent-link a {
    font-size: 14px;
    font-weight: 700;
}


@media only screen and (max-width: 980px) {
    body.filter-open {
        overflow: hidden;
    }

    .dgwt-wcas-search-wrapp {
        width: 80%;
    }

    #main-content #estate-search-row {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
    }

    /*.dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {*/
    /*    display: none !important;*/
    /*}*/

    .shop-controls-row {
        flex-direction: column;
        align-items: center;
    }

    .shop-controls-row .custom-ordering span {
        font-size: 10px;
    }

    .shop-filter,
    .woocommerce-ordering {
        text-align: center;
        margin-bottom: 6px;
    }

    .shop-filter #filter-toggle {
        font-size: 14px;
        align-items: center;
        padding: 8px 12px;
    }

    .woocommerce-ordering select {
        font-size: 14px;
        padding: 8px 8px;
    }



    /* Force WooCommerce product list items to one column */
    body.et-db #et-boc .et-l .et_pb_shop ul.products.columns-3 li.product {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-right: 0 !important;
        display: block !important;
    }

    .estate-product-section {
        background-image: linear-gradient(180deg, #f9f3ef 7%, #ffffff 7%) !important;
    }

    .broker-box .broker-text {
        font-size: 16px;
    }

    .broker-box .broker-name {
        font-size: 18px;
    }

    .broker-box a {
        font-size: 16px;
    }

    .estate-location-before-title {
        font-size: 14px;
    }

    .swiper-slide .estate-title {
        margin: 2px 0 4px 0;
    }

    .estate-data-after-title {
        font-size: 14px;
    }

    .desktop-column {
        display: none;
    }
}



@media only screen and (max-width: 980px) {
    header .custom-header-menu-left {
        display: none !important;
    }

    header .custom-header-menu-right {
        display: none !important;
    }

    .heading-find-next-estate {
        margin-bottom: 8px !important;
    }

    .heading-find-next-estate h1 {
        font-size: 22px !important;
    }

    .woocommerce-custom-result-count {
        top: -188px;
        font-size: 16px;
        color: #171717;
    }




    .pop-out-menu-container {
        right: -100%;
        width: 100%;
        height: 100%;
        box-shadow: -2px 0 8px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
        z-index: 9999;
        padding: 20px;
    }

    .pop-out-content {
        padding: 0;
        margin: 20px;
        gap: 10px;
    }

    .pop-out-menu-items li {
        font-size: 20px;
        padding: 10px 0;
    }

    /*.custom-header-menu-right.et_pb_menu .et_pb_menu__menu,.custom-header-menu-right.et_pb_fullwidth_menu .et_pb_menu__menu {*/
    /*    display: flex !important;*/
    /*}*/

    /*.custom-header-menu-right .et_mobile_nav_menu {*/
    /*    display: none !important;*/
    /*}*/

    /*.custom-header-menu-left .et_mobile_nav_menu {*/
    /*    display: none !important;*/
    /*}*/

    /*.custom-header-menu-right ul li:not(:last-child) {*/
    /*    display: none !important;*/
    /*}*/

    /*.custom-header-menu-right ul li:last-child {*/
    /*    display: inline-block !important;*/
    /*}*/

    .custom-header-center {
        margin: 0 !important;
    }
}

@media only screen and (min-width: 768px) {
    #imageMapToggle {
        height: 480px;
    }

    p.unit-parent-link {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .unit-parent-link a {
        font-size: 18px;
    }

    .close-gallery-btn {
        top: 20px;
        right: 20px;
        background-color: #000;
        border-radius: 50%;
        padding: 10px 10px;
        cursor: pointer;
        z-index: 100001; /* Make sure the close button is on top of the gallery */
    }
}


@media only screen and (min-width: 980px) {
    #filter-sidebar {
        position: absolute;
        top: 0;
        left: -400px;
        width: 350px;
        height: fit-content;
        background: #fff;
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 9999;
        padding: 0;
        box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.35);
    }

    #imageMapToggle {
        height: 720px;
    }

    .header-mobile-search {
        display: none !important;
    }

    .header-mobile-menu {
        display: none !important;
    }

    .mobile-column {
        display: none;
    }
}


@media only screen and (max-width: 768px) {

    .custom-header-logo {
        width: 100px;
    }

    .estate-title-row {
        padding-top: 0 !important;
    }

    .estate-image-row {
        padding-top: 8px !important;
    }

    .estate-info-row {
        padding-top: 0 !important;
    }

    .estate-location-text {
        font-size: 14px !important;
    }

    .estate-product-section h1 {
        font-size: 22px !important;
    }

    .overlay-buttons button {
        font-size: 12px;
        padding: 6px 12px;
    }

    .estate-about-text {
        font-size: 16px !important;
    }

    body.single-product .et_pb_toggle_title {
        font-size: 20px !important;
    }

    /*Attributes*/

    .product-attributes-flex {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 20px;
        margin-top: 15px;
    }

    .attribute-name {
        margin-bottom: 0;
        font-size: 14px;
    }

    .attribute-value {
        font-size: 14px;
    }




    .side-box {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #f9f3ef;
        gap: 8px;
        padding: 20px 30px 30px 30px;
        border-radius: 4px;
    }

    .side-box-showing {
        font-size: 14px;
        color: #e77e21;
    }

    .side-box-date {
        font-family: "Lora", serif;
        font-optical-sizing: auto;
        font-weight: bold;
        font-style: normal;
        font-size: 22px;
        color: #2f2f2f;
    }

    .side-box-time {
        font-size: 16px;
        font-weight: bold;
        color: #2f2f2f;
    }

    .side-box-buttons {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 8px;
        width: 100%;
    }

    .side-box-buttons a {
        padding: 12px 24px;
        border-radius: 4px;
        background-color: #fff;
        color: #000 !important;
        font-size: 16px;
    }

    .side-box-buttons a.btn-bid {
        background-color: #e77e21;
        color: #fff !important;
        font-weight: bold;
    }
}







/*Rehans*/
/* Disse er lagt inn av Rehan og må flyttes til css-filen !!! */
/*body.home .et_pb_section_0_tb_header.et_pb_section {*/
/*    background-color: transparent !important;*/
/*}*/

/*body.home header {*/
/*    background-color: transparent !important;*/
/*}*/

/*body.home .et_pb_menu_0_tb_header.et_pb_menu ul li a,*/
/*body.home .et_pb_menu_1_tb_header.et_pb_menu ul li a {*/
/*    color: #fff !important;*/
/*}*/

/*!* Hide by default *!*/
/*.logo-white {*/
/*    display: none;*/
/*}*/
/*body.home .logo-white {*/
/*    display: block;*/
/*}*/
/*body.home .logo-orange {*/
/*    display: none;*/
/*}*/


.shop-heading-and-search {
    background-color: #f9f3ef;
    padding: 0 0 30px;
}

.shop-heading-and-search h1 {
    font-weight: 500;
    font-size: 22px;
    text-align: center;
}

p.woocommerce-custom-result-count {
    margin: 20px auto;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
}

ul.products {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* or however many columns */
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#estates-grid li.product {
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
}

ul.products::before,
ul.products::after {
    display: none !important;
    content: none !important;
}

ul.products img {
    border-radius: 4px;
}

.woocommerce-pagination {
    margin: 30px 0;
}

section.similar-estates {
    margin-top: 50px;
}

section.similar-estates h3 {
    font-size: 18px;
}

@media only screen and (min-width: 768px) {
    .shop-heading-and-search {
        padding: 36px 0 45px;
    }

    .shop-heading-and-search h1 {
        font-size: 40px;
        margin-bottom: 10px;
    }

    p.woocommerce-custom-result-count {
        margin: 38px auto 30px;
        font-size: 24px;
    }

    ul.products {
        grid-template-columns: repeat(2, 1fr); /* or however many columns */
        gap: 2rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 22px;
    }

    .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
        padding: 0.3em 0 0.4em 0;
    }
}

@media only screen and (min-width: 980px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr); /* or however many columns */
        gap: 2rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }
}