/**
 * Travel Product Manager — modern luxury frontend (scoped).
 * Intentionally minimal layout interference: all rules are under .tpm-*.
 */

:root {
    /*
     * Theme harmony: default to Ramaya Theme CSS variables when present.
     * Fallbacks keep TPM usable on non-Ramaya themes.
     */
    --tpm-lx-ink: var(--ramaya-body-text, #0f172a);
    --tpm-lx-muted: var(--ramaya-muted, #667085);
    --tpm-lx-line: var(--ramaya-border, rgba(15, 23, 42, 0.10));
    --tpm-lx-surface: rgba(255, 255, 255, 0.85);
    --tpm-lx-soft: rgba(15, 23, 42, 0.04);
    --tpm-lx-accent: var(--ramaya-accent-title, var(--ramaya-link, #1f6f68));
    --tpm-lx-danger: #b42318;
    --tpm-lx-radius: 16px;
    --tpm-lx-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    /* Inset kiri/kanan single + grid; diperketat per breakpoint di bawah */
    --tpm-page-gutter: clamp(12px, 2.75vw, 28px);
}

.tpm-detail,
.tpm-grid-wrap {
    color: var(--tpm-lx-ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Grid container (shortcode) */
.tpm-grid-wrap {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
}

.tpm-grid {
    --tpm-cols: 3;
    display: grid;
    gap: clamp(14px, 2.1vw, 22px);
    grid-template-columns: repeat(var(--tpm-cols), minmax(0, 1fr));
    align-items: stretch;
}

.tpm-grid--cols-1 { --tpm-cols: 1; }
.tpm-grid--cols-2 { --tpm-cols: 2; }
.tpm-grid--cols-3 { --tpm-cols: 3; }
.tpm-grid--cols-4 { --tpm-cols: 4; }

.tpm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Card (shortcode): minimalis, harga di gambar, seluruh area (kecuali WA) mengarah ke detail */
.tpm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tpm-card:hover,
.tpm-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.11);
    border-color: rgba(15, 23, 42, 0.14);
}

.tpm-card-mainlink {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.tpm-card-mainlink:focus {
    outline: none;
}

.tpm-card-mainlink:focus-visible {
    outline: 2px solid var(--tpm-lx-accent);
    outline-offset: -2px;
    border-radius: 18px;
}

/* Baris WA tetap bisa diklik (bukan bagian dari link detail) */
.tpm-card--has-wa .tpm-card-mainlink {
    inset: 0 0 auto 0;
    height: calc(100% - 3.35rem);
}

.tpm-card-surface {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.tpm-card-media {
    position: relative;
    background: #0b1220;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.tpm-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.35s ease;
    max-width: none;
}

.tpm-card:hover .tpm-card-img,
.tpm-card:focus-within .tpm-card-img {
    transform: scale(1.05);
}

.tpm-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    z-index: 0;
}

.tpm-card-media-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 14px;
    pointer-events: none;
}

.tpm-card-price-on-img {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tpm-card-price-on-img__label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.tpm-card-price-on-img__value {
    font-weight: 950;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.tpm-card-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(31, 111, 104, 0.35), rgba(11, 18, 32, 1));
}

.tpm-card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: rgba(15, 23, 42, 0.82);
    font-weight: 900;
    font-size: 0.74rem;
    letter-spacing: 0.01em;
    pointer-events: none;
}

.tpm-card-body {
    padding: 14px 16px 16px;
    flex: 1 1 auto;
}

.tpm-card-title {
    margin: 0;
    font-weight: 950;
    letter-spacing: -0.02em;
    font-size: 1.05rem;
    line-height: 1.28;
    color: var(--tpm-lx-ink);
}

.tpm-card-excerpt {
    margin: 8px 0 0;
    color: rgba(102, 112, 133, 0.95);
    line-height: 1.5;
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpm-card-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.78rem;
    white-space: nowrap;
}

.tpm-card-chip--on-img {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
}

.tpm-card-wa {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    margin: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
    color: rgba(21, 128, 61, 1);
    text-decoration: none;
    font-weight: 950;
    font-size: 0.88rem;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.tpm-card-wa:hover,
.tpm-card-wa:focus-visible {
    background: rgba(37, 211, 102, 0.12);
    opacity: 0.98;
}

/* Keep content centered + add side padding (safe area untuk notch) */
.tpm-detail {
    max-width: 1140px;
    width: min(1140px, 100%);
    margin-inline: auto;
    box-sizing: border-box;
    padding-left: max(var(--tpm-page-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--tpm-page-gutter), env(safe-area-inset-right, 0px));
    overflow: visible;
}

/* Sections */
.tpm-section {
    margin: 1.5rem 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tpm-section--muted {
    background: transparent;
}

.tpm-section--content {
    background: transparent;
    box-shadow: none;
    border: 0;
    padding-left: 0;
    padding-right: 0;
}

.tpm-section-title {
    margin: 0 0 0.85rem;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.tpm-prose {
    color: color-mix(in srgb, var(--tpm-lx-ink) 86%, transparent);
}

.tpm-prose p:last-child {
    margin-bottom: 0;
}

.tpm-readmore__toggle {
    cursor: pointer;
    font: inherit;
    color: color-mix(in srgb, var(--tpm-lx-accent, #15803d) 92%, var(--tpm-lx-ink));
    background: transparent;
    border: 0;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.tpm-readmore__toggle:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--tpm-lx-accent, #15803d) 55%, transparent);
    outline-offset: 2px;
}

/*
 * Hilangkan padding/margin atas area konten pada single travel_product
 * (sering jadi "space putih" antara header tema dan hero).
 */
body.tpm-single-hero-edge #primary,
body.tpm-single-hero-edge #main,
body.tpm-single-hero-edge main#main,
body.tpm-single-hero-edge .site-main,
body.tpm-single-hero-edge .site-content,
body.tpm-single-hero-edge .content-area,
body.tpm-single-hero-edge #content,
body.tpm-single-hero-edge .ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.tpm-single-hero-edge #primary,
body.tpm-single-hero-edge .site-main {
    margin-top: 0 !important;
}

body.tpm-single-hero-edge .ast-plain-container .site-content > .ast-container,
body.tpm-single-hero-edge .ast-page .entry-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.tpm-single-hero-edge article.tpm-detail {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* HERO: full-bleed, 50vh, judul di dalam hero; ditarik ke atas viewport (--tpm-hero-pull di-set via JS) */
.tpm-hero-viewport-top {
    position: relative;
    z-index: 0;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: calc(-1 * var(--tpm-hero-pull, 0px));
    box-sizing: border-box;
}

.tpm-hero-full {
    position: relative;
    height: 50vh;
    min-height: 50vh;
    max-height: 50vh;
    overflow: hidden;
    background: #0b1220;
}

.tpm-hero-full--no-image {
    background:
        radial-gradient(ellipse 120% 80% at 50% 20%, rgba(31, 111, 104, 0.45), transparent 55%),
        linear-gradient(165deg, #0b1220 0%, #152238 100%);
}

.tpm-hero-full__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
    max-width: none;
}

.tpm-hero-full__scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(11, 18, 32, 0.88) 0%,
        rgba(11, 18, 32, 0.35) 42%,
        rgba(11, 18, 32, 0.08) 100%
    );
}

/*
 * Judul hero: inset minimum sendiri (tidak mengikuti --tpm-page-gutter mentah di HP),
 * supaya teks tidak mepet tepi gambar — umumnya ≥16px horizontal, sedikit lebih besar di bawah.
 */
.tpm-hero-full__inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    max-width: 1140px;
    width: min(1140px, 100%);
    margin-inline: auto;
    padding-top: 0;
    padding-left: max(var(--tpm-page-gutter), 1rem, env(safe-area-inset-left, 0px));
    padding-right: max(var(--tpm-page-gutter), 1rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(calc(var(--tpm-page-gutter) + 0.5rem), 1.25rem, env(safe-area-inset-bottom, 0px));
}

@media (min-width: 901px) {
    .tpm-hero-full__inner {
        padding-left: max(var(--tpm-page-gutter), 1.25rem, env(safe-area-inset-left, 0px));
        padding-right: max(var(--tpm-page-gutter), 1.25rem, env(safe-area-inset-right, 0px));
        padding-bottom: max(calc(var(--tpm-page-gutter) + 0.65rem), 1.5rem, env(safe-area-inset-bottom, 0px));
    }
}

.tpm-hero-full__title {
    margin: 0;
    font-weight: 950;
    letter-spacing: -0.02em;
    font-size: clamp(1.65rem, 3.6vw, 2.35rem);
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

/* Header (ringkasan di bawah hero; judul hanya di hero) */
.tpm-detail-header {
    margin: 1.25rem 0 0.75rem;
}

.tpm-detail-header--below-hero {
    margin-top: 1rem;
}

.tpm-detail-title {
    margin: 0 0 0.5rem;
    font-weight: 950;
    letter-spacing: -0.02em;
    font-size: clamp(1.6rem, 3.4vw, 2.25rem);
    line-height: 1.18;
}

.tpm-detail-excerpt {
    margin: 0;
    color: var(--tpm-lx-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

/* Meta cards (Price/Duration/Location) — tampilan “premium”: glass, aksen halus, ikon ring */
.tpm-meta-row--modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: clamp(12px, 2vw, 18px);
    margin: 1.35rem 0 1.6rem;
}

.tpm-meta-body {
    flex: 1 1 auto;
    min-width: 0;
}

.tpm-meta-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.2rem 1.2rem;
    border-radius: 16px;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(
        152deg,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(248, 252, 251, 0.55) 48%,
        rgba(255, 255, 255, 0.65) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 18px 48px rgba(15, 23, 42, 0.07),
        0 2px 10px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .tpm-meta-card {
        background: linear-gradient(180deg, #ffffff 0%, #f4faf9 100%);
        border-color: rgba(15, 23, 42, 0.08);
    }
}

.tpm-meta-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--tpm-lx-accent) 70%, transparent),
        transparent
    );
    opacity: 0.55;
    pointer-events: none;
}

.tpm-meta-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.045);
}

.tpm-meta-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--tpm-lx-accent) 28%, rgba(255, 255, 255, 0.85));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 22px 56px rgba(15, 23, 42, 0.09),
        0 0 0 1px color-mix(in srgb, var(--tpm-lx-accent) 12%, transparent);
}

.tpm-meta-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 999px;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--tpm-lx-accent) 18%, rgba(255, 255, 255, 0.9)),
        0 10px 28px color-mix(in srgb, var(--tpm-lx-accent) 22%, transparent);
}

