/*
Theme Name:     Bellevue - Child Theme
Theme URI:      http://themovation.com
Template:       bellevuex
Author:         Themovation
Author URI:     http://themovation.com
Version:        3.0
Text Domain:    bellevue
Domain Path:    /languages/
*/


/* = Theme customization starts here
-------------------------------------------------------------- */

.top-nav, .headhesive--clone .top-nav {
    background:#66af39 !important;
}
.top-nav-icon-blocks .icon-block p, .top-nav-icon-blocks .icon-block a, .top-nav-text p, .top-nav-text a{
    color: #fff;
}
.headhesive--clone .top-nav-icon-blocks .icon-block p, .headhesive--clone .top-nav-icon-blocks .icon-block a, .headhesive--clone .top-nav-text p, .headhesive--clone .top-nav-text{
    color: #fff !important;
}
.themo_cart_icon a i, .headhesive--clone.themo_cart_icon a i, .headhesive--clone.banner[data-transparent-header="true"] .themo_cart_icon a i{
    color: #333;
}
.top-nav-text .current-lang{
    display: none
}
.top-nav-text>ul{
    display: flex;
    float: left;
    margin: 0 15px 0 0;
    list-style: none;
    padding: 0;
    text-transform: capitalize;
}
.top-nav-text>ul li{
    line-height: 26px;
    font-size: 12px;
}
.top-nav-text>ul li a{
    text-decoration: none;
}
.top-nav-text>ul li a span{
    color: #fff;
}
.top-nav-text>p{
    float: left;
}
#elementor-editor-wrapper{
    display: none !important;
}


.elementor-icon img, .elementor-icon svg {
    width: 1em;
    height: 1em;
    display: block;
    object-fit: cover;
}
.th-icon-size-md .elementor-icon img, .th-icon-size-md .elementor-icon svg {
    width: 1.5em;
    height: 1.5em;
}
.th-icon-size-lg .elementor-icon img, .th-icon-size-lg .elementor-icon svg {
    width: 2em;
    height: 2em;
}
.th-icon-size-xl .elementor-icon img, .th-icon-size-xl .elementor-icon svg {
    width: 3em;
    height: 3em;
}
/*.elementor-widget-themo-service-block-popup*/
.elementor-widget-themo-service-block-popup{
    cursor: pointer;
}
.elementor-widget-themo-service-block-popup .th-service-block-w .elementor-icon-box-title {
    color:#f96d64
}
.elementor-widget-themo-service-block-popup .th-service-block-w .elementor-icon,
.elementor-widget-themo-service-block-popup.elementor-view-default .th-service-block-w .elementor-icon {
    color:#F5BE58;
    border-radius: 10px;
    overflow: hidden;
}
.elementor-widget-themo-service-block-popup:hover picture.elementor-icon {
    box-shadow:0px 0px 10px rgba(0,0,0, .5);
}
.elementor-widget-themo-service-block-popup.elementor-view-framed .th-service-block-w .elementor-icon {
    padding:0.65em;
    color:#F5BE58;
    border-color:#F5BE58;
}

.elementor-widget-themo-service-block-popup.elementor-view-stacked .th-service-block-w .elementor-icon {
    padding:0.65em;
    color:#fff;
    background-color:#F5BE58;
}

/* Icon Positioned Top */

.elementor-widget-themo-service-block-popup.elementor-position-top .th-service-block-w .elementor-icon-box-wrapper {
    text-align:center
}

.elementor-widget-themo-service-block-popup .th-service-block-w .elementor-icon-box-icon {
    margin-bottom:12px
}

/* Icon Positioned Left / Right */

.elementor-widget-themo-service-block-popup.elementor-position-left .th-service-block-w .elementor-icon-box-wrapper.th-show-icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    text-align: left;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
}

.elementor-widget-themo-service-block-popup.elementor-position-right .th-service-block-w .elementor-icon-box-wrapper.th-show-icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    text-align: right;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
}

.elementor-widget-themo-service-block-popup.elementor-position-left .th-service-block-w .elementor-icon-box-icon,
.elementor-widget-themo-service-block-popup.elementor-position-right .th-service-block-w .elementor-icon-box-icon {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.elementor-widget-themo-service-block-popup.elementor-position-left .th-service-block-w .elementor-icon-box-icon {
    margin-right:20px;
    margin-bottom:0
}

.elementor-widget-themo-service-block-popup.elementor-position-right .th-service-block-w .elementor-icon-box-icon {
    margin-left:20px;
    margin-bottom:0
}


.modal {
    text-align: center;
}

.modal-dialog{
    height: 95%;

}
.modal-content {
    /* 80% of window height */
    height: 95%;
}

.modal-body {
    /* 100% = dialog height, 120px = header + footer */
    max-height: calc(100% - 165px);
    overflow-y: scroll;
}

@media screen and (min-width: 768px) {
    .modal:before {
        display: inline-block;
        vertical-align: middle;
        content: " ";
        height: 100%;
    }
}
@media screen and (max-width: 820px) {
    .elementor-widget-themo-service-block-popup.elementor-position-left .th-service-block-w .elementor-icon-box-wrapper.th-show-icon,
    .elementor-widget-themo-service-block-popup.elementor-position-right .th-service-block-w .elementor-icon-box-wrapper.th-show-icon {
        display: block;
    }
    .elementor-widget-themo-service-block-popup .elementor-icon-box-icon{
        text-align: center;
    }
    .elementor-widget-themo-service-block-popup .elementor-icon img{
        width: 100%;
        height: 100%;
    }
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}
.modal-header .close {
    margin-top: -27px;
}
/*
body .navbar .navbar-nav > li > a,
body .navbar .navbar-nav > li > a:hover,
body .navbar .navbar-nav > li.active > a,
body .navbar .navbar-nav > li.active > a:hover,
body .navbar .navbar-nav > li.active > a:focus,
body .navbar .navbar-nav > li.th-accent{
    margin: 0 6px;
    font-size: 14px;
}*/
error_log('Custom Polylang post type hook running...');

add_action('init', function () {
    if (function_exists('pll_register_post_type')) {
        pll_register_post_type('mphb_room_type');
        pll_register_post_type('mphb_room');
        pll_register_post_type('mphb_service');
        pll_register_post_type('mphb_amenity');
        pll_register_post_type('mphb_season');
        pll_register_post_type('mphb_rate');
    }

    if (function_exists('pll_register_taxonomy')) {
        pll_register_taxonomy('mphb_amenity');
        pll_register_taxonomy('mphb_room_type_category');
    }
});
