/**
 * 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;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tpm-grid-wrap {
    --tpm-card-footer-h: 2.35rem;
    --tpm-card-ink-soft: var(--ramaya-card-ink-soft, color-mix(in srgb, var(--tpm-lx-ink) 88%, #64748b));
    --tpm-card-muted-soft: var(--ramaya-card-muted-soft, color-mix(in srgb, var(--tpm-lx-muted) 78%, #94a3b8));
    --tpm-card-link-soft: var(--ramaya-card-link-soft, color-mix(in srgb, var(--tpm-lx-accent) 72%, #475569));
}

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

.tpm-grid {
    --tpm-cols: 3;
    display: grid;
    gap: var(--ramaya-card-gap, clamp(12px, 1.75vw, 18px));
    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;
    height: 100%;
    min-height: 0;
    border-radius: var(--ramaya-card-radius, 16px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid color-mix(in srgb, var(--tpm-lx-line) 65%, transparent);
    box-shadow: var(--ramaya-card-shadow, 0 8px 28px rgba(15, 23, 42, 0.05));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tpm-card:hover,
.tpm-card:focus-within {
    transform: translateY(-1px);
    box-shadow: var(--ramaya-card-shadow-hover, 0 14px 36px rgba(15, 23, 42, 0.08));
    border-color: color-mix(in srgb, var(--tpm-lx-line) 90%, transparent);
}

.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 footer + WA di luar overlay kartu */
.tpm-card--has-footer .tpm-card-mainlink {
    inset: 0 0 auto 0;
    height: calc(100% - var(--tpm-card-footer-h, 2.55rem));
}

.tpm-card--has-wa.tpm-card--has-footer .tpm-card-mainlink {
    height: calc(100% - var(--tpm-card-footer-h, 2.55rem) - 2.85rem);
}

.tpm-card--has-wa:not(.tpm-card--has-footer) .tpm-card-mainlink {
    inset: 0 0 auto 0;
    height: calc(100% - 2.85rem);
}

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

/* Ruang sisa grid stretch — di bawah konten, bukan di atas View Details */
.tpm-card::after {
    content: '';
    flex: 1 1 auto;
    min-height: 0;
    order: 10;
    pointer-events: none;
}

.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: 8px;
    padding: 10px 12px 12px;
    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: 10px 14px 0;
    flex: 0 0 auto;
}

.tpm-card-title {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.015em;
    font-size: var(--ramaya-card-title-size, 0.98rem);
    line-height: 1.35;
    color: var(--tpm-card-ink-soft, var(--tpm-lx-ink));
}

.tpm-card-excerpt {
    margin: 4px 0 0;
    color: var(--tpm-card-muted-soft, var(--tpm-lx-muted));
    line-height: 1.48;
    font-size: var(--ramaya-card-meta-size, 0.84rem);
    font-weight: 450;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -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-footer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0;
    padding: 2px 14px 10px;
    border-top: 0;
    background: transparent;
}

.tpm-card-view {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    text-decoration: none !important;
    color: var(--tpm-card-link-soft, var(--tpm-lx-accent)) !important;
    font-weight: 600;
    font-size: var(--ramaya-card-meta-size, 0.84rem);
    letter-spacing: 0.01em;
    transition: color 0.18s ease, gap 0.18s ease, opacity 0.18s ease;
}

.tpm-card-view:hover,
.tpm-card-view:focus-visible {
    color: color-mix(in srgb, var(--tpm-lx-accent) 88%, var(--tpm-lx-ink)) !important;
    outline: none;
    gap: 0.42rem;
    opacity: 0.95;
}

.tpm-card-view__arrow {
    font-size: 0.95em;
    line-height: 1;
    opacity: 0.75;
    font-weight: 500;
}

