/* ====================================================
   Haji Manager — Frontend Package Cards & Slider CSS
   Font: Inherit from active theme font body
   ==================================================== */

.haji-paket-wrapper {
    font-family: inherit;
    margin: 20px 0;
    box-sizing: border-box;
}

.haji-paket-wrapper *,
.haji-paket-wrapper *::before,
.haji-paket-wrapper *::after {
    box-sizing: border-box;
}

/* ===== GRID LAYOUT ===== */
.haji-paket-grid {
    display: grid;
    gap: 24px;
}

.haji-paket-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.haji-paket-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== CARD DESIGN ===== */
.haji-paket-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.haji-paket-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.haji-paket-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #edf2f7;
}

.haji-paket-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.haji-paket-card:hover .haji-paket-thumb img {
    transform: scale(1.05);
}

/* PROMO BADGE */
.haji-promo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background-color: #e53e3e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(229, 62, 62, 0.4);
}

.haji-paket-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.haji-paket-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 14px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.haji-paket-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.haji-paket-title a:hover {
    color: #0b4f42;
}

/* Package Info List & Inline Row */
.haji-paket-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.haji-info-row-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.haji-info-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.4;
    color: #4a5568;
}

.haji-info-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #0b4f42;
    margin-right: 8px;
    flex-shrink: 0;
}

.haji-info-icon-svg svg {
    width: 16px;
    height: 16px;
    stroke: #0b4f42;
    display: block;
}

.haji-info-value {
    font-weight: 500;
    color: #2d3748;
}

.haji-paket-divider {
    border: none;
    border-top: 1px dotted #cbd5e0;
    margin: 14px 0 16px 0;
}

.haji-paket-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    gap: 12px;
}

.haji-paket-price {
    display: flex;
    flex-direction: column;
}

.haji-price-label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 2px;
    font-weight: 500;
}

.haji-price-amount {
    font-size: 18px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.2;
}

.haji-price-amount del {
    color: #a0aec0;
    font-size: 14px;
    font-weight: 400;
    margin-right: 6px;
    text-decoration: line-through;
}

.haji-price-amount ins {
    color: #1a202c;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.haji-paket-btn {
    background-color: #0b4f42;
    color: #ffffff !important;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 5px rgba(11, 79, 66, 0.2);
}

.haji-paket-btn:hover {
    background-color: #06372e;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ===== SLIDER LAYOUT ===== */
.haji-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.haji-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.haji-slider-slide {
    flex-shrink: 0;
    padding: 0 12px;
    box-sizing: border-box;
}

/* Slider Columns Desktop */
.haji-slider-wrapper.cols-3 .haji-slider-slide {
    width: 33.333333%;
}

.haji-slider-wrapper.cols-4 .haji-slider-slide {
    width: 25%;
}

/* Slider Dots Pagination */
.haji-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.haji-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.haji-dot.active {
    width: 24px;
    background-color: #0b4f42;
}

/* ===== RESPONSIVE (MOBILE - ALWAYS 1 COLUMN) ===== */
@media (max-width: 768px) {
    .haji-paket-grid.cols-3,
    .haji-paket-grid.cols-4 {
        grid-template-columns: 1fr !important;
    }

    .haji-slider-wrapper.cols-3 .haji-slider-slide,
    .haji-slider-wrapper.cols-4 .haji-slider-slide {
        width: 100% !important;
    }

    .haji-info-row-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .haji-paket-thumb {
        height: 200px;
    }

    .haji-paket-title {
        font-size: 16px;
    }

    .haji-price-amount {
        font-size: 16px;
    }
}
