/* ==== VPSA Green Motion Background ==== */
.business-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 2.8rem;
    color: #1f2937; /* text-dark */
    background: linear-gradient(-45deg, #a7f3d0, #d1fae5, #b2f7ef, #ccfbf1);
    background-size: 400% 400%;
    animation: moveGreen 10s ease infinite;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Animation gradient */
@keyframes moveGreen {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hiệu ứng ánh sáng quét */
.business-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
    animation: moveLight 8s linear infinite;
    z-index: 0;
}
@keyframes moveLight {
    0% { transform: translate(-20%, -20%) rotate(0deg); }
    50% { transform: translate(20%, 20%) rotate(180deg); }
    100% { transform: translate(-20%, -20%) rotate(360deg); }
}

.business-card > * {
    position: relative;
    z-index: 2;
}

/* ==== LOGO ==== */
.business-logo {
    max-height: 180px;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}
.business-logo:hover {
    transform: scale(1.05);
}

/* ==== CERTIFICATE ==== */
.cert-item img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease;
}
.cert-item img:hover {
    transform: scale(1.15);
    border-color: #16a34a;
}

/* ==== PLANT TYPE CHIP ==== */
.plant-chip {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px 14px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.plant-chip:hover {
    transform: translateY(-2px);
    background: #fff;
}

/* ==== MAP BUTTON ==== */
.btn-map {
    background: linear-gradient(135deg, #16a34a, #4ade80);
    color: #fff !important;
    border: none;
    box-shadow: 0 5px 18px rgba(22, 163, 74, 0.3);
    transition: all 0.3s ease;
}
.btn-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.45);
}

/* ==== TEXT ==== */
.business-card h2,
.business-card p,
.business-card a {
    color: #064e3b; /* Đậm hơn để nổi trên nền sáng */
}
.business-card h2 {
    font-weight: 700;
}
.business-card a:hover {
    text-decoration: underline;
}

.background-wave {
    position: absolute;
    top: -40%;
    left: -20%;
    width: 160%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.6) 0%, transparent 70%);
    animation: waveFlow 12s ease-in-out infinite;
    z-index: 1;
}
@keyframes waveFlow {
    0% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(10%,10%) rotate(180deg); }
    100% { transform: translate(0,0) rotate(360deg); }
}

/* Modal review styling */
#modalReview .modal-content {
    border-radius: 1rem;
    animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#ratingStars i, #ratingStars_placemark i {
    cursor: pointer;
    transition: transform 0.15s ease, color 0.2s ease;
}
#ratingStars i:hover {
    transform: scale(1.2);
}
#ratingStars_placemark i:hover {
    transform: scale(1.2);
}
/* ==== REVIEW MODAL ==== */
#modalReview .modal-content {
    border-radius: 1.2rem;
    overflow: hidden;
    animation: fadeUp 0.35s ease;
}

/* Header nhỏ gọn */
#modalReview .modal-header {
    padding: 0.8rem 1.25rem;
    background: linear-gradient(135deg, #16a34a, #4ade80);
    color: #fff;
    border-bottom: none;
}
#modalReview .modal-title {
    font-size: 1.05rem;
    font-weight: 600;
}
#modalReview .btn-close {
    filter: invert(1);
    opacity: 0.9;
}

/* Sao đánh giá to và rõ */
#ratingStars, #ratingStars_placemark {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}
#ratingStars i, #ratingStars_placemark i {
    font-size: 2.2rem; /* to hơn rõ */
    cursor: pointer;
    color: #d1d5db; /* xám nhạt */
    transition: transform 0.2s ease, color 0.2s ease;
}
#ratingStars i.bi-star-fill, #ratingStars_placemark i.bi-star-fill {
    color: #facc15; /* vàng sáng */
}
#ratingStars i:hover {
    transform: scale(1.3);
}
#ratingStars_placemark i:hover {
    transform: scale(1.3);
}

/* Comment box */
#reviewComment {
    resize: none;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Nút Submit */
#btnSubmitReview {
    background: linear-gradient(135deg, #16a34a, #4ade80);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.25);
    transition: all 0.3s ease;
}
#btnSubmitReview:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(22, 163, 74, 0.35);
}

/* Animation modal */
@keyframes fadeUp {
    from { transform: translateY(25px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


@keyframes emoji-flame-flicker {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 2px rgba(255, 140, 0, 0.4));
        transform: scale(1) rotate(0deg);
    }

    50% {
        filter: brightness(1.4) drop-shadow(0 0 8px rgba(255, 80, 0, 0.8));
        transform: scale(1.15) rotate(-4deg);
    }
}

.icon_fire {
    display: inline-block;
    animation: emoji-flame-flicker 1.2s infinite ease-in-out;
    margin-right: 6px;
    font-size: 1em;
    vertical-align: middle;
}

/* --- Card chính --- */
.div_product_hot .card {
    position: relative;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 128, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover nổi khối */
.div_product_hot .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 128, 0, 0.15), 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* --- Figure / ảnh --- */
.div_product_hot figure.card-img-top {
    margin: 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.div_product_hot figure.card-img-top img.image_product {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

/* Icon lửa trên góc card */
.div_product_hot .card .icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 24px;
    color: #ff6600;
    pointer-events: none;
    z-index: 5;
}

/* Overlay Xem */
.div_product_hot figure.card-img-top figcaption {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.div_product_hot figure.card-img-top:hover figcaption {
    opacity: 1;
}

/* --- Card-body --- */
.div_product_hot .card-body {
    height: 146px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Tiêu đề xanh */
.div_product_hot .card-body .post-title a {
    color: #008000;
    font-weight: 600;
    text-decoration: none;
}

/* Nội dung mô tả */
.div_product_hot .card-body .post-content p {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}
.leaflet-popup-custom {
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    font-size: 12px;
    line-height: 1.3;
}

.leaflet-popup-content {
    margin: 0;
}

.popup-garden {
    max-height: 240px;
    overflow: hidden;
}

.harvest-scroll {
    max-height: 100px; /* Giới hạn chiều cao vùng harvest */
    overflow-y: auto;  /* Cho phép cuộn dọc */
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 4px 6px;
    background: #fafafa;
}

.harvest-scroll::-webkit-scrollbar {
    width: 6px;
}
.harvest-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}
.harvest-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}
