/* Sembunyikan panah default bawaan browser jika ada */
details summary::-webkit-details-marker {
    display: none;
}

/* Berikan transisi pada panah manual */
.expand-label::after {
    content: "▼ Click to expand";
}

/* Ketika details terbuka, ubah teks dan arah panah */
details[open] .expand-label::after {
    content: "▲ Click to collapse";
}

/* Reset & Base */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 10px 0;
    /* Hapus perspective jika ada */
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    /* Padding kiri-kanan besar agar item pertama tidak terbentur pinggir layar */
    padding: 20px 6% 50px 6%;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.carousel-item {
    /* Gunakan basis lebar yang pasti */
    flex: 0 0 88%;
    width: 88%;
    display: block;
    /* Pakai block biasa, bukan flex untuk itemnya */
    scroll-snap-align: center;
    opacity: 1;
    transition: opacity 0.4s ease;
    /* Matikan opacity dulu untuk debugging */
}

@media (min-width: 768px) {
    .carousel-item {
        flex: 0 0 320px;
        width: 320px;
        scroll-snap-align: center;
        transition: opacity 0.4s ease;
    }

    .scroll-container {
        scroll-snap-type: x proximity;
        padding: 40px 35% 60px 35%;
        gap: 20px;
    }
}

.image-card {
    width: 100%;
    aspect-ratio: 1/1;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    overflow: hidden;
    display: block;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* Biar browser lebih smooth */
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-info {
    margin-top: 10px;
    padding-right: 10px;
    border-top: 1px dashed #136de4; /* Garis putus-putus tipis di bawah teks */
    /* Beri ruang di kanan agar wrap tidak mepet */
    width: 100%;
    box-sizing: border-box;
}

.photo-title {
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;

    display: block;
    text-align: left;
    line-height: 1.2;

    word-break: break-word;
}

@media (min-width: 768px) {
    .photo-title {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
}

/* Navigasi */
.nav-btn {
    display: none;
}

@media (min-width: 768px) {
    .nav-btn {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        background: #276FB7;
        border: 1px solid #276FB7;
        border-radius: 50%;
        cursor: pointer;
        z-index: 100;
        align-items: center;
        justify-content: center;
    }

    .btn-left {
        color: white;
        left: 20px;
    }

    .btn-right {
        color: white;
        right: 20px;
    }
}

.sig-container {
    padding: 40px 5%;
    display: flex;
    /* Gunakan flexbox */
    flex-direction: column;
    /* Default di HP: turun ke bawah */
    align-items: center;
    gap: 40px;
    background: linear-gradient(to bottom, #ffffff, #fcfcfc);
    border-top: 1px solid #eee;
}

@media (min-width: 768px) {
    .sig-container {
        flex-direction: row;
        /* Di website: sejajar lurus */
        justify-content: center;
        /* Rata tengah */
        align-items: flex-start;
        gap: 100px;
        /* Jarak antar tanda tangan di website */
        padding: 60px 10%;
    }
}

.sig-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 200px;
}

/* Container Utama Summary */
.summary-container {
    padding: 14px 18px;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.summary-container:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Wadah Ikon Kamera */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #eff6ff;
    border-radius: 6px;
}

.icon-box span {
    font-size: 14px;
}

/* Teks Judul */
.summary-title {
    letter-spacing: 0.5px;
}

/* Label Expand/Collapse (Pill) */
.expand-pill {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.map-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #f1f5f9;
    color: #3b82f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.map-link-btn:hover {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* Container Grid */
.info-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

/* Card Styling */
.info-card-mini {
    padding: 16px;
    background-color: #ffffff;
    /* Putih bersih */
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card-mini:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Header di dalam Card */
.info-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-small {
    /* Ukuran 12px adalah batas minimal agar ikon tetap jelas */
    width: 12px;
    height: 12px;
    color: #94a3b8;
    stroke-width: 2.5px;
    /* Menambah ketebalan garis agar tetap terlihat meski kecil */
}

.label-caps {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

.value-main {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.value-muted {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin: 0;
    font-style: italic;
}

/* Tombol Maps */
.btn-maps-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    background-color: #276FB7;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 11px;
    text-decoration: none;
    font-weight: 800;
    width: fit-content;
    transition: background 0.2s ease;
}

.btn-maps-primary:hover {
    background-color: #1e5691;
}

.btn-maps-primary i {
    width: 12px;
    height: 12px;
}

.route-container {
    display: flex;
    flex-direction: column; /* Default HP: Tumpuk ke bawah */
    align-items: center;
    gap: 16px;
    padding: 1.5rem;
    border-radius: 12px;
    
    /* Perubahan di sini: Border Putus-putus */
    border: 2px dashed #276FB7; 
   
    
    /* Opsional: Berikan sedikit transparansi pada warna border agar tidak terlalu tajam */
    border-color: rgba(39, 111, 183, 0.4); 
}

.route-point {
    text-align: center;
    /* Center di HP */
    width: 100%;
}

.route-label {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.route-value {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    word-break: break-word;
    /* Mencegah tulisan panjang terpotong */
}

/* Garis & Truk */
.route-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.truck-wrapper {
    color: #276FB7;
}

.truck-wrapper i {
    width: 20px;
    height: 20px;
}

.dashed-line {
    width: 2px;
    /* Vertikal di HP */
    height: 30px;
    background: repeating-linear-gradient(to bottom, #276FB7 0, #276FB7 5px, transparent 5px, transparent 10px);
    margin-top: 4px;
}

/* ----- MEDIA QUERY UNTUK DESKTOP (Tablet ke Atas) ----- */
@media (min-width: 768px) {
    .route-container {
        flex-direction: row;
        /* Kembali ke samping */
        justify-content: space-between;
        text-align: left;
    }

    .origin-point {
        text-align: right;
    }

    .destination-point {
        text-align: left;
    }

    .route-visual {
        flex-direction: column;
        padding: 0 20px;
    }

    .dashed-line {
        width: 80px;
        /* Horizontal di Desktop */
        height: 3px;
        background: repeating-linear-gradient(to right, #276FB7 0, #276FB7 6px, transparent 6px, transparent 10px);
    }
}

/* Container untuk membungkus label dan ref */
.footer-badge-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak antara badge dan teks REF */
}

/* Style untuk Badge Type */
.badge-type-slim {
    background-color: #276FB7;
    color: white;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 10px; /* Ukuran mungil */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1;
    display: inline-block;
}

/* Style untuk Teks Reference */
.text-ref-muted {
    font-size: 10px; /* Sesuaikan agar sama kecilnya */
    font-family: monospace;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
}


/* Container Utama */
.tokped-timeline-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Stepper Horizontal (Bagian Atas) */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #fcfcfc;
    border-bottom: 1px solid #f1f1f1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    z-index: 2;
    margin-bottom: 8px;
}

.step-item.active .step-icon {
    background: #e0f2fe;
    color: #276FB7;
}

.step-line {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

/* Detail List (Bagian Bawah) */
.status-list {
    padding: 20px;
}

.status-item {
    display: flex;
    gap: 16px;
    position: relative;
}

.status-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    margin-top: 6px;
    z-index: 2;
}

.status-dot.active {
    background: #276FB7;
    box-shadow: 0 0 0 4px rgba(39, 111, 183, 0.15);
}

.status-line {
    width: 1px;
    flex-grow: 1;
    background: #e5e7eb;
    border-left: 1px dashed #e5e7eb; /* Efek garis putus Tokopedia */
}

.status-content {
    padding-bottom: 20px;
}

.status-title {
    font-size: 13px;
    font-weight: 700;
    color: #31353b;
    margin: 0;
}

.status-desc {
    font-size: 12px;
    color: #6d7588;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

.tracking-card {
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 24px;
    font-family: 'Inter', sans-serif;
}

/* Container utama agar bisa scroll horizontal */
.stepper-outer-wrapper {
    width: 100%;
    overflow-x: auto; /* Memungkinkan scroll kanan-kiri */
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch; /* Scroll halus di iOS */
}

/* Hilangkan scrollbar agar tetap cantik (opsional) */
.stepper-outer-wrapper::-webkit-scrollbar {
    display: none;
}

/* Container Utama */
.stepper-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    width: 100%;
}

/* Ukuran Ikon Default (Desktop) */
.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-icon i {
    width: 20px;
    height: 20px;
}

/* Garis Horizontal */
.step-line-horizontal {
    position: absolute;
    top: 22px; /* Setengah dari 44px */
    height: 4px;
    z-index: 1;
}

/* --- KHUSUS MOBILE (Screen < 576px) --- */
@media (max-width: 576px) {
    /* 1. Container HARUS punya min-width agar scroll aktif */
    .stepper-container {
        display: flex;
        justify-content: flex-start; /* Ubah dari space-between ke start */
        gap: 5px; 
        min-width: 550px; /* Nilai ini memaksa container lebih lebar dari layar HP */
        padding: 10px 20px;
    }

    /* 2. Ukuran Icon tetap besar agar enak di-tap dan terlihat jelas */
    .step-icon {
        width: 42px; 
        height: 42px;
        border-radius: 10px;
        flex-shrink: 0; /* WAJIB: Agar ikon tidak gepeng saat discroll */
    }

    /* 3. Sesuaikan posisi garis horizontal */
    .step-line-horizontal {
        top: 21px; /* Setengah dari 42px */
        height: 4px;
    }

    /* 4. Lebar tiap item dipersempit agar gap terasa rapat */
    .step-item {
        flex: 0 0 85px; /* Lebar tetap tiap kolom agar tidak menciut */
    }

    .label-text {
        font-size: 9px !important;
        white-space: normal; /* Biar teks panjang turun ke bawah */
    }

    .label-date {
        font-size: 9px !important;
        white-space: normal; /* Biar teks panjang turun ke bawah */
    }
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px; /* Kotak rounded */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    transition: all 0.4s ease;
}

.step-label-container {
    margin-top: 14px;
    text-align: center;
    min-height: 40px;
}

.label-text {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.label-date {
    display: block;
    font-size: 9px;
    margin-top: 4px;
    font-weight: 500;
}

.step-line-horizontal {
    position: absolute;
    top: 22px;
    width: 16%;
    height: 6px;
    border-radius: 50px;
    z-index: 1;
}

.step-line-fill {
    height: 100%;
    border-radius: 50px;
    width: 100%;
    transition: all 0.5s ease; /* Biar transisi warna halus */
}

.milestones-container {
    padding: 0 10px;
}

.milestone-item {
    display: flex;
    gap: 20px;
    min-height: 80px;
}

.milestone-square {
    width: 28px;           /* Lebar kotak */
    height: 28px;          /* Tinggi kotak */
    border-radius: 8px;    /* Sudut sedikit membulat */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid;     /* Ketebalan garis kotak */
}

/* Memaksa icon (SVG) agar ukurannya 14px */
.milestone-square svg, 
.milestone-square [data-feather] {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 2.5;     /* Garis ikon sedikit ditebalkan agar tetap jelas di ukuran kecil */
}

.milestone-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 28px;           /* Samakan dengan lebar kotak */
}

.milestone-line-vertical {
    width: 2px;
    flex-grow: 1;
    border-left: 2px solid;
    margin: 4px 0;
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Container pembungkus garis dan teks */
.divider-container {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

/* Garis horizontal */
.divider-line {
    height: 1px;
    background: radial-gradient(circle, #f1f5f9 0%, rgba(255,255,255,0) 100%);
}

/* Teks label di tengah */
.divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 0 15px;
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap; /* Mencegah teks terpotong/turun baris */
}