/* ============================================================
   Store Location Slider – style.css
   ============================================================ */

.tls-wrapper {
    width: 100%;
    position: relative;
    padding: 0 44px; /* ruang untuk tombol prev/next */
    box-sizing: border-box;
}

/* ---- Swiper override ---- */
.tls-swiper {
    overflow: hidden;
    width: 100%;
}

/* ---- Kartu ---- */
.tls-card {
    display: block;
    position: relative;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #2b2b2b;
    text-decoration: none;
    cursor: default;
}

a.tls-card,
.tls-card--link {
    cursor: pointer;
    text-decoration: none;
}

/* Hover efek untuk kartu berlink */
.tls-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tls-card--link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.tls-card--link:hover .tls-card__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.15) 55%);
}

/* Icon "Lihat di Maps" muncul saat hover */
.tls-card__maps-hint {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px 4px 6px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.tls-card__maps-hint svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.tls-card--link:hover .tls-card__maps-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay gelap bawah */
.tls-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, transparent 55%);
    z-index: 1;
}

/* ---- Badge nama toko (atas tengah) ---- */
.tls-card__badge {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background-color: #22a830;
    color: #fff;
    border-radius: 50px;
    padding: 6px 18px;
    text-align: center;
    white-space: nowrap;
    font-family: inherit;
    min-width: 60%;
    max-width: 90%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.tls-card__name {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.3;
}

.tls-card__subtitle {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.2;
    opacity: 0.9;
}

/* ---- QR Code (kanan atas) ---- */
.tls-card__qr {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    width: 62px;
    height: 62px;
    background: #fff;
    border-radius: 6px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tls-card__qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ---- Info (bawah kartu) ---- */
.tls-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 12px 14px 14px;
    color: #fff;
    text-align: center;
}

.tls-card__address,
.tls-card__phone {
    margin: 0 0 4px;
    font-size: 0.78rem;
    line-height: 1.45;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.tls-card__phone {
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 0;
}

/* ============================================================
   Tombol Prev / Next
   ============================================================ */
.tls-btn-prev,
.tls-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s;
}

.tls-btn-prev:hover,
.tls-btn-next:hover {
    background: #f0f0f0;
}

.tls-btn-prev { left: 2px; }
.tls-btn-next { right: 2px; }

.tls-btn-prev svg,
.tls-btn-next svg {
    width: 18px;
    height: 18px;
    stroke: #333;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================
   Pagination dots
   ============================================================ */
.tls-pagination {
    margin-top: 14px;
    text-align: center;
}

.tls-pagination .swiper-pagination-bullet {
    background: #22a830;
    opacity: 0.4;
}

.tls-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ============================================================
   Responsive – jika tidak ada tombol, hapus padding
   ============================================================ */
.tls-wrapper.tls-no-nav {
    padding: 0;
}
