﻿.stretch-card {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.grid-margin, .proBanner .purchase-popup {
    margin-bottom: 1.5rem;
}

.card.card-img-holder {
    position: relative;
}

.stretch-card > .card {
    width: 100%;
    min-width: 100%;
    padding: 20px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .3125rem;
}

    .card .card-body {
        padding: 0.5rem;
    }

.card-body {
    flex: 1 1 auto;
    padding: 0.25rem;
}

.card.card-img-holder .card-img-absolute {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
}

.card-subtitle, .card-text:last-child {
    margin-bottom: 0;
}

.float-right {
    float: right !important;
}

#map-container {
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vietnam-map {
    width: 100%;
    aspect-ratio: 3 / 2;
}

/* Đặt màu mặc định */
path {
    transition: fill 0.3s ease;
}

    /* Thay đổi màu khi hover */
    path:hover {
        fill: #000; /* Màu đỏ */
    }

/* Tooltip style */
.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Legend style */
.legend {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Buttons container */
#controls {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Button styles */
.zoom-button {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .zoom-button:hover {
        background-color: rgba(255, 255, 255, 0.9);
    }

.active {
    fill: red;
}