/* Disabled button styling */
.button.disabled, 
.button[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Book Now Container - position relative for tooltip positioning */
.book-now-container {
    position: relative;
    display: inline-block;
}

/* CSS-only tooltip using data-tooltip attribute */
.book-now-container[data-tooltip] {
    position: relative;
    cursor: help; /* Show help cursor when tooltip is available */
}

/* Tooltip bubble - created with ::before pseudo-element */
.book-now-container[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px); /* Position above the button with gap */
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    
    /* Styling */
    background: rgba(20, 20, 20, 0.9); /* Deep dark with slight transparency */
    backdrop-filter: blur(8px); /* Premium glass effect */
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: min(var(--border-radius-primary, 6px), 6px);
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
    white-space: pre-wrap; /* Preserve intended breaks but wrap if needed */
    width: max-content;
    max-width: 280px; /* Cap width for very long text */
    
    /* Shadow for depth */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 
                0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Border for definition */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    /* Smooth transition */
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Ensure tooltip stays on top */
    z-index: 1000;
}

/* Tooltip arrow - created with ::after pseudo-element */
.book-now-container[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px); /* Position just below the tooltip */
    left: 50%;
    transform: translateX(-50%);
    
    /* Triangle arrow */
    border: 8px solid transparent;
    border-top-color: rgba(30, 30, 30, 0.98);
    
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    /* Smooth transition */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Ensure arrow stays on top */
    z-index: 1001;
}

/* Show tooltip on hover - works on both container and disabled button */
.book-now-container[data-tooltip]:hover::before,
.book-now-container[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Ensure tooltip shows even when hovering over disabled button inside */
.book-now-container[data-tooltip]:hover::before {
    transform: translateX(-50%) scale(1) translateY(-2px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .book-now-container[data-tooltip]::before {
        max-width: 240px;
        min-width: 180px;
        font-size: 0.8125rem;
        padding: 10px 14px;
    }
    
    .book-now-container[data-tooltip]::after {
        border-width: 6px;
    }
}

