/*
Theme Name:  Pencil ChildTheme
Theme URI: http://pencil.vn
Author: Pecil Group
Author URI: http://pencil.vn
Description: Directory WordPress Theme by Purethemes
Version: 1.0
License: Pencil Group
License URI: http://themeforest.net/licenses
Text Domain: listeo
Domain Path: /languages/
Tags: light, responsive-layout, post-formats, theme-options, translation-ready, two-columns
Template:  listeo
*/

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans-Bold.eot');
    src: url('fonts/PlusJakartaSans-Bold.eot?#iefix') format('embedded-opentype'),
        url('fonts/PlusJakartaSans-Bold.woff2') format('woff2'),
        url('fonts/PlusJakartaSans-Bold.woff') format('woff'),
        url('fonts/PlusJakartaSans-Bold.ttf') format('truetype'),
        url('fonts/PlusJakartaSans-Bold.svg#PlusJakartaSans-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans-Regular.eot');
    src: url('fonts/PlusJakartaSans-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/PlusJakartaSans-Regular.woff2') format('woff2'),
        url('fonts/PlusJakartaSans-Regular.woff') format('woff'),
        url('fonts/PlusJakartaSans-Regular.ttf') format('truetype'),
        url('fonts/PlusJakartaSans-Regular.svg#PlusJakartaSans-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body, h1, h2, h3, h4, h5, h6, input[type="text"], input[type="password"], input[type="email"], textarea, select, input[type="button"], input[type="submit"], button, #tiptip_content, .map-box p, .map-box div, .numerical-rating .rating-counter, body .menu-responsive i.menu-trigger:after {
    font-family: "Plus Jakarta Sans";
}

img.footer-logo {
    max-height: 70px;
    width: auto;
}
.right-side {
    display: none !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
#header.cloned, #header {
    padding: 15px 0 16px 0;
}
#logo {
    margin-top: 0;
}
#navigation.style-1 {
    margin-top: 6px;
}
#footer ul.menu {
    width: 100% !important;
}
#footer ul.menu li a {
    padding: 0 0 14px 14px;
}
.btn-red, .btn-red.disabled, .btn-red:disabled {
    background-color: #F91942;
    border-color: #F91942;
}
.listeo-cart-container, .user-menu, .header-widget .button {
    display: none !important;
    opacity: 0;
    padding: 0;
    margin: 0;
}
span.desc-news {
    font-size: 15px;
    margin: 0 0 10px;
    display: inline-block;
}
.textwidget {
    line-height: 150%;
    float: left;
    width: 100%;
}
.input-group {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
}
.input-group>.form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-group>.form-control {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 1%;
    margin-bottom: 0;
}
.widget_text.widget.widget_custom_html input.form-control[type="text"] {
    display: block;
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 30px;
    -webkit-appearance: none;
    -webkit-transition: border-color .2s ease-in-out;
    -moz-transition: border-color .2s ease-in-out;
    transition: border-color .2s ease-in-out;
    padding: 11px 15px 12px 15px;
    color: #232628;
    font-weight: 500;
    outline: none;
    border: 1px solid #ced4da;
    background: transparent;
    border-radius: 4px;
    height: auto;
}
.widget_text.widget.widget_custom_html .input-group-append {
    margin-left: -1px;
    display: -ms-flexbox;
    display: flex;
}
.input-group>.input-group-append>.btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    position: relative;
    z-index: 2;
    cursor: pointer;
    height: 45px;
    border: 0;
    font-size: 12px;
    color: #FFF;
    padding: 0 15px;
}
.btn-dark, .btn-dark.disabled, .btn-dark:disabled {
    background-color: #24262b;
    border-color: #24262b;
}

.listeo-floating-chat-widget .listeo-floating-chat-popup div#listeo-ai-chat-powered-by-floating {
    display: none !important;
    opacity: 0 !important;
    color: transparent !important;
}
.listeo-post-grid-wrapper .blog-compact-item .blog-compact-item-content h3{
  /* Các thuộc tính chính để rút gọn 2 dòng và thêm dấu "..." */
  display: -webkit-box;           /* Sử dụng mô hình Flexbox cũ để hỗ trợ line-clamp */
  -webkit-line-clamp: 2;         /* Số dòng tối đa muốn hiển thị (ở đây là 2) */
  -webkit-box-orient: vertical;   /* Đặt hướng của Box là dọc */
  overflow: hidden;               /* Ẩn phần văn bản bị tràn ra ngoài */
  text-overflow: ellipsis;        /* (Dòng này thường không bắt buộc với line-clamp nhưng có thể giúp một số trình duyệt xử lý tốt hơn) */

  /* Các thuộc tính khác (tùy chỉnh) */
  width: 100%;                 /* Chiều rộng tối đa của thẻ chứa */
  line-height: 1.4;             /* Khoảng cách giữa các dòng (quan trọng để tính toán chiều cao chính xác) */
  padding: 5px;                  /* Thêm padding cho đẹp (không bắt buộc) */
}
.blog-compact-item {
    height: 320px;
}
.blog-post.single-post img.post-img {
    display: none;
    opacity: 0;
}
.blog-post.single-post .post-content a {
    text-align: center;
}
.single-post .post-content p {
    margin: 5px 0;
}

.elementor-widget-container a.readmore-useful {
    color: red !important;
    float: right;
    font-size: 17px;
    margin-top: 10px;
}
.elementor-widget-container a.readmore-useful:hover{color:green !important;}
@media only screen and (max-width: 1200px) {
    #navigation.style-1 ul li a {
        font-size: 12.6px !important;
        text-transform: uppercase;
    }
    #navigation.style-1 {
        margin: 0 !important;
        width: 85% !important;
    }
    .transparent-header #navigation.style-1:before {
        background: none;
        display: none;
    }
}

