/* Visual refinements kept separate from the page structure. */
.v2-akap-detail-meta span { font-size: .8rem; }
.v2-akap-detail-route-title { grid-template-columns: 2.2rem minmax(0, 1fr) 5.5rem 2.2rem minmax(0, 1fr); gap: .48rem; color: #223f69; font-size: .94rem; }
.v2-akap-detail-route-title > span small { font-size: .78rem; }
.v2-akap-detail-route-title > i { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #f0f5ff; color: #2c66d8; font-size: 1.05rem; }
.v2-akap-detail-route-title > i:nth-of-type(2) { position: relative; width: 2.7rem; height: 2.7rem; }
.v2-akap-detail-route-title > i:nth-of-type(2)::before, .v2-akap-detail-route-title > i:nth-of-type(2)::after { position: absolute; top: 50%; width: 2.2rem; border-top: 2px dashed #d9e2ef; content: ""; }
.v2-akap-detail-route-title > i:nth-of-type(2)::before { right: calc(100% + .4rem); }
.v2-akap-detail-route-title > i:nth-of-type(2)::after { left: calc(100% + .4rem); }
.v2-akap-detail-facts span { font-size: .78rem; }.v2-akap-detail-facts strong { font-size: .9rem; }.v2-akap-detail-facts small { font-size: .76rem; }
.v2-akap-detail-section > p { font-size: .84rem; }
.v2-akap-detail-facilities span { gap: .45rem; padding: .45rem .5rem; font-size: .76rem; }.v2-akap-detail-facilities i { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: .42rem; background: #eff4ff; }
.v2-akap-detail-booking label { font-size: .78rem; }.v2-akap-detail-booking select, .v2-akap-detail-booking input { min-height: 2.65rem; padding-right: 2rem; font-size: .82rem; }.v2-akap-detail-booking select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23315fca' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right .25rem center; background-repeat: no-repeat; cursor: pointer; }
.v2-akap-gallery-modal, .v2-akap-route-modal { overflow: hidden; border: 0; border-radius: 1.15rem; box-shadow: 0 24px 70px rgba(15, 34, 67, .25); }.v2-akap-gallery-modal .modal-header, .v2-akap-route-modal .modal-header { padding: 1rem 1.2rem; border-bottom-color: #e7edf5; }.v2-akap-gallery-modal .modal-body { background: radial-gradient(circle at top, #253f68, #101d31 70%); }.v2-akap-gallery-modal .carousel-control-prev, .v2-akap-gallery-modal .carousel-control-next { width: 12%; }.v2-akap-gallery-modal .carousel-control-prev-icon, .v2-akap-gallery-modal .carousel-control-next-icon { width: 2.5rem; height: 2.5rem; padding: .7rem; border-radius: 50%; background-color: rgba(255, 255, 255, .18); background-size: 42%; }.v2-akap-route-modal .modal-body { max-height: min(65vh, 34rem); overflow-y: auto; padding: 1rem 1.2rem 1.3rem; background: linear-gradient(145deg, #fbfdff, #f4f8ff); }
.v2-akap-gallery-modal .modal-header { display: flex; align-items: center; gap: .7rem; }.v2-akap-gallery-modal .modal-header h2 { font-size: 1.1rem; }.v2-akap-gallery-eyebrow { display: inline-flex; align-items: center; gap: .3rem; color: #5f7595; font-size: .66rem; font-weight: 750; }.v2-akap-gallery-eyebrow i { color: #2d67d8; }.v2-akap-gallery-count { margin-left: auto; padding: .32rem .55rem; border-radius: 999px; background: #edf4ff; color: #2f66d2; font-size: .68rem; font-weight: 750; }.v2-akap-gallery-modal .btn-close { margin-left: .15rem; }.v2-akap-gallery-modal .carousel-item img { border-radius: .8rem; box-shadow: 0 16px 42px rgba(0, 0, 0, .25); }
@media (max-width: 760px) { .v2-akap-detail-route-title { grid-template-columns: 1.8rem minmax(0, 1fr) 3.4rem 1.8rem minmax(0, 1fr); font-size: .78rem; }.v2-akap-detail-route-title > span small { font-size: .67rem; }.v2-akap-detail-route-title > i:nth-of-type(2)::before, .v2-akap-detail-route-title > i:nth-of-type(2)::after { width: 1.1rem; } }

/* Keep AKAP's gallery composition aligned with Bus Pariwisata. */
.v2-akap-detail :is(h1, h2, h3, .v2-akap-trip-location-text strong, .v2-akap-trip-info-item strong, .v2-akap-booking-heading h2, .v2-akap-passenger-info strong, .v2-akap-detail-section h2) { font-weight: 600; }
.v2-akap-detail-summary, .v2-akap-detail-booking { border-color: rgba(220, 229, 240, .9); border-radius: 20px; background: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%); box-shadow: 0 10px 28px rgba(28, 54, 95, .04); }
.v2-akap-detail-booking { padding: 1rem; }
.v2-akap-detail-section { padding: 1.2rem .2rem; border-bottom-color: #edf1f6; }
.v2-akap-detail-facilities span { border-color: #e8eef6; border-radius: .75rem; background: #fcfdff; font-weight: 600; }
.v2-akap-detail-gallery { grid-template-columns: minmax(0, 1.65fr) minmax(320px, .82fr); gap: 12px; height: 430px; }
.v2-akap-detail-gallery-main, .v2-akap-detail-gallery-grid > * { position: relative; overflow: hidden; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 20px; background: #e8eef5; color: #fff; cursor: zoom-in; box-shadow: none; }
.v2-akap-detail-gallery-grid > * { border-radius: 16px; }
.v2-akap-detail-gallery button:hover img { transform: scale(1.025); filter: brightness(.97); }
.v2-akap-detail-gallery-caption { right: 14px; bottom: 13px; left: auto; z-index: 2; display: block; max-width: calc(100% - 28px); padding: 0; overflow: hidden; border: 0; border-radius: 0; background: none; color: #fff; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: none; }
.v2-akap-detail-gallery-main .v2-akap-detail-gallery-caption { right: 14px; bottom: 13px; left: auto; font-size: 12px; }
.v2-akap-detail-gallery-main::after, .v2-akap-detail-gallery-grid button:not(.v2-akap-detail-gallery-more)::after { position: absolute; right: 0; bottom: 0; left: 0; height: 38%; background: linear-gradient(to top, rgba(10, 27, 48, .52), transparent); pointer-events: none; content: ""; }
.v2-akap-detail-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v2-akap-detail-gallery-grid > button:only-child { grid-row: auto; grid-column: auto; }
.v2-akap-detail-gallery-grid > button:first-child:nth-last-child(2), .v2-akap-detail-gallery-grid > button:first-child:nth-last-child(2) ~ button, .v2-akap-detail-gallery-grid > button:nth-child(3):last-child { grid-column: auto; }
.v2-akap-detail-gallery-empty { grid-column: 1 / -1; grid-row: 1 / -1; padding: 20px; border: 1px dashed #d5dfeb; border-radius: 16px; background: #f1f5f9; color: #71829a; font-size: 13px; text-align: center; }
.v2-akap-detail-gallery-more { position: relative; right: auto; bottom: auto; z-index: auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 78px; padding: 0; border: 1px solid rgba(255, 255, 255, .14) !important; border-radius: 16px; background: linear-gradient(135deg, rgba(29, 60, 103, .97), rgba(48, 94, 159, .92)) !important; font-size: 12px; font-weight: 700; }
.v2-akap-detail-gallery-more span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 11px; }
@media (max-width: 760px) { .v2-akap-detail-gallery { grid-template-columns: 1fr; height: auto; }.v2-akap-detail-gallery-main { height: 270px; }.v2-akap-detail-gallery-grid { height: auto; grid-template-rows: 138px 80px; } }
@media (max-width: 480px) { .v2-akap-detail-gallery-main { height: 235px; }.v2-akap-detail-gallery-grid { grid-template-rows: 118px 70px; } }

body.is-gallery-open { overflow: hidden; }
.v2-akap-gallery-lightbox { position: fixed; inset: 0; width: min(1120px, calc(100% - 40px)); max-width: none; max-height: calc(100vh - 36px); margin: auto; padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; background: #101722; color: #fff; box-shadow: 0 32px 90px rgba(0, 0, 0, .38); }
.v2-akap-gallery-lightbox::backdrop { background: rgba(7, 13, 22, .88); backdrop-filter: blur(8px); }
.v2-akap-gallery-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.v2-akap-gallery-toolbar > span { color: rgba(255, 255, 255, .66); font-size: 12px; font-weight: 600; }
.v2-akap-gallery-toolbar button, .v2-akap-gallery-nav { display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; }
.v2-akap-gallery-toolbar button { width: 36px; height: 36px; border-radius: 9px; background: transparent; color: rgba(255, 255, 255, .85); transition: background .18s ease; }
.v2-akap-gallery-toolbar button:hover { background: rgba(255, 255, 255, .08); }
.v2-akap-gallery-stage { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; min-height: 0; padding: 12px 0 16px; }
.v2-akap-gallery-stage figure { display: grid; place-items: center; min-width: 0; margin: 0; }
.v2-akap-gallery-stage img { display: block; width: 100%; max-width: 960px; max-height: calc(100vh - 155px); border-radius: 12px; object-fit: contain; }
.v2-akap-gallery-stage figcaption { width: 100%; padding-top: 11px; color: rgba(255, 255, 255, .68); font-size: 12px; text-align: center; }
.v2-akap-gallery-nav { width: 42px; height: 50px; justify-self: center; border-radius: 10px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .7); font-size: 18px; transition: background .18s ease, color .18s ease; }
.v2-akap-gallery-nav:hover { background: rgba(255, 255, 255, .11); color: #fff; }
@media (max-width: 700px) { .v2-akap-gallery-lightbox { width: calc(100% - 18px); max-height: calc(100vh - 18px); border-radius: 14px; }.v2-akap-gallery-stage { grid-template-columns: 40px minmax(0, 1fr) 40px; }.v2-akap-gallery-nav { width: 32px; height: 44px; }.v2-akap-gallery-stage img { max-height: calc(100vh - 155px); } }