.tpm-card-chevron {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    text-decoration: none !important;
    color: color-mix(in srgb, var(--tpm-lx-ink) 48%, #94a3b8);
    background: color-mix(in srgb, var(--tpm-lx-ink) 4%, #f8fafc);
    border: 1px solid color-mix(in srgb, var(--tpm-lx-line) 55%, transparent);
    box-shadow: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tpm-card-chevron:hover,
.tpm-card-chevron:focus-visible {
    background: color-mix(in srgb, var(--tpm-lx-accent) 8%, #ffffff);
    border-color: color-mix(in srgb, var(--tpm-lx-accent) 18%, transparent);
    color: color-mix(in srgb, var(--tpm-lx-accent) 75%, var(--tpm-lx-ink));
    transform: none;
    outline: none;
}

.tpm-card-chevron__icon {
    display: block;
}

.tpm-card-wa {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    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: 1320px;
    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 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tpm-readmore__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--tpm-lx-ink, #334155);
    background: #fff;
    border: 1px solid var(--tpm-lx-line, #e8edf4);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 6px 18px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.tpm-readmore__toggle:hover,
.tpm-readmore__toggle:focus-visible {
    color: var(--tpm-lx-ink, #1e293b);
    background: #fff;
    border-color: color-mix(in srgb, var(--tpm-lx-accent, #15803d) 28%, var(--tpm-lx-line, #e8edf4));
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.06),
        0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.tpm-readmore__toggle[aria-expanded='true'] {
    background: color-mix(in srgb, var(--tpm-lx-accent, #15803d) 7%, #fff);
    border-color: color-mix(in srgb, var(--tpm-lx-accent, #15803d) 22%, var(--tpm-lx-line, #e8edf4));
}

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

.tpm-readmore__toggle:active {
    transform: translateY(0);
}

.tpm-readmore__toggle-label {
    display: inline-block;
}

.tpm-readmore__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}

.tpm-readmore__toggle-icon svg {
    display: block;
}

.tpm-readmore__toggle[aria-expanded='true'] .tpm-readmore__toggle-icon {
    transform: rotate(180deg);
}

.tpm-main-description {
    width: 100%;
}

.tpm-readmore__content {
    width: 100%;
}

/* Tema / Bootstrap: tombol read more bukan link biru */
.tpm-prose .tpm-readmore__toggle,
.tpm-entry-content .tpm-readmore__toggle,
.card-text .tpm-readmore__toggle,
.card-body .tpm-readmore__toggle,
.tpm-main-description .tpm-readmore__toggle,
a.tpm-readmore__toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    margin-top: 1rem !important;
    padding: 0.55rem 1.15rem !important;
    border-radius: 999px !important;
    font: inherit !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: var(--tpm-lx-ink, #334155) !important;
    background: #fff !important;
    border: 1px solid var(--tpm-lx-line, #e8edf4) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 6px 18px rgba(15, 23, 42, 0.06) !important;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer !important;
}

/* Bootstrap: jangan timpa gaya tombol read more */
.tpm-readmore .tpm-readmore__toggle.btn,
.tpm-readmore .tpm-readmore__toggle.btn-link {
    display: inline-flex !important;
    color: var(--tpm-lx-ink, #334155) !important;
    background: #fff !important;
    border: 1px solid var(--tpm-lx-line, #e8edf4) !important;
    border-radius: 999px !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 6px 18px rgba(15, 23, 42, 0.06) !important;
    text-decoration: none !important;
    padding: 0.55rem 1.15rem !important;
}

/*
 * 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: 0.85rem 0 0.45rem;
}

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

.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: 0.98rem;
    line-height: 1.48;
}

/* 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%, 180px), 1fr));
    gap: clamp(8px, 1.5vw, 12px);
    margin: 0.75rem 0 0.85rem;
}

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

.tpm-meta-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.85rem 0.78rem;
    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: 38px;
    height: 38px;
    flex: 0 0 38px;
    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-icon--region,
.tpm-bs-meta__icon--region {
    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='M3 6h18'/%3E%3Cpath d='M6 12h12'/%3E%3Cpath d='M10 18h4'/%3E%3Cpath d='M12 2v20'/%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-value--region .tpm-region-link,
.tpm-meta-value--region a {
    color: var(--tpm-lx-accent, var(--ramaya-link, #2c5f6b));
    font-weight: 600;
    text-decoration: none;
}

.tpm-meta-value--region .tpm-region-link:hover,
.tpm-meta-value--region a:hover {
    text-decoration: underline;
}

.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.15rem;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    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__grid:has(.tpm-inc-exc__col:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.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, 1.14fr) minmax(272px, 320px);
    gap: clamp(0.85rem, 2vw, 1.65rem);
    align-items: start;
    margin-top: 0.35rem;
}

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

.tpm-detail-split__main--compact {
    display: flex;
    flex-direction: column;
    gap: clamp(0.65rem, 1.2vw, 0.85rem);
}

.tpm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.tpm-section-head .tpm-section-title {
    margin: 0;
}

/* Baris ganda: galeri + highlights berdampingan */
.tpm-detail-duo {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(0.65rem, 1.2vw, 0.85rem);
    align-items: stretch;
}

.tpm-detail-duo > .tpm-section--highlights:only-child,
.tpm-detail-duo > .tpm-gallery-section-wrap:only-child {
    grid-column: 1 / -1;
}

/* Panel konten ringkas & premium di kolom utama */
.tpm-detail-split__main--compact > .tpm-section,
.tpm-detail-split__main--compact .tpm-detail-duo > .tpm-section,
.tpm-detail-split__main--compact .tpm-detail-duo > .tpm-gallery-section-wrap {
    margin: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--tpm-lx-line) 88%, transparent);
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(248, 250, 252, 0.9) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 10px 28px rgba(15, 23, 42, 0.045);
}

.tpm-detail-split__main--compact > .tpm-section--content {
    padding: 0.95rem 1rem 1rem;
}

.tpm-detail-split__main--compact .tpm-section-title,
.tpm-detail-split__main--compact .tpm-inc-exc__title {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.085em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--tpm-lx-muted) 90%, var(--tpm-lx-ink));
}

.tpm-detail-split__main--compact .tpm-section-body,
.tpm-detail-split__main--compact .tpm-gallery-section-body {
    min-width: 0;
}

.tpm-detail-split__main--compact .tpm-prose {
    font-size: 0.94rem;
    line-height: 1.52;
    color: color-mix(in srgb, var(--tpm-lx-ink) 84%, transparent);
}

.tpm-detail-split__main--compact .tpm-elegant-list li,
.tpm-detail-split__main--compact .tpm-inc-list li {
    padding: 0.22rem 0;
    font-size: 0.88rem;
    line-height: 1.38;
    gap: 0.45rem;
}

.tpm-detail-split__main--compact .tpm-elegant-list--accent ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.1rem 0.5rem;
}

.tpm-detail-split__main--compact .tpm-section--inc-exc {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.tpm-detail-split__main--compact .tpm-inc-exc__grid {
    gap: 0.6rem;
}

.tpm-detail-split__main--compact .tpm-inc-exc__col {
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--tpm-lx-line) 90%, transparent);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.92) 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.tpm-detail-split__main--compact .tpm-inc-exc__title {
    margin-bottom: 0.45rem;
}

.tpm-detail-duo .tpm-gallery-section-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.tpm-detail-duo .tpm-gallery-section-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.tpm-detail-duo .tpm-gallery-host,
.tpm-detail-duo .tpm-gallery-rotation-wrap {
    flex: 1 1 auto;
}

.tpm-detail-duo .tpm-gallery--collage {
    min-height: 220px;
}

@media (min-width: 641px) {
    .tpm-detail-split__main--compact .tpm-section--highlights .tpm-elegant-list--accent ul {
        grid-template-columns: 1fr;
    }
}

.tpm-detail-split__main--compact .tpm-faq-section .tpm-faq-item + .tpm-faq-item {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
}

.tpm-detail-split__main--compact .tpm-gallery-rotation-ui__label {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
}

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

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

    .tpm-detail-duo {
        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;
    }
}

.tpm-booking-premium {
    --tpm-book-accent: var(--ramaya-sea, var(--tpm-lx-accent));
    --tpm-book-accent-deep: var(--ramaya-sea-deep, color-mix(in srgb, var(--tpm-lx-accent) 78%, #0e1f29));
    --tpm-book-accent-soft: var(--ramaya-sea-soft, color-mix(in srgb, var(--tpm-lx-accent) 12%, #ffffff));
    --tpm-book-accent-mid: var(--ramaya-sea-mid, color-mix(in srgb, var(--tpm-lx-accent) 22%, #ffffff));
}

/* Form booking premium (klasik) */
.tpm-booking-premium--classic {
    --tpm-book-accent: var(--ramaya-sea, var(--tpm-lx-accent));
    --tpm-book-accent-deep: var(--ramaya-sea-deep, color-mix(in srgb, var(--tpm-lx-accent) 78%, #0e1f29));
    --tpm-book-accent-soft: var(--ramaya-sea-soft, color-mix(in srgb, var(--tpm-lx-accent) 12%, #ffffff));
    --tpm-book-accent-mid: var(--ramaya-sea-mid, color-mix(in srgb, var(--tpm-lx-accent) 22%, #ffffff));
    position: relative;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--tpm-book-accent-soft) 55%, #ffffff) 0%,
        #ffffff 42%
    );
    border: 1px solid color-mix(in srgb, var(--tpm-book-accent) 22%, var(--tpm-lx-line));
    border-radius: calc(var(--tpm-lx-radius) + 2px);
    box-shadow:
        0 22px 54px color-mix(in srgb, var(--tpm-book-accent-deep) 14%, transparent),
        0 0 0 1px color-mix(in srgb, var(--tpm-book-accent) 8%, transparent);
    overflow: hidden;
}

.tpm-booking-premium--classic::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--tpm-book-accent) 0%,
        color-mix(in srgb, var(--tpm-book-accent) 70%, var(--tpm-book-accent-deep)) 55%,
        var(--tpm-book-accent-deep) 100%
    );
    pointer-events: none;
}

.tpm-booking-premium .tpm-booking-premium__head {
    position: relative;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--tpm-book-accent-soft) 92%, #ffffff) 0%,
        color-mix(in srgb, var(--tpm-book-accent-mid) 35%, #ffffff) 100%
    );
    border-bottom: 1px solid color-mix(in srgb, var(--tpm-book-accent) 16%, var(--tpm-lx-line));
    padding: 1.15rem 1.25rem 1.2rem;
}

.tpm-booking-premium__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.45rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tpm-book-accent-deep);
    background: color-mix(in srgb, var(--tpm-book-accent-soft) 88%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--tpm-book-accent) 24%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tpm-booking-premium__eyebrow::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--tpm-book-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tpm-book-accent) 28%, transparent);
}

.tpm-booking-premium__title {
    margin: 0;
    font-weight: 850;
    font-size: clamp(1rem, 0.35vw + 0.92rem, 1.12rem);
    line-height: 1.35;
    letter-spacing: -0.025em;
    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.15rem 1.15rem 1.35rem;
}

.tpm-booking-premium--classic [data-tpm-pax-picker],
.tpm-booking-premium--classic .tpm-booking-premium__field:has(> .tpm-booking-premium__stepper:not(.tpm-pax-row__stepper)),
.tpm-booking-premium--classic .tpm-booking-premium__total-field {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--tpm-book-accent-soft) 72%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--tpm-book-accent) 18%, var(--tpm-lx-line));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tpm-booking-premium--classic .tpm-booking-premium__total-field {
    margin-bottom: 1.05rem;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--tpm-book-accent-soft) 95%, #ffffff) 0%,
        color-mix(in srgb, var(--tpm-book-accent-mid) 40%, #ffffff) 100%
    );
}

.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;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tpm-booking-premium__total-amount {
    display: block;
    font-size: clamp(1.55rem, 4vw, 1.95rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--tpm-book-accent-deep);
    font-variant-numeric: tabular-nums;
}

.tpm-booking-premium__total-line {
    margin-top: 0.35rem !important;
    font-size: 0.82rem !important;
    font-weight: 600;
    color: color-mix(in srgb, var(--tpm-book-accent-deep) 55%, var(--tpm-lx-muted)) !important;
}

.tpm-booking-premium__input,
.tpm-booking-premium__textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--tpm-lx-line) 88%, var(--tpm-book-accent) 12%);
    border-radius: 11px;
    padding: 0.62rem 0.78rem;
    font: inherit;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tpm-booking-premium__input:focus,
.tpm-booking-premium__textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--tpm-book-accent) 55%, var(--tpm-lx-line));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tpm-book-accent) 18%, transparent);
}

