﻿body {
    background-color: #F4F5F8;
}

/* css phần search  */
.search-container {
    position: relative;
    width: 100%;
    font-family: Arial, sans-serif;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%23999"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat 16px center;
    background-color: white;
    padding-left: 45px;
}

    .search-input:focus {
        border-color: #4285f4;
    }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

    .dropdown.show {
        display: block;
    }

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background-color: #f5f5f5;
    }

    .dropdown-item.selected {
        background-color: #e3f2fd;
    }

.no-results {
    padding: 16px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* hết phần css searcg  */
.c-menu-time {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* mượt hơn trên mobile */
}

    /* Ẩn scrollbar trên Chrome, Safari */
    .c-menu-time::-webkit-scrollbar {
        display: none;
    }

/* Ẩn scrollbar trên Firefox */
.c-menu-time {
    scrollbar-width: none;
}

/* Ẩn scrollbar trên Edge, IE */
.c-menu-time {
    -ms-overflow-style: none;
}

    .c-menu-time .c-menu ul {
        display: flex;
        justify-content: start;
        gap: 10px;
        min-width: max-content; /* cho ul dài bằng tổng li */
        list-style: none;
        margin: 0;
        padding: 0;
    }

        .c-menu-time .c-menu ul li {
            flex: 0 0 auto;
            width: 100px;
            height: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #fff;
            border-radius: 10px;
            white-space: nowrap;
        }

    .c-menu-time .c-menu li.bg-active {
        background: #1c84ee;
        color: #fff;
    }

    .c-menu-time .c-menu li a {
        color: inherit;
        text-decoration: none;
    }

.infor-wether-province {
    margin-top: 20px;
}

.infor-wether {
    padding-top: 30px;
    width: 100%;
    min-height: 310px;
    background-color: #FFFFFF;
    border-radius: 5px;
    padding-left: 25px;
    padding-right: 25px;
}

    .infor-wether .wether-title h1 {
        color: #003870;
        font-size: 18px;
        font-weight: 700;
    }

    .infor-wether .wether-title h2 {
        color: #003870;
        font-size: 18px;
        font-weight: 700;
    }

    .infor-wether .wether-infor {
        display: flex;
    }

        .infor-wether .wether-infor .wether-infor-temp {
            display: flex;
        }

        .infor-wether .wether-infor img {
            width: 78px;
            height: 78px;
            object-fit: cover;
        }

        .infor-wether .wether-infor .temp {
            color: #003870;
            font-weight: 600;
            font-size: 61px;
            line-height: 74px;
        }

        .infor-wether .wether-infor .description {
            padding-top: 10px;
        }

            .infor-wether .wether-infor .description p {
                font-weight: 600;
                font-size: 16px;
                line-height: 30px;
                color: #003870;
                margin-bottom: 0;
                text-transform: capitalize;
                line-height: 26px;
            }

    .infor-wether .wether-other {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 25px;
        flex-wrap: wrap; /* Cho phép xuống dòng */
    }

        .infor-wether .wether-other .iteam {
            color: #003870;
            text-align: center;
        }

            .infor-wether .wether-other .iteam img {
                max-height: 16px;
                height: 16px;
            }

.wether-other .temp-item {
    text-align: center;
}

    .wether-other .temp-item .time-off-day {
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        color: #003870;
    }

    .wether-other .temp-item img {
        width: 102px;
        height: 102px;
        object-fit: cover;
        margin: 9px auto 18px auto;
    }

    .wether-other .temp-item span {
        font-size: 16px;
        line-height: 24px;
    }

.l-content-flex {
    margin-top: 30px
}
/* 1) Card đúng 150px */
.owl-carousel .b-grid {
    width: 150px; /* width cố định để autoWidth bám vào */
    margin: 0;
    box-sizing: border-box;
    text-align: center;
}

/* 2) Ảnh không làm nở card */
.b-grid__img img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 3) Nếu theme có grid/flex ép width item → gỡ bỏ */
.c-template-grid .owl-item {
    width: auto !important; /* vô hiệu hoá width% từ theme */
    flex: 0 0 auto; /* tránh co giãn đầy khung */
}

/* 4) Một số theme thêm padding/center gây cảm giác “rộng” */
.owl-stage-outer {
    padding-left: 0;
    padding-right: 0;
}

