:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f8fafc;
    --accent-color: #3b82f6;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: var(--text-primary);
}

/* Navbar */
.navbar {
    background: rgba(37, 99, 235, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-nav {
    gap: 5px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 50px;
    /* Pill shape */
    padding: 8px 20px !important;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px;
    margin-top: 15px !important;
    /* Spacing from navbar */
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary-color);
    transform: translateX(3px);
}

.dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid #e2e8f0;
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    background: white;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0 !important;
    padding: 1.25rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Forms */
.form-control {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
    background: white;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Map */
#map {
    height: 70vh;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Specific Components */
.destination-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        padding: 15px;
        margin-top: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav {
        width: 100%;
        align-items: flex-start !important;
    }

    .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        border-radius: 10px;
        margin: 5px 0;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .navbar .dropdown-menu {
        background: rgba(255, 255, 255, 0.05);
        border: none;
        box-shadow: none;
        margin-top: 5px !important;
        position: static !important;
        width: 100%;
        transform: none !important;
        padding-left: 20px;
    }

    .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        padding: 12px 16px;
    }

    .navbar .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        transform: translateX(5px);
    }

    .navbar .dropdown-divider {
        border-top-color: rgba(255, 255, 255, 0.2);
    }

    /* User profile in mobile */
    .navbar .nav-item.dropdown .nav-link {
        background: rgba(255, 255, 255, 0.1) !important;
        margin-top: 10px;
        justify-content: space-between;
    }

    .nav-item.dropdown .nav-link::after {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }

    #map {
        height: 60vh;
    }
}
