/* ============================================
   Bang Gia Cards - Bảng giá dạng card
   ============================================ */

/* Wrapper toàn bộ */
.bgc-wrapper {
    display: flex;
    flex-direction: column;
}

/* Tiêu đề khu vực */
.bgc-region-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 0px;
    padding-top: 20px;
    display: inline-block !important;

}

/* Grid chứa cards */
.bgc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    padding: 16px 0;
}

@media (max-width: 1024px) {
    .bgc-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .bgc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 427px) {
    .bgc-destination { display: block; }
}

@media (max-width: 480px) {
    .bgc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bgc-image { height: 106px !important; }
    .bgc-body { padding: 10px; gap: 8px; }
    .bgc-title { font-size: 13px !important; }
    .bgc-price-value, .bgc-km-value { font-size: 12px; }
    .bgc-price-label, .bgc-km-label { font-size: 10px; }
    .bgc-info { padding: 8px 10px; }
    .bgc-btn { font-size: 11px; padding: 7px 4px; }
}

/* Card */
.bgc-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bgc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Hình ảnh */
.bgc-image {
    width: 100%;
    height: 150px;
    background-color: #959595;
    background-image: linear-gradient(135deg, #ffffff 0%, #bfbfbf 100%);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* Nội dung card */
.bgc-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Tiêu đề */
.bgc-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Thông tin giá + km */
.bgc-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ebebeb;
    border-radius: 10px;
    padding: 10px 14px;
}

@media (max-width: 400px) {
    .bgc-body { padding: 4px; padding-bottom: 8px;}
    .bgc-info { padding: 6px 8px; }
    .bgc-title {padding-left: 4px; }
}

/* Giá - bên trái */
.bgc-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bgc-price-label {
    font-size: 14px;
    color: #555555;
    font-weight: 600;
}

.bgc-price-value {
    font-size: 15px;
    font-weight: 700;
    color: #e63946;
}

/* Km - bên phải */
.bgc-km {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.bgc-km-value,
.bgc-km-label {
    font-size: 12px;
    font-weight: 700;
    color: #555555;
}


/* Rating: sao + số chuyến */
.bgc-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.bgc-stars {
    font-weight: 600;
    color: #333;
}

.bgc-trips {
    color: #777;
}

/* Nút bấm */
.bgc-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.bgc-btn {
    flex: 1;
    text-align: center;
    padding: 9px 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.bgc-btn-primary {
    background: #4A80F0;
    color: #ffffff !important;
}

.bgc-btn-primary:hover {
    background: #3563D4;
    color: #ffffff !important;
}

.bgc-btn-secondary {
    background: #ebebeb;
    color: #333 !important;
    border: 1px solid #ddd;
}

.bgc-btn-secondary:hover {
    background: #cfcfcf;
    color: #111 !important;
}