/* =========================================
   FULLSCREEN SEARCH OVERLAY
   ========================================= */
.vn-search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 15, 15, 0.85); /* Nền đen mờ 85% */
    backdrop-filter: blur(8px);         /* Hiệu ứng kính mờ chuẩn Apple */
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;                    /* Đè lên mọi thứ (kể cả Header) */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Khi được kích hoạt (Mở ra) */
.vn-search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Nút X Đóng */
.vn-search-close {
    position: absolute;
    top: 40px; right: 50px;
    font-size: 36px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0.7;
}
.vn-search-close:hover {
    transform: rotate(90deg);
    opacity: 1;
}

/* Khung form (Viên thuốc) */
.vn-search-content {
    width: 100%;
    max-width: 650px;
    padding: 0 20px;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}
.vn-search-overlay.is-active .vn-search-content {
    transform: translateY(0);
}

.vn-search-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15); /* Nền khung trắng mờ */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; /* Bo tròn tuyệt đối */
    padding: 5px 15px 5px 30px;
    transition: background 0.3s, border-color 0.3s;
}
.vn-search-input-wrap:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Ô nhập chữ */
.vn-search-input-wrap input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 18px;
    padding: 15px 0;
    outline: none !important;
    box-shadow: none !important;
    margin: 0;
}
.vn-search-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Nút kính lúp */
.vn-search-submit {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 22px;
    cursor: pointer;
    padding: 10px 15px;
    outline: none !important;
    transition: transform 0.2s;
}
.vn-search-submit:hover { transform: scale(1.1); }

/* =========================================
   STYLE CHO NÚT CHỌN LOẠI TÌM KIẾM
   ========================================= */
.vn-search-type-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.vn-radio-label {
    cursor: pointer;
    display: inline-block;
    margin: 0;
}

/* Ẩn cục radio mặc định của trình duyệt */
.vn-radio-label input[type="radio"] {
    display: none; 
}

/* Biến thẻ span thành nút bấm */
.vn-radio-label span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vn-radio-label span i {
    font-size: 16px;
}

/* Hiệu ứng Hover */
.vn-radio-label:hover span {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Hiệu ứng khi được chọn (Active) */
.vn-radio-label input[type="radio"]:checked + span {
    background: #f91942; /* Màu đỏ chủ đạo của Listeo/Pencil */
    color: #ffffff;
    border-color: #f91942;
    box-shadow: 0 4px 15px rgba(249, 25, 66, 0.4);
}

/* ============================================
   Listing Detail - New Layout
   ============================================ */

/* Cover Image (top of left column, above gallery) */
.listing-cover-image {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.listing-cover-image img.img-responsive {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Right sidebar info listing */
.listeo-single-listing-sidebar .listing-details {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Responsive: stack on mobile */
@media (max-width: 991px) {
    .listing-cover-image {
        margin-bottom: 15px;
    }
}

/* ============================================
   Sticky Listing Nav — offset dưới fixed header
   ============================================ */

/* Đẩy sticky nav xuống dưới header cố định */
.listing-nav-container.cloned.stick {
    top: 80px;
}

/* Khi có WordPress admin bar (+32px) */
.admin-bar .listing-nav-container.cloned.stick {
    top: 107px;
    border-top: 1px solid red;
}

.listeo-single-listing-sidebar.overflow-enabled.sticky-sidebar-enabled {
    padding-top: 180px;
}

@media (max-width: 782px) {
    /* Admin bar thu nhỏ trên mobile */
    .admin-bar .listing-nav-container.cloned.stick {
        top: 126px;
    }
}

/* ============================================
   Listing Content Boxes (3 separate sections)
   ============================================ */

.listing-content-box {
    border: none;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    background: #fff;
}

/* Header row: icon + title */
.listing-content-box-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.listing-content-box-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

/* Circular icon badge */
.listing-content-box-header .box-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

/* Color per section */
.listing-content-box--highlights .listing-content-box-header { background: #fff8f0; }
.listing-content-box--highlights .box-icon                    { background: #f5a623; }
.listing-content-box--highlights .listing-content-box-header h3 { color: #b8740a; }

.listing-content-box--things .listing-content-box-header { background: #f0f6ff; }
.listing-content-box--things .box-icon                   { background: #3d7dd4; }
.listing-content-box--things .listing-content-box-header h3 { color: #1e4d8c; }

.listing-content-box--tips .listing-content-box-header { background: #f0faf4; }
.listing-content-box--tips .box-icon                   { background: #27ae60; }
.listing-content-box--tips .listing-content-box-header h3 { color: #1a7a43; }

/* Body content */
.listing-content-box-desc {
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.75;
    color: #555;
}

.listing-content-box-desc p:last-child {
    margin-bottom: 0;
}


@media (max-width: 768px) {
    .alternative-imagebox .img-box-content {
        padding-left: 5px;
    }
    .alternative-imagebox .img-box-content h4 {
        font-size: 18px;
    }
    .img-box-content h4 {
        line-height: 25px;
    }
}
li#wp-admin-bar-listeo-update-available, li#wp-admin-bar-listeo-core-editor, li#wp-admin-bar-listeo-core, li#wp-admin-bar-listeo-health-check, li#wp-admin-bar-listeo-analytics, li#wp-admin-bar-new-content, li#wp-admin-bar-updates {
    display: none;
    opacity: 0;
}