.tpm-meta-icon--price {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5c56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7h-7l-1-2H4a1 1 0 0 0-1 1v10a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1V9a2 2 0 0 0-2-2Z'/%3E%3Cpath d='M16 13a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z'/%3E%3C/svg%3E"),
        linear-gradient(155deg, #ffffff 0%, #e8f5f3 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: 20px 20px, 100% 100%;
}

.tpm-meta-icon--dur {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5c56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v4l2.5 1.5'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E"),
        linear-gradient(155deg, #ffffff 0%, #e8f5f3 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: 20px 20px, 100% 100%;
}

.tpm-meta-icon--loc {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5c56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.35 7-11a7 7 0 1 0-14 0c0 6.65 7 11 7 11Z'/%3E%3Cpath d='M12 10.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z'/%3E%3C/svg%3E"),
        linear-gradient(155deg, #ffffff 0%, #e8f5f3 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: 20px 20px, 100% 100%;
}

.tpm-meta-label {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--tpm-lx-muted) 92%, var(--tpm-lx-ink));
    font-weight: 800;
}

.tpm-meta-value {
    margin-top: 0.28rem;
    font-size: clamp(1.02rem, 2.1vw, 1.14rem);
    font-weight: 950;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #0a1629;
    font-variant-numeric: tabular-nums;
}

/* Elegant list */
.tpm-elegant-list ul,
.tpm-inc-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tpm-elegant-list li,
.tpm-inc-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.55rem 0;
    color: color-mix(in srgb, var(--tpm-lx-ink) 86%, transparent);
}

