/*
Theme Name: Suyes BNB Child theme
Theme URI: http://suyes.co/
Description: Ultimate child theme by Suyes Network for rental booking.  
Version: 3.14
Author: suyes.co
Author URI: http://suyes.co
Tags: white, one-column, two-columns,left-sidebar, right-sidebar, fluid-layout , custom-menu, theme-options, translation-ready
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: wprentals

-------------------------------------------------------------- */

.booking-calendar-set {
    width: 1030px;
}

.booking-calendar-set .booking-calendar-wrapper-in {
    width: 1030px;
    max-width: 1030px;
}

.booking-calendar-set table.booking-calendar {
    width: 1030px;
}

/*Cost Explanation*/
/* Pricing Section Styles */
.show_cost_form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cost_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    line-height: 1.4;
}

.cost_row:last-child {
    border-bottom: none;
}

.cost_explanation {
    flex: 1;
    color: #374151;
    font-weight: 400;
}

.cost_value {
    color: #111827;
    font-weight: 500;
    text-align: right;
    min-width: 80px;
}

/**/
.property_listing {
    border-radius: 10px;
}

/* Total row styling */
#total_cost_row {
    border-top: 2px solid #e5e7eb;
    margin-top: 0px;
    padding-top: 16px;
    font-size: 16px;
    font-weight: 600;
}

#total_cost_row .cost_explanation {
    font-weight: 700;
    color: #111827;
}

#total_cost_row .cost_value {
    font-weight: 700;
    color: #111827;
    font-size: 18px;
}

/* Discount styling */
.cost_value[style*="color: #28a745"] {
    color: #16a34a !important;
    font-weight: 600;
}

/* Extra cost row (like Cook) */
.extra_cst_row {
    background-color: #f9fafb;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .show_cost_form {
        padding: 16px;
    }

    .cost_row {
        font-size: 13px;
        padding: 10px 0;
    }

    .cost_explanation {
        padding-right: 12px;
    }

    #total_cost_row {
        font-size: 15px;
    }

    #total_cost_row .cost_value {
        font-size: 16px;
    }
}


/* Length of Stay Discount Display in Booking Form */
.cost_row .cost_explanation {
    font-weight: 500;
}

.cost_row .cost_value[style*="color: #28a745"] {
    font-weight: 600;
    background: rgba(40, 167, 69, 0.1);
    padding: 2px 15px 2px 2px;
    border-radius: 3px;
}

/* Discount row styling */
.cost_row:has(.cost_value[style*="#28a745"]) {
    background: rgba(40, 167, 69, 0.05);
    border-left: 3px solid #28a745;
    padding-left: 0px;
    margin: 0px 0;
}

/* Enhanced discount section styling for dashboard */
.dynamic-discounts-section h5 {
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.dynamic-discounts-section .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.add-discount-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.add-discount-btn:hover {
    background: #c82333;
}

/* Disable User Menu Icon Hover Effect - Remove Big Icons */
#user_menu_open>a:hover,
#user_menu_open>a:focus {
    background-color: #f8f9fa !important;
    color: #333 !important;
    background-image: none !important;
    transform: none !important;
}

#user_menu_open>a:hover i,
#user_menu_open>a:focus i {
    font-size: 16px !important;
    margin-top: 0 !important;
    color: #b881fc !important;
    transition: color 0.2s ease !important;
    transform: none !important;
    background: none !important;
}

/* Convert User Menu from Blocks to List Layout - Only when visible */
#user_menu_open {
    flex-direction: column;
    width: 200px !important;
    padding: 10px 0 !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e5e5e5 !important;
}

#user_menu_open>a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 45px !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
}

#user_menu_open>a:hover {
    background-color: #f8f9fa !important;
    color: #333 !important;
}

#user_menu_open>a i {
    width: 20px !important;
    margin-right: 12px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 16px !important;
    text-align: center !important;
    color: #666 !important;
}

#user_menu_open>a:hover i {
    color: #b881fc !important;
    font-size: 16px !important;
    margin-top: 0 !important;
}

#user_menu_open>a .unread_mess_wrap_menu {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

/* Remove any grid/block styling */
#user_menu_open>a {
    float: none !important;
    clear: both !important;
}

/* Switcher Checkbox Styling */
.switch-container {
    display: inline-block;
    position: relative;
    margin-right: 10px;
    vertical-align: middle;
}

.switch-checkbox {
    display: none;
}

.switch-label {
    display: block;
    width: 40px;
    height: 22px;
    position: relative;
    cursor: pointer;
    background: #ddd;
    border-radius: 13px;
    transition: background 0.3s ease;
}

.switch-label:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-checkbox:checked+.switch-label {
    background: #dc3545;
}

.switch-checkbox:checked+.switch-label:before {
    transform: translateX(24px);
}

.switch-checkbox:disabled+.switch-label {
    opacity: 0.5;
    cursor: not-allowed;
}

.cost_explanation {
    display: flex;
    align-items: center;
}

.option-label {
    vertical-align: middle;
    font-weight: 500;
}

.wprentals_sidebar_cart {
    padding: 0px;
}

.wprentals_sidebar_cart h3 {
    margin: 10px;
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1 {
    float: left;
    width: 100%;
}

.wpestate_cart_item {
    padding: 2px 15px;
}

.wprentals_sidebar_cart h4 {
    padding: 10px 15px;
    background: #ddd;
    border-radius: 0px 0px 5px 6px;
    margin: 0px;
}

/* Responsive Checkout Order Table */
.shop_table.woocommerce-checkout-review-order-table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    table-layout: fixed;
    border-collapse: collapse;
}

