.header-icon-phone {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-icon-phone.clickable {
    cursor: pointer !important;
}

.header-icon-phone.clickable:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.header-icon-phone.clickable:active {
    transform: scale(0.95);
}

/* Interactive dropdown support - hide pseudo-element when interactive dropdown is used */
.header-icon-phone.has-interactive-dropdown::after,
.header-icon-phone.has-interactive-dropdown::before,
.header-icon-phone.has-interactive-dropdown:hover::after,
.header-icon-phone.has-interactive-dropdown:hover::before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.header-icon-phone::after {
    content: "+63 28 2517 141 / +63 917 5665 811"; /* Default tooltip text - will be overridden by plugin settings */
    position: absolute;
    top: 100%;
    left: 100%;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    margin-top: 5px;
    pointer-events: none; /* Prevent tooltip from interfering with clicks */
}

.header-icon-phone::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 100%;
    border: 5px solid transparent;
    border-bottom-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1001;
}

.header-icon-phone:hover::after,
.header-icon-phone:hover::before {
    opacity: 1;
    visibility: visible;
}

.header-icon-email {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-icon-email.clickable {
    cursor: pointer !important;
}

.header-icon-email.clickable:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.header-icon-email.clickable:active {
    transform: scale(0.95);
}

/* Interactive dropdown support - hide pseudo-element when interactive dropdown is used */
.header-icon-email.has-interactive-dropdown::after,
.header-icon-email.has-interactive-dropdown::before,
.header-icon-email.has-interactive-dropdown:hover::after,
.header-icon-email.has-interactive-dropdown:hover::before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.header-icon-email::after {
    content: "bliss@twoseasonsresorts.com"; /* Default tooltip text - will be overridden by plugin settings */
    position: absolute;
    top: 100%;
    left: 100%;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    margin-top: 5px;
    pointer-events: none; /* Prevent tooltip from interfering with clicks */
}

.header-icon-email::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 100%;
    border: 5px solid transparent;
    border-bottom-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1001;
}

.header-icon-email:hover::after,
.header-icon-email:hover::before {
    opacity: 1;
    visibility: visible;
}

.header-icon-location {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-icon-location.clickable {
    cursor: pointer !important;
}

.header-icon-location.clickable:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.header-icon-location.clickable:active {
    transform: scale(0.95);
}

/* Interactive dropdown support - hide pseudo-element when interactive dropdown is used */
.header-icon-location.has-interactive-dropdown::after,
.header-icon-location.has-interactive-dropdown::before,
.header-icon-location.has-interactive-dropdown:hover::after,
.header-icon-location.has-interactive-dropdown:hover::before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.header-icon-location::after {
    content: "Our Locations"; /* Default tooltip text - will be overridden by plugin settings */
    position: absolute;
    top: 100%;
    left: 100%;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    margin-top: 5px;
    pointer-events: none; /* Prevent tooltip from interfering with clicks */
}

.header-icon-location::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 100%;
    border: 5px solid transparent;
    border-bottom-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1001;
}

.header-icon-location:hover::after,
.header-icon-location:hover::before {
    opacity: 1;
    visibility: visible;
}

.desktop-navigation {
    position: relative; /* Start with relative position (non-sticky) */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw; /* Prevent horizontal overflow */
    box-sizing: border-box;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0);
    transition: all var(--nav-animation-duration, 0.3s) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    opacity: 1;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

.desktop-navigation.sticky-header {
    position: fixed; /* Becomes fixed when sticky */
    background-color: var(--nav-sticky-bg-color, rgba(255, 255, 255, 1));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    animation: slideDownDelayed 0.4s ease forwards;
    width: 100%;
    max-width: 100vw;
    left: 0;
    right: 0;
}

/* Slide down animation for delayed sticky state */
@keyframes slideDownDelayed {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navigation-links-mobile > #modal-1{
    height: 100vh;
    width: 70vw;
    max-width: 100%;
    overflow-x: hidden;
}

.navigation-links-mobile > .wp-block-navigation__responsive-container-close svg, 
.wp-block-navigation__responsive-container-open svg {
    width: 35px;
    height: 35px;
}

.navigation-links-mobile > .wp-block-navigation__responsive-container-close, 
.wp-block-navigation__responsive-container-open {
    /* border-top: 1px solid white;
    border-bottom: 1px solid white;
    padding: 5px; */
    box-sizing: border-box;
}

.navigation-links-mobile .wp-block-navigation__container {
    width: 100%;
    align-items: normal !important;
}

.navigation-links-mobile .wp-block-navigation__container > li {
    width: 100%;
}

