/* Mega Menu Styles for Southdrive Beach Resort */

/* Base dropdown styling */
.dropdown-menu {
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    border-top: 3px solid var(--primary-color);
    padding: 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    background-color: #ffffff;
}

.dropdown-menu li {
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background-color: rgba(0,0,0,0.03);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Mega menu content styling */
.mega-menu-content {
    display: none;
    position: absolute;
    right: -450px;
    top: 0;
    width: 450px;
    background-color: #ffffff;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    padding: 0;
    border-radius: 0 4px 4px 0;
    overflow: hidden;
    height: 100%;
}

.dropdown-menu li:hover .mega-menu-content {
    display: flex;
    background-color: #ffffff;
}

.menu-image {
    width: 40%;
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dropdown-menu li:hover .menu-image img {
    transform: scale(1.05);
}

.menu-description {
    width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-description h4 {
    font-family: "Playfair Display", serif;
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.2em;
}

.menu-description p {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: var(--text-color);
    font-family: "Montserrat", sans-serif;
}

/* Button styling within mega menu */
.btn-small {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8em;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-small:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Mobile styles */
@media (max-width: 992px) {
    .mega-menu-content {
        display: none !important; /* Hide mega menu on mobile */
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding-left: 20px;
    }
}
