.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a)
{
	text-decoration: none;
}





.delete-image-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    border-radius: unset;
}
.delete-image-btn:hover {
   
    background: #0693e3;
    
}



.nhaxe-gallery {
    margin-top: 20px;
}

.nhaxe-gallery h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.nhaxe-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 cột trên desktop */
    gap: 16px;
    box-sizing: border-box;
}

.nhaxe-gallery-grid a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
    background: #fff;
}

.nhaxe-gallery-grid a:hover {
    transform: scale(1.03);
}

.nhaxe-gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive: tablet (<= 1024px) */
@media screen and (max-width: 1024px) {
    .nhaxe-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive: mobile (<= 767px) */
@media screen and (max-width: 767px) {
    .nhaxe-gallery-grid {
        grid-template-columns: 1fr; /* 1 cột */
    }
}

/* Đưa mũi tên vào giữa ảnh theo chiều dọc */


.lb-prev
{
	margin-left: -20px;
}
.lb-next
{
	margin-right: -20px;
}


.location-select {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* khoảng cách giữa các dropdown */
    margin-bottom: 1em;
}

.location-select .select-group {
    flex: 1 1 30%; /* mỗi nhóm chiếm khoảng 30% chiều rộng */
    min-width: 200px; /* đảm bảo không bị quá nhỏ ở máy tính */
}

.location-select label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

.location-select select {
    width: 100%;
    padding: 8px;
    font-size: 1em;
}

/* Responsive cho màn hình nhỏ hơn 768px: hiển thị dạng cột */
@media (max-width: 768px) {
    .location-select {
        flex-direction: column;
    }

    .location-select .select-group {
        width: 100%;
    }
}


.pham-vi-dich-vu {
    /*display: flex;*/
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

.pham-vi-dich-vu label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .pham-vi-dich-vu {
        flex-direction: column;
        align-items: flex-start;
    }
}

.current-uploaded-image-thumb
{
	display: inline-block;
	position: relative;
	margin 20px 0px;
}
.form-upload-image
{
	margin: 20px 0px;
}

/** Shortcode tìm nhà xe */
/* style.css for timnhaxe plugin */

/* Trong style.css của theme hoặc file CSS của plugin */

/* Grid cho kết quả tìm kiếm */
.timxetai-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cột */
    gap: 20px; /* Khoảng cách giữa các box */
    margin-top: 30px;
}

/* Định dạng từng box nhà xe */
.timxetai-nha-xe-box {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Đảm bảo border-radius hoạt động với ảnh */
    display: flex;
    flex-direction: column; /* Đặt ảnh và nội dung theo cột */
    transition: transform 0.2s ease-in-out;
    margin: 20px 0px;
}

.timxetai-nha-xe-box:hover {
    transform: translateY(-5px); /* Hiệu ứng hover nhẹ */
}

.nha-xe-thumbnail {
    width: 100%;
    height: 200px; /* Chiều cao cố định cho ảnh */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Màu nền nếu ảnh không có */
}

.nha-xe-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh vừa vặn và không bị méo */
    display: block;
}

.nha-xe-content {
    padding: 15px;
    flex-grow: 1; /* Cho phép nội dung mở rộng */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nha-xe-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

.nha-xe-content p {
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #555;
}

.nha-xe-buttons {
    display: flex;
    gap: 10px; /* Khoảng cách giữa các nút */
    margin-top: 15px;
}

.nha-xe-buttons .button {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s ease;
    flex: 1; /* Đảm bảo các nút có chiều rộng bằng nhau */
}

.nha-xe-buttons .call-button {
    background-color: #165F23; /* Màu xanh lá cây */
    color: white;
    border: 1px solid #28a745;
}

.nha-xe-buttons .call-button:hover {
    background-color: #218838;
}

.nha-xe-buttons .view-more-button {
    background-color: #0051AD; /* Màu xanh dương */
    color: white;
    border: 1px solid #007bff;
}

.nha-xe-buttons .view-more-button:hover {
    background-color: #0056b3;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .timxetai-results-grid {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
    }
}

/* Định dạng chung cho form elements */
.form-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #e8faff;
    margin-top: 20px;
}

.location-select,
.select-group {
    display: flex;
    flex-wrap: wrap; /* Cho phép wrap trên mobile */
    gap: 15px;
    /*align-items: flex-end;*/ /* Căn chỉnh các label và select ở dưới cùng */
}

.select-group {
    flex-direction: column;
    flex-grow: 1; /* Cho phép các nhóm chọn mở rộng */
    min-width: 180px; /* Đảm bảo đủ rộng cho mỗi select */
}

