/* ========================================================
   Open Trip & Wisata Petualangan - Modern Outdoor Stylesheet
   ======================================================== */

:root {
    --primary-earth: #1B4332;
    --primary-earth-dark: #081C15;
    --primary-earth-light: #2D6A4F;
    --action-accent: #E76F51;
    --action-accent-hover: #D45B3E;
    --base-bg: #F8F9FA;
    --surface-card: #FFFFFF;
    --text-primary: #212529;
    --text-muted: #6C757D;
    
    --color-success: #2D6A4F;
    --color-warning: #D97706;
    --color-danger: #DC2626;
    --color-info: #0284C7;

    --border-color: #E5E7EB;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(27, 67, 50, 0.08);
    --shadow-lg: 0 10px 25px rgba(27, 67, 50, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--base-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-earth {
    color: var(--primary-earth) !important;
}

.text-accent {
    color: var(--action-accent) !important;
}

/* Navbar */
.navbar-adventure {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(8px);
}

.navbar-adventure .navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-earth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.03em;
}

.navbar-adventure .navbar-brand i {
    color: var(--action-accent);
}

.navbar-adventure .nav-link {
    font-weight: 600;
    color: #4A5568;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.navbar-adventure .nav-link:hover,
.navbar-adventure .nav-link.active {
    color: var(--primary-earth);
    background-color: rgba(27, 67, 50, 0.06);
}

/* Buttons */
.btn-action {
    background-color: var(--action-accent);
    color: #FFFFFF !important;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.4rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(231, 111, 81, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-action:hover {
    background-color: var(--action-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(231, 111, 81, 0.35);
}

.btn-forest {
    background-color: var(--primary-earth);
    color: #FFFFFF !important;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.4rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-forest:hover {
    background-color: var(--primary-earth-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
}

.btn-outline-forest {
    background: transparent;
    border: 1.5px solid var(--primary-earth);
    color: var(--primary-earth) !important;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.3rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline-forest:hover {
    background: var(--primary-earth);
    color: #FFFFFF !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(8, 28, 21, 0.88), rgba(27, 67, 50, 0.82)), 
                url('../img/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--primary-earth);
    color: #FFFFFF;
    padding: 5rem 0 6.5rem;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--base-bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    color: #F8F9FA;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Search Box */
.hero-search-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
}

/* Card Styling */
.trip-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #CBD5E1;
}

.trip-thumb-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #E2E8F0;
}

.trip-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trip-card:hover .trip-thumb {
    transform: scale(1.05);
}

.trip-badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.trip-badge-quota {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.trip-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trip-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.trip-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.trip-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trip-price-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-earth);
}

/* Badges */
.badge {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-success {
    background-color: rgba(45, 106, 79, 0.12);
    color: var(--color-success);
    border: 1px solid rgba(45, 106, 79, 0.25);
}

.badge-warning {
    background-color: rgba(217, 119, 6, 0.12);
    color: var(--color-warning);
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.badge-danger {
    background-color: rgba(220, 38, 38, 0.12);
    color: var(--color-danger);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.badge-info {
    background-color: rgba(2, 132, 199, 0.12);
    color: var(--color-info);
    border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-secondary {
    background-color: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.badge-dark {
    background-color: #1E293B;
    color: #FFFFFF;
}

/* Detail Page Widgets */
.booking-widget-box {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.detail-highlight-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.detail-highlight-card i {
    font-size: 1.5rem;
    color: var(--primary-earth);
    margin-bottom: 0.5rem;
}

/* Include / Exclude Checklists */
.checklist-box {
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.checklist-include {
    background: rgba(45, 106, 79, 0.05);
    border: 1px solid rgba(45, 106, 79, 0.2);
}

.checklist-exclude {
    background: rgba(220, 38, 38, 0.04);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.checklist-box ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.checklist-box li {
    padding: 0.4rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.checklist-include li i {
    color: var(--color-success);
    margin-top: 3px;
}

.checklist-exclude li i {
    color: var(--color-danger);
    margin-top: 3px;
}

/* E-Ticket Styling */
.eticket-paper {
    background: #FFFFFF;
    border: 2px dashed #CBD5E1;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.eticket-paper::before,
.eticket-paper::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28px;
    height: 28px;
    background: var(--base-bg);
    border-radius: 50%;
    transform: translateY(-50%);
}

.eticket-paper::before {
    left: -14px;
    border-right: 2px dashed #CBD5E1;
}

.eticket-paper::after {
    right: -14px;
    border-left: 2px dashed #CBD5E1;
}

/* Admin Sidebar & Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--primary-earth);
    color: #FFFFFF;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.admin-sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 800;
    font-size: 1.15rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-nav {
    padding: 1rem 0;
    flex-grow: 1;
}

.admin-nav .nav-link {
    color: #CBD5E1;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--action-accent);
}

.admin-content {
    flex-grow: 1;
    background: var(--base-bg);
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.kpi-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Footer */
.footer-adventure {
    background: var(--primary-earth-dark);
    color: #94A3B8;
    padding: 3.5rem 0 1.5rem;
    margin-top: auto;
}

.footer-adventure a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-adventure a:hover {
    color: var(--action-accent);
}

.footer-adventure h5 {
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

/* Print Rules for Ticket */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-ticket, #printable-ticket * {
        visibility: visible;
    }
    #printable-ticket {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none !important;
        box-shadow: none !important;
    }
    .no-print {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
    }
}

