/**
 * OTTO DMC Frontend
 * Primary: #044851, Accent: #fcb415
 */

:root {
    --primary: #044851;
    --primary-dark: #033840;
    --primary-light: #066778;
    --primary-50: #e6f0f2;
    --primary-100: #cce1e4;
    --accent: #fcb415;
    --accent-dark: #e5a313;
    --accent-light: #fdc94d;
    --accent-50: #fef8e7;
    --success: #0bb783;
    --success-light: #d4f5e9;
    --warning: #ffa800;
    --warning-light: #fff4de;
    --danger: #f64e60;
    --danger-light: #ffe2e5;
    --info: #8950fc;
    --info-light: #eee5ff;
    --gray-50: #f9fafb;
    --gray-100: #f3f6f9;
    --gray-200: #e4e6ef;
    --gray-300: #d1d3e0;
    --gray-400: #b5b5c3;
    --gray-500: #7e8299;
    --gray-600: #5e6278;
    --gray-700: #3f4254;
    --gray-800: #181c32;
    --white: #ffffff;
    --body-bg: #f5f8fa;
    --shadow-sm: 0 0.1rem 1rem 0.25rem rgba(0,0,0,.05);
    --shadow: 0 0.5rem 1.5rem 0.5rem rgba(0,0,0,.075);
    --shadow-lg: 0 1rem 2rem 1rem rgba(0,0,0,.1);
    --radius-sm: 0.425rem;
    --radius: 0.625rem;
    --radius-lg: 0.875rem;
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
    background: var(--body-bg);
    color: var(--gray-700); 
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* Navbar */
.navbar {
    background: var(--primary);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    width: 100%;
    max-width: 1238px;
    margin: 0 auto;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img { height: 32px; }

.navbar-menu { display: flex; align-items: center; gap: 0.25rem; }

.navbar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: rgba(255,255,255,0.75);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.navbar-link:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.navbar-link.active { background: var(--accent); color: var(--gray-800); }

.navbar-right { display: flex; align-items: center; gap: 1rem; }

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
}

.navbar-user-avatar {
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.85rem;
}

.navbar-user-name { font-weight: 500; font-size: 0.85rem; color: var(--white); }
.navbar-user-agency { font-size: 0.7rem; color: rgba(255,255,255,0.7); }

.navbar-logout {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(246,78,96,0.2);
    border-radius: var(--radius);
    color: #ff6b7a;
    transition: var(--transition);
}

.navbar-logout:hover { background: var(--danger); color: var(--white); }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Page Header */
.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.page-header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.page-title { font-size: 1.5rem; font-weight: 600; color: var(--gray-800); }
.page-subtitle { color: var(--gray-500); margin-top: 0.25rem; font-size: 0.9rem; }

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 0;
    margin-bottom: 1.5rem;
}

.card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 1rem; font-weight: 600; color: var(--gray-800); display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.card-title i { color: var(--primary); }
.card-body { padding: 1.5rem; }

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.filter-tag {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag:hover { background: var(--primary-50); color: var(--primary); }
.filter-tag.active { background: var(--primary); color: var(--white); }

/* Destination Grid */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }

.dest-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.dest-card-image {
    height: 180px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-400);
    position: relative;
    overflow: hidden;
}

.dest-card-image img { width: 100%; height: 100%; object-fit: cover; }

.dest-card-country {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.dest-card-body { padding: 1.25rem; }
.dest-card-title { font-size: 1.1rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0.375rem; }
.dest-card-desc { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dest-card-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--gray-500); }
.dest-card-meta span { display: flex; align-items: center; gap: 0.25rem; }

.dest-card-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
}

.dest-card-price { font-size: 0.8rem; color: var(--gray-500); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--gray-800); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 0.5rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.5rem; }

.form-control {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }

/* Quote Layout */
.quote-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.quote-sidebar { position: sticky; top: 80px; }

/* Package Slider */
.package-slider-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.package-slider-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-slider-title i { color: var(--primary); }

.package-swiper { padding: 0.5rem 0 2rem; }

.package-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.package-card:hover { border-color: var(--primary-light); }
.package-card.active { border-color: var(--primary); background: var(--primary-50); }

.package-card-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.package-card.active .package-card-icon { background: var(--primary); color: var(--white); }

.package-card-name { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0.25rem; }
.package-card-desc { font-size: 0.75rem; color: var(--gray-500); }
.package-card-badge { margin-top: 0.5rem; }

.swiper-pagination-bullet { background: var(--primary); }