.form-control,
input[type="text"],
select {
    width: 100%;
    
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Đảm bảo padding không làm tăng chiều rộng */
    margin-top: 5px;
    font-size: 1em;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.timxetai-search-button {
    
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.timxetai-search-button:hover {
    background-color: #218838;
}

/** Contact Form */
/* CSS cơ bản để form trông đẹp hơn - bạn có thể tùy chỉnh */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}
.contact-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container select,
.contact-form-container textarea {
    width: 100%;
    padding: 10px;
    
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Đảm bảo padding không làm tăng chiều rộng */
}
.contact-form-container textarea {
    resize: vertical; /* Cho phép thay đổi kích thước theo chiều dọc */
}
.contact-form-container button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.contact-form-container button:hover {
    background-color: #0056b3;
}

/* Chỉ áp dụng CSS này trên màn hình điện thoại (<= 767px) */
/* Chỉ áp dụng CSS này trên màn hình điện thoại (<= 767px) */
@media only screen and (min-width: 767px) {
    .call-now-button {
		display: none;
	}
}
@media only screen and (max-width: 767px) {
    .call-now-button {
        display: none; /* Mặc định ẩn trên desktop */
        position: fixed; /* Mặc định dính cố định */
        bottom: 20px; /* Cách đáy màn hình 20px */
        left: 50%; /* Di chuyển nút vào giữa */
        transform: translateX(-50%); /* Căn giữa thực sự */
        background-color: #25d366; /* Màu nền xanh lá cây (có thể đổi) */
        color: white; /* Màu chữ trắng */
        padding: 15px 30px; /* Kích thước nút */
        border-radius: 3px; /* Bo tròn góc */
        text-decoration: none; /* Bỏ gạch chân link */
        font-size: 1.2em; /* Kích thước chữ */
        font-weight: bold; /* Chữ đậm */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Đổ bóng nhẹ */
        z-index: 1000; /* Đảm bảo nút hiển thị trên các phần tử khác */
        transition: background-color 0.3s ease; /* Hiệu ứng chuyển màu khi hover */
        white-space: nowrap; /* Ngăn nút xuống dòng */
    }

    .call-now-button:hover {
        background-color: #1DA851; /* Màu khi di chuột qua */
    }

    .call-now-button .fa {
        margin-right: 8px; /* Khoảng cách giữa icon và chữ */
    }

    /* Hiển thị nút trên điện thoại */
    body:not(.no-call-button) .call-now-button {
        display: flex; /* Hiển thị nút dưới dạng flex để căn giữa icon và text */
        align-items: center; /* Căn giữa dọc */
        justify-content: center; /* Căn giữa ngang */
    }

    /* CSS khi nút cần chuyển sang vị trí absolute */
    .call-now-button.at-bottom {
        position: absolute; /* Chuyển sang absolute */
        bottom: auto; /* Bỏ bottom fixed */
    }

    /* Đảm bảo body có position relative để absolute hoạt động đúng */
    body {
        position: relative;
    }

    /* Tạo khoảng đệm cho footer để nút không che footer */
    footer {
        padding-bottom: 80px; /* Giá trị này có thể cần điều chỉnh */
    }
}

    
.checkbox-group {
    max-height: 300px; /* chiều cao tối đa */
    overflow-y: auto;   /* bật scroll nếu vượt quá */
    border: 1px solid #ddd;
    padding: 8px;
    background: #fff;
}

.checkbox-group .term-item {
    margin-left: 0; /* mặc định term cha */
}

.checkbox-group .term-item.child {
    margin-left: 20px; /* term con lùi vào 1 cấp */
}


/************** CSS form tìm kiếm Mỗi hàng chứa 2 cột  */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-section.select-group {
    flex: 1 1 calc(25% - 15px); /* Desktop: 4 items mỗi item ~25% */
    display: flex;
    flex-direction: column;
}

.form-section label {
    font-weight: 600;
    margin-bottom: 5px;
}

.form-section select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* ✅ Tablet, iPad, điện thoại quay ngang (2 select / hàng) */
@media (max-width: 1023px) and (min-width: 768px) {
    .form-section.select-group {
        flex: 1 1 calc(50% - 15px);
    }
}

/* ✅ Mobile (1 select / hàng) */
@media (max-width: 767px) {
    .form-section.select-group {
        flex: 1 1 100%;
    }
}



/***** CSS Login Form *******/



    .timxetai-auth-container {
        display: flex;
        justify-content: space-between;
        gap: 40px;
        flex-wrap: wrap;
        margin: 20px 0;
    }

    .timxetai-auth-column {
        flex: 1;
        min-width: 320px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .timxetai-auth-column h3 {
        margin-top: 0;
        font-size: 18px;
        margin-bottom: 15px;
    }

    .timxetai-auth-column form p {
        margin-bottom: 12px;
    }

    .timxetai-auth-column input[type="text"],
    .timxetai-auth-column input[type="email"],
    .timxetai-auth-column input[type="password"] {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .timxetai-auth-column input[type="submit"] {
        background-color: #0073aa;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 10px 15px;
        cursor: pointer;
        font-weight: 500;
        transition: background-color 0.3s;
    }

    .timxetai-auth-column input[type="submit"]:hover {
        background-color: #005c87;
    }

    .timxetai-auth-column a {
        color: #0073aa;
        text-decoration: none;
    }

    .timxetai-auth-column a:hover {
        text-decoration: underline;
    }

    /* 🌐 Responsive cho mobile & tablet */
    @media (max-width: 768px) {
        .timxetai-auth-container {
            flex-direction: column;
            gap: 20px;
        }

        .timxetai-auth-column {
            width: 100%;
            min-width: unset;
        }
    }

    @media (max-width: 480px) {
        .timxetai-auth-column {
            padding: 15px;
        }

        .timxetai-auth-column h3 {
            font-size: 16px;
        }

        .timxetai-auth-column input[type="submit"] {
            width: 100%;
        }
    }

