/* File: css/layout.css */

/* ======================================================================== */
/* BLOK       : KONTAINER MASTER SHELL & SISTEM GRID MULTI-DEVICE           */
/* FUNGSI     : Mengatur pembungkus utama, batas lebar kanvas & margin auto */
/* ARAH/RUTE  : Fondasi tata letak fluid seluruh halaman public website     */
/* ======================================================================== */
#gta-master-panel {
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  background-color: var(--gta-bg-canvas, #070D1E);
  display: flex;
  flex-direction: column;
}

.gta-container {
  width: 100%;
  max-width: 1200px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.gta-container-narrow {
  width: 100%;
  max-width: 850px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.gta-safe-node {
  width: 100%;
  box-sizing: border-box;
}

/* ======================================================================== */
/* BLOK       : HEADER ATAS DUAL-STATE SCROLL-MORPHING                      */
/* FUNGSI     : Bilah navigasi atas menempel statis/sticky dengan morphing  */
/* ARAH/RUTE  : Bagian paling atas layar (<header id="my-sticky-header">)    */
/* ======================================================================== */
.gta-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gta-border, #334155);
  transition: transform 0.25s ease, background-color 0.25s ease;
  width: 100%;
}

.gta-sticky-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 16px;
  box-sizing: border-box;
}

.gta-logo-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.gta-logo-title {
  font-size: 13px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gta-search-bar-wrap {
  position: relative;
  padding: 0 16px 10px 16px;
  width: 100%;
  box-sizing: border-box;
}

.gta-search-icon-fixed {
  position: absolute;
  left: 28px;
  top: 11px;
  color: var(--gta-cyan, #00E5FF);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gta-search-input {
  width: 100%;
  height: 38px;
  border-radius: var(--gta-radius-input, 16px);
  background-color: var(--gta-bg-panel, #151E36);
  border: 1px solid var(--gta-border, #334155);
  padding: 0 16px 0 38px;
  color: #FFFFFF;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
  .gta-sticky-brand-row {
    height: 64px;
    padding: 0 24px;
  }

  .gta-search-bar-wrap {
    padding: 0 24px 12px 24px;
  }
}

/* ======================================================================== */
/* BLOK       : ROTATOR FLASH BANNER VIEWPORT 16:9                          */
/* FUNGSI     : Wadah rotasi gambar slider promosi rasio 16:9 terkunci      */
/* ARAH/RUTE  : Section 1 pada beranda index.html                           */
/* ======================================================================== */
.gta-banner-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--gta-radius-card, 24px);
  overflow: hidden;
  border: 1px solid var(--gta-border, #334155);
  background-color: var(--gta-bg-container, #0F172A);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .gta-banner-viewport {
    max-height: 420px;
    aspect-ratio: auto;
    height: 380px;
  }
}

.gta-banner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  box-sizing: border-box;
}

.gta-banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.gta-banner-gradient-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 30, 0.1) 0%, rgba(7, 13, 30, 0.88) 100%);
  pointer-events: none;
}

.gta-banner-content-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gta-banner-slot-dots {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gta-banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease, border-radius 0.25s ease;
}

