.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.popup {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s;
}

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

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.popup-close:hover {
    background-color: #f5f5f5;
    color: #e74c3c;
}

.popup h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
}

.popup p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.popup-form input:focus {
    border-color: #ffb23d;
    outline: none;
}

.popup-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.popup-button {
    flex: 1;
    padding: 14px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup-button.primary {
    background-color: #ffb23d;
    color: white;
}

.popup-button.primary:hover {
    background-color: #ff9900;
}

.popup-button.secondary {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.popup-button.secondary:hover {
    background-color: #dde4e6;
}

.popup-thanks {
    text-align: center;
    display: none;
}

.popup-thanks h3 {
    color: #27ae60;
    margin-bottom: 15px;
}

.popup-thanks .icon {
    font-size: 50px;
    color: #27ae60;
    margin-bottom: 15px;
}

.mobile-trigger-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    display: none;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .popup {
        padding: 25px 20px;
    }

    .popup-buttons {
        flex-direction: column;
    }

    .mobile-trigger-warning {
        display: block;
    }
}

.notificationPop {
    position: fixed;
    bottom: 20px;
    right: 80px;
    background-color: #2ecc71;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    max-width: 350px;
    word-wrap: break-word;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.notificationPop.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.notificationPop.info {
    background-color: #3498db;
}

.notificationPop.success {
    background-color: #2ecc71;
}

.notificationPop.warning {
    background-color: #f39c12;
}

.notificationPop.error {
    background-color: #e74c3c;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.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;
    }
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 25px;
    position: relative;
}

.language-flag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-flag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #ff882d;
}

.language-flag.active {
    border-color: #ff882d;
    box-shadow: 0 0 0 2px rgba(255, 136, 45, 0.3);
    animation: pulse 2s infinite;
}

.language-flag.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #ff882d;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 136, 45, 0.8);
}

.language-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.language-flag:hover img {
    transform: scale(1.1);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 12px;
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.language-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.language-dropdown-item:hover {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe9d6 100%);
    transform: translateX(2px);
    color: #ff882d;
}

.language-dropdown-item.active {
    background: linear-gradient(135deg, #ff882d 0%, #ff6b00 100%);
    color: white;
    font-weight: 600;
}

.language-dropdown-item .flag-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.language-dropdown-item.active .flag-small {
    border-color: rgba(255, 255, 255, 0.3);
}

.flag-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-switcher-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 20px;
    /* border-top: 1px solid rgba(255, 136, 45, 0.2); */
    margin-top: 20px;
    /* background: linear-gradient(to bottom, rgba(255, 136, 45, 0.05) 0%, transparent 100%); */
    border-radius: 0 0 16px 16px;
}

.language-switcher-mobile h3 {
    color: #ff882d;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-language-flags {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.language-flag-mobile {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.language-flag-mobile:hover {
    transform: scale(1.1);
    border-color: #ff882d;
    box-shadow: 0 6px 20px rgba(255, 136, 45, 0.3);
}

.language-flag-mobile.active {
    border-color: #ff882d;
    box-shadow: 0 0 0 3px rgba(255, 136, 45, 0.4);
    animation: pulse 2s infinite;
}

.language-flag-mobile.active::before {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff882d;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.language-flag-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 136, 45, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 136, 45, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 136, 45, 0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@media (max-width: 1200px) {
    .language-switcher {
        margin-left: 15px;
    }
}

@media (max-width: 1024px) {
    .language-switcher {
        margin-left: 10px;
    }

    .language-flag {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        display: none;
    }

    .language-switcher-mobile {
        display: flex;
        animation: slideIn 0.5s ease-out;
    }
}

@media (max-width: 480px) {
    .mobile-language-flags {
        gap: 15px;
    }

    .language-flag-mobile {
        width: 44px;
        height: 44px;
    }

    .language-switcher-mobile h3 {
        font-size: 14px;
    }
}

.language-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff882d 0%, #ff6b00 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 136, 45, 0.4);
    z-index: 9999;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-notification.error {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

.language-flag[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.2s ease-out;
}

.language-flag[title]:hover::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    z-index: 1000;
}