/* --- HERBIE TOUR ARCHIVE UNIFIED STYLES (MOBILE FIX + MARGIN CENTERED) --- */
.herbie-archive-hero { position: relative; width: 100%; height: 400px; min-height: 400px; max-height: 400px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; background-repeat: no-repeat; margin-bottom: 50px; border-radius: 0; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.herbie-archive-overlay { position: absolute; inset: 0; background: linear-gradient(130deg, rgba(0, 29, 61, 0.85) 0%, rgba(0, 29, 61, 0.6) 60%, rgba(0, 0, 0, 0.75) 100%); z-index: 1; }
.herbie-archive-content { position: relative; z-index: 2; text-align: center; color: #ffffff; max-width: 850px; padding: 0 20px; box-sizing: border-box; }
.herbie-badge-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 215, 0, 0.2); border: 1px solid #FFD700; color: #FFD700; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 15px; letter-spacing: 1px; backdrop-filter: blur(4px); }
.herbie-archive-title { font-size: 3rem; font-weight: 800; color: #ffffff; margin: 0 0 12px 0; text-transform: uppercase; letter-spacing: 1.5px; text-shadow: 0 4px 15px rgba(0,0,0,0.4); line-height: 1.15; }
.herbie-archive-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.95); margin: 0 auto 18px auto; max-width: 650px; font-weight: 400; line-height: 1.6; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.herbie-archive-divider { width: 70px; height: 4px; background: #FFD700; margin: 0 auto; border-radius: 2px; }

/* KUNCI GRID YANG PRESISI */
.herbie-archive-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; box-sizing: border-box; }
.herbie-tour-grid-container { width: 100% !important; padding: 0 !important; display: block !important; box-sizing: border-box; }
.herbie-tour-grid-layout { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; gap: 30px !important; width: 100% !important; justify-content: center; box-sizing: border-box; margin: 0 !important; padding: 0 !important; }

/* KARTU PRESISI TENGAH */
.herbie-tour-card-item { width: 100% !important; max-width: 380px; margin: 0 auto !important; display: flex !important; height: auto !important; box-sizing: border-box; }
.herbie-tour-card { width: 100% !important; display: flex !important; flex-direction: column !important; background: #ffffff; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); height: 100% !important; border: 1px solid #eee; overflow: hidden; transition: transform 0.3s ease; box-sizing: border-box; }
.herbie-tour-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* GAMBAR SWIPER HP FIX */
.herbie-image-container { width: 100% !important; height: 240px !important; min-height: 240px !important; flex-shrink: 0 !important; position: relative; overflow: hidden; background: #f4f4f4; display: block !important; }
.herbie-tour-slider .swiper-wrapper { height: 100% !important; display: flex !important; }
.herbie-tour-slider .swiper-slide { height: 100% !important; display: block !important; overflow: hidden !important; }
.herbie-card-link-wrapper { text-decoration: none; display: block !important; width: 100% !important; height: 100% !important; position: relative; z-index: 5; }
.herbie-image-container img { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform 0.5s ease; display: block !important; }
.herbie-card-link-wrapper:hover img { transform: scale(1.08); }

.herbie-tour-badges { position: absolute; top: 12px; left: 12px; z-index: 10; display: flex; gap: 5px; flex-wrap: wrap; }
.herbie-badge-item { background: #FFD700; color: #000; padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; text-decoration: none !important; transition: 0.3s; }
.herbie-badge-item:hover { background: #001D3D; color: #fff; }
.herbie-tour-slider .swiper-pagination { z-index: 20 !important; pointer-events: auto !important; bottom: 12px !important; }
.herbie-tour-slider .swiper-pagination-bullet { background: #ffffff !important; opacity: 0.6 !important; width: 10px !important; height: 10px !important; border-radius: 50% !important; transition: all 0.3s ease !important; margin: 0 4px !important; }
.herbie-tour-slider .swiper-pagination-bullet-active { background: #FFD700 !important; opacity: 1 !important; width: 25px !important; border-radius: 5px !important; }
.herbie-tour-content { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.herbie-tour-title { margin: 0 0 10px 0; font-size: 1.25rem; color: #001D3D; font-weight: 800; line-height: 1.3; }
.herbie-tour-title a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
.herbie-tour-title a:hover { color: #0073aa; }
.herbie-tour-excerpt { color: #666; font-size: 0.9rem; margin-bottom: 15px; line-height: 1.6; }
.herbie-view-detail { color: #0073aa; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; }
.herbie-tour-features { list-style: none; padding: 0; margin: auto 0 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid #f0f0f0; padding-top: 18px; }
.herbie-tour-features li { font-size: 0.85rem; color: #444; display: flex; align-items: flex-start; gap: 5px; line-height: 1.4; }
.herbie-tour-features .dashicons { color: #28a745; font-size: 16px; margin-top: 1px; }
.herbie-tour-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f0f0f0; padding-top: 18px; }
.herbie-price-label { font-size: 11px; color: #999; text-transform: uppercase; display: block; font-weight: 600; }
.herbie-price-amount { font-weight: 800; font-size: 1.3rem; color: #001D3D; display: block; line-height: 1; margin-top: 2px; }
.herbie-currency { font-size: 0.8rem; margin-right: 3px; }
.herbie-price-sublabel { font-size: 11px; color: #777; margin-top: 4px; }
.herbie-btn-booking { background: #25D366; color: #fff !important; padding: 10px 20px; border-radius: 50px; font-weight: 700; font-size: 13px; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; transition: 0.3s; }
.herbie-btn-booking:hover { transform: scale(1.05); opacity: 0.9; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); }
.herbie-pagination-wrap { margin-top: 50px; text-align: center; }
.herbie-pagination-wrap a, .herbie-pagination-wrap span { display: inline-block; padding: 10px 18px; margin: 0 4px; border-radius: 8px; background: #fff; color: #001D3D; text-decoration: none; border: 1px solid #ddd; font-weight: 700; transition: 0.3s; }
.herbie-pagination-wrap a:hover { background: #f8f8f8; border-color: #ccc; }
.herbie-pagination-wrap span.current { background: #001D3D; color: #fff; border-color: #001D3D; }

/* LAYOUT MOBILE PRESISI TENGAH */
@media (max-width: 768px) { 
    .herbie-archive-hero { height: 300px !important; min-height: 300px !important; margin-bottom: 35px !important; } 
    .herbie-archive-title { font-size: 2rem !important; padding: 0 15px; } 
    .herbie-archive-subtitle { font-size: 0.95rem !important; padding: 0 15px; } 
    
    /* Perbaikan Jarak Aman Kiri-Kanan & Mencegah Mepet Kanan */
    .herbie-archive-container { padding: 0 15px 40px !important; box-sizing: border-box; overflow: hidden; } 
    .herbie-tour-grid-layout { grid-template-columns: 1fr !important; gap: 25px !important; padding: 0 !important; width: 100% !important; box-sizing: border-box; } 
    .herbie-tour-card-item { max-width: 100% !important; width: 100% !important; margin: 0 auto !important; box-sizing: border-box; } 
    
    .herbie-image-container { height: 230px !important; min-height: 230px !important; }
    .herbie-tour-content { padding: 22px !important; }
    .herbie-tour-title { font-size: 1.2rem !important; }
    .herbie-tour-features { grid-template-columns: 1fr 1fr !important; gap: 10px !important; padding-top: 20px !important; }
    .herbie-tour-footer { padding-top: 20px !important; }
    .herbie-btn-booking { padding: 12px 22px !important; font-size: 13px !important; }
}

@media (max-width: 480px) {
    .herbie-archive-container { padding: 0 15px 40px !important; }
    .herbie-tour-features { grid-template-columns: 1fr !important; gap: 8px !important; }
}

/* --- PELINDUNG MUTLAK ANTI-ELEMENTOR PADA HP --- */
.herbie-tour-slider { width: 100% !important; overflow: hidden !important; }
.herbie-tour-slider .swiper-wrapper { flex-wrap: nowrap !important; display: flex !important; }
.herbie-tour-slider .swiper-slide { width: 100% !important; flex-shrink: 0 !important; }