/* Trang chủ — slider + cổng tra cứu (bổ sung cached15.css) */

.page-home .slider {
    position: relative;
    margin-bottom: 60px;
}

.page-home .slider .slider__owl .slider-items .img {
    display: block;
    line-height: 0;
}

.page-home .slider .slider__owl .slider-items img {
    width: 100%;
    height: clamp(280px, 42vw, 670px);
    object-fit: cover;
    display: block;
}

.page-home .slider .custom-owl-prev,
.page-home .slider .custom-owl-next {
    z-index: 12;
}

.page-home .search-desktop {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
}

.page-home .search-desktop .search-full {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    bottom: -60px;
    z-index: 9;
    pointer-events: auto;
}

.page-home .search-text-sub {
    font-size: 22px !important;
    font-weight: 300 !important;
    padding-bottom: 0 !important;
    opacity: 0.95;
}

.page-home .form-search .frm-data {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
}

.page-home .form-search .item-search {
    flex: 1 1 18%;
    min-width: 140px;
}

.page-home .form-search .item-search-submit {
    flex: 0 1 auto;
    min-width: 120px;
}

.page-home .form-search .menu__search {
    width: 100%;
    white-space: nowrap;
}

/* Sơ đồ khu tổng quan (ngay dưới cổng tra cứu) */
.page-home .home-zone-maps {
    margin-top: 72px;
    margin-bottom: 8px;
}

.page-home .home-zone-maps .maps-index {
    background-color: #f2f2f2;
    border-radius: 3px;
    padding: 10px 0;
}

.page-home .home-map-viewport {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.page-home .home-map-svg-host {
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.page-home .home-map-svg-host svg#so-do-khu-ab {
    display: block;
    width: 100%;
    height: 100%;
}

.page-home .home-map-loading,
.page-home .home-map-error {
    text-align: center;
    padding: 2rem;
    color: #6b5b4f;
    margin: 0;
}

.page-home .home-map-tabs {
    margin-top: 12px;
}

.page-home .home-map-tabs li {
    min-width: 140px;
    font-weight: 600;
}

.page-home #so-do-khu-ab .st0 {
    fill: #8d8d8d;
}

.page-home #so-do-khu-ab .st1 {
    fill: #fff;
}

.page-home #so-do-khu-ab .st2 {
    opacity: 0.3;
}

.page-home #so-do-khu-ab .st3 {
    fill: #724344;
}

.page-home #so-do-khu-ab .st4 {
    fill: #dca484;
}

.page-home #so-do-khu-ab .st5 {
    fill: #8d5556;
}

.page-home #so-do-khu-ab .st6 {
    fill: #5b5b5b;
}

.page-home #so-do-khu-ab .st7 {
    fill: #c4c4c4;
}

.page-home #so-do-khu-ab .st8 {
    fill: #fff;
}

.page-home #so-do-khu-ab .st9 {
    fill: #494949;
}

.page-home #so-do-khu-ab .st10 {
    fill-rule: evenodd;
    clip-rule: evenodd;
    fill: #494949;
}

.page-home #so-do-khu-ab g.home-map-zone-active {
    outline: 3px solid #8b1a1a;
    outline-offset: 2px;
}

.page-home #so-do-khu-ab g.home-map-zone-active path.st0,
.page-home #so-do-khu-ab g.home-map-zone-active path.st1 {
    fill: #f4c4c4;
    stroke: #8b1a1a;
    stroke-width: 1.5;
}

.page-home #so-do-khu-ab .item-pselected {
    cursor: pointer;
}

.page-home #so-do-khu-ab .item-pselected:hover path.st1 {
    fill: #e8f5e9;
}

/* Tin tức ngay dưới sơ đồ khu */
.page-home .home-news-index {
    padding-top: 8px;
    padding-bottom: 24px;
}

.page-home .home-news-index .title-index {
    margin-bottom: 8px;
}

.page-home .home-news-index .news__name {
    margin-bottom: 16px;
}

/* Video dưới tin tức (section-video trong cached15.css) */
.page-home .home-section-video {
    margin-top: 0;
}

.page-home .home-section-video .video-one .video-items .img img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 585px;
    object-fit: cover;
}

.page-home .home-section-video .video__grid .video-items .img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.page-home .home-video-more {
    text-align: center;
    margin: 1.25rem 0 0;
    font-size: 14px;
}

.page-home .home-video-more a {
    color: #477827;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
}

.page-home .home-video-more a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-home .home-section-video .video__grid {
        grid-template-columns: 1fr;
    }
}

/* Thư viện ảnh dưới video (index-gallery trong cached15.css) */
.page-home .home-index-gallery .main-gallery {
    background-image: url(/images/church-cross-icon-2.svg);
    background-position: center 16px;
    background-repeat: no-repeat;
    background-size: 130px 200px;
}

.page-home .home-index-gallery .beach-items .img img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

.page-home .home-index-gallery .beach-items {
    position: relative;
}

.page-home .home-index-gallery .beach-items > a {
    display: block;
    position: relative;
    text-decoration: none;
}

.page-home .home-gallery-more {
    text-align: center;
    margin: 0 0 1rem;
    padding-bottom: 1.5rem;
    font-size: 14px;
}

.page-home .home-gallery-more a {
    color: #477827;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
}

.page-home .home-gallery-more a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-home .home-index-gallery .gallery__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .page-home .search-full .search-main .search-text h4 {
        font-size: 22px;
    }
    .page-home .search-full .search-main .search-text h3 {
        font-size: 26px;
    }
    .page-home .form-search .item-search {
        flex: 1 1 45%;
    }
}

@media (max-width: 576px) {
    .page-home .slider {
        margin-bottom: 0;
    }
    .page-home .slider .slider__owl .slider-items img {
        height: 220px;
    }
    .page-home .search-desktop {
        position: relative;
    }
    .page-home .search-desktop .search-full {
        position: relative;
        bottom: auto;
        margin-top: -40px;
        padding: 0 12px 24px;
    }
    .page-home .search-full .search-main .search-text {
        padding-bottom: 12px;
    }
    .page-home .search-full .search-main .search-text h4 {
        font-size: 16px;
    }
    .page-home .search-full .search-main .search-text h3 {
        font-size: 20px;
    }
    .page-home .form-search {
        padding: 16px !important;
    }
    .page-home .form-search .item-search {
        flex: 1 1 100%;
        min-width: 0;
    }
    .page-home .home-zone-maps {
        margin-top: 24px;
    }

    .page-home .home-map-viewport {
        height: 50vh !important;
    }
}