.tpm-elegant-list li::before,
.tpm-inc-list li::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 999px;
    flex: 0 0 22px;
    margin-top: 2px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    box-shadow: inset 0 0 0 1px var(--tpm-lx-line);
}

/* Include: tetap centang */
.tpm-inc-list--include li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f68' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Highlights / Good to know — bullet bulat (bukan centang) */
.tpm-elegant-list--accent li::before,
.tpm-elegant-list--muted li::before {
    background-image: none;
    box-shadow: none;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-top: 0.58em;
    border-radius: 50%;
    /* Natural: bullet netral abu (harmonis dengan tema) */
    background: color-mix(in srgb, var(--tpm-lx-muted) 55%, transparent);
}

/* (muted) sama dengan accent — menjaga konsistensi visual */

.tpm-inc-list--exclude li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E");
}

.tpm-inc-list--bring li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f68' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v3'/%3E%3Cpath d='M7 7h10'/%3E%3Cpath d='M6 7v14'/%3E%3Cpath d='M18 7v14'/%3E%3Cpath d='M6 21h12'/%3E%3C/svg%3E");
}

/* FAQ */
.tpm-faq-section .tpm-faq-q {
    margin: 0 0 0.35rem;
    font-weight: 850;
    font-size: 1rem; /* sedikit lebih kecil dari judul "FAQ" */
    letter-spacing: -0.01em;
    color: color-mix(in srgb, var(--tpm-lx-ink) 92%, transparent);
}

.tpm-faq-section .tpm-faq-a {
    color: color-mix(in srgb, var(--tpm-lx-ink) 78%, transparent);
}

.tpm-faq-section .tpm-faq-item + .tpm-faq-item {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tpm-lx-line);
}

/* Bootstrap FAQ accordion: pertanyaan lebih kecil dari title */
.tpm-faq-bs .accordion-button {
    font-size: 1rem;
    font-weight: 800;
}

/* Include/Exclude/Bring 3 cols on desktop */
.tpm-inc-exc__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.tpm-inc-exc__title {
    margin: 0 0 0.75rem;
    font-weight: 950;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--tpm-lx-muted) 92%, var(--tpm-lx-ink));
}

/* Gallery — kolase 2 + 3 + rotasi premium (>5 foto di pool) */
.tpm-gallery-rotation-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tpm-gallery-rotation-ui {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: stretch;
}

.tpm-gallery-rotation-ui__track {
    height: 3px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tpm-lx-ink) 8%, transparent);
    overflow: hidden;
}

