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

:root {
    --tpm-lx-ink: #0f172a;
    --tpm-lx-muted: #667085;
    --tpm-lx-line: 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: #1f6f68;
    --tpm-lx-danger: #b42318;
    --tpm-lx-radius: 16px;
    --tpm-lx-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.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 */
.tpm-detail {
    max-width: 1140px;
    width: min(1140px, 100%);
    margin-inline: auto;
    box-sizing: border-box;
    padding-inline: clamp(16px, 4vw, 28px);
    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;
}

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

.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: clamp(16px, 4vw, 28px);
    padding-bottom: max(clamp(16px, 4vw, 28px), 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);
}

.tpm-elegant-list--accent li::before,
.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");
}

.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");
}

/* 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: var(--tpm-lx-accent);
}

/* Gallery */
.tpm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}
.tpm-gallery-item {
    margin: 0;
    border-radius: calc(var(--tpm-lx-radius) - 6px);
    overflow: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.tpm-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* 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) {
    .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) {
    .tpm-grid {
        --tpm-cols: 1;
    }
}