.b-grid {
    text-align: center;
    border-right: 1px solid #f3f1ef;
}

    .b-grid .temperature span {
        font-size: 16px;
        line-height: 24px;
    }

    .b-grid .time {
        font-size: 20px;
        font-weight: 600;
        line-height: 24px;
        color: #003870;
    }

    .b-grid .image-wether-in-house img {
        width: 72px;
        height: 65px;
        object-fit: cover;
        margin: 9px auto 18px auto;
    }

    .b-grid .information-in-house {
        display: flex;
        justify-content: center;
    }

        .b-grid .information-in-house img {
            max-height: 16px;
            width: auto;
            height: auto;
            margin: 0;
            margin-right: 4px;
        }

.l-main .c-box.c-box__title .c-box__title__name {
    color: #003870;
}

.bg-box {
    border-radius: 7px;
}

    .bg-box .des-24h a {
        border-radius: 10px;
        padding: 5px 20px;
        color: #fff;
        background: #1c84ee;
    }

        .bg-box .des-24h a:hover,
        .bg-box .des-24h a:focus,
        .bg-box .des-24h a:active {
            text-decoration: none;
        }

.l-main .weather-by-day {
    border-radius: 10px;
    width: 100%;
    /* nếu cha là flex item: */
    flex: 1 1 100%;
    min-width: 0;
    padding: 20px;
    background-color: #FFFFFF;
}

    .l-main .weather-by-day .wether-title {
        font-weight: 600 !important;
        font-size: 18px !important;
        line-height: 27px !important;
        margin-bottom: 21px !important;
        color: #18211e !important;
        /* tùy chọn: để các cột cân đều */
    }

    .l-main .weather-by-day .weather-table {
        width: 100%;
        border-collapse: collapse;
    }

        .l-main .weather-by-day .weather-table tbody .sup {
            font-size: 11px;
            vertical-align: super;
            opacity: 0.5;
        }

        .l-main .weather-by-day .weather-table tbody .date-time {
            color: #18211e;
            flex: 0 0 110px;
            font-size: 16px;
            font-weight: 500;
            line-height: 24px;
            margin-right: 25px;
        }

        .l-main .weather-by-day .weather-table tbody .img-wether {
            width: 42px;
            height: 52px;
            object-fit: cover;
            margin-right: 25px;
        }

        .l-main .weather-by-day .weather-table tbody .wether-wind {
            display: flex;
        }

            .l-main .weather-by-day .weather-table tbody .wether-wind img {
                transform: rotate(180deg);
                margin-right: 5px;
                width: 16px;
                max-height: 16px;
            }

        .l-main .weather-by-day .weather-table tbody .main-row .time {
            padding-right: 30px;
        }

        .l-main .weather-by-day .weather-table tbody .main-row .des {
            display: inline-block;
            padding-top: 16px;
            padding-right: 50px;
        }

        .l-main .weather-by-day .weather-table tbody .main-row .temp_bright_dark {
            font-size: 15px;
        }


.infor-wether-province .weather-by-day .weather-table tbody .end-row-table {
    border: 1px solid #F4F2F0;
}




/* Hàng chi tiết: animate bằng max-height + opacity */
.detail-row .detail-wrap {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    transition: max-height .35s ease, opacity .25s ease, padding-top .25s ease;
    /* giúp border/khối nhìn rõ */
    background: #f7f9fc;
}

.detail-row.open .detail-wrap {
    max-height: 500px; /* đủ lớn để chứa nội dung */
    opacity: 1;
}

.detail-content {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding: 0 8px 12px 8px;
    background-color: #FFFFFF;
}

.detail-item {
    text-align: center;
}

    .detail-item img {
        height: 16px;
        max-height: 16px;
    }

    .detail-item .time-off-day {
        color: #003870;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 0;
    }

.l-sidebar .c-box .c-box__title img {
    width: 100%;
    height: 195px;
}

.l-sidebar .c-box .c-box__content iframe {
    width: 100%;
    height: 270px;
}

.l-sidebar .c-box ul li {
    list-style: none;
    background-color: white;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 10px;
    position: relative;
}

/* Ẩn border mặc định */
.l-sidebar .c-box ul li {
    border-bottom: none;
}

    /* Vẽ border riêng bằng ::after */
    .l-sidebar .c-box ul li::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 0;
        bottom: 0;
        height: 1px;
        background-color: #e9e5e1;
    }

    .l-sidebar .c-box ul li:last-child::after {
        display: none;
    }

    .l-sidebar .c-box ul li a {
        text-decoration: none;
        color: #585858;
    }

        .l-sidebar .c-box ul li a img .wether_img_icon {
            width: 30px;
            height: 30px;
        }


