/* Styles for Lizmoore Core Dynamic Resorts Widget */

/* Grid Container */
.cmm-resorts-grid {
    display: grid !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto;
}

/* Card Wrapper */
.cmm-resort-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    position: relative;
    background: #fff; /* Default white background */
    overflow: hidden; /* Ensure content doesn't spill */
    border: 1px solid #eee; /* Default light border for visibility */
}

/* Image Wrapper */
.cmm-resort-image {
    display: block !important;
    width: 100% !important;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Image Itself */
.cmm-resort-image img {
    width: 100% !important;
    height: auto; /* Default auto, overridden by widget settings if set */
    display: block !important;
    object-fit: cover;
}

/* Content Wrapper */
.cmm-resort-content {
    padding: 15px;
    flex-grow: 1; /* Pushes content to fill height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically if needed */
}

/* Title */
.cmm-resort-title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.4;
    text-align: center; /* Default center */
}

.cmm-resort-title a {
    text-decoration: none;
    color: inherit;
}

/* Responsive Defaults (can be overridden by Elementor controls) */
@media (max-width: 767px) {
    .cmm-resorts-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Header Styles */
.cmm-resorts-header {
    margin-bottom: 30px;
    width: 100%;
}

.cmm-resorts-heading {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.cmm-resorts-subheading {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: normal;
    color: #666;
}

.cmm-resorts-description {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.cmm-resorts-description p {
    margin-bottom: 10px;
}
.cmm-resorts-description p:last-child {
    margin-bottom: 0;
}




/* Lizmoore Sakura Animation for UberMenu */

/* The Container Background */
.lizmoore-sakura-bg {
    /* We now use pseudo-elements for images to allow rotation */
    background-color: #ffffff !important; /* Fallback to white base */
    /* REMOVED background-image: ... */
}

/* Bottom-Left Floral Image (Rotated 180 degrees) */
.ubermenu-submenu-drop.lizmoore-sakura-bg::before {
    content: none !important;
    display: none !important;
}

/* Bottom-Right Floral Image (Flipped Vertically) */
.ubermenu-submenu-drop.lizmoore-sakura-bg::after {
    content: none !important;
    display: none !important;
}

/* Ensure container clips the falling petals without breaking layout */
/*.ubermenu-submenu-drop:not(.ubermenu-submenu-type-flyout) {*/
/*    position: relative !important;*/
/*    overflow: hidden !important; */
/*    background-color: #ffff !important;*/
/*    background-image: url('https://archsoftwares.com/Lizmooredestination-wedding/wp-content/uploads/2026/02/vecteezy_tropical-island-with-palm-trees-and-white-sand-beach_68973303-1-1.webp') !important;*/
/*    background-position: center bottom !important;*/
/*    background-repeat: no-repeat !important;*/
/*    background-size: cover !important;*/
/*    box-sizing: border-box !important;*/
/*}*/

.ubermenu-submenu-drop:not(.ubermenu-submenu-type-flyout)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 710px; /* 🔥 RED BOX HEIGHT CONTROL */
    width:100% !important;
    background-image: url('https://archsoftwares.com/Lizmooredestination-wedding/wp-content/uploads/2026/02/ChatGPT-Image-Feb-20-2026-10_59_10-AM.webp');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    pointer-events: none;
}

/* Ensure menu items are above the petals and images */
.ubermenu-submenu-drop > .ubermenu-row,
.ubermenu-submenu-drop > ul,
.ubermenu-content-block {
    position: relative;
    z-index: 10;
    width: 100%;
}

.ubermenu-submenu-drop.lizmoore-sakura-bg > .ubermenu-row { background: #ffffff !important; }

/* FORCE TRANSPARENCY on inner elements so the main background shines through */
.ubermenu-submenu-drop:not(.ubermenu-submenu-type-flyout) .ubermenu-row,
.ubermenu-submenu-drop:not(.ubermenu-submenu-type-flyout) .ubermenu-column,
.ubermenu-submenu-drop:not(.ubermenu-submenu-type-flyout) .ubermenu-content-block,
.ubermenu-submenu-drop:not(.ubermenu-submenu-type-flyout) .ubermenu-tabs-group,
.ubermenu-submenu-drop:not(.ubermenu-submenu-type-flyout) .ubermenu-tab-content-panel,
.ubermenu-submenu-drop:not(.ubermenu-submenu-type-flyout) ul.ubermenu-submenu {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Ensure the main container has a white background (or theme color) behind the petals/images */
.lizmoore-sakura-bg {
    background-color: #ffffff !important; /* Fallback to white base */
}

/* The Petal */
.lizmoore-sakura-petal {
    position: absolute;
    top: -12px;
    width: 12px;
    height: 12px;
    background: linear-gradient(-45deg, #fbd5e5, #f69ec4);
    border-radius: 150% 0 150% 0;
    transform: rotate(45deg);
    box-shadow: 0 0 2px rgba(0,0,0,0.15);
    pointer-events: none;
    z-index: 5;
    will-change: transform, opacity;
    animation: lizmoore-sakura-fall 10s linear 0s 1, lizmoore-sakura-sway 3.2s ease-in-out 0s infinite;
    overflow:hidden !important;
}
.lizmoore-sakura-petal:before,
.lizmoore-sakura-petal:after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
}
.lizmoore-sakura-petal:before { transform: rotate(60deg); }
.lizmoore-sakura-petal:after  { transform: rotate(120deg); }

/* Falling Animation */
@keyframes lizmoore-wave-menu {
    0% { transform: translateX(0); }
    100% { transform: translateX(-600px); }
}

@keyframes lizmoore-sakura-fall {
    0%   { transform: translate3d(0, 0, 0) rotate(45deg); opacity: 1; }
    100% { transform: translate3d(0, var(--sakura-fall, 600px), 0) rotate(405deg); opacity: 1; }
}

@keyframes lizmoore-sakura-sway {
    0%   { margin-left: -10px; }
    50%  { margin-left: 14px; }
    100% { margin-left: -10px; }
}

@keyframes lizmoore-leaf-sway {
    0% { margin-left: -12px; }
    50% { margin-left: 12px; }
    100% { margin-left: -12px; }
}
/* Swaying Animation */
/* (petal sway removed) */

/* Mobile Adjustments for UberMenu Animation */
@media (max-width: 959px) { /* UberMenu standard breakpoint */
    
    /* Hide the floral background images on mobile to prevent overflow and text overlap */
    .lizmoore-sakura-bg::before,
    .lizmoore-sakura-bg::after {
        display: none !important;
        content: none !important;
    }

    /* Hide the falling petals animation on mobile for cleaner UX and performance */
    .lizmoore-sakura-petal {
        display: none !important;
    }

    /* Ensure container allows expansion and has white background */
    .lizmoore-sakura-bg {
        background-color: #ffffff !important;
        overflow: visible !important; /* Allow submenu to expand naturally */
    }
    
    .ubermenu-submenu-drop.lizmoore-sakura-bg {
        overflow: visible !important;
    }

    /* RESTORE BACKGROUNDS on inner elements for mobile to prevent see-through/overlap issues.
       We force them to white so they cover any underlying content if positioning is absolute,
       or just look solid in the accordion. */
    .lizmoore-sakura-bg .ubermenu-row,
    .lizmoore-sakura-bg .ubermenu-column,
    .lizmoore-sakura-bg .ubermenu-content-block,
    .lizmoore-sakura-bg .ubermenu-tabs-group,
    .lizmoore-sakura-bg .ubermenu-tab-content-panel,
    .lizmoore-sakura-bg ul.ubermenu-submenu {
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
}

/* (ensure pseudo-element remains enabled on desktop) */

.lizmoore-beach-img {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 420px !important;
    object-fit: cover !important;
    object-position: center bottom !important;
    z-index: 0 !important;
    pointer-events: none !important;
}
