/* Lớp bọc ngoài để ngăn xung đột CSS nhưng cho phép kế thừa font */
.banlienlac-plugin-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    display: block;
    line-height: 1.5;
}

.banlienlac-plugin-wrapper *,
.banlienlac-plugin-wrapper *::before,
.banlienlac-plugin-wrapper *::after {
    box-sizing: border-box;
}

.banlienlac-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.banlienlac-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

/* Bố cục Flexbox cho Danh sách và Bản đồ */
.banlienlac-results-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.banlienlac-list-column {
    flex: 1;
    min-width: 350px; /* Tăng độ rộng tối thiểu */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.banlienlac-map-column {
    flex: 2;
    min-width: 300px;
}

/* Định dạng thẻ Contact Item */
.contact-item {
    display: flex;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    align-items: center; /* Căn giữa nội dung theo chiều dọc */
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-image {
    flex-shrink: 0;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh không bị méo */
    display: block;
}

.contact-details {
    padding: 15px;
    flex-grow: 1;
}

.contact-title {
    margin: 0 0 8px 0 !important; /* Cố định margin để không bị đè chữ */
    font-size: 1.1em;
    font-weight: bold;
    color: #222;
}

.contact-excerpt {
    margin: 0 0 8px 0 !important;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.contact-province {
    margin: 0 !important;
    font-size: 0.85em;
    font-weight: 600;
    color: #0073aa;
    text-transform: uppercase;
}

#banlienlac-map-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    z-index: 1; /* Tránh đè lên menu hoặc các thành phần khác */
}

@media (max-width: 768px) {
    .banlienlac-results-wrapper {
        flex-direction: column-reverse; /* Đưa bản đồ lên trên ở mobile nếu cần */
    }
    .banlienlac-list-column {
        min-width: 100%;
    }
}