﻿/*@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
}*/

/*:root {
    --primary: #ec994b;
    --white: #ffffff;
    --bg: #f5f5f5;
}*/
/*@media (min-width:1400px){
    .container-jvs{
        max-width:1900px;
    }
}*/
/*@media (min-width:1200px) {
    .container-jvs {
        max-width: 1140px;
    }
}
@media (min-width:992px) {
    .container-jvs {
        max-width: 960px;
    }
}
@media (min-width:768px) {
    .container-jvs {
        max-width: 720px;
    }
}
@media (min-width:576px) {
    .container-jvs {
        max-width: 540px;
    }
}*/
/*html {
    font-size: 62.5%;
    font-family: "Montserrat", sans-serif;
    scroll-behavior: smooth;
}

@media (min-width: 1440px) {
    html {
        zoom: 1.5;
    }
}

@media (min-width: 2560px) {
    html {
        zoom: 1.7;
    }
}

@media (min-width: 3860px) {
    html {
        zoom: 2.5;
    }
}*/
/*::-webkit-scrollbar {
    width: 1.3rem;
}

::-webkit-scrollbar-thumb {
    border-radius: 1rem;
    background: #797979;
    transition: all 0.5s ease-in-out;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #222224;
    }

::-webkit-scrollbar-track {
    background: #f9f9f9;
}*/

/*body {
    font-size: 1.6rem;
    background: var(--bg);
}
*/
/*.container {*/
    /*max-width: 124rem;*/
    /*padding: 0 1rem;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section-heading {
    font-size: 3rem;
    color: var(--primary);
    padding: 2rem 0;
}

#tranding {
    padding: 4rem 0;
}

@media (max-width:1440px) {
    #tranding {
        padding: 7rem 0;
    }
}

#tranding .tranding-slider {
    height: 40rem;
    padding: 2rem 0;
    position: relative;
}

@media (max-width:500px) {
    #tranding .tranding-slider {
        height: 45rem;
    }
}

.tranding-slide {
    width: 37.3rem;
    height: 42rem;
    position: relative;
}

@media (max-width:500px) {
    .tranding-slide {
        width: 28rem !important;
        height: 36rem !important;
    }

        .tranding-slide .tranding-slide-img img {
            width: 28rem !important;
            height: 36rem !important;
        }
}

.tranding-slide .tranding-slide-img img {
    width: 32rem;
    height: 28rem;
    border-radius: 2rem;
    object-fit: cover;
}

.tranding-slide .tranding-slide-content {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.tranding-slide-content .food-price {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--white);
}

.tranding-slide-content .tranding-slide-content-bottom {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: var(--white);
}

.food-rating {
    padding-top: 1rem;
    display: flex;
    gap: 1rem;
}

.rating ion-icon {
    color: var(--primary);
}

.swiper-slide-shadow-left,
.swiper-slide-shadow-right {
    display: none;
}

.tranding-slider-control {
    position: relative;
    bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .tranding-slider-control .swiper-button-next {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

@media (max-width:990px) {
    .tranding-slider-control .swiper-button-next {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width:450px) {
    .tranding-slider-control .swiper-button-next {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width:990px) {
    .tranding-slider-control .swiper-button-prev {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width:450px) {
    .tranding-slider-control .swiper-button-prev {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

.tranding-slider-control .slider-arrow {
    background: var(--white);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    left: 42%;
    transform: translateX(-50%);
    filter: drop-shadow(0px 8px 24px rgba(18, 28, 53, 0.1));
}

    .tranding-slider-control .slider-arrow ion-icon {
        font-size: 2rem;
        color: #222224;
    }

    .tranding-slider-control .slider-arrow::after {
        content: '';
    }

.tranding-slider-control .swiper-pagination {
    position: relative;
    width: 15rem;
    bottom: 1rem;
}

    .tranding-slider-control .swiper-pagination .swiper-pagination-bullet {
        filter: drop-shadow(0px 8px 24px rgba(18, 28, 53, 0.1));
    }

    .tranding-slider-control .swiper-pagination .swiper-pagination-bullet-active {
        background: var(--primary);
    }
.swiper-slide-prev, .swiper-slide-next {
    opacity:0.2;
}
.swiper-slide-visible{
    opacity:0.8;
}
.swiper-slide-active {
    opacity: 1;
}
.tranding-slide-img{
    width:32rem;
}*/
/*.jvs-section{
    height:70%;
}*/
/* ----------- SLIDER ------------ */
.swiper {
    width: 100%;
}

.swiper-wrapper {
    width: 100%;
    height: 35em;
    display: flex;
    align-items: center;
}

.card {
    width: 26em;
    height: 100%;
    background-color: #fff;
    border-radius: 2rem;
    /*box-shadow: 0 0 2em rgba(0, 0, 0, .2);*/
    padding: 0.5em 0.5em;
    display: flex;
    /*align-items: center;*/
    flex-direction: column;
    margin: 0 2em;
}
.card-gioi-thieu{
    width:auto;
    margin:0 0;
}
.swiper-slide:not(.swiper-slide-active) {
    filter: blur(1px);
}

.card__image {
    width: 100%;
    height: 50%;
    border-radius: 2rem;
    border: 5px solid var(--color);
    padding: 3px;
    margin-bottom: 0.5em;
}

    .card__image img {
        width: 100%;
        height: 100%;
        border-radius: 2rem;
        object-fit: cover;
    }

.card__content {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: justify;
}

