.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.modal {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
    overflow: hidden;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    background-color: #ff882d;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: scale(1.2);
}

.modal-content {
    padding: 25px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

.share-option:hover {
    background-color: #f0f5ff;
    transform: translateY(-3px);
}

.share-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: white;
}

.facebook .share-icon {
    background-color: #3b5998;
}

.instagram .share-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.copy .share-icon {
    background-color: #004794;
}

.share-option span {
    font-weight: 500;
    font-size: 0.9rem;
}

.url-container {
    display: flex;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.url-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background-color: #f9f9f9;
    font-size: 0.9rem;
}

.copy-btn {
    background-color: #ff882d;
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #ff6f00;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1001;
    animation: slideIn 0.3s, slideOut 0.3s 1.7s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .share-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .share-option {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px;
    }

    .share-icon {
        margin-bottom: 0;
        margin-right: 15px;
    }

    .modal {
        width: 95%;
    }

    .trip-badge {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.3rem;
    }

    .share-option span {
        font-size: 0.85rem;
    }

    .url-input {
        font-size: 0.8rem;
    }
}