/* ── TIQETS SLIDER INLINE — isoladiburano.it ── */

.tqs-wrap {
    margin: 24px 0;
    position: relative;
}
.tqs-slider-wrap {
    position: relative;
}
.tqs-slider {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    -ms-scroll-snap-type: x mandatory;
    padding: 4px 4px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tqs-slider::-webkit-scrollbar { display: none; }

/* ── CARD ── */
.tqs-card {
    scroll-snap-align: start;
    -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0;
    width: 200px;
    border-radius: 10px;
    border: 1px solid #eaecec;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-orient: vertical; -webkit-box-direction: normal;
    -ms-flex-direction: column; flex-direction: column;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,.08);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    -webkit-transition: -webkit-transform .15s, box-shadow .15s;
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
}
.tqs-card:hover {
    -webkit-transform: translateY(-2px); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.13);
}
.tqs-card-img {
    position: relative;
    width: 100%; height: 120px;
    overflow: hidden; background: #eaecec;
}
.tqs-card-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.tqs-card-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: #f5a623; color: #fff;
    font-family: 'Asap', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    padding: 3px 7px; border-radius: 3px;
}
.tqs-card-body {
    padding: 10px 12px 12px;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-orient: vertical; -webkit-box-direction: normal;
    -ms-flex-direction: column; flex-direction: column;
    -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
    gap: 6px;
}
.tqs-card-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px; font-weight: 600;
    color: #333; line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tqs-card-footer {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between;
    margin-top: auto;
}
.tqs-card-price {
    font-family: 'Asap', sans-serif;
    font-size: 14px; font-weight: 700;
    color: #5ab45a;
}
.tqs-card-rating {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    gap: 3px;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px; color: #898989;
}
.tqs-card-rating svg {
    width: 11px; height: 11px;
    fill: #f5a623; stroke: none;
}
.tqs-card-cta {
    display: inline-block;
    margin-top: 8px;
    font-family: 'Asap', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    color: #5ab45a;
}
.tqs-card:hover .tqs-card-cta { color: #3d8c3d; }

/* ── FRECCE ── */
.tqs-arrow {
    display: none;
    position: absolute;
    top: 50%; margin-top: -18px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid #eaecec;
    background: #fff;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,.12);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    cursor: pointer;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    z-index: 2;
    -webkit-appearance: none; outline: none;
    -webkit-transition: background .2s; transition: background .2s;
}
.tqs-arrow:hover { background: #f5f5f5; }
.tqs-arrow svg {
    width: 16px; height: 16px;
    stroke: #333; fill: none;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.tqs-arrow-prev { left: -18px; }
.tqs-arrow-next { right: -18px; }

/* ── STATO LOADING/ERROR ── */
.tqs-state {
    padding: 24px 20px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px; color: #898989;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-orient: vertical; -webkit-box-direction: normal;
    -ms-flex-direction: column; flex-direction: column;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    gap: 10px;
    width: 100%;
}
.tqs-spinner {
    width: 24px; height: 24px;
    border: 2px solid #eaecec;
    border-top-color: #5ab45a;
    border-radius: 50%;
    -webkit-animation: tqsSpin .75s linear infinite;
    animation: tqsSpin .75s linear infinite;
}
@-webkit-keyframes tqsSpin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
@keyframes tqsSpin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
