/* Custom Footer Styles for Morocco Tours */

/* --- START OF FOOTER STYLES --- */
.site-footer {
    background-color: #000000;
    color: #dcdcdc; /* Lighter grey for better readability */
    font-size: 15px;
    line-height: 1.6;
    padding: 60px 0;
    border-top: 1px solid #444;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px; /* Allows 4 columns on wider screens */
    padding: 0 15px;
    margin: 20px 0;
}

/* Headings for each column */
.footer-column h3 {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 25px;
}

/* Column 1: About */
.footer-column .about-text {
    color: #dcdcdc;
    margin-bottom: 25px;
}

.footer-column .contact-button {
    display: inline-block;
    background-color: #34e0a1; /* Accent green from first design */
    color: #ffffff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.footer-column .contact-button:hover {
    background-color: #2abf88;
}

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

.contact-info-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.contact-info-list i {
    margin-right: 12px;
    margin-top: 5px;
    font-size: 14px;
}

/* Column 3 & 4: Links and Logos */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #dcdcdc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #34e0a1;
}

.payment-logos img {
    max-width: 220px;
    margin-bottom: 20px;
}

.tripadvisor-logo {
     margin-bottom: 20px;
}

.tripadvisor-logo img {
    max-width: 180px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background-color: #25D366;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

.whatsapp-float i {
    font-size: 24px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #00c1a2; /* Teal color */
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    text-decoration: none;
    z-index: 1000;
    display: none; /* Hidden by default */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.scroll-to-top:hover {
    background-color: #00a78d;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
    }
}

/* Hide the original footer when using custom footer */
.custom-footer-active #footer {
    display: none;
}

.custom-footer-active .footer_bar {
    display: none;
}

/* Ensure footer doesn't interfere with page content */
.site-footer {
    position: relative;
    z-index: 1;
    clear: both;
    width: 100%;
    margin-top: 0;
}

/* Prevent footer from appearing in wrong places */
.site-footer {
    display: block !important;
    float: none !important;
    position: relative !important;
}

/* Ensure proper spacing before footer */
body.custom-footer-active {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Fix for activities page specifically */
.page-template-page-activities .site-footer {
    margin-top: 50px;
    border-top: 1px solid #eee;
}

/* Ensure footer appears at bottom of page */
.site-footer {
    position: relative !important;
    z-index: 1 !important;
    clear: both !important;
    width: 100% !important;
    display: block !important;
    float: none !important;
}

/* Prevent any overlay issues */
.site-footer * {
    position: relative;
}

/* Ensure main content doesn't overlap footer */
body.custom-footer-active .inner {
    margin-bottom: 0;
    padding-bottom: 30px;
}

/* Fix for side menu wrapper positioning */
#side_menu_wrapper {
    z-index: 9999;
}