.navigation-links-mobile .wp-block-navigation-item.has-child {
    display: flex !important;
    flex-wrap: wrap;
    align-items: left !important;
    gap: 1em;
    flex-direction: row !important;
    justify-content: center;
}

.navigation-links-mobile .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
    will-change: max-height, opacity, transform;
    flex-basis: 100%;
    width: 100%;
}

.navigation-links-mobile .wp-block-navigation-item.has-child.is-submenu-open > .wp-block-navigation__submenu-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navigation-links-mobile .wp-block-navigation-submenu__toggle {
    display: inline-flex;
    gap: 0.35em;
}

.navigation-links-mobile .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    flex: 0 0 auto;
}

.navigation-links-mobile .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-icon svg {
    width: 1.05em;
    height: 1.05em;
    transition: transform 0.2s ease;
}

.navigation-links-mobile .wp-block-navigation-item.has-child.is-submenu-open > .wp-block-navigation__submenu-icon svg {
    transform: rotate(-180deg);
}
/* 
.desktop-navigation.sticky-header > .navigation-links-mobile > .wp-block-navigation__responsive-container-close, 
.wp-block-navigation__responsive-container-open {
    border-top: 1px solid #d7a02a;
    border-bottom: 1px solid #d7a02a;
    padding: 5px;
} */

/* Highlight current & active parent */
.navigation-links-desktop .wp-block-navigation__container 
  li.is-current-item > a,
.navigation-links-desktop .wp-block-navigation__container 
  li.is-active-parent > a {
    color: #d7a02a;
}

.navigation-links-desktop .wp-block-navigation__container 
  li.is-current-item:not(:last-child)::after,
.navigation-links-desktop .wp-block-navigation__container 
  li.is-active-parent:not(:last-child)::after {
    color: #d7a02a;
}

/* Add bullet separators between navigation items */
.navigation-links-desktop .wp-block-navigation__container li:not(:last-child)::after {
    content: "\2022";
    margin: 0 15px;
    color: currentColor;
    font-weight: normal;
}

/* Alternative: if you want to style the bullet differently */
.navigation-links-desktop .wp-block-navigation__container li:not(:last-child)::after {
    content: "\2022";
    margin: 0 15px;
    color: var(--nav-normal-text-color, rgba(255, 255, 255, 0.7)); /* For white navigation */
    font-weight: normal;
    transition: color 0.3s ease;
}

/* Bullet color when header is sticky */
.desktop-navigation.sticky-header .navigation-links-desktop .wp-block-navigation__container li:not(:last-child)::after {
    color: var(--nav-sticky-text-color, rgb(0, 0, 0)); /* Matches your golden color theme */
}