.card__title {
    font-size: 1.5rem;
    font-weight: 500;
    position: relative;
    top: .2em;
}

.card__name {
    color: var(--color);
}

.card__text {
    text-align: center;
    font-size: 1.1rem;
    margin: 1em 0;
}

.card__btn {
    background-color: var(--color);
    color: #e31e25;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    border: none;
    padding: .5em;
    border-radius: .5em;
    margin-top: .5em;
    cursor: pointer;
}

.card__image_event {
    width: 100%;
    height: 70%;
    border-radius: 50%;
    border: 5px solid var(--color);
    padding: 3px;
    margin-bottom: 0.5em;
}

    .card__image_event img {
        width: 100%;
        height: 100%;
        /*border-radius: 20%;*/
        object-fit: cover;
    }

.card__text_event {
    text-align: center;
    font-size: 20px;
    margin: 0em 0;
}

.card-title, .card-text {
    text-align: center;
}

@media only screen and (max-width: 1000px) {
    .detail_wrap {
        width: 90vw;
    }

    .detail_title_wrap {
        top: 480px;
    }
}

@media only screen and (max-width: 500px) {
    .detail_wrap {
        padding-bottom: 35px !important;
    }

    .detail_title_wrap {
        margin-top: -35px !important;
    }

    .detail_category,
    .detail_sub_category a {
        font-size: 12px;
    }

    .detail_title {
        font-size: 18px !important;
    }

    .detail_title,
    .detail_sub_category_list {
        width: 65.2vw !important;
    }
}
@media only screen and (max-width: 768px) {
    .detail_wrap {
        display: flex;
        flex-wrap: wrap-reverse;
        width: 100% !important;
        padding-bottom: 50px;
    }

    .detail_image {
        width: 100%;
    }

        .detail_image figure {
            margin: 0 auto !important;
            width: 90vw !important;
            height: 90vw !important;
        }

    .detail_title_wrap {
        position: relative !important;
        margin-top: -50px;
        padding: 18px 40px !important;
        top: 0 !important;
        left: 0 !important;
    }

    .detail_content_wrap {
        margin-top: 5px;
    }

    .detail_title,
    .detail_sub_category_list {
        margin-bottom: 12px;
        width: 350px;
    }

    .detail_category,
    .detail_sub_category a {
        margin-bottom: 9px;
    }
}

.icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px; /* kích thước khung vuông */
    height: 40px;
    background: white; /* màu nền của khung */
    border-radius: 8px; /* bo nhẹ → vẫn là hình vuông */
    padding: 4px; /* để icon không sát mép (tùy chọn) */

    box-shadow: 0 0 8px rgba(0,0,0,0.2); /* điểm nhấn đẹp */
}


@media (max-width: 768px) {
    #districtSelect {
        width: calc(100vw - 260px); /* 25% chiều rộng màn hình */
        max-width: 200px;
    }
}

/* --- Link Wrapper (Đảm bảo toàn bộ badge là một link) --- */
.badge-link {
    text-decoration: none; /* Bỏ gạch chân link */
    display: inline-flex;
}

/* --- Khung bao ngoài (Badge) - Thiết lập chung --- */
.sos-badge {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    max-width: fit-content;
    height: fit-content;
}

    .sos-badge:hover {
        box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    }

    .sos-badge:active {
        transform: scale(0.98);
    }

/* --- Màu Xanh Lá (Thông tin Điểm Hỗ Trợ) --- */
.support {
    background-color: white; /* Xanh lá cây nhạt (Light Green) */
    border: 1px solid #99e699;
}

    .support .text-action {
        color: #1b5e20; /* Màu chữ xanh lá đậm */
    }

/* --- Màu Đỏ (Nơi Nguy Hiểm/Cảnh Báo) --- */
.danger {
    background-color: white; /* Đỏ nhạt (Light Red/Pink) */
    border: 1px solid #ff9999;
}

    .danger .text-action {
        color: #b71c1c; /* Màu chữ đỏ đậm */
    }

/* --- Màu Xanh Dương (Mặc định - Cứu Trợ) --- */
.rescue {
    background-color: white; /* Xanh dương nhạt (Light Blue) */
    border: 1px solid #b8daff;
}

    .rescue .text-action {
        color: #163c96; /* Màu chữ xanh dương đậm */
    }

/* --- Phần Chữ (Tối ưu hiển thị 2 dòng) --- */
.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
}

.text-label {
    font-size: 9.5px;
    color: #555;
    font-weight: normal;
    white-space: nowrap;
}

.text-action {
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.map-info {
    /*width : 300px;*/
    height: 28px;
    background-color: white;
    padding: 3px 8px;
    color: red;
}

.div-close {
    margin-top : 10px;
}

@media(max-width: 568px) {
    .carousel-inner {
        margin-left: 0 !important;
        box-shadow: none !important;
    }

    .map-info {
        width: 100%;
        height: 28px;
        background-color: white;
        padding: 3px 8px;
        color: red;
        margin-bottom: 12px;
    }

    #districtSelect {
        width: calc(100vw - 260px);
        max-width: 130px;
    }

    .btn {
        font-weight: 400 !important;
    }
}

.forecast-group {
    display: inline-flex;
    gap: 5px;
}

.forecast-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #d8d8d8;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.forecast-btn.active {
    background: #e8f1ff;
    border-color: #2a73ff;
    color: #2a73ff;
    font-weight: 600;
}

#countPerson {
    width : 80px;
}