table.shop_table.woocommerce-checkout-review-order-table thead {
    display: none;
}

/* Column widths */
.shop_table.woocommerce-checkout-review-order-table th.product-name,
.shop_table.woocommerce-checkout-review-order-table td.product-name {
    width: 65%;
    word-wrap: break-word;
    word-break: break-word;
}

.shop_table.woocommerce-checkout-review-order-table th.product-total,
.shop_table.woocommerce-checkout-review-order-table td.product-total {
    width: 35%;
    text-align: right;
}

/* Product name styling */
.shop_table.woocommerce-checkout-review-order-table .product-name {
    padding: 12px 8px;
    font-size: 14px;
    line-height: 1.4;
}

/* Product quantity styling */
.shop_table.woocommerce-checkout-review-order-table .product-quantity {
    display: inline-block;
    margin-left: 8px;
    font-weight: normal;
    color: #666;
}

/* Price styling */
.shop_table.woocommerce-checkout-review-order-table .product-total {
    padding: 12px 8px;
    font-weight: 600;
}

/* Table header */
.shop_table.woocommerce-checkout-review-order-table thead th {
    background: #f8f9fa;
    padding: 12px 8px;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

/* Table footer (subtotal, total) */
.shop_table.woocommerce-checkout-review-order-table tfoot th,
.shop_table.woocommerce-checkout-review-order-table tfoot td {
    padding: 12px 8px;
    border-top: 1px solid #dee2e6;
}

.shop_table.woocommerce-checkout-review-order-table .order-total th,
.shop_table.woocommerce-checkout-review-order-table .order-total td {
    font-weight: bold;
    background: #f8f9fa;
    border-top: 2px solid #007cba;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .shop_table.woocommerce-checkout-review-order-table {
        max-width: 100%;
        margin: 10px 0;
        font-size: 13px;
    }

    .shop_table.woocommerce-checkout-review-order-table th.product-name,
    .shop_table.woocommerce-checkout-review-order-table td.product-name {
        width: 60%;
    }

    .shop_table.woocommerce-checkout-review-order-table th.product-total,
    .shop_table.woocommerce-checkout-review-order-table td.product-total {
        width: 40%;
    }

    .shop_table.woocommerce-checkout-review-order-table .product-name {
        padding: 10px 6px;
        font-size: 12px;
    }

    .shop_table.woocommerce-checkout-review-order-table .product-total {
        padding: 10px 6px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .shop_table.woocommerce-checkout-review-order-table {
        font-size: 12px;
    }

    .shop_table.woocommerce-checkout-review-order-table th.product-name,
    .shop_table.woocommerce-checkout-review-order-table td.product-name {
        width: 55%;
    }

    .shop_table.woocommerce-checkout-review-order-table th.product-total,
    .shop_table.woocommerce-checkout-review-order-table td.product-total {
        width: 45%;
    }

    .shop_table.woocommerce-checkout-review-order-table .product-name {
        padding: 8px 4px;
        font-size: 11px;
        line-height: 1.3;
    }

    .shop_table.woocommerce-checkout-review-order-table .product-quantity {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-size: 10px;
    }
}

/* Single Property Page - Simple Pin Mode */
/* Hide property info cards on single property pages - use simple pins instead */
.property_page_container.google_map_type1 .openstreet_map_price_infobox,
.property_page_container.google_map_type1 .classic_info {
    display: none !important;
}

/* Hide price pin markers on single property pages */
.property_page_container.google_map_type1 .wpestate_marker.openstreet_price_marker {
    display: none !important;
}

/* Ensure Leaflet markers are visible on single property pages */
.property_page_container.google_map_type1 .leaflet-marker-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Style for simple property popup */
.simple-property-popup {
    padding: 10px;
    min-width: 200px;
    text-align: center;
}

.simple-property-popup h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.simple-property-popup h4 a {
    text-decoration: none;
    color: #333;
}

.simple-property-popup h4 a:hover {
    color: #007cba;
}

.simple-property-popup p {
    margin: 0;
}

.view-property-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007cba;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.view-property-btn:hover {
    background-color: #005a8b;
    color: white !important;
}

/* Hide property info cards on maps - show only simple pins */
.info_details.contact_info_details,
.info_details.classic_info,
.info_details.openstreet_map_price_infobox,
.info_details.pin_price_info {
    display: none !important;
}

/* Hide openstreet price markers but show our custom map icon */
.wpestate_marker.openstreet_price_marker {
    display: none !important;
}

.wpestate_marker {
    background: transparent !important;
    box-shadow: none !important;
}

.hover_z_pin:before {
    border-top: 0px solid #ef4a70 !important;
}

.hover_z_pin {
    background-color: transparent !important;
}

.pin_price_info {
    display: none !important;
}

.wpestate_marker:before {
    display: none !important;
}

/* Style the map icon inside pin markers */
.interior_pin_price {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
}

.interior_pin_price i {
    color: white !important;
    font-size: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure map markers are visible */
.leaflet-marker-icon,
.gm-style img[src*="marker-icon"] {
    display: block !important;
    opacity: 1 !important;
}

/* Style for simple map pins */
.leaflet-marker-icon {
    width: 25px !important;
    height: 41px !important;
}