/* ================================================================
   TRAVELICA – negara.css  |  Clean Ticket Grid Layout
   ================================================================ */

/* ── ROOT ─────────────────────────────────────────────────── */
:root {
  --cn-ink:     #f8fafc;
  --cn-blue:    #0284c7;
  --cn-teal:    #00768a;
  --cn-teal-h:  #005f70;
  --cn-dark:    #0f172a;
  --cn-muted:   #64748b;
  --cn-border:  #e2e8f0;
}

/* ── HERO ─────────────────────────────────────────────────── */
.cn-hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  max-height: 640px;
  overflow: hidden;
  margin-top: 68px;
}

.cn-hero-bg {
  position: absolute;
  inset: 0;
}

.cn-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
  will-change: transform;
}

.cn-hero.ready .cn-hero-img {
  transform: scale(1);
}

/* Multi-layer cinematic overlay */
.cn-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15,23,42,.85) 0%, rgba(15,23,42,.35) 45%, transparent 75%),
    linear-gradient(to right, rgba(15,23,42,.5) 0%, transparent 60%);
}

/* Back button */
.cn-back-btn {
  position: absolute;
  top: 32px;
  left: 40px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(10px);
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .2s ease;
}

.cn-back-btn:hover {
  background: rgba(255,255,255,.2);
  border-color: #fff;
  color: #fff;
}

/* Hero text block */
.cn-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 56px;
}

.cn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 12px;
}

.cn-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #38bdf8;
}

.cn-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.cn-desc {
  font-size: 15px;
  color: rgba(255,255,255,.78);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 0;
  font-weight: 400;
}

/* ── MAIN CONTENT ─────────────────────────────────────────── */
.cn-main {
  background: var(--cn-ink);
  padding: 56px 0 96px;
  min-height: 450px;
}

.cn-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section header */
.cn-list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--cn-border);
}

.cn-list-heading {
  font-size: 26px;
  font-weight: 800;
  color: var(--cn-dark);
  letter-spacing: -.5px;
  margin: 0;
}

.cn-list-sub {
  font-size: 13.5px;
  color: var(--cn-muted);
  font-weight: 400;
  margin-top: 5px;
}

.cn-list-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 6px 14px;
  border-radius: 6px;
}

/* ── TRIP GRID & CLEAN TICKET CARDS (Matching Gambar 2) ───── */
.cn-trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.cn-ticket-card {
  background: #ffffff;
  border: 1.5px solid var(--cn-border);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}

.cn-ticket-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.09);
  transform: translateY(-2px);
}

.cn-ticket-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cn-ticket-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--cn-dark);
  line-height: 1.35;
  margin: 0;
}

.cn-ticket-code {
  font-size: 10px;
  font-weight: 800;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

.cn-ticket-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.cn-meta-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 600;
}

.cn-meta-item svg {
  color: #64748b;
  flex-shrink: 0;
}

.cn-ticket-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.cn-ticket-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.cn-ticket-price {
  font-size: 21px;
  font-weight: 900;
  color: var(--cn-dark);
  letter-spacing: -.5px;
}

.cn-ticket-pax {
  font-size: 13px;
  font-weight: 500;
  color: var(--cn-muted);
}

.cn-ticket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cn-teal);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s ease;
}

.cn-ticket-btn:hover {
  background: var(--cn-teal-h);
  box-shadow: 0 4px 14px rgba(0, 118, 138, 0.35);
  transform: translateY(-1px);
}

.cn-empty-trips {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1.5px dashed var(--cn-border);
  border-radius: 12px;
}

/* ── NOT FOUND ────────────────────────────────────────────── */
.cn-not-found {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cn-nf-icon { font-size: 56px; }

.cn-not-found h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--cn-dark);
  letter-spacing: -.5px;
}

.cn-not-found p { font-size: 14px; color: var(--cn-muted); }

.cn-goto-dest {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cn-teal);
  color: #fff;
  padding: 11px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s;
}

.cn-goto-dest:hover { background: var(--cn-teal-h); }

/* ── FILTER & SEARCH BAR ─────────────────────────────────── */
.cn-filter-bar {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cn-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cn-month-pills-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.cn-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cn-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

.cn-month-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cn-month-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: #334155;
  background: #ffffff;
  border: 1.5px solid var(--cn-border);
  border-radius: 50px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  user-select: none;
}

.cn-month-pill:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
  transform: translateY(-1px);
}

.cn-month-pill.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.cn-pill-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
  transition: all .2s ease;
}

.cn-month-pill:hover .cn-pill-count {
  background: #e0f2fe;
  color: #0369a1;
}

.cn-month-pill.active .cn-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Search Box */
.cn-search-box {
  position: relative;
  min-width: 260px;
  max-width: 320px;
  flex-shrink: 0;
}

.cn-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  transition: color .2s ease;
}

.cn-search-input {
  width: 100%;
  padding: 10px 38px 10px 38px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  color: var(--cn-dark);
  background: #ffffff;
  border: 1.5px solid var(--cn-border);
  border-radius: 50px;
  outline: none;
  box-sizing: border-box;
  transition: all .2s ease;
}

.cn-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.cn-search-box:focus-within .cn-search-icon {
  color: #0284c7;
}

.cn-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #e2e8f0;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  transition: all .15s ease;
}

.cn-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

/* Filter Status & Reset link */
.cn-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  color: #0369a1;
}

.cn-reset-link {
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  color: #0284c7;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.cn-reset-link:hover {
  color: #0369a1;
}

/* Empty filter result */
.cn-empty-filter {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  background: #ffffff;
  border: 1.5px dashed var(--cn-border);
  border-radius: 12px;
}

.cn-empty-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.cn-empty-filter h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--cn-dark);
  margin-bottom: 6px;
}

.cn-empty-filter p {
  color: var(--cn-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.cn-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
}

.cn-reset-btn:hover {
  background: #0369a1;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Animated ticket cards */
.cn-ticket-card {
  animation: cnFadeIn .3s ease forwards;
}

@keyframes cnFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .cn-hero { max-height: 520px; min-height: 400px; }
  .cn-back-btn { left: 16px; top: 16px; font-size: 11px; padding: 7px 14px; }
  .cn-hero-content { padding: 0 20px 40px; }
  .cn-title { font-size: clamp(34px, 9vw, 48px); }
  .cn-desc { font-size: 13.5px; }

  .cn-main { padding: 36px 0 64px; }
  .cn-wrap { padding: 0 16px; }
  .cn-list-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .cn-list-heading { font-size: 22px; }

  .cn-filter-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cn-month-pills-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
  .cn-month-pills {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .cn-search-box {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
  }

  .cn-trip-grid { grid-template-columns: 1fr; gap: 14px; }
  .cn-ticket-card { padding: 18px 20px; }
  .cn-ticket-price { font-size: 19px; }
  .cn-ticket-btn { padding: 9px 18px; font-size: 11.5px; }
}