@media (max-width: 426px) {
    .c-menu-time {
        margin-top: 30px;
    }

    .infor-wether-province .wether-other {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* vuốt mượt trên iOS */
        scroll-snap-type: x proximity; /* tùy chọn, bám vị trí */
        gap: 12px;
    }

        .infor-wether-province .wether-other .iteam {
            flex: 0 0 auto;
            display: block; /* hoặc inline-block đều được */
            scroll-snap-align: start;
        }

    .infor-wether .wether-other::-webkit-scrollbar {
        display: none;
    }

    .infor-wether .wether-other {
        scrollbar-width: none;
    }

    .infor-wether .wether-infor {
        display: block;
        text-align: center;
    }

        .infor-wether .wether-infor .wether-infor-temp {
            display: flex;
            justify-content: center;
            gap: 8px;
        }

        .infor-wether .wether-infor img {
            width: 64px;
            height: 64px;
            margin-bottom: 2px;
        }

        .infor-wether .wether-infor .temp {
            font-size: clamp(40px, 9vw, 64px); /* số to, responsive */
            line-height: 1.05;
        }

        .infor-wether .wether-infor .description {
            padding-top: 0;
        }

    /* thời tiết sáng, tối,,  */
    .l-sidebar .c-box .c-box__content iframe {
        width: 100%;
        height: 300px;
    }
}

@media (min-width: 426px) and (max-width: 768px) {
    .infor-wether-province .wether-other {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* vuốt mượt trên iOS */
        scroll-snap-type: x proximity; /* tùy chọn, bám vị trí */
        gap: 12px;
    }

        .infor-wether-province .wether-other .iteam {
            flex: 0 0 auto;
            display: block; /* hoặc inline-block đều được */
            scroll-snap-align: start;
        }

    .infor-wether .wether-other::-webkit-scrollbar {
        display: none;
    }

    .infor-wether .wether-other {
        scrollbar-width: none;
    }

    .l-sidebar .c-box .c-box__content iframe {
        width: 100%;
        height: 400px;
    }
}

@media (min-width: 769px) {
}


/*  page house*/
.information-day-in-house {
    padding-top: 30px;
    width: 100%;
    min-height: 310px;
    background-color: #FFFFFF;
    border-radius: 5px;
    padding-left: 25px;
    padding-right: 25px;
}

    .information-day-in-house .title {
        color: #003870;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .information-day-in-house .temp-information-day-in-house {
        margin-top: 10px;
        display: flex;
        gap: 7px;
    }

        .information-day-in-house .temp-information-day-in-house img {
            width: 78px;
            height: 78px;
            object-fit: cover;
        }

        .information-day-in-house .temp-information-day-in-house .temp {
            font-weight: 600;
            font-size: 60.75px;
            line-height: 74px;
            color: #003870;
        }

        .information-day-in-house .temp-information-day-in-house .description .like-temp {
            font-weight: 600;
            font-size: 16px;
            line-height: 30px;
            color: #003870;
            margin-bottom: 0;
            text-transform: capitalize;
        }

        .information-day-in-house .temp-information-day-in-house .description span {
            font-size: 14px;
            line-height: 24px;
            color: #385878;
        }

    .information-day-in-house .weather-main-desc {
    }

        .information-day-in-house .weather-main-desc .item-temp {
            display: flex;
            justify-content: space-between;
            align-items: center; /* thêm cho đẹp */
            border-bottom: 1px solid #e9e5e1;
            margin-bottom: 16px;
            padding-bottom: 16px;
        }

            .information-day-in-house .weather-main-desc .item-temp:last-child {
                border-bottom: none;
                margin-bottom: 16px;
                padding-bottom: 16px;
            }

            .information-day-in-house .weather-main-desc .item-temp .laybel-team img {
                max-height: 16px;
                height: 16px;
            }

            .information-day-in-house .weather-main-desc .item-temp .laybel-team span {
                color: #003870;
            }

            .information-day-in-house .weather-main-desc .item-temp .input-data {
                font-size: 14px;
                line-height: 20px;
                color: #003870;
            }

