/**
 * Detail paket / destinasi — mobile & tablet first
 * /packages/destinations/{id}
 */

.mb-desti-detail {
    --mb-desti-sticky-h: 4.25rem;
    padding-bottom: calc(var(--mb-desti-sticky-h) + env(safe-area-inset-bottom, 0px) + 1.5rem);
}

@media (min-width: 992px) {
    .mb-desti-detail {
        padding-bottom: 0;
    }
}

/* Hero ringkas + breadcrumb scroll */
.mb-desti-hero.tt-page-hero {
    padding: 2.35rem 0 2.5rem;
}

.mb-desti-hero .breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: center;
    padding-bottom: 0.15rem;
    margin-bottom: 0.85rem;
}

.mb-desti-hero .breadcrumb::-webkit-scrollbar {
    display: none;
}

.mb-desti-hero .breadcrumb-item {
    white-space: nowrap;
    font-size: 0.8rem;
}

.mb-desti-hero .tt-page-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .mb-desti-hero.tt-page-hero {
        padding: 2.75rem 0 3rem;
    }

    .mb-desti-hero .tt-page-subtitle {
        font-size: 1.05rem;
        -webkit-line-clamp: 4;
    }
}

/* Galeri */
.tt-detail-gallery {
    position: relative;
    border-radius: var(--tt-radius-xl, 1rem);
    overflow: hidden;
    box-shadow: var(--tt-shadow, 0 8px 30px rgba(15, 60, 45, 0.1));
    background: var(--tt-lighter, #f1f5f1);
}

.tt-detail-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    max-height: 420px;
}

.tt-detail-badge {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(12, 35, 64, 0.88);
    color: #fff;
    backdrop-filter: blur(6px);
}

/* Kartu harga & info */
.mb-desti-buy-card {
    border: 1px solid rgba(27, 110, 79, 0.14);
    background: linear-gradient(165deg, #fff 0%, #f8fafc 100%);
}

@media (min-width: 992px) {
    .mb-desti-buy-card.mb-desti-buy-card--sticky {
        position: sticky;
        top: 5.5rem;
        z-index: 5;
    }
}

.tt-price-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tt-text-muted, #64748b);
}

.tt-price-amount {
    font-family: var(--tt-font-display, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.65rem, 5vw, 2.1rem);
    font-weight: 700;
    color: var(--tt-primary, #1b6e4f);
    line-height: 1.15;
    margin: 0.15rem 0 0.25rem;
}

.mb-desti-buy-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.mb-desti-buy-actions .btn {
    min-height: 2.75rem;
    font-weight: 700;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.mb-desti-btn-wa {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
}

.mb-desti-btn-wa:hover {
    background: #1ebe57 !important;
    border-color: #1ebe57 !important;
    color: #fff !important;
}

/* Meta chips — scroll horizontal di HP */
.mb-desti-meta-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.15rem 0 0.35rem;
    margin: 0 -0.15rem;
}

.mb-desti-meta-scroll::-webkit-scrollbar {
    display: none;
}

.mb-desti-meta-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(27, 110, 79, 0.08);
    color: var(--tt-dark, #0f172a);
    border: 1px solid rgba(27, 110, 79, 0.12);
    white-space: nowrap;
}

.mb-desti-meta-chip i {
    color: var(--tt-primary, #1b6e4f);
    font-size: 0.72rem;
}

/* Konten */
.tt-detail-content {
    padding: 1.25rem 1.15rem;
}

@media (min-width: 768px) {
    .tt-detail-content {
        padding: 1.75rem 1.65rem;
    }
}

.mb-desti-detail .tt-detail-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.mb-desti-detail .tt-detail-content .lead {
    font-size: 0.95rem;
    color: var(--tt-text-muted, #64748b);
    margin-bottom: 1rem;
}

.tt-detail-prose {
    font-size: 0.92rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.tt-detail-prose img,
.tt-detail-prose video,
.tt-detail-prose iframe {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.tt-detail-prose table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
}

.tt-detail-prose h1,
.tt-detail-prose h2,
.tt-detail-prose h3 {
    font-size: 1.05rem;
    margin-top: 1.25rem;
}

/* CTA booking */
.tt-detail-booking {
    border-radius: var(--tt-radius-xl, 1rem);
    overflow: hidden;
    border: 1px solid rgba(27, 110, 79, 0.12);
    background: #fff;
    box-shadow: var(--tt-shadow-sm, 0 2px 12px rgba(15, 60, 45, 0.06));
}

.tt-detail-booking-accent {
    background: linear-gradient(145deg, var(--mb-pub-navy, #0c2340) 0%, #153a5c 100%);
    color: #fff;
}

.tt-detail-booking-accent i {
    opacity: 0.9;
}

.tt-detail-booking h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tt-detail-booking .mb-desti-cta-row {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tt-detail-booking .mb-desti-cta-row .btn,
.tt-detail-booking .mb-desti-cta-row .btn-tt-primary,
.tt-detail-booking .mb-desti-cta-row .btn-tt-outline {
    width: 100%;
    min-height: 2.75rem;
    border-radius: 999px;
    justify-content: center;
}

@media (min-width: 576px) {
    .tt-detail-booking .mb-desti-cta-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tt-detail-booking .mb-desti-cta-row .btn,
    .tt-detail-booking .mb-desti-cta-row .btn-tt-primary,
    .tt-detail-booking .mb-desti-cta-row .btn-tt-outline {
        width: auto;
        flex: 1 1 auto;
    }
}

/* Sidebar sekunder — sembunyikan di HP, tampil tablet+ */
.mb-desti-sidebar-extra {
    display: none;
}

@media (min-width: 768px) {
    .mb-desti-sidebar-extra {
        display: block;
    }
}

.mb-desti-sidebar-extra .tt-sidebar-card h5 {
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.mb-desti-sidebar-extra .input-group {
    flex-wrap: nowrap;
}

.mb-desti-sidebar-extra .tt-input {
    min-width: 0;
    font-size: 0.9rem;
}

/* Sticky bar mobile */
.mb-desti-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.55rem max(0.75rem, env(safe-area-inset-left, 0px)) calc(0.55rem + env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-right, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(12px);
}

.mb-desti-sticky-price {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-width: 38%;
    padding-right: 0.25rem;
}

.mb-desti-sticky-price .tt-price-label {
    font-size: 0.62rem;
    margin: 0;
}

.mb-desti-sticky-price .tt-price-amount {
    font-size: 0.95rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mb-desti-sticky-actions {
    flex: 1 1 auto;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    min-width: 0;
}

.mb-desti-sticky-actions .btn {
    flex: 1 1 0;
    min-height: 2.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    white-space: nowrap;
}

.mb-desti-sticky-actions .btn i {
    font-size: 0.95rem;
}

@media (min-width: 992px) {
    .mb-desti-sticky-bar {
        display: none !important;
    }
}

/* Dark mode */
html[data-bs-theme='dark'] .mb-desti-buy-card {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-bs-theme='dark'] .mb-desti-meta-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--bs-body-color);
}

html[data-bs-theme='dark'] .tt-detail-booking {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-bs-theme='dark'] .mb-desti-sticky-bar {
    background: rgba(15, 23, 42, 0.94);
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme='dark'] .tt-price-amount {
    color: #6ee7b7;
}
