/* Shared presentation for the UniViet homepage and tour category cards. */
.tour-group-home,
.tours_grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    min-width: 0;
    margin: 0;
}
.tour-group-home { grid-auto-rows: 1fr; }
.tour-group-home > [class*="col-"],
.tours_grid > .item {
    box-sizing: border-box;
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.tour-group-home > [class*="col-"] { display: flex; }
.tours_grid > .cat,
.tours_grid > .generate_page { grid-column: 1 / -1; }
.tours_grid > .clear { display: none; }
.tour-group-home .tour-group-home-items,
.tours_grid > .item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(35, 59, 88, .06);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.tour-group-home .tour-group-home-items:hover,
.tours_grid > .item:hover {
    border-color: #a8bfd5;
    box-shadow: 0 7px 20px rgba(35, 59, 88, .12);
}
.tour-group-home .tour-group-home-items .tour-group-home-items-img,
.tours_grid > .item .item_img {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1.9;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f0f4f8;
}
.tour-group-home .tour-group-home-items-img > a,
.tours_grid > .item .item_img > a { display: block; width: 100%; height: 100%; }
.tour-group-home .tour-group-home-items .tour-group-home-items-img img,
.tours_grid > .item .item_img img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center top;
    transform: none;
    opacity: 1;
}
.tour-group-home .tour-group-home-items .info-container {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    border: 0;
}
.tour-group-home .tour-group-home-items .tour-group-home-items-title,
.tours_grid > .item .item_content {
    box-sizing: border-box;
    flex: 0 0 auto;
    height: auto;
    min-height: 74px;
    margin: 0;
    padding: 16px 16px 8px;
    overflow: hidden;
    background: #fff;
}
.tours_grid > .item .item_content h2 { margin: 0; padding: 0; font-size: inherit; }
.tour-group-home .tour-group-home-items .tour-group-home-items-title a,
.tours_grid > .item .item_content a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    padding: 0;
    color: #263e5a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    text-transform: none;
    overflow-wrap: anywhere;
}
.tour-group-home .tour-group-home-items-title a:hover,
.tours_grid > .item .item_content a:hover { color: #236a9d; }
.tours_grid > .item .item_price {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
}
.tour-group-home .tour-group-home-items .info-container .tour-price,
.tours_grid > .item .item_price > div:first-child {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    margin: 0;
    padding: 4px 16px 14px;
}
.tour-group-home .tour-group-home-items .info-container .tour-price .price,
.tours_grid > .item .item_price .price {
    float: none;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #c72c35;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
.tour-group-home .tour-group-home-items .info-container .tour-price .book,
.tours_grid > .item .item_price .book {
    float: none;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: right;
}
.tour-group-home .tour-group-home-items .info-container .tour-price .book a,
.tours_grid > .item .item_price .book a {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 102px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #315f8d;
    border-radius: 7px;
    background: #315f8d;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}
.tour-group-home .tour-group-home-items .info-container .tour-price .book a:hover,
.tours_grid > .item .item_price .book a:hover { border-color: #24496f; background: #24496f; }
.tour-group-home .tour-group-home-items a:focus-visible,
.tours_grid > .item a:focus-visible { outline: 3px solid #4b97c6; outline-offset: -3px; }
.tour-group-home .info-container .item_hr,
.tours_grid > .item .item_hr { display: none; }
.tour-group-home .tour-group-home-items .info-container .tour-duration,
.tours_grid > .item .item_duration {
    box-sizing: border-box;
    float: none;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 88px;
    margin: 0;
    padding: 13px 16px 15px;
    border-top: 1px solid #e7edf4;
    background: #f7f9fc;
    color: #5b6c7e;
    font-size: 13px;
    line-height: 1.6;
    overflow: visible;
    overflow-wrap: anywhere;
}
.tour-group-home .tour-duration span,
.tours_grid > .item .item_duration span { color: #435b74; }
@media (min-width: 600px) {
    .tour-group-home,
    .tours_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .tour-group-home,
    .tours_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .tour-group-home,
    .tours_grid { gap: 20px; }
    .tour-group-home .tour-group-home-items .tour-group-home-items-title,
    .tours_grid > .item .item_content { min-height: 0; padding-bottom: 12px; }
    .tour-group-home .tour-group-home-items-title a,
    .tours_grid > .item .item_content a { -webkit-line-clamp: unset; }
    .tour-group-home .tour-group-home-items .info-container .tour-duration,
    .tours_grid > .item .item_duration { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .tour-group-home .tour-group-home-items,
    .tours_grid > .item { transition: none; }
}
@media (max-width: 359px) {
    .tour-group-home .tour-group-home-items .info-container .tour-price .price,
    .tours_grid > .item .item_price .price { font-size: 16px; }
    .tour-group-home .tour-group-home-items .info-container .tour-price .book a,
    .tours_grid > .item .item_price .book a { min-width: 90px; padding-right: 11px; padding-left: 11px; }
}