.infor-wether-province .weather-by-day .wether-see_more {
    background-color: #1c84ee;
    border: none;
    padding: 9px 15px 9px 15px;
    color: white;
    border-radius: 17px;
}

/* CSS trang những ngày mai  */
.infor-wether-province .title_number {
    color: #003870;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.infor-wether-province .wether-next-day {
    padding: 15px;
    background-color: white;
    border-radius: 7px;
    margin-bottom: 15px;
}

    .infor-wether-province .wether-next-day h1 {
        font-size: 15.4px;
        color: #495057;
        font-weight: 700;
    }

    .infor-wether-province .wether-next-day p {
        font-size: 15.4px;
        color: #545A61;
        font-weight: 700;
    }

    .infor-wether-province .wether-next-day .wether-infor-next-day {
        display: flex;
        justify-content: space-around;
        padding-bottom: 15px;
    }

        .infor-wether-province .wether-next-day .wether-infor-next-day .infor {
            display: flex;
        }

            .infor-wether-province .wether-next-day .wether-infor-next-day .infor img {
                width: 78px;
                height: 78px;
                object-fit: cover;
            }

            .infor-wether-province .wether-next-day .wether-infor-next-day .infor .temp-infor {
                font-weight: 600;
                font-size: 60.75px;
                line-height: 74px;
                color: #003870;
            }

            .infor-wether-province .wether-next-day .wether-infor-next-day .infor .des p {
                font-weight: 600;
                font-size: 16px;
                line-height: 30px;
                color: #003870;
                margin-bottom: 0;
                text-transform: capitalize;
            }

            .infor-wether-province .wether-next-day .wether-infor-next-day .infor .des span {
                font-size: 14px;
                line-height: 24px;
                color: #385878;
            }

        .infor-wether-province .wether-next-day .wether-infor-next-day .infor-temp-day .ieam {
            display: flex;
            margin-top: 7px;
            gap: 15px;
        }

            .infor-wether-province .wether-next-day .wether-infor-next-day .infor-temp-day .ieam .icon img {
                width: 10px;
            }

            .infor-wether-province .wether-next-day .wether-infor-next-day .infor-temp-day .ieam .title {
                color: #495057;
            }

            .infor-wether-province .wether-next-day .wether-infor-next-day .infor-temp-day .ieam .temp {
                font-size: 12px;
                line-height: 20px;
                color: #003870;
                font-weight: 500;
            }

    .infor-wether-province .wether-next-day .wether-other {
        display: flex;
        align-items: center;
        justify-content: space-around;
        flex-wrap: wrap;
        text-align: center;
        border-top: 1px solid #DDDDDD;
        padding-top: 15px;
    }

        .infor-wether-province .wether-next-day .wether-other .iteam {
            color: #003870;
            text-align: center;
        }

            .infor-wether-province .wether-next-day .wether-other .iteam img {
                max-height: 16px;
                height: 16px;
            }

@media (max-width: 768px) {
    .infor-wether-province .information-day-in-house {
        display: inline-block;
    }
}

@media (max-width: 425px) {
    .infor-wether-province .information-day-in-house {
        display: inline-block;
    }

    .infor-wether-province .wether-next-day .wether-infor-next-day {
        display: inline-block;
    }
}

/* css các xã, phường */
.list-commune {
    margin-top: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 7px;
}

    .list-commune button {
        color: wheat;
        border: none;
        background-color: #E00101;
        padding: 7px;
        display: none;
    }

    .list-commune h1 {
        color: #003870;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .list-commune h2 {
        color: #003870;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .list-commune .title_h2 {
        color: #003870 !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
    }

    .list-commune ul {
        background-color: white;
        padding: 0;
        margin-bottom: 0;
    }

        .list-commune ul li {
            list-style: none;
            display: flex;
            margin-top: 7px;
            padding-top: 8px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e9e5e1;
        }


            /*            .list-commune ul li:last-child {
                border-bottom: none;
            }*/

            .list-commune ul li a {
                color: #585858;
                text-decoration: none !important; /* tắt mặc định */
            }

                .list-commune ul li a :hover {
                    text-decoration: none !important;
                }

@media (max-width: 768px) {
    .list-commune button {
        display: block;
    }

    .list-commune .row > .col-md-3 {
        display: none;
    }

        .list-commune .row > .col-md-3:nth-child(-n+3) {
            display: block; /* hiển thị 3 cột đầu */
        }
}