/* Service Categories */
.category-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.category-header {
    padding: 0.875rem 1.25rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon { 
    width: 36px;
    height: 36px;
    background: var(--primary-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.category-name { font-weight: 600; flex: 1; color: var(--gray-800); font-size: 0.9rem; }
.category-badge { padding: 0.2rem 0.5rem; background: var(--danger-light); color: var(--danger); font-size: 0.65rem; font-weight: 600; border-radius: var(--radius-sm); }

.category-options { padding: 0.625rem; }

.option-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.375rem;
    cursor: pointer;
    transition: var(--transition);
}

.option-item:hover { border-color: var(--primary-light); background: var(--gray-50); }
.option-item.selected { border-color: var(--primary); background: var(--primary-50); }

.option-radio, .option-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.option-radio { border-radius: 50%; }
.option-checkbox { border-radius: 4px; }

.option-item.selected .option-radio,
.option-item.selected .option-checkbox { border-color: var(--primary); background: var(--primary); }

.option-item.selected .option-radio::after { content: ''; width: 8px; height: 8px; background: var(--white); border-radius: 50%; }
.option-item.selected .option-checkbox::after { content: '✓'; color: var(--white); font-size: 0.75rem; font-weight: 700; }

.option-info { flex: 1; }
.option-name { font-weight: 500; color: var(--gray-800); font-size: 0.9rem; }
.option-desc { font-size: 0.8rem; color: var(--gray-500); }
.option-price { font-weight: 600; color: var(--primary); font-size: 0.85rem; }

/* Summary Card */
.summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.summary-header {
    padding: 1.25rem;
    background: var(--primary);
    color: var(--white);
}

.summary-title { font-size: 1rem; font-weight: 600; }
.summary-dest { opacity: 0.85; margin-top: 0.125rem; font-size: 0.85rem; }
.summary-body { padding: 1rem 1.25rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 0.625rem 0; border-bottom: 1px solid var(--gray-100); }
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--gray-500); font-size: 0.85rem; }
.summary-value { font-weight: 500; color: var(--gray-800); }

.summary-total { background: var(--gray-50); padding: 1.25rem; text-align: center; }
.summary-total-label { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.summary-total-value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.summary-total-pp { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.5rem; }

/* Documents Section */
.docs-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.docs-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-title i { color: var(--primary); }

.docs-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.doc-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.doc-item:hover { border-color: var(--primary); background: var(--primary-50); }

.doc-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gray-600);
}

.doc-item:hover .doc-icon { background: var(--primary); color: var(--white); }

.doc-info { flex: 1; }
.doc-name { font-size: 0.8rem; font-weight: 500; color: var(--gray-700); }
.doc-size { font-size: 0.7rem; color: var(--gray-500); }

/* Pax Controls */
.pax-control { display: flex; align-items: center; gap: 0.625rem; }

.pax-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
}

.pax-btn:hover { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
.pax-value { font-size: 1.25rem; font-weight: 700; min-width: 50px; text-align: center; color: var(--gray-800); }

/* Night Pills */
.night-pills { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.night-pill {
    padding: 0.5rem 1.125rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
    font-size: 0.85rem;
}

.night-pill:hover { border-color: var(--primary); color: var(--primary); }
.night-pill.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* Quote Summary Header */
.quote-summary-header {
    background: var(--primary);
    color: var(--white);
    padding: 2.5rem 0;
    margin-bottom: 1.5rem;
}

.quote-summary-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }

.quote-summary-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 1.5rem; }
.quote-stat { text-align: center; }
.quote-stat-value { font-size: 1.5rem; font-weight: 600; }
.quote-stat-label { font-size: 0.75rem; opacity: 0.8; margin-top: 0.125rem; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 0.875rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tbody tr:hover { background: var(--gray-50); }

/* Badge */
.badge { display: inline-flex; align-items: center; padding: 0.3rem 0.6rem; font-size: 0.7rem; font-weight: 500; border-radius: var(--radius-sm); }
.badge-primary { background: var(--primary-50); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: #996500; }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }

/* Toast */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; }
.toast { display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1rem; background: var(--gray-800); color: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 260px; animation: slideIn 0.3s ease; margin-bottom: 0.5rem; font-size: 0.85rem; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Alert */
.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: var(--success-light); color: #065f46; }
.alert-danger { background: var(--danger-light); color: #991b1b; }

/* Empty State */
.empty-state { text-align: center; padding: 3rem 2rem; }
.empty-state i { font-size: 3rem; color: var(--gray-300); margin-bottom: 1rem; display: block; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray-500); margin-bottom: 1.25rem; font-size: 0.9rem; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--primary); padding: 2rem; }
.login-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 400px; overflow: hidden; }
.login-header { background: var(--primary); padding: 2rem; text-align: center; }
.login-header img { height: 40px; margin-bottom: 0.75rem; }
.login-header h1 { font-size: 1.25rem; font-weight: 600; color: var(--white); }
.login-body { padding: 1.5rem; }

/* Confirm Modal */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1rem;
}

.confirm-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.confirm-overlay.active .confirm-box {
    transform: scale(1);
}

.confirm-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
}

.confirm-close:hover { background: var(--gray-200); }

.quote-confirm-modal .confirm-header {
    width: 70px;
    height: 70px;
    background: var(--accent-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.quote-confirm-modal .confirm-header i {
    font-size: 2rem;
    color: var(--accent);
}

.quote-confirm-modal h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1.25rem;
}

.confirm-details {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.confirm-row span { color: var(--gray-500); }
.confirm-row strong { color: var(--gray-800); }

.confirm-row.highlight {
    background: var(--primary-50);
    margin: 0 -1rem;
    padding: 0.625rem 1rem;
}

.confirm-row.highlight span { color: var(--primary); }
.confirm-row.highlight strong { color: var(--primary); font-size: 1rem; }

.confirm-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 0;
}

.confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.confirm-actions .btn { min-width: 120px; }

/* Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-end { text-align: right; }

@media (max-width: 992px) {
    .quote-layout { grid-template-columns: 1fr; }
    .quote-sidebar { position: static; }
}

@media (max-width: 768px) {
    .navbar-menu { display: none; }
    .dest-grid { grid-template-columns: 1fr; }
}

@media print {
    .navbar, .btn, .no-print { display: none !important; }
    body { background: white; }
}