/*
================================================
CUSTOM STYLES for Jip Ketep Jelajah Merapi Merbabu
================================================
*/


/* --- Section Trips --- */
#trips.page-section {
    position: relative;
    background-color: #121212;
    z-index: 1;
}

#trips.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px),
        linear-gradient(135deg,
            #0a0a0a 0%,
            #121212 25%,
            #1a1a1a 50%,
            #121212 75%,
            #0a0a0a 100%);
    z-index: -1;
    opacity: 0.8;
}

/* Tombol Filter */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #555;
    color: #999;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-size: 14px;
    border-radius: 25px;
}

.tab-btn.active,
.tab-btn:hover {
    background: #af4c4c;
    border-color: #aa2929;
    color: white;
    transform: translateY(-2px);
}

/* Styling Kartu Trip */
.collection-card {
    background: #222;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: #af4c4c;
}

.collection-thumbnail {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.collection-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.collection-card:hover .collection-thumbnail img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #FFA500;
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-radius: 4px;
    width: fit-content;
}

.card-title {
    font-size: 18px;
    margin-bottom: 2px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.card-subtitle {
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    margin-bottom: 5px;
    min-height: 20px;
}

.card-price {
    margin-top: auto;
}

/* --- Lightbox & Modal Styling --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1050;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
}

.modal-dialog-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    margin: 50px auto;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    color: #fff;
}

.lightbox-close-button {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 30px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}

.modal-close-btn {
    top: 15px;
    right: 25px;
}

/* --- Styling untuk Logo Partner di Slider Options --- */

.partner-logos-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Tambahkan baris ini */
    height: 80px; 
    gap: 25px; 
}

.partner-logo {
    max-height: 40px; /* Ukuran tinggi maksimum logo */
    width: auto;
    /* Trik ini mengubah logo hitam menjadi putih agar terlihat di background gelap */
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1; /* Logo menjadi lebih terang saat disentuh mouse */
}

/* Penyesuaian untuk layar kecil (mobile) */
@media (max-width: 767px) {
    .partner-logos-container {
        justify-content: center; /* Logo berada di tengah di mobile */
        gap: 20px;
        height: auto;
        padding-top: 10px;
    }

    .partner-logo {
        max-height: 20px; /* Sedikit lebih kecil di mobile */
    }

    .carousel-indicators {
        text-align: center;
        padding-bottom: 10px;
    }
}

/* --- Header Modal yang di Tengah --- */
.modal-header.centered {
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 28px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================
   Modal Layout - Versi Proporsional (Compact)
   ========================================== */

/* --- Struktur Dua Kolom Utama --- */
.modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 25px;
    margin-top: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Kolom Kiri (gambar) --- */
.modal-left img {
    width: 100%;
    height: 90%;
    border-radius: 10px;
    object-fit: cover;
}

/* --- Kolom Kanan (deskripsi) --- */
.modal-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.modal-right h4 {
    margin-bottom: 10px;
    color: #ffa500;
}

.modal-right h4 i {
    color: #ffa500;
    margin-right: 8px;
}

/* --- Durasi dalam satu baris --- */
.modal-duration-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffa500;
    font-size: 1rem;
    margin-bottom: 14px;
}

.modal-duration-line i {
    color: #ffa500;
    font-size: 1.05rem;
}

.modal-duration-line span {
    font-weight: 500;
    color: #e0e0e0;
}

.modal-duration-line strong {
    font-size: 1.05rem;
    color: #fff;
}

/* --- Deskripsi Trip --- */
.modal-description {
    color: #ddd;
    margin-bottom: 18px;
    line-height: 1.7;
}

.modal-description p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.modal-description i.fa {
    color: #ffa500;
    margin-right: 6px;
}

/* --- Tombol Booking --- */
.modal-cta-button {
    display: inline-block;
    background-color: #af4c4c;
    color: white;
    padding: 11px 18px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 10px;
}

.modal-cta-button:hover {
    background-color: #d55;
}

