/* =========================================================
   Sapo Smart Collection Discovery
   File: sapo-smart-collection-discovery.css
	Trung Cao - cap nhat 14-05-2026
   ========================================================= */
.tour-discovery {
    margin: 10px 0;
}

/* =========================================================
   SECTION
   ========================================================= */

.smart-discovery-section {
    padding: 22px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #f3f8fd;
}

/* =========================================================
   HEADER
   ========================================================= */

.smart-discovery-header {
    margin-bottom: 18px;
}

.smart-discovery-header h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    background: #006cb7;
    padding: 12px 18px;
    border-radius: 4px;
    text-align: center;
}

.smart-discovery-header p {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #667085;
}

/* =========================================================
   GRID / SLIDER
   ========================================================= */

.smart-discovery-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.smart-discovery-grid::-webkit-scrollbar {
    height: 6px;
}

.smart-discovery-grid::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 999px;
}

/* =========================================================
   CARD
   Desktop: 3 card visible
   ========================================================= */

.smart-discovery-card {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    scroll-snap-align: start;

    overflow: hidden;
    border: 1px solid #edf0f4;
    border-radius: 10px;
    background: #fff;

    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.smart-discovery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* =========================================================
   IMAGE
   ========================================================= */

.smart-discovery-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f3f5f7;
}

.smart-discovery-thumb img {
    width: 100%;
    object-fit: fill;
    display: block;
}

/* =========================================================
   BODY
   ========================================================= */

.smart-discovery-body {
    padding: 14px;
}

/* =========================================================
   TITLE
   ========================================================= */

.smart-discovery-title {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.smart-discovery-title a {
    color: #2D56B6;
    text-decoration: none;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.smart-discovery-title a:hover {
    color: var(--maincolor);
}

/* =========================================================
   META
   ========================================================= */

.smart-discovery-meta {
    margin: 0 0 0px;
    font-size: 13px;
    line-height: 1.5;
    color: #000000;
}

/* =========================================================
   PRICE
   ========================================================= */

.smart-discovery-price {
    margin: 5px 0 10px;
}

.smart-discovery-price-current {
    font-size: 20px;
    font-weight: 700;
    color: #e60000;
}

.smart-discovery-compare-price {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #98a2b3;
    text-decoration: line-through;
}

/* =========================================================
   BUTTON
   ========================================================= */

.smart-discovery-btn {
    display: inline-block;
    padding: 8px 14px;

    border-radius: 6px;
    background: #ffc107;

    color: #000000;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.smart-discovery-btn:hover {
    background: #ffb300;
    color: #111;
    text-decoration: none;
}

/* =========================================================
   FOOTER
   ========================================================= */

.smart-discovery-footer {
    margin-top: 18px;
    text-align: center;
}

.smart-discovery-view-all {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--maincolor);
    text-decoration: none;
}

.smart-discovery-view-all:hover {
    text-decoration: underline;
}

/* =========================================================
   LOADING / ERROR
   ========================================================= */

.tour-discovery-loading,
.tour-discovery-error {
    padding: 16px;
    border-radius: 8px;
    background: #f8fafc;
    color: #667085;
    font-size: 14px;
}

/* =========================================================
   TABLET
   2 cards visible
   ========================================================= */

@media (max-width: 991px) {

    .smart-discovery-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }

}

/* =========================================================
   MOBILE
   1.5 cards visible
   ========================================================= */

@media (max-width: 767px) {

    .smart-discovery-section {
        padding: 18px 14px;
        border-radius: 10px;
    }

    .smart-discovery-header h2 {
        font-size: 20px;
        padding: 10px 14px;
    }

    .smart-discovery-header p {
        font-size: 14px;
    }

    .smart-discovery-grid {
        gap: 12px;
        padding: 2px 2px 10px;
    }

    .smart-discovery-grid::-webkit-scrollbar {
        display: none;
    }

    .smart-discovery-card {
        flex: 0 0 66%;
    }

    .smart-discovery-title {
        font-size: 14px;
    }

    .smart-discovery-price-current {
        font-size: 15px;
    }

    .smart-discovery-footer {
        text-align: left;
    }

}