.tpm-gallery-rotation-ui__fill {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--tpm-lx-accent, #15803d) 72%, transparent),
        color-mix(in srgb, var(--tpm-lx-accent, #15803d) 95%, #fff)
    );
    box-shadow: 0 0 12px color-mix(in srgb, var(--tpm-lx-accent, #15803d) 35%, transparent);
}

.tpm-gallery-rotation-ui__label {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 750;
    color: color-mix(in srgb, var(--tpm-lx-ink) 52%, transparent);
}

@media (prefers-reduced-motion: reduce) {
    .tpm-gallery-rotation-ui {
        display: none;
    }
}

/* Pergantian gambar — timing acak per slot dari JS; mode smooth vs slide (data-tpm-gallery-effect) */
@keyframes tpmGalleryReveal {
    from {
        opacity: 0;
        transform: translateY(8px) scale(1.012);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tpmGallerySlideInFromL {
    from {
        opacity: 0;
        transform: translateX(-14%) scale(1.02);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes tpmGallerySlideInFromR {
    from {
        opacity: 0;
        transform: translateX(14%) scale(1.02);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes tpmGalleryRevealKenburns {
    from {
        opacity: 0;
        transform: translateY(12px) scale(1.07);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tpmGalleryRevealZoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes tpmGalleryRevealDrift {
    from {
        opacity: 0;
        transform: translateY(22px) scale(1.02);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tpmGalleryRevealGleam {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
        filter: brightness(1.12);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
}

.tpm-gallery--swap-out .tpm-gallery-item img {
    opacity: 0;
    transform: translate3d(var(--tpm-exit-x, 0px), var(--tpm-exit-y, 6px), 0) scale(var(--tpm-exit-scale, 1.015));
    transition-property: opacity, transform, filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--tpm-exit-delay, 0ms);
    transition-duration: var(--tpm-exit-duration, 0.4s);
}

[data-tpm-gallery-effect="slide"] .tpm-gallery--swap-out .tpm-gallery-item img {
    transform: translate3d(var(--tpm-exit-x, 0px), var(--tpm-exit-y, 4px), 0) scale(0.96);
}

[data-tpm-gallery-effect="smooth"] .tpm-gallery--swap-in .tpm-gallery-item img,
.tpm-gallery-rotation-wrap:not([data-tpm-gallery-effect]) .tpm-gallery--swap-in .tpm-gallery-item img {
    transition: none;
    animation-name: tpmGalleryReveal;
    animation-duration: var(--tpm-reveal-duration, 0.55s);
    animation-timing-function: cubic-bezier(0.22, 1, 0.32, 1);
    animation-delay: var(--tpm-reveal-delay, 0ms);
    animation-fill-mode: backwards;
}

[data-tpm-gallery-effect="kenburns"] .tpm-gallery--swap-in .tpm-gallery-item img {
    transition: none;
    animation-name: tpmGalleryRevealKenburns;
    animation-duration: var(--tpm-reveal-duration, 0.62s);
    animation-timing-function: cubic-bezier(0.25, 0.85, 0.2, 1);
    animation-delay: var(--tpm-reveal-delay, 0ms);
    animation-fill-mode: backwards;
}

[data-tpm-gallery-effect="zoom"] .tpm-gallery--swap-in .tpm-gallery-item img {
    transition: none;
    animation-name: tpmGalleryRevealZoom;
    animation-duration: var(--tpm-reveal-duration, 0.52s);
    animation-timing-function: cubic-bezier(0.34, 1.2, 0.32, 1);
    animation-delay: var(--tpm-reveal-delay, 0ms);
    animation-fill-mode: backwards;
}

[data-tpm-gallery-effect="drift"] .tpm-gallery--swap-in .tpm-gallery-item img {
    transition: none;
    animation-name: tpmGalleryRevealDrift;
    animation-duration: var(--tpm-reveal-duration, 0.58s);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-delay: var(--tpm-reveal-delay, 0ms);
    animation-fill-mode: backwards;
}

[data-tpm-gallery-effect="gleam"] .tpm-gallery--swap-in .tpm-gallery-item img {
    transition: none;
    animation-name: tpmGalleryRevealGleam;
    animation-duration: var(--tpm-reveal-duration, 0.48s);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
    animation-delay: var(--tpm-reveal-delay, 0ms);
    animation-fill-mode: backwards;
}

[data-tpm-gallery-effect="slide"] .tpm-gallery--swap-in .tpm-gallery-item--sr-left img {
    animation-name: tpmGallerySlideInFromL;
    animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    animation-duration: var(--tpm-reveal-duration, 0.55s);
    animation-delay: var(--tpm-reveal-delay, 0ms);
    animation-fill-mode: backwards;
    transition: none;
}

[data-tpm-gallery-effect="slide"] .tpm-gallery--swap-in .tpm-gallery-item--sr-right img {
    animation-name: tpmGallerySlideInFromR;
    animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    animation-duration: var(--tpm-reveal-duration, 0.55s);
    animation-delay: var(--tpm-reveal-delay, 0ms);
    animation-fill-mode: backwards;
    transition: none;
}

.tpm-gallery--collage {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(8px, 2vw, 14px);
    grid-auto-rows: minmax(108px, 20vw);
    max-width: 100%;
}

@media (min-width: 768px) {
    .tpm-gallery--collage {
        grid-auto-rows: minmax(132px, 16vw);
    }
}

.tpm-gallery--collage .tpm-gallery-item {
    margin: 0;
    border-radius: calc(var(--tpm-lx-radius) - 6px);
    overflow: hidden;
    border: 0;
    background: #0b1220;
    min-height: 0;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
}

.tpm-gallery--rotate .tpm-gallery-item img {
    transition:
        opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpm-gallery--collage .tpm-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 5 gambar: | ■ ■ | / | ■ ■ ■ | */
.tpm-gallery--collage.tpm-gallery--count-5 .tpm-gallery-item:nth-child(1),
.tpm-gallery--collage.tpm-gallery--count-5 .tpm-gallery-item:nth-child(2) {
    grid-column: span 3;
}

.tpm-gallery--collage.tpm-gallery--count-5 .tpm-gallery-item:nth-child(3),
.tpm-gallery--collage.tpm-gallery--count-5 .tpm-gallery-item:nth-child(4),
.tpm-gallery--collage.tpm-gallery--count-5 .tpm-gallery-item:nth-child(5) {
    grid-column: span 2;
}

/* 4 gambar: 2 × 2 */
.tpm-gallery--collage.tpm-gallery--count-4 .tpm-gallery-item:nth-child(-n + 4) {
    grid-column: span 3;
}

/* 3 gambar: 2 atas + 1 lebar bawah */
.tpm-gallery--collage.tpm-gallery--count-3 .tpm-gallery-item:nth-child(1),
.tpm-gallery--collage.tpm-gallery--count-3 .tpm-gallery-item:nth-child(2) {
    grid-column: span 3;
}

.tpm-gallery--collage.tpm-gallery--count-3 .tpm-gallery-item:nth-child(3) {
    grid-column: span 6;
}

/* 2 gambar */
.tpm-gallery--collage.tpm-gallery--count-2 .tpm-gallery-item {
    grid-column: span 3;
}

/* 1 gambar */
.tpm-gallery--collage.tpm-gallery--count-1 .tpm-gallery-item {
    grid-column: span 6;
}

/* Tombol buka lightbox — isi sel penuh, fokus terlihat */
.tpm-gallery-item {
    margin: 0;
}

.tpm-gallery-item__trigger {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: inherit;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.tpm-gallery-item__trigger:focus {
    outline: none;
}

.tpm-gallery-item__trigger:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--tpm-lx-accent, #15803d) 80%, #fff);
    outline-offset: 2px;
}

.tpm-gallery-item__trigger img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    vertical-align: middle;
}

.tpm-gallery-host {
    position: relative;
}

/* Layout Spotlight: hero + strip */
.tpm-gallery--spotlight {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 14px);
    max-width: 100%;
}

.tpm-gallery-spotlight__hero .tpm-gallery-item,
.tpm-gallery-spotlight__thumbs .tpm-gallery-item {
    border-radius: calc(var(--tpm-lx-radius) - 6px);
    overflow: hidden;
    border: 0;
    background: #0b1220;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
}

.tpm-gallery-spotlight__hero .tpm-gallery-item {
    aspect-ratio: 16 / 10;
    max-height: min(56vh, 520px);
}

.tpm-gallery-spotlight__thumbs {
    display: grid;
    gap: clamp(8px, 1.5vw, 12px);
}

.tpm-gallery--spotlight--n-1 .tpm-gallery-spotlight__thumbs {
    display: none;
}

.tpm-gallery--spotlight--n-2 .tpm-gallery-spotlight__thumbs,
.tpm-gallery--spotlight--n-3 .tpm-gallery-spotlight__thumbs {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
}

.tpm-gallery--spotlight--n-4 .tpm-gallery-spotlight__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tpm-gallery--spotlight--n-5 .tpm-gallery-spotlight__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 540px) {
    .tpm-gallery--spotlight--n-4 .tpm-gallery-spotlight__thumbs,
    .tpm-gallery--spotlight--n-5 .tpm-gallery-spotlight__thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tpm-gallery-spotlight__thumbs .tpm-gallery-item {
    aspect-ratio: 4 / 3;
    min-height: 88px;
}

/* Lightbox fullscreen */
.tpm-lb {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
}

.tpm-lb[hidden] {
    display: none !important;
}

.tpm-lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tpm-lb__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 100%;
    padding: max(env(safe-area-inset-top, 0px), 12px) max(env(safe-area-inset-right, 0px), 12px)
        max(env(safe-area-inset-bottom, 0px), 16px) max(env(safe-area-inset-left, 0px), 12px);
    box-sizing: border-box;
    pointer-events: none;
}

.tpm-lb__dialog > * {
    pointer-events: auto;
}

.tpm-lb__close {
    position: absolute;
    top: max(env(safe-area-inset-top, 0px), 8px);
    right: max(env(safe-area-inset-right, 0px), 8px);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.tpm-lb__close:hover,
.tpm-lb__close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.tpm-lb__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.tpm-lb__nav:hover,
.tpm-lb__nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.tpm-lb__prev {
    left: max(env(safe-area-inset-left, 0px), 8px);
}

.tpm-lb__next {
    right: max(env(safe-area-inset-right, 0px), 8px);
}

.tpm-lb__stage {
    margin: 0;
    max-width: min(96vw, 1200px);
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    touch-action: pan-y;
}

.tpm-lb__img {
    display: block;
    max-width: 100%;
    max-height: min(82vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.tpm-lb__cap {
    margin: 0.65rem 0 0;
    padding: 0 0.5rem;
    max-width: 42rem;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.tpm-lb__counter {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
}

html.tpm-lb-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .tpm-lb__close,
    .tpm-lb__nav {
        transition: none;
    }
}

/* Layout 2 kolom: konten utama + form booking (di bawah meta harga / durasi / lokasi) */
.tpm-detail-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
    margin-top: 0.5rem;
}

.tpm-detail-split__main {
    min-width: 0;
}

.tpm-detail-split__aside {
    min-width: 0;
}

@media (max-width: 900px) {
    .tpm-detail-split {
        grid-template-columns: 1fr;
    }
}

/* Offset atas kolom booking (sejajar “Main description”) + sticky hanya layout klasik */
@media (min-width: 901px) {
    .tpm-detail-split__aside {
        padding-top: 1.35rem;
    }

    .tpm-detail-split:not(.tpm-detail-split--bs) .tpm-detail-split__aside {
        position: sticky;
        top: 1rem;
    }
}

.tpm-booking-sticky-lg {
    position: static;
}

@media (min-width: 992px) {
    .tpm-booking-sticky-lg {
        position: sticky;
        top: 1.25rem;
    }
}

/* Form booking premium (klasik) */
.tpm-booking-premium--classic {
    background: #fff;
    border: 1px solid var(--tpm-lx-line);
    border-radius: var(--tpm-lx-radius);
    box-shadow: var(--tpm-lx-shadow);
    overflow: hidden;
}

.tpm-booking-premium .tpm-booking-premium__head {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--tpm-lx-accent) 10%, #ffffff) 0%,
        #ffffff 92%,
        color-mix(in srgb, var(--tpm-lx-accent) 6%, #ffffff) 100%
    );
    border-bottom: 1px solid color-mix(in srgb, var(--tpm-lx-line) 70%, transparent);
    padding: 1.05rem 1.2rem 1.15rem;
}

.tpm-booking-premium__title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(0.93rem, 0.28vw + 0.85rem, 1.05rem);
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: var(--tpm-lx-ink);
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.tpm-booking-premium__card-body {
    padding-top: 1.15rem;
}

.tpm-booking-premium__body {
    padding: 1.1rem 1.1rem 1.25rem;
}

.tpm-booking-premium__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 650;
    margin-bottom: 0.35rem;
    color: var(--tpm-lx-ink);
}

.tpm-booking-premium__field {
    margin-bottom: 0.9rem;
}

.tpm-booking-premium__hint {
    margin-top: 0 !important;
    line-height: 1.45;
}

.tpm-booking-premium__hint-detail {
    display: inline;
    margin: 0 0 0 0.2rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: inherit;
    font-weight: 650;
    color: color-mix(in srgb, var(--tpm-lx-accent) 90%, var(--tpm-lx-ink));
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.tpm-booking-premium__hint-detail:hover,
.tpm-booking-premium__hint-detail:focus-visible {
    color: color-mix(in srgb, var(--tpm-lx-accent) 82%, #000000);
    outline: none;
}

.tpm-booking-premium__label--total {
    margin-bottom: 0.45rem;
}

.tpm-booking-premium__total-box {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--tpm-lx-accent) 18%, var(--tpm-lx-line));
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--tpm-lx-accent) 10%, rgba(255, 255, 255, 0.92)) 0%,
        rgba(255, 255, 255, 0.95) 100%
    );
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.tpm-booking-premium__total-amount {
    display: block;
    font-size: clamp(1.35rem, 3.5vw, 1.65rem);
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--tpm-lx-ink);
    font-variant-numeric: tabular-nums;
}

.tpm-booking-premium__total-line {
    margin-top: 0.45rem !important;
    font-size: 0.82rem !important;
    color: #475569 !important;
}

.tpm-booking-premium__input,
.tpm-booking-premium__textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--tpm-lx-line);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    font: inherit;
    background: #fff;
}

.tpm-booking-premium__input--readonly {
    background: var(--tpm-lx-soft);
    color: var(--tpm-lx-muted);
}

/* Tier price detail modal (booking widget) */
body.tpm-tier-detail-modal-open {
    overflow: hidden;
}

.tpm-tier-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 24px);
    box-sizing: border-box;
}

.tpm-tier-detail-modal[hidden] {
    display: none !important;
}

.tpm-tier-detail-modal:not([hidden]) {
    display: flex;
}

.tpm-tier-detail-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tpm-tier-detail-modal__panel {
    position: relative;
    width: min(100%, 400px);
    max-height: min(85vh, 520px);
    overflow-y: auto;
    margin: 0;
    padding: 1.25rem 1.2rem 1.15rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    color: #0f172a;
}

.tpm-tier-detail-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.tpm-tier-detail-modal__close:hover,
.tpm-tier-detail-modal__close:focus-visible {
    background: rgba(15, 23, 42, 0.1);
    outline: none;
}

.tpm-tier-detail-modal__title {
    margin: 0 2rem 0.35rem 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: color-mix(in srgb, var(--tpm-lx-ink) 92%, transparent);
}

.tpm-tier-detail-modal__lead {
    margin: 0 0 0.85rem;
}

.tpm-tier-detail-modal__table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.tpm-tier-detail-modal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tpm-tier-detail-modal__table th,
.tpm-tier-detail-modal__table td {
    padding: 0.55rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tpm-tier-detail-modal__table th {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background: rgba(248, 250, 252, 0.95);
}

.tpm-tier-detail-modal__table tbody tr:last-child td {
    border-bottom: 0;
}

.tpm-tier-detail-modal__table td:last-child {
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    color: var(--tpm-lx-ink);
}

.tpm-tier-detail-modal__btn {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--tpm-lx-line) 80%, transparent);
    background: color-mix(in srgb, var(--tpm-lx-ink) 8%, #ffffff);
    color: var(--tpm-lx-ink);
    font-weight: 650;
    font-size: 0.92rem;
    cursor: pointer;
}

.tpm-tier-detail-modal__btn:hover,
.tpm-tier-detail-modal__btn:focus-visible {
    background: color-mix(in srgb, var(--tpm-lx-ink) 12%, #ffffff);
    outline: 2px solid color-mix(in srgb, var(--tpm-lx-ink) 18%, transparent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .tpm-tier-detail-modal__backdrop {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Full-screen overlay while booking form is submitting */
body.tpm-booking-submit-loading-open {
    overflow: hidden;
}

.tpm-booking-submit-loading {
    position: fixed;
    inset: 0;
    z-index: 100020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 28px);
    box-sizing: border-box;
}

.tpm-booking-submit-loading[hidden] {
    display: none !important;
}

.tpm-booking-submit-loading:not([hidden]) {
    display: flex;
}

.tpm-booking-submit-loading__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tpm-booking-submit-loading__panel {
    position: relative;
    max-width: 380px;
    width: 100%;
    padding: 2rem 1.75rem 1.85rem;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
}

.tpm-booking-submit-loading__spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 1.25rem;
    border: 3px solid color-mix(in srgb, var(--tpm-lx-accent) 14%, transparent);
    border-top-color: color-mix(in srgb, var(--tpm-lx-accent) 92%, #000);
    border-radius: 50%;
    animation: tpm-booking-submit-spin 0.75s linear infinite;
}

.tpm-booking-submit-loading__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.3;
}

.tpm-booking-submit-loading__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #64748b;
}

@keyframes tpm-booking-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tpm-booking-submit-loading__backdrop {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .tpm-booking-submit-loading__spinner {
        animation: none;
        opacity: 0.9;
    }
}

.tpm-booking-premium__stepper {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--tpm-lx-line);
    border-radius: 10px;
    overflow: hidden;
    max-width: 16rem;
}

.tpm-booking-premium__step-btn {
    flex: 0 0 2.4rem;
    border: 0;
    background: var(--tpm-lx-soft);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.tpm-booking-premium__step-btn:hover {
    background: rgba(15, 23, 42, 0.08);
}

.tpm-booking-premium__pax-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    text-align: center;
    font: inherit;
    font-weight: 700;
    -moz-appearance: textfield;
}

.tpm-booking-premium__pax-input::-webkit-outer-spin-button,
.tpm-booking-premium__pax-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tpm-booking-check,
.tpm-booking-premium__check {
    margin: 0.75rem 0 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--tpm-lx-muted);
}

.tpm-booking-premium__checkbox {
    margin-right: 0.35rem;
    vertical-align: middle;
}

.tpm-booking-premium__submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    background: color-mix(in srgb, var(--tpm-lx-accent) 92%, #000);
    color: #fff;
}

.tpm-booking-premium__submit:hover {
    filter: none;
    background: color-mix(in srgb, var(--tpm-lx-accent) 82%, #000);
}

.tpm-booking-premium__submit:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--tpm-lx-accent) 55%, transparent);
    outline-offset: 3px;
}