/* --- Ukuran Popup --- */
#tripDetailModal .modal-dialog-content {
    background-color: #141414;
    color: #fff;
    border-radius: 12px;
    width: 90%;           /* ⬅️ lebih kecil dari sebelumnya (95%) */
    max-width: 1150px;    /* ⬅️ maksimal lebar popup */
    padding: 28px;        /* ⬅️ padding dikurangi agar lebih kompak */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: modalFadeIn 260ms ease-in-out;
}

/* --- Animasi --- */
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* --- Responsif (mobile) --- */
@media (max-width: 768px) {
    .modal-content-grid {
        display: flex;
        flex-direction: column;
        border-left: none;
        padding-left: 0;
        gap: 18px;
    }

    .modal-left img {
        border-radius: 8px 8px 0 0;
        width: 100%;
        height: auto;
        max-height: 220px; /* ⬅️ Batasi tinggi maksimum gambar di mobile */
        object-fit: cover; /* ⬅️ Pastikan gambar tetap proporsional */
    }

    .modal-right {
        padding-top: 12px;
    }

    #tripDetailModal .modal-dialog-content {
        width: 95%;
        max-width: 95%;
        padding: 18px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-duration-line {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
}


/* --- Tata jarak teks di sisi kanan modal --- */
.modal-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px; /* ⬅️ Tambah jarak antar elemen di dalam modal-right */
}

/* --- Judul kecil seperti "Detail Trip" --- */
.modal-right h4 {
    margin-top: 5px;
    margin-bottom: 8px;
    color: #ffa500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* --- Deskripsi trip (teks paragraf utama) --- */
.modal-description {
    color: #ddd;
    line-height: 1.8; /* ⬅️ Bikin paragraf lebih mudah dibaca */
    margin-bottom: 18px;
}

/* --- Paragraf di dalam deskripsi --- */
.modal-description p {
    margin-bottom: 14px;
}

/* --- Area harga dan tombol booking diberi jarak atas --- */
.modal-price {
    margin-top: 15px;
}

.modal-cta-button {
    margin-top: 20px; /* ⬅️ Tambahkan jarak antara harga dan tombol */
}

/* --- Tombol Booking Fit Content + Center --- */
.modal-bottom-center {
    display: flex;
    justify-content: center; /* Center horizontal */
    margin-top: 10px;
    margin-bottom: 20px;
}

.modal-bottom-center .modal-cta-button {
    width: fit-content; /* Ukurannya menyesuaikan isi teks */
    padding: 12px 36px;
    background-color: #af4c4c;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    margin: 0 auto; /* Pastikan tombol tetap center */
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.modal-bottom-center .modal-cta-button:hover {
    background-color: #d55;
    transform: translateY(-2px);
}

/* --- Footer di bawah garis --- */
.modal-footer-note {
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* --- Grid dua kolom sejajar tinggi --- */
.modal-content-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch; /* samakan tinggi kiri-kanan */
  gap: 25px;
  margin-top: 10px;
}

/* --- Gambar kiri --- */
.modal-left {
  flex: 1 1 50%;
  display: flex;
}

.modal-left img {
  width: 100%;
  height: 100%; /* penuhi tinggi parent */
  object-fit: cover;
  border-radius: 8px;
}

/* --- Kolom kanan --- */
.modal-right {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%; /* isi penuh tinggi parent */
  position: relative;
}

/* --- Deskripsi trip --- */
.modal-description {
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- Kotak Harga di bawah kanan --- */
.modal-price-box {
  background: rgba(68, 68, 68, 0.7);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: right;
  max-width: 260px;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);

  /* Bagian penting */
  margin-top: auto;  /* dorong ke bawah */
  align-self: flex-end; /* rata kanan */
}

/* --- Harga Normal --- */
.modal-original-price {
  color: #bbb;
  font-size: 0.85rem;
  text-decoration: line-through;
  margin: 0;
}

/* --- Harga Diskon --- */
.modal-discounted-price {
  color: #ffa500;
  font-weight: bold;
  margin-top: 3px;
}

.modal-discounted-price span {
  color: #fff;
}

/* --- Responsif --- */
@media (max-width: 768px) {
  .modal-content-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-left img {
    height: auto;
  }

  .modal-right {
    height: auto;
  }

  .modal-price-box {
    align-self: center;
    text-align: center;
    margin-top: 20px;
    max-width: none;
  }
}
