/* style-user.css - Optimized Version */

/* 1. Definisi Font & Dasar */
:root {
    --primary-color: #0056b3;    /* Biru Navy Travel */
    --accent-color: #ff8c00;     /* Oranye Aksi untuk tombol */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* 2. Custom Navbar */
.navbar-user {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky !important; 
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000 !important; 
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 10px;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* 3. Helper & Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
}
.btn-orange-custom {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary-custom:hover {
    background-color: #003d80;
    box-shadow: 0 5px 15px rgba(0,86,179,0.3);
}
.btn-orange-custom:hover {
    background-color: #804900;
    box-shadow: 0 5px 15px rgba(179, 122, 0, 0.3);
}

/* 4. Hero Section */
.hero-wrapper {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)), 
                url('https://jelajahnusantara.alkhafid.my.id/assets/home/img/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

/* 5. Floating Search Box & Inputs */
.search-container {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.search-card {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    overflow: hidden;
}

.search-tabs .nav-link {
    border: none;
    padding: 20px 30px;
    font-weight: 700;
    color: var(--text-light);
    border-radius: 0;
}

.search-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: white;
    border-bottom: 4px solid var(--primary-color);
}

.form-label-custom {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
}

.input-custom {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-weight: 600;
}

.input-custom:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.input-group-text {
    color: var(--text-light);
    border: 1px solid #e0e0e0;
    border-radius: 10px 0 0 10px;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 6. Auth (Login & Register) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.auth-box {
    width: 100%;
    max-width: 1000px;
    display: flex;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 20px;
    overflow: hidden;
    min-height: 600px;
}

.auth-illustration {
    background-color: #f0f7ff;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.auth-illustration img {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
}

.auth-form-container {
    flex: 1;
    background: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-container h2 {
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-form-container a.text-muted:hover {
    color: var(--primary-color) !important;
    transition: 0.3s;
}

.auth-input-group {
    margin-bottom: 20px;
}

.auth-input-group label {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.input-auth {
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    padding: 12px 15px;
    transition: 0.3s;
    font-weight: 600;
}

.input-auth:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    background-color: #fdfdfd;
}

/* 7. Alerts */
.alert-custom {
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.alert-custom i {
    font-size: 1.2rem;
    margin-right: 12px;
}

.alert-success-custom {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger-custom {
    background-color: #f8d7da;
    color: #842029;
}

.alert.fade {
    transition: opacity 0.5s linear;
}

.alert-floating-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
}

/* 8. Etalase / Cards (Penyatuan Class Duplikat) */
.section-title {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-dark);
}

/* Penyatuan Aturan Dasar Card */
.card-destinasi, .card-tiket, .card-hotel, .ticket-card {
    border: none !important;
    border-radius: 20px !important; /* Standarisasi radius ke 20px */
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden;
}

/* Penyatuan Hover Effect Card */
.card-destinasi:hover, .card-tiket:hover, .card-hotel:hover, .ticket-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    cursor: pointer;
}

/* Aturan Khusus Per Item Card */
.card-destinasi img, .card-tiket img {
    width: 100%;
    object-fit: cover;
}

.card-destinasi .card-img-top {
    height: 250px; /* Sesuai revisi terakhir untuk kesan mewah */
}

.card-tiket .img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-hotel {
    border: 1px solid #eee !important; /* Hotel tetap memiliki border halus */
}

.card-hotel img {
    border-radius: 20px 0 0 20px !important;
    object-fit: cover;
}

.card-hotel:hover {
    border-color: var(--primary-color) !important;
}

/* Card Badge & Text */
.badge-transport {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.badge-harga {
    background: linear-gradient(45deg, var(--accent-color), #ff6b00);
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
}

.hotel-rating {
    color: #ffc107;
    font-size: 0.8rem;
}

.price-text, .price-tag {
    font-weight: 800;
    color: var(--primary-color);
}

.price-text { font-size: 1.1rem; }
.price-tag { font-size: 1.4rem; color: var(--accent-color); }

/* 9. Search Results & Filters */
.search-header-info {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-bottom: 40px;
}

.filter-sidebar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.time-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.duration-line {
    position: relative;
    text-align: center;
    color: #ccc;
    font-size: 0.75rem;
}

.duration-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.duration-line span {
    background: white;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

/* 10. Navbar Dropdown */
.dropdown-menu {
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1100 !important;
}

.dropdown-item {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.avatar-nav {
    color: var(--primary-color);
}

/* 11. Media Queries */
@media (max-width: 768px) {
    .auth-illustration {
        display: none;
    }
}

/* Styling Khusus Grid Hotel */
.card-destinasi .badge-harga {
    z-index: 2;
    font-size: 0.75rem;
    padding: 6px 12px;
}

.card-destinasi .hotel-rating i {
    font-size: 0.7rem;
}

.card-destinasi h6 {
    min-height: 20px;
    font-size: 0.95rem;
}

/* Responsivitas gambar agar tidak gepeng */
.card-img-top {
    object-fit: cover;
    transition: 0.5s;
}

.card-destinasi:hover .card-img-top {
    transform: scale(1.1);
}

.position-relative {
    overflow: hidden; /* Penting untuk efek zoom gambar */
    border-radius: 20px 20px 0 0;
}

/* Efek Hover untuk List Card */
.card.border-0.shadow-sm {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.border-0.shadow-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Memastikan border-start pada kolom harga terlihat rapi */
@media (max-width: 768px) {
    .border-start {
        border-start: none !important;
        border-top: 1px solid #eee;
        text-align: left !important;
    }
}
.navbar-user {
    position: sticky !important; 
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000 !important; 
    background-color: white;
}

@media print {
    img {
        max-width: 100% !important;
        -webkit-print-color-adjust: exact;
    }
}