/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
}

/* Updated CSS variables for more compact mobile */
:root {
    --header-height-desktop: 300px;  
    --header-height-mobile: 50px;   /* Reduced from 100px to 50px */
    --header-border-width-desktop: 5px;
    --header-border-width-mobile: 1px;  /* Reduced from 2px to 1px */
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
    background-image: linear-gradient(to bottom, #e6f7ff, #f8f8f8);
}

/* Header Styles */
.main-header-image {
    position: relative;
    height: var(--header-height-desktop);
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-image: url('images/surfamatourheader5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: var(--header-border-width-desktop) solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: #333;  /* Fallback color */
    box-sizing: border-box; /* Important for border sizing */
}

.header-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.header-link:hover {
    cursor: pointer;
}

.header-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Changed from 0.3 to 0 */
    z-index: 1;
}

.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 0;
    z-index: 3;
}

.logo {
    max-width: 120px;
}

.banner-image {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0;
}

.banner-image h1 {
    font-size: 4.5rem;
    color: #4a4600;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    font-weight: bold;
    letter-spacing: 2px;
}

.morocco-badge {
    display: none; /* Hide this as requested */
}

/* WhatsApp container styling in header */
.whatsapp-container {
    display: flex;
    align-items: center;
}

/* WhatsApp link styling */
.whatsapp-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
}

.whatsapp-link:hover {
    opacity: 0.8;
}

/* WhatsApp icon styling */
.whatsapp-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 50%;
    background-color: #25D366; /* WhatsApp brand color */
    object-fit: cover;
    overflow: hidden;
}

.contact-banner {
    display: flex;
    justify-content: space-between;
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
}

.contact-info {
    font-weight: bold;
}

.category-banner {
    background-color: #ff9b50;
    text-align: center;
    padding: 15px;
    color: white;
    font-weight: bold;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.activity-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.activity-image {
    position: relative;
    width: 100%;
}

.activity-image img {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}

.activity-image h3 {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Small floating WhatsApp icon in activity cards */
.floating-whatsapp {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
    transition: transform 0.15s ease;
    border-radius: 50%;
    overflow: hidden;
}

.floating-whatsapp:hover {
    transform: scale(1.15);
}

.floating-whatsapp img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.floating-whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-whatsapp-button a {
    display: flex;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    background-color: #25D366; /* WhatsApp brand color */
    overflow: hidden;
}

.floating-whatsapp-button a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.floating-whatsapp-button img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #25D366;
}


.book-now-btn {
    display: block;
    text-align: center;
    background-color: #ff9b50;
    color: white;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    margin: 15px auto;
    width: 150px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.book-now-btn:hover {
    background-color: #e88c3c;
    transform: translateY(-2px);
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.location {
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.description {
    padding: 0 20px 20px;
    text-align: justify;
    flex-grow: 1;
}

/* Form Page Styles */
.form-page {
    background-color: #f0f0f0;
    background-image: linear-gradient(to bottom, #e6f7ff, #f8f8f8);
}

.form-container {
    max-width: 900px;
    margin: 20px auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-image: linear-gradient(to bottom right, #ffffff, #f9f9f9);
    border: 1px solid #eaeaea;
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #333;
    color: white;
    border-radius: 5px;
}

.form-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.form-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.form-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.form-image img:hover {
    transform: scale(1.02);
}

.price-large {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    color: #ff9b50;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 15px;
    border-radius: 30px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.booking-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #ff9b50;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background-color: #e88c3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-description {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    text-align: justify;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #333;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header-image {
        height: var(--header-height-mobile);  /* 50px on mobile */
        border: var(--header-border-width-mobile) solid #fff;  /* 1px border */
        box-shadow: none;
        box-sizing: border-box;
    }
    
    /* Ultra compact contact banner */
    .contact-banner {
        flex-direction: row;
        justify-content: space-evenly;
        padding: 1px 5px;
        gap: 3px;
    }
    
    .contact-info {
        font-size: 0.65rem;  /* Smaller font */
        white-space: nowrap;
    }
    
    .contact-info p {
        margin: 0;
        padding: 0;
        line-height: 1.2;  /* Tighter line height */
    }
    
    /* Minimal category banner */
    .category-banner {
        padding: 1px;  /* Minimal padding */
        font-size: 0.75rem;  /* Smaller font */
        line-height: 1.1;  /* Tighter line height */
    }
    
    /* Smaller WhatsApp icon on mobile */
    .whatsapp-icon {
        width: 14px;
        height: 14px;
        margin-right: 4px;
        border-radius: 50%;
        background-color: #25D366;
    }
    
    /* Smaller floating WhatsApp on mobile */
    .floating-whatsapp {
        width: 24px;
        height: 24px;
        background-color: #25D366;
    }
    
    .floating-whatsapp img {
        width: 14px;
        height: 14px;
        border-radius: 50%;
    }
    
    .floating-whatsapp-button {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-whatsapp-button a {
        width: 50px;
        height: 50px;
    }
    
    .floating-whatsapp-button img {
        width: 30px;
        height: 30px;
    }

    /* Optional: Hide less important info on very small screens */
    @media (max-width: 480px) {
        .category-banner {
            display: none;  /* Hide on very small screens */
        }
    }
}