.gta-banner-dot.active {
  width: 18px;
  border-radius: 3px;
  background-color: var(--gta-cyan, #00E5FF);
}

/* ======================================================================== */
/* BLOK       : DAFTAR KAPSUL HORIZONTAL BEBAS SCROLLBAR                    */
/* FUNGSI     : Wadah scroll sentuh untuk 6 zona Asia & tema narasi          */
/* ARAH/RUTE  : Section 2 beranda & filter halaman explore.html             */
/* ======================================================================== */
.gta-tag-scroll-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.gta-tag-scroll-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ======================================================================== */
/* BLOK       : KONTROL UKURAN TERKUNCI 5 PILAR LAYANAN                     */
/* FUNGSI     : Mengunci ukuran kotak pilar agar tidak berubah saat i18n aktif*/
/* ARAH/RUTE  : Section 3 beranda index.html & filter pilar explore.html    */
/* ======================================================================== */
.gta-pillar-viewport {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  box-sizing: border-box;
}

.gta-pillar-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.gta-pillar-row {
  display: flex;
  gap: 8px;
  width: max-content;
  box-sizing: border-box;
}

.gta-pillar-card {
  flex: 0 0 72px;
  width: 72px;
  height: 82px;
  background-color: var(--gta-bg-container, #0F172A);
  border: 1px solid var(--gta-border, #334155);
  border-radius: 16px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.gta-pillar-card .pillar-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--gta-radius-btn, 12px);
  background-color: var(--gta-bg-panel, #151E36);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gta-cyan, #00E5FF);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.gta-pillar-card span {
  font-size: 9px;
  font-weight: 800;
  color: var(--gta-text-secondary, #94A3B8);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 64px;
  display: block;
}

@media (min-width: 768px) {
  .gta-pillar-viewport {
    overflow-x: visible;
  }

  .gta-pillar-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .gta-pillar-card {
    flex: 1 1 auto;
    width: 100%;
    height: 88px;
  }

  .gta-pillar-card span {
    max-width: 100%;
    font-size: 10px;
  }
}

/* ======================================================================== */
/* BLOK       : ASYMMETRIC OFFSET GRID KATALOG REKOMENDASI                  */
/* FUNGSI     : Grid 2 kolom mobile dengan offset 24px / 4 kolom desktop    */
/* ARAH/RUTE  : Section 4 beranda index.html & kisi penawaran booking       */
/* ======================================================================== */
.gta-offset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.gta-offset-col-left,
.gta-offset-col-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .gta-offset-col-right {
    transform: translateY(24px);
  }
}

@media (min-width: 768px) {
  .gta-offset-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .gta-offset-col-left,
  .gta-offset-col-right {
    display: contents;
    transform: none !important;
  }
}

/* ======================================================================== */
/* BLOK       : KISI PROMO FLASHSALE 24 JAM & DESTINASI TILES EXPLORE       */
/* FUNGSI     : Susunan ubin kartu gambar berbingkai rasio tetap            */
/* ARAH/RUTE  : Halaman explore.html & marketplace booking                  */
/* ======================================================================== */
.gta-promo-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.gta-promo-grid::-webkit-scrollbar {
  display: none;
}

.gta-promo-tile {
  flex: 0 0 120px;
  height: 80px;
  border-radius: var(--gta-radius-input, 16px);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--gta-border, #334155);
  cursor: pointer;
  box-sizing: border-box;
}

.gta-promo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gta-promo-tile .promo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 30, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  text-align: center;
}

.gta-promo-tile .promo-overlay span {
  font-size: 11px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gta-explore-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.gta-explore-tile-full {
  grid-column: span 2;
  height: 90px;
}

/* ======================================================================== */
/* BLOK       : TATA LETAK SUBKATEGORI & HEADER STICKY 3-LAPIS (EXPLORE)     */
/* FUNGSI     : Header berjenjang lengket saat eksplorasi wilayah digulir    */
/* ARAH/RUTE  : Halaman pages/explore.html                                  */
/* ======================================================================== */
.gta-sticky-layer-1 {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gta-border, #334155);
}

.gta-sticky-layer-2 {
  position: sticky;
  top: 54px;
  z-index: 39;
  background-color: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gta-border-subtle, rgba(255, 255, 255, 0.08));
}

.gta-sticky-layer-3 {
  position: sticky;
  top: 106px;
  z-index: 38;
  background-color: rgba(7, 13, 30, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gta-divider, #1E293B);
}

@media (min-width: 768px) {
  .gta-sticky-layer-1,
  .gta-sticky-layer-2,
  .gta-sticky-layer-3 {
    position: static;
  }
}

.gta-subcat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.gta-subcat-bar::-webkit-scrollbar {
  display: none;
}

/* ======================================================================== */
/* BLOK       : TATA LETAK SPLIT 65/35 DESKTOP (KERANJANG & CHECKOUT)       */
/* FUNGSI     : Membagi 1 kolom mobile & 65% inventaris / 35% sticky desktop*/
/* ARAH/RUTE  : Halaman pages/cart.html & pages/booking.html                */
/* ======================================================================== */
.gta-split-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.gta-split-main {
  width: 100%;
  box-sizing: border-box;
}

.gta-split-aside {
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .gta-split-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .gta-split-main {
    flex: 1 1 65%;
    max-width: 65%;
  }

  .gta-split-aside {
    flex: 1 1 35%;
    max-width: 35%;
    position: sticky;
    top: 80px;
  }
}

/* ======================================================================== */
/* BLOK       : TATA LETAK NASKAH EDITORIAL PEMBACA ERGONOMIS 850PX         */
/* FUNGSI     : Membatasi lebar artikel naskah travelog rata tengah         */
/* ARAH/RUTE  : Halaman pages/article-detail.html & terms/privacy           */
/* ======================================================================== */
.gta-reader-layout {
  width: 100%;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px;
  box-sizing: border-box;
}

.gta-reading-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: transparent;
  z-index: 1001;
}

.gta-reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gta-cyan, #00E5FF) 0%, var(--gta-purple, #8B5CF6) 100%);
  transition: width 0.1s linear;
}

/* ======================================================================== */
/* BLOK       : KAKI HALAMAN UNIVERSAL (FOOTER MULTI-KOLOM)                 */
/* FUNGSI     : Tata letak 1 kolom seluler / 4 kolom desktop                */
/* ARAH/RUTE  : Komponen terbawah pada halaman publik                       */
/* ======================================================================== */
.gta-footer {
  background-color: var(--gta-bg-container, #0F172A);
  border-top: 1px solid var(--gta-border, #334155);
  padding: 32px 0 115px 0;
  margin-top: 40px;
  width: 100%;
  box-sizing: border-box;
}

.gta-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .gta-footer {
    padding: 48px 0;
  }

  .gta-footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

/* ======================================================================== */
/* BLOK       : BILAH NAVIGASI MELAYANG TETAP (BOTTOM DOCK BAR)             */
/* FUNGSI     : Bilah navigasi 5 tombol seluler dengan tombol tengah timbul */
/* ARAH/RUTE  : Mengambang di dasar layar; HILANG pada desktop (>= 768px)   */
/* ======================================================================== */
.gta-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 68px;
  background-color: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--gta-border, #334155);
  border-radius: 24px 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

/* Penegakan Hilang Mutlak Pada Desktop & Emulasi Desktop Seluler (>= 768px) */
@media (min-width: 768px) {
  .gta-bottom-nav {
    display: none !important;
  }
}

.gta-nav-center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  top: -14px;
}

.gta-booking-btn-raised {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gta-cyan, #00E5FF) 0%, var(--gta-purple, #8B5CF6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
  text-decoration: none;
}

.gta-booking-btn-raised:hover {
  transform: scale(1.05);
}

.gta-booking-label-raised {
  font-size: 9px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.gta-back-top-btn {
  position: fixed;
  bottom: 84px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gta-bg-container, #0F172A);
  border: 1px solid var(--gta-border, #334155);
  color: #FFFFFF;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.gta-back-top-btn:hover {
  border-color: var(--gta-cyan, #00E5FF);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .gta-back-top-btn {
    bottom: 24px;
    right: 24px;
  }
}

/* ======================================================================== */
/* BLOK       : SISTEM DIALOG MODAL LAYAR PENUH & BOTTOM SHEET              */
/* FUNGSI     : Wadah pop-up checkout, detail produk & filter geo 3-tier    */
/* ARAH/RUTE  : Elemen modal pop-up seluruh sistem                          */
/* ======================================================================== */
.gta-full-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--gta-bg-canvas, #070D1E);
  display: none;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.gta-full-modal.active {
  display: flex;
}

.gta-modal-sticky-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  padding: 0 16px;
  background-color: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gta-border, #334155);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  box-sizing: border-box;
}

.gta-modal-body-wrap {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.gta-modal-bottom-dock {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 16px;
  background-color: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--gta-border, #334155);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  box-sizing: border-box;
}

.gta-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background-color: var(--gta-bg-container, #0F172A);
  border-top: 1px solid var(--gta-border, #334155);
  border-radius: 24px 24px 0 0;
  z-index: 10001;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.gta-bottom-sheet.open {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .gta-bottom-sheet {
    top: 50%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%) scale(0.95);
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    border-radius: var(--gta-radius-card, 24px);
    border: 1px solid var(--gta-border, #334155);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .gta-bottom-sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}
