/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: #fff;
    padding: 70px 0 0;
    position: relative;
    overflow: hidden;
    direction: rtl;
    font-family: 'Cairo', 'Tajawal', 'Droid Arabic Kufi', sans-serif;
    line-height: 1.8;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e67e22, #e74c3c, #e67e22);
    background-size: 200% auto;
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 40px;
    margin-bottom: 50px;
    direction: rtl;
    padding: 0 20px;
}

/* Responsive Grid */
@media (max-width: 1199px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 15px;
    }
}

/* Section Headers */
.footer h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    text-align: right;
}

.footer h3::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #e67e22;
    border-radius: 3px;
}

/* About Section */
.footer-about {
    padding-right: 20px;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-about p {
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* Navigation Links */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-links li:hover {
    padding-right: 5px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #e67e22;
    padding: 0 8px 0 5px;
}

.footer-links i {
    margin: 0 10px 0 8px;
    font-size: 12px;
    color: #e67e22;
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    margin-right: 15px;
}

/* Contact Info */
.footer-contact .contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact .contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-direction: row-reverse;
    gap: 15px;
}

.footer-contact .contact-info li:last-child {
    margin-bottom: 0;
}

.footer-contact .contact-info i {
    color: #e67e22;
    font-size: 18px;
    margin: 4px 0 0 12px;
    min-width: 20px;
    text-align: center;
}

.footer-contact .contact-info span,
.footer-contact .contact-info a {
    color: #ddd;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.6;
}

.footer-contact .contact-info a:hover {
    color: #e67e22;
}
        
        a:hover {
            text-decoration: underline;
        }
    }
}

.contact-info li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    color: #bbb;
    line-height: 1.6;
}

.contact-info i {
    color: #e67e22;
    margin-right: 15px;
    margin-top: 5px;
    font-size: 16px;
    min-width: 20px;
}

.contact-info a {
    color: #bbb;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #e67e22;
    padding-left: 3px;
}

/* Newsletter */
.newsletter-form {
    margin-top: 20px;
}

.newsletter-form p {
    color: #bbb;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.newsletter-form .form-group {
    position: relative;
    margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: #999;
}

.newsletter-form input[type="email"]:focus {
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.newsletter-form button {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40px;
    background: transparent;
    border: none;
    color: #e67e22;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    color: #fff;
}

.newsletter-form .form-note {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
    line-height: 1.5;
    display: block;
}

.form-message.error {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    display: block;
}

/* Payment Methods */
.payment-methods p {
    color: #bbb;
    margin-bottom: 10px;
    font-size: 15px;
}

.payment-icons {
    display: flex;
    gap: 10px;
    font-size: 24px;
}

.payment-icons i {
    color: #bbb;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    color: #e67e22;
    opacity: 1;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #999;
    font-size: 14px;
}

.footer-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-menu a {
    color: #999;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Popular Tours in Footer */
.footer-popular-tours {
    margin-bottom: 30px;
}

.footer-popular-tours h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e67e22;
    display: inline-block;
}

.popular-tours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-tours-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.popular-tours-list li:before {
    content: '\f3c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #e67e22;
    position: absolute;
    left: 0;
    top: 2px;
}

.popular-tours-list a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    line-height: 1.5;
}

.popular-tours-list a:hover {
    color: #e67e22;
    padding-left: 5px;
}

.footer-menu a:hover {
    color: #e67e22;
}

.footer-menu span {
    color: #555;
    font-size: 12px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.back-to-top:hover {
    background: #d35400;
    transform: translateY(-3px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    animation: none;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-about, .footer-links, .footer-contact, .footer-newsletter {
        padding: 0 10px;
    }
}

@media (max-width: 991px) {
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-about, .footer-links, .footer-contact, .footer-newsletter {
        padding: 0;
        text-align: center;
    }
    
    .footer h3 {
        text-align: center;
    }
    
    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links li {
        margin: 0 10px 10px 0;
    }
    
    .footer-bottom .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-bottom .footer-legal span {
        display: none;
    }
    
    .contact-info li {
        font-size: 15px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer h3 {
        font-size: 1.2rem;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-menu span {
        display: none;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
}
