/*
Theme Name: Houzez Child
Template: houzez
Version: 1.0
*/

/* ===== HEADER MOBILE: SEARCH BAR ===== */
@media (max-width: 767px) {
    .houzez-ele-search-form-wrapper.elementor-form-fields-wrapper {
        flex-wrap: nowrap !important;
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
    }
    .houzez-search-form-js .elementor-field-group:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .houzez-search-form-js .elementor-field-group:last-child {
        flex: 0 0 auto !important;
        width: auto !important;
    }
    .houzez-search-form-js .elementor-field-group:last-child button,
    .houzez-search-form-js .elementor-field-group:last-child input[type="submit"] {
        width: 44px !important;
        height: 36px !important;
        padding: 0 !important;
        border-radius: 8px !important;
    }
}

/* ===== OFFCANVAS MOBILE: WRAPPER ===== */
.dcm-offcanvas-btns {
    padding: 16px;
    border-bottom: 1px solid rgba(200,186,168,0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #1A1612;
}

/* ===== OFFCANVAS MOBILE: NÚT ĐĂNG TIN — FULL WIDTH ===== */
.dcm-btn-post {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #1A1612;
    color: #BC6C25 !important;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid #BC6C25;
    box-sizing: border-box;
}
.dcm-btn-post:hover {
    background: #BC6C25;
    color: #F0E8DC !important;
}
/* ===== STICKY SEARCH + HAMBURGER MOBILE ===== */
@media (max-width: 767px) {
    #dcm-sticky-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: #211D19 !important;
        padding: 8px 16px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
        width: 100% !important;
    }

    .elementor-location-header + * {
        margin-top: 140px !important;
    }
}
@media (max-width: 767px) {
    #dcm-sticky-bar {
        top: -15px !important;
    }
}

/* ===== FIX CONTENT ĐÈ HEADER MOBILE — TRANG CHỦ (TRANSPARENT) ===== */
@media (max-width: 767px) {
    #header-hz-elementor + * {
        margin-top: 140px !important;
    }
}

/* ===== FIX OFFCANVAS MOBILE MENU — SAFARI iOS ===== */

/* Backdrop (lớp tối phía sau) — z-index THẤP HƠN menu */
.offcanvas-backdrop,
.modal-backdrop {
    z-index: 99998 !important;
}

/* Menu panel — z-index CAO HƠN backdrop */
.offcanvas-mobile-menu,
.offcanvas,
.offcanvas-end,
.offcanvas-start {
    z-index: 99999 !important;
}

/* Đảm bảo menu body click được */
.offcanvas-mobile-menu *,
.offcanvas-body,
.offcanvas-body * {
    pointer-events: auto !important;
}

/* Fix iOS Safari: transform tạo stacking context mới */
.offcanvas-mobile-menu {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
}

/* ===== FIX DASHBOARD BỊ HEADER ĐÈ ===== */
.houzez-dashboard-page .elementor-location-header {
    display: none !important;
}
.houzez-dashboard-page .elementor-location-header + * {
    margin-top: 0 !important;
}

/* fix up ảnh trên đt */
.houzez-upload-area .upload-info {
    display: none !important;
}
/* Ẩn dòng kích thước tối thiểu 1440x900 */
#houzez_gallery_dragDrop .mb-3 span:first-of-type {
    display: none !important;
}
/* Giảm cỡ chữ dòng hướng dẫn ngôi sao */
#houzez_gallery_dragDrop .mb-3 span:last-of-type {
    font-size: 0.8em !important;
}