/* Bootstrap button inside booking card (when $bootstrap layout is enabled) */
.tpm-booking-premium .btn.btn-primary {
    border-color: transparent !important;
    background: color-mix(in srgb, var(--tpm-lx-accent) 92%, #000) !important;
}
.tpm-booking-premium .btn.btn-primary:hover,
.tpm-booking-premium .btn.btn-primary:focus {
    background: color-mix(in srgb, var(--tpm-lx-accent) 82%, #000) !important;
}
.tpm-booking-premium .btn.btn-primary:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--tpm-lx-accent) 55%, transparent);
    outline-offset: 3px;
}

.tpm-booking-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tpm-booking-wa-extra {
    border-radius: var(--tpm-lx-radius);
    border: 1px solid var(--tpm-lx-line);
    background: rgba(255, 255, 255, 0.96);
}

.tpm-booking-wa-extra__inner {
    padding: 1rem 1.1rem;
}

.tpm-booking-wa-extra__lead {
    font-size: 0.9rem;
    color: var(--tpm-lx-muted);
    margin: 0 0 0.5rem;
}

.tpm-booking-flash {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin: 0.75rem 0 1rem;
    font-size: 0.95rem;
}

.tpm-booking-flash--ok {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;
}

.tpm-booking-flash--err {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #991b1b;
}