/* Mobile-specific fixes */
@media screen and (max-width: 768px) {
    .desktop-navigation {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }
    
    .desktop-navigation.sticky-header {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
    }
    
    /* Ensure navigation container doesn't overflow */
    .desktop-navigation .wp-block-navigation {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix navigation items wrapping */
    .navigation-links-desktop .wp-block-navigation__container {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
    
    .navigation-links-desktop .wp-block-navigation__container li {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Mobile hamburger menu fixes */
    .navigation-links-mobile {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .navigation-links-mobile .wp-block-navigation__responsive-container {
        width: 100vw;
        max-width: 100%;
        left: 0;
        right: 0;
    }
    
    /* Fix tooltip positioning on mobile */
    .header-icon-phone::after,
    .header-icon-email::after,
    .header-icon-location::after {
        left: 50%;
        transform: translateX(-50%);
        max-width: 90vw;
        word-wrap: break-word;
        white-space: normal;
    }
    
    .header-icon-phone::before,
    .header-icon-email::before,
    .header-icon-location::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    .desktop-navigation {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Make tooltips smaller on very small screens */
    .header-icon-phone::after,
    .header-icon-email::after,
    .header-icon-location::after {
        font-size: 12px;
        padding: 6px 8px;
        max-width: 85vw;
    }
    
    /* Reduce navigation item font size if needed */
    .navigation-links-desktop .wp-block-navigation__container li {
        font-size: 0.9em;
    }
    
    /* Ensure bullets don't cause overflow */
    .navigation-links-desktop .wp-block-navigation__container li:not(:last-child)::after {
        margin: 0 8px;
    }
}

/* Sticky Header Styles */
.header-icon-phone svg,
.header-icon-email svg {
    transition: fill 0.3s ease, color 0.3s ease;
}

/* Icon colors for sticky header state */
.sticky-header .header-icon-phone svg,
.sticky-header .header-icon-email svg,
.sticky-header .header-left-icons svg,
.sticky-header .header-left-icons div svg,
.sticky-header [class*="header-icon"] svg {
    fill: #000000 !important;
    color: #000000 !important;
}

/* Navigation link colors for sticky header state */
.sticky-header .navigation-links-desktop .wp-block-navigation__container li.wp-block-navigation-item > a {
    color: #000000 !important;
}

/* Keep active/current navigation items highlighted even in sticky mode */
.sticky-header .navigation-links-desktop .wp-block-navigation__container li.is-current-item > a,
.sticky-header .navigation-links-desktop .wp-block-navigation__container li.is-active-parent > a {
    color: #d7a02a !important;
}

/* Keep active/current navigation separators highlighted in sticky mode */
.sticky-header .navigation-links-desktop .wp-block-navigation__container li.is-current-item:not(:last-child)::after,
.sticky-header .navigation-links-desktop .wp-block-navigation__container li.is-active-parent:not(:last-child)::after {
    color: #d7a02a !important;
}

/* Ensure navigation separators also use black in sticky mode */
.sticky-header .navigation-links-desktop .wp-block-navigation__container li:not(:last-child)::after {
    color: #000000 !important;
}

/* Header transitions */
.desktop-navigation {
    transition: all 0.3s ease;
}

.desktop-navigation img {
    transition: opacity 0.3s ease;
}

/* Interactive Dropdown Styles */
.interactive-dropdown {
    position: absolute;
    background-color: #ffffff !important;
    color: #000000 !important;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    white-space: nowrap;
    z-index: 999999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: auto;
    cursor: default;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    border: none !important;
    min-width: 200px;
}

.interactive-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown arrow pointing up */
.interactive-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-220%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.1));
}

.interactive-dropdown a {
    color: #000000 !important;
    text-decoration: none;
    display: block;
    padding: 12px 16px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-family: 'Arial', sans-serif !important;
    font-size: .7375rem !important;
    line-height: 1.66 !important;
    letter-spacing: .03125rem !important;
}

.interactive-dropdown a:last-child {
    border-bottom: none;
}

.interactive-dropdown a:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.interactive-dropdown a:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.interactive-dropdown.phone-dropdown {
    background: #fff;
    border-color: rgba(76, 175, 80, 0.2);
}

.interactive-dropdown.phone-dropdown::before {
    border-bottom-color: #fff;
}

.interactive-dropdown.phone-dropdown a {
    color: #000000 !important;
    position: relative;
}

.interactive-dropdown.phone-dropdown a:hover {
    background-color: #f5f5f5;
    color: #000000 !important;
}

.interactive-dropdown.email-dropdown {
    background: #ffffff !important;
    border: none !important;
}

.interactive-dropdown.email-dropdown::before {
    border-bottom-color: #ffffff;
}

.interactive-dropdown.email-dropdown a {
    color: #000000 !important;
}

.interactive-dropdown.email-dropdown a:hover {
    color: #000000 !important;
    background-color: #f5f5f5;
}

.interactive-dropdown.location-dropdown {
    background: #ffffff !important;
    border: none !important;
}

.interactive-dropdown.location-dropdown::before {
    border-bottom-color: #ffffff;
}

.interactive-dropdown.location-dropdown a {
    color: #000000 !important;
}

.interactive-dropdown.location-dropdown a:hover {
    color: #000000 !important;
    background-color: #f0f8ff;
}

/* Location items styling */
.interactive-dropdown.location-dropdown .location-item {
    display: block;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.interactive-dropdown.location-dropdown .location-item:hover {
    background-color: #e3f2fd;
    color: #1565c0;
}

/* Multiple phone numbers styling */
.interactive-dropdown.phone-dropdown .phone-number {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.interactive-dropdown.phone-dropdown .phone-number:hover {
    background-color: #f1f8e9;
    color: #1b5e20;
}

/* Add subtle animations for each item */
.interactive-dropdown a {
    animation: slideInFromTop 0.3s ease forwards;
    opacity: 0;
    transform: translateY(-5px);
}

.interactive-dropdown.show a:nth-child(1) {
    animation-delay: 0.1s;
}

.interactive-dropdown.show a:nth-child(2) {
    animation-delay: 0.15s;
}

.interactive-dropdown.show a:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes slideInFromTop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for interactive dropdown */
@media screen and (max-width: 768px) {
    .interactive-dropdown {
        font-size: 13px;
        min-width: 180px;
        max-width: 90vw;
        left: 50% !important;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .interactive-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .interactive-dropdown::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .interactive-dropdown a {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .interactive-dropdown {
        font-size: 12px;
        min-width: 160px;
        max-width: 85vw;
        left: 50% !important;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .interactive-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .interactive-dropdown a {
        padding: 8px 12px;
        font-size: 12px;
    }
}
