.tbid-tt-package {
    max-width: 1240px;
    margin: auto;
    padding: clamp(22px, 4vw, 56px) clamp(16px, 4vw, 36px);
    color: #16202c;
    overflow-wrap: anywhere;
}
.tbid-tt-package h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.2; }
.tbid-tt-banner {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    margin-bottom: clamp(20px, 4vw, 36px);
    padding: clamp(20px, 5vw, 50px);
    overflow: hidden;
    border-radius: 14px;
    background: #132c44;
    color: #fff;
}
.tbid-tt-banner--photo { min-height: clamp(220px, 31vw, 420px); }
.tbid-tt-banner .tbid-tt-banner-image,
.tbid-tt-banner--photo::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.tbid-tt-banner .tbid-tt-banner-image { z-index: -2; object-fit: cover; }
.tbid-tt-banner--photo::before {
    content: "";
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 23, 36, .42), rgba(10, 23, 36, .90));
}
.tbid-tt-banner h1 { color: inherit; margin: 0; }
.tbid-tt-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 14px 0 0;
}
.tbid-tt-summary > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0 7px;
    padding: 5px 12px;
    border-radius: 7px;
    background: #fff;
    color: #16202c;
    font-size: 14px;
    line-height: 1.45;
}
.tbid-tt-summary dt { font-weight: 700; }
.tbid-tt-summary dd { margin: 0; }
.tbid-tt-package h2 { font-size: clamp(21px, 3vw, 27px); line-height: 1.25; }
.tbid-tt-package h3 { font-size: 18px; margin-bottom: .5em; }
.tbid-tt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    gap: clamp(20px, 4vw, 44px);
    align-items: start;
}
.tbid-tt-content section + section { margin-top: 32px; }
.tbid-tt-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tbid-tt-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.tbid-tt-facilities { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.tbid-tt-facilities > div, .tbid-tt-price { background: #f3f8fd; border: 1px solid #dce8f3; border-radius: 12px; padding: 18px; }
.tbid-tt-facilities ul { list-style: none; padding: 0; margin: 0; }
.tbid-tt-facilities li { display: grid; grid-template-columns: 1.1em minmax(0, 1fr); gap: 7px; }
.tbid-tt-facilities li + li { margin-top: 6px; }
.tbid-tt-facility-icon { font-weight: 800; text-align: center; }
.tbid-tt-facility-included .tbid-tt-facility-icon { color: #167544; }
.tbid-tt-facility-excluded .tbid-tt-facility-icon { color: #b4232d; }
.tbid-tt-plan { padding-left: 1.55em; }
.tbid-tt-plan li { padding: 10px 0; border-bottom: 1px solid #dce8f3; }
.tbid-tt-plan li::marker, .tbid-tt-plan span { color: #005a9e; font-weight: 700; }
.tbid-tt-plan p { margin: 0; }
.tbid-tt-price { position: sticky; top: 120px; }
.admin-bar .tbid-tt-price { top: 152px; }
.tbid-tt-price .tbid-tt-amount { font-size: clamp(23px, 3vw, 31px); font-weight: 750; line-height: 1.2; }
.tbid-tt-amount small { display: block; font-size: 15px; font-weight: 500; }
.tbid-tt-price .tbid-tt-contact {
    display: block;
    padding: 12px;
    border-radius: 8px;
    background: #005da8;
    color: #fff;
    font-weight: 700;
    text-align: center;
}
.tbid-tt-price .tbid-tt-contact:hover, .tbid-tt-price .tbid-tt-contact:focus-visible { background: #004880; color: #fff; }
@media (max-width: 820px) {
    .tbid-tt-layout { grid-template-columns: minmax(0, 1fr); }
    .tbid-tt-price, .admin-bar .tbid-tt-price { position: static; grid-row: 1; }
    .tbid-tt-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Teks judul di atas foto harus mengalahkan warna heading dari tema. */
#tbid-tt-package .tbid-tt-banner .tbid-tt-banner-content > h1 {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-size: clamp(36px, 5.5vw, 64px) !important;
    line-height: 1.12;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.tbid-tt-gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 16 / 7; }
.tbid-tt-gallery > a { display: block; min-height: 0; overflow: hidden; border-radius: 8px; }
.tbid-tt-gallery > a:first-child { grid-column: 1; grid-row: 1 / 3; }
.tbid-tt-gallery img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.tbid-tt-gallery[data-count="1"] { grid-template-columns: 1fr; }
.tbid-tt-gallery[data-count="2"] { grid-template-columns: 2fr 1fr; }
.tbid-tt-gallery[data-count="2"] > a:last-child { grid-row: 1 / 3; }
.tbid-tt-gallery[data-count="3"] { grid-template-columns: 2fr 1fr; }
.tbid-tt-gallery[data-count="4"] > a:last-child { grid-column: 2 / 4; }
.tbid-tt-gallery-more { margin-top: 12px; min-height: 44px; cursor: pointer; padding: 10px 16px; border: 1px solid #005da8; border-radius: 8px; color: #005da8; background: #fff; font-weight: 700; }
.tbid-tt-gallery-more[hidden] { display: none; }
.tbid-tt-lightbox { width: min(1000px, 94vw); height: 90dvh; max-height: 90vh; padding: 0; border: 0; border-radius: 12px; background: #fff; color: #16202c; overflow: auto; }
.tbid-tt-lightbox:not([open]) { display: none; }
.tbid-tt-lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.tbid-tt-lightbox-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #fff; border-bottom: 1px solid #dce8f3; }
.tbid-tt-lightbox-head h2 { margin: 0; }
.tbid-tt-lightbox-head button { width: 44px; height: 44px; font-size: 30px; color: #16202c; background: #eef3f8; border: 0; border-radius: 8px; cursor: pointer; }
.tbid-tt-lightbox-photos { padding: 20px; }
.tbid-tt-lightbox figure { margin: 0 0 24px; scroll-margin-top: 85px; }
.tbid-tt-lightbox img { display: block; width: 100%; height: auto; }
.tbid-tt-lightbox figcaption { margin-top: 6px; }
.tbid-tt-plan { padding: 0; }
.tbid-tt-plan details { border: 1px solid #dce8f3; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.tbid-tt-plan summary { padding: 16px; cursor: pointer; font-weight: 700; background: #f3f8fd; list-style-position: inside; }
.tbid-tt-plan summary .tbid-tt-session-time { color: #005a9e; margin-right: 10px; }
.tbid-tt-session { padding: 18px; }
.tbid-tt-session--photo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tbid-tt-session img { width: 100%; height: auto; border-radius: 8px; }
.tbid-tt-session p { margin: 0; }
@media (max-width: 600px) {
    .tbid-tt-gallery { aspect-ratio: 4 / 3; gap: 6px; }
    .tbid-tt-session--photo { grid-template-columns: minmax(0, 1fr); }
    #tbid-tt-package .tbid-tt-banner .tbid-tt-banner-content > h1 { font-size: clamp(34px, 8vw, 44px) !important; }
}

.tbid-tt-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tbid-tt-package-card { padding: 14px; border: 2px solid #dce8f3; border-radius: 12px; background: #fff; min-width: 0; }
.tbid-tt-package-card.is-selected { border-color: #0064ad; background: #f3f8fd; box-shadow: 0 0 0 2px rgba(0,100,173,.12); }
.tbid-tt-package-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.tbid-tt-package-card h4 { font-size: 16px; margin: 16px 0 8px; }
.tbid-tt-card-price { font-size: 24px; line-height: 1.2; font-weight: 750; }
.tbid-tt-card-price small { display: block; font-size: 15px; font-weight: 500; }
.tbid-tt-card-list { padding: 0; margin: 0; list-style: none; }
.tbid-tt-card-list li { display: grid; grid-template-columns: 1.1em minmax(0,1fr); gap: 7px; margin-bottom: 6px; }
.tbid-tt-package-choice { display: flex; align-items: center; gap: 8px; padding: 12px; min-height: 48px; margin-top: 18px; border: 1px solid #0064ad; border-radius: 8px; color: #005da8; font-weight: 700; cursor: pointer; }
.tbid-tt-package-choice:focus-within { outline: 2px solid #005da8; outline-offset: 3px; }
.tbid-tt-package-choice input { width: 20px; height: 20px; accent-color: #005da8; flex-shrink: 0; }
#tbid-tt-package .tbid-tt-package-wa {
    display: flex; justify-content: center; align-items: center;
    width: 100%; min-height: 46px; margin-top: 10px; padding: 11px 12px;
    border: 1px solid #146c3e; border-radius: 6px;
    background: #167544; color: #fff; text-decoration: none;
    text-align: center; font-weight: 700; line-height: 1.4;
}
#tbid-tt-package .tbid-tt-package-wa:hover { background: #105d35; color: #fff; }
#tbid-tt-package .tbid-tt-package-wa:focus-visible { outline: 3px solid #005da8; outline-offset: 3px; }
.tbid-tt-card-minimum { margin: 8px 0 12px; font-size: 14px; color: #16202c; }
[data-tbid-selected-name] { font-weight: 700; }

.tbid-tt-package-card { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.tbid-tt-package-card:only-child { grid-column: 1 / -1; }
@media (max-width: 600px) { .tbid-tt-packages { grid-template-columns: minmax(0, 1fr); } }

/* Keep nested content, controls and images within narrow screens. */
#tbid-tt-package, #tbid-tt-package *, #tbid-tt-package *::before, #tbid-tt-package *::after { box-sizing: border-box; }
.tbid-tt-content, .tbid-tt-banner-content, .tbid-tt-price, .tbid-tt-session > * { min-width: 0; }
.tbid-tt-content img, .tbid-tt-content video, .tbid-tt-content iframe { max-width: 100%; }
.tbid-tt-content img { height: auto; }
.tbid-tt-content .tbid-tt-gallery img { height: 100%; }
.tbid-tt-content .wp-block-table { max-width: 100%; overflow-x: auto; }
.tbid-tt-content pre { max-width: 100%; overflow-x: auto; }
.tbid-tt-summary > div { max-width: 100%; }
.tbid-tt-lightbox-head { gap: 12px; }
.tbid-tt-lightbox-head button { flex: 0 0 44px; }
@media (max-width: 600px) {
    .tbid-tt-package { padding-inline: 16px; }
    .tbid-tt-price, .tbid-tt-package-card, .tbid-tt-session { padding: 14px; }
    .tbid-tt-banner { padding: 20px 16px; }
    .tbid-tt-lightbox-photos { padding: 12px; }
}

/* The package heading groups the details visitors compare first. */
#tbid-tt-package .tbid-tt-card-heading { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #dce8f3; }
#tbid-tt-package .tbid-tt-card-heading h3 { color: #0090ff; font-size: 22px; line-height: 1.25; font-weight: 800; margin: 0 0 12px; }
#tbid-tt-package .tbid-tt-card-heading .tbid-tt-card-price { color: #16202c; font-size: 26px; margin: 0 0 10px; font-weight: 800; }
#tbid-tt-package .tbid-tt-card-heading .tbid-tt-card-minimum { margin: 0 0 10px; }
#tbid-tt-package .tbid-tt-card-caption { margin: 0; font-size: 14px; line-height: 1.55; font-weight: 600; color: #16202c; }