.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 color-mix(in srgb, var(--tpm-book-accent) 22%, var(--tpm-lx-line));
    border-radius: 11px;
    overflow: hidden;
    max-width: 16rem;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Persons rows (Adults / Children / Infants) — selalu tampil */
.tpm-pax-rows {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.tpm-pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tpm-pax-row__info {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    flex: 1 1 auto;
}

.tpm-pax-row__name {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--tpm-lx-text);
    line-height: 1.3;
}

.tpm-pax-row__desc {
    font-size: 0.78rem;
    color: var(--tpm-lx-muted);
    line-height: 1.35;
}

.tpm-pax-row__price {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--tpm-book-accent-deep, var(--tpm-lx-accent));
    line-height: 1.35;
}

.tpm-pax-row__stepper {
    flex: 0 0 auto;
    max-width: 7.5rem;
}

.tpm-pax-row--adult-only .tpm-pax-row__info {
    justify-content: center;
}

.tpm-pax-row--adult-only .tpm-pax-row__price {
    font-size: 0.98rem;
    color: var(--tpm-book-accent-deep, var(--tpm-lx-accent));
}

.tpm-pax-row__val {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0.55rem 0;
    background: transparent;
}

.tpm-booking-premium__step-btn {
    flex: 0 0 2.4rem;
    border: 0;
    background: color-mix(in srgb, var(--tpm-book-accent-soft) 75%, #ffffff);
    color: var(--tpm-book-accent-deep, var(--tpm-lx-ink));
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

.tpm-booking-premium__step-btn:hover {
    background: color-mix(in srgb, var(--tpm-book-accent) 18%, #ffffff);
    color: var(--tpm-book-accent-deep, var(--tpm-lx-ink));
}

.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-wrap {
    margin-top: 0.35rem;
}

.tpm-booking-premium__submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.95rem 1.1rem;
    border: 0;
    border-radius: 13px;
    font-weight: 850;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--tpm-book-accent, var(--tpm-lx-accent)) 0%,
        var(--tpm-book-accent-deep, color-mix(in srgb, var(--tpm-lx-accent) 78%, #0e1f29)) 100%
    );
    box-shadow:
        0 12px 28px color-mix(in srgb, var(--tpm-book-accent) 34%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.tpm-booking-premium__submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow:
        0 16px 34px color-mix(in srgb, var(--tpm-book-accent) 38%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.tpm-booking-premium__trust {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.45;
    font-weight: 600;
    color: color-mix(in srgb, var(--tpm-book-accent-deep) 52%, var(--tpm-lx-muted));
}

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

@media (prefers-reduced-motion: reduce) {
    .tpm-booking-premium__submit:hover,
    .tpm-booking-premium .btn.btn-primary:hover {
        transform: none;
    }
}

/* Bootstrap button inside booking card (when $bootstrap layout is enabled) */
.tpm-booking-premium .btn.btn-primary {
    border-color: transparent !important;
    background: linear-gradient(
        135deg,
        var(--tpm-book-accent, var(--tpm-lx-accent)) 0%,
        var(--tpm-book-accent-deep, color-mix(in srgb, var(--tpm-lx-accent) 78%, #0e1f29)) 100%
    ) !important;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--tpm-book-accent) 34%, transparent) !important;
}
.tpm-booking-premium .btn.btn-primary:hover,
.tpm-booking-premium .btn.btn-primary:focus {
    filter: brightness(1.04);
    transform: translateY(-1px);
}
.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: 0.55rem;
    }

    .tpm-detail-split__main--compact .tpm-elegant-list--accent ul {
        grid-template-columns: 1fr;
    }

    /* 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;
}