/* Booking confirmation modal */
body.tpm-booking-modal-open {
    overflow: hidden;
}

.tpm-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 32px);
    box-sizing: border-box;
}

.tpm-booking-modal[hidden] {
    display: none !important;
}

.tpm-booking-modal:not([hidden]) {
    display: flex;
}

.tpm-booking-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (prefers-reduced-motion: reduce) {
    .tpm-booking-modal__backdrop {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.tpm-booking-modal__panel {
    position: relative;
    width: min(100%, 440px);
    max-height: min(88vh, 640px);
    overflow-y: auto;
    margin: 0;
    padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.25rem, 3vw, 1.65rem) 1.35rem;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 24px 48px -12px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    color: var(--tpm-lx-ink);
    text-align: center;
}

.tpm-booking-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    color: color-mix(in srgb, var(--tpm-lx-muted) 88%, var(--tpm-lx-ink));
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.tpm-booking-modal__close:hover,
.tpm-booking-modal__close:focus-visible {
    background: rgba(15, 23, 42, 0.1);
    color: var(--tpm-lx-ink);
    outline: none;
}

.tpm-booking-modal__icon {
    display: flex;
    justify-content: center;
    margin: 0.25rem auto 0.75rem;
}

.tpm-booking-modal--success .tpm-booking-modal__icon {
    color: var(--tpm-lx-accent);
}

.tpm-booking-modal--error .tpm-booking-modal__icon {
    color: var(--tpm-lx-danger);
}

.tpm-booking-modal__title {
    margin: 0 0 0.65rem;
    padding: 0 2rem;
    font-size: clamp(1.15rem, 2.8vw, 1.35rem);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.tpm-booking-modal__body {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
}

.tpm-booking-modal__body p:last-child {
    margin-bottom: 0;
}

.tpm-booking-modal__wa-lead {
    margin: 1.25rem 0 0.65rem;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
}

.tpm-booking-modal__wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    color: #fff !important;
    background: linear-gradient(135deg, #128c7e 0%, #25d366 55%, #34e878 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 10px 26px rgba(18, 140, 126, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.tpm-booking-modal__wa:hover,
.tpm-booking-modal__wa:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        0 14px 34px rgba(18, 140, 126, 0.42),
        0 4px 10px rgba(0, 0, 0, 0.08);
    opacity: 0.98;
    outline: none;
}

.tpm-booking-modal__wa-icon {
    display: flex;
    flex-shrink: 0;
}

.tpm-booking-modal__footer {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.tpm-booking-modal__btn-primary {
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #0f172a;
    font-weight: 650;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tpm-booking-modal__btn-primary:hover,
.tpm-booking-modal__btn-primary:focus-visible {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.2);
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .tpm-booking-modal__wa,
    .tpm-booking-modal__btn-primary {
        transition: none;
    }
    .tpm-booking-modal__wa:hover {
        transform: none;
    }
}

/* WhatsApp button */
.tpm-actions {
    margin: 1.5rem 0 0.5rem;
}
.tpm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    font-weight: 950;
    text-decoration: none !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.tpm-btn:hover,
.tpm-btn:focus-visible {
    transform: translateY(-1px);
    opacity: 0.95;
}
.tpm-btn-wa {
    background: #25d366;
    color: #fff !important;
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.22);
}

/* Responsive */
@media (max-width: 900px) {
    :root {
        /* Tablet / HP kecil: kurangi inset agar konten memakai lebar layar lebih banyak */
        --tpm-page-gutter: clamp(7px, 1.45vw, 18px);
    }

    .tpm-meta-row--modern {
        grid-template-columns: 1fr;
    }
    .tpm-inc-exc__grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    /* Grid: lebih nyaman di tablet/HP */
    .tpm-grid {
        --tpm-cols: 2;
    }
    .tpm-grid--cols-1 {
        --tpm-cols: 1;
    }
}

@media (max-width: 640px) {
    :root {
        /* HP: inset minimal; tetap ≥6px agar teks tidak menempel tepi */
        --tpm-page-gutter: max(6px, 1.05vw);
    }

    /*
     * Single produk: maksimalkan lebar konten (margin tema sering menambah ruang).
     */
    body.single-travel_product {
        --tpm-page-gutter: max(5px, 0.95vw);
    }

    .tpm-grid {
        --tpm-cols: 1;
    }

    .tpm-meta-card {
        padding: 0.95rem 0.82rem 1rem;
    }

    .tpm-booking-premium .tpm-booking-premium__head {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    .tpm-booking-premium__body,
    .tpm-booking-premium .tpm-booking-premium__card-body {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}

/*
 * Banyak tema (mis. Astra) menambah padding horizontal pada .ast-container;
 * ditambah .tpm-detail membuat “double gutter”. Longgarkan hanya di single produk TPM.
 */
@media (max-width: 782px) {
    body.single-travel_product.tpm-single-hero-edge .site-content .ast-container,
    body.single-travel_product.tpm-single-hero-edge .ast-separate-container .ast-article-post,
    body.single-travel_product.tpm-single-hero-edge .ast-separate-container .ast-article-inner,
    body.single-travel_product.tpm-single-hero-edge .ast-plain-container .site-content > .ast-container {
        padding-left: max(0.25rem, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(0.25rem, env(safe-area-inset-right, 0px)) !important;
    }
}

/* Tiered pricing list (product meta) */
.tpm-price-tier-list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
}

.tpm-price-tier-list li {
    margin: 0.28rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.tpm-price-tier-list__price {
    font-weight: 650;
}

