/*
 * Similar-tours carousel: "You might also like" section at the bottom of a
 * tour detail page. Loaded via <link rel="stylesheet"> in tours/details-*.blade.php.
 * Palette mirrors public/assets/css/tour-content.css / category-pages.css
 * so the section reads as part of the same design system.
 */

:root {
    --st-terracotta: #c97a3c;
    --st-text: #2c2620;
    --st-text-soft: #5b5246;
    --st-text-muted: #9d8a72;
    --st-border: #f0eee9;
    --st-card-border: rgba(201, 122, 60, 0.22);
    --st-card-shadow: 0 2px 10px rgba(120, 90, 50, 0.08);
    --st-save-bg: #e8f3e8;
    --st-save-fg: #2f6a2f;
}

/* ─── Similar tours: section frame ───────────────────────────────────────── */
.similar-tours {
    margin: 26px 0 20px;
    padding: 22px;
    background: #faf8f4;
    border: 1px solid var(--st-border);
    border-radius: 12px;
}
.similar-tours__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.similar-tours__title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    color: var(--st-text);
    font-weight: 700;
}
.similar-tours__nav {
    display: flex;
    gap: 6px;
}
.similar-tours__nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(201, 122, 60, 0.3);
    background: #fff;
    color: var(--st-terracotta);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.similar-tours__nav-btn:hover {
    background: var(--st-terracotta);
    color: #fff;
}
.similar-tours__nav-btn:active {
    transform: scale(0.95);
}
.similar-tours__nav-btn[disabled] {
    opacity: 0.35;
    cursor: default;
    background: #fff;
    color: var(--st-terracotta);
}

/* ─── Track: horizontally scrollable, snap to card ───────────────────────── */
.similar-tours__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Hide the visual scrollbar but keep native horizontal scrolling so mobile
       finger-swipe still works. Arrow buttons drive desktop navigation. */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.similar-tours__track::-webkit-scrollbar {
    display: none;
}

/* ─── Mini card ──────────────────────────────────────────────────────────── */
.tour-mini-card {
    flex: 0 0 220px;
    background: #fff;
    border: 1px solid var(--st-card-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--st-card-shadow);
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}
.tour-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(120, 90, 50, 0.14);
    text-decoration: none;
    color: inherit;
}
.tour-mini-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--st-save-fg);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    letter-spacing: 0.02em;
    z-index: 2;
}
.tour-mini-card__image {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: #efeae0;
}
.tour-mini-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tour-mini-card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.tour-mini-card__title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--st-text);
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 35px;
}
.tour-mini-card__place {
    font-size: 11.5px;
    color: var(--st-text-muted);
}
.tour-mini-card__place i {
    margin-right: 3px;
}
.tour-mini-card__price {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    padding-top: 6px;
    border-top: 1px solid var(--st-border);
}
.tour-mini-card__price-label {
    font-size: 10px;
    color: var(--st-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tour-mini-card__price-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--st-terracotta);
}

@media (max-width: 600px) {
    .similar-tours {
        margin: 20px -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 18px 15px;
    }
    .similar-tours__title { font-size: 18px; }
    .tour-mini-card { flex-basis: 175px; }
    .tour-mini-card__image { height: 100px; }
}
