/* ========================================
   BOOKING SERVICE POPUP STYLES
   ======================================== */

/* Overlay con blur background - simile al tour overlay */
.booking-service-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.booking-service-popup.show {
    opacity: 1;
    visibility: visible;
}

.booking-service-popup.hide {
    opacity: 0;
    visibility: hidden;
}

/* Modal container - simile alla welcome modal */
.booking-popup-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 480px;
    position: relative;
    padding: 32px 24px 24px 24px;
    font-family: 'DM Sans', Arial, sans-serif;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s ease;
}

.booking-service-popup.show .booking-popup-content {
    transform: translateY(0) scale(1);
}

/* Header section */
.booking-popup-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.booking-popup-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #24D07E, #1fa86a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.booking-popup-text {
    flex: 1;
}

.booking-popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a202c;
    line-height: 1.3;
}

.booking-popup-message {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

.booking-popup-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f7fafc;
    border-radius: 50%;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.booking-popup-close:hover {
    background: #e2e8f0;
    color: #2d3748;
}

/* Actions section */
.booking-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.booking-popup-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    text-align: center;
}

.booking-popup-btn.primary {
    background: linear-gradient(135deg, #574BE0, #7A55F7);
    color: white;
    flex: 1;
    min-width: 200px;
}

.booking-popup-btn.primary:hover {
    background: linear-gradient(135deg, #4c42d4, #6b4de6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(87, 75, 224, 0.3);
    text-decoration: none;
    color: white;
}

.booking-popup-btn.secondary {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.booking-popup-btn.secondary:hover {
    background-color: #edf2f7;
    color: #2d3748;
}

/* Animazioni per i modali */
@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes popoverFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .booking-popup-content {
        width: 95%;
        max-width: 360px;
        padding: 24px 20px 20px 20px;
    }

    .booking-popup-header {
        gap: 12px;
        margin-bottom: 20px;
    }

    .booking-popup-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .booking-popup-title {
        font-size: 1.1rem;
    }

    .booking-popup-message {
        font-size: 0.9rem;
    }

    .booking-popup-actions {
        flex-direction: column;
        gap: 10px;
    }

    .booking-popup-btn {
        width: 100%;
        justify-content: center;
    }

    .booking-popup-btn.primary {
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .booking-popup-content {
        width: 98%;
        padding: 20px 16px 16px 16px;
    }

    .booking-popup-title {
        font-size: 1rem;
    }

    .booking-popup-message {
        font-size: 0.85rem;
    }
}

/* ========================================
   ORDERS & RESERVATIONS TOUR STYLES
/* ========================================
   TOUR POPOVER STYLES - Inspired by guided-tour.css
   ======================================== */

/* Tour Overlay - Responsive */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

/* Welcome overlay with blur background */
.tour-overlay.welcome-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Step overlay with lighter semi-transparent background */
.tour-overlay.step-overlay {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    /* Safari support */
    pointer-events: none;
    /* Allow clicks through the overlay */
}

.tour-overlay.step-overlay.active {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Only the popover itself should capture clicks */
.popover-container {
    pointer-events: all;
}

.tour-overlay.active {
    display: flex;
}

/* Hiding animation for overlay */
.tour-overlay.hiding {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

/* Popover System - Mobile First */
.popover-container {
    position: absolute;
    width: calc(100vw - 32px);
    max-width: 320px;
    z-index: 10001;
    pointer-events: none;
}

/* Main tour popover box - Modern glass morphism styling */
.tour-popover {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #1a202c;
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    pointer-events: all;
    animation: popoverFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'DM Sans', Arial, sans-serif;
    overflow: hidden;
    min-width: 280px;
    max-width: 420px;
    width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

/* Popover Header */
.popover-header {
    padding: 24px 24px 16px 24px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tour-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #574BE0, #7A55F7, #24D07E);
    border-radius: 16px 16px 0 0;
}

.popover-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
    padding-right: 40px;
    /* Space for close button */
    line-height: 1.3;
    margin-top: 8px;
    /* Space for accent bar */
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.popover-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popover-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1a202c;
    transform: scale(1.1);
}

/* Popover Body */
.popover-body {
    padding: 0 24px 24px 24px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for webkit browsers */
.popover-body::-webkit-scrollbar {
    width: 4px;
}

.popover-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.popover-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.popover-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.popover-content {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.popover-body p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

/* Popover Footer */
.popover-footer {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0 0 16px 16px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-counter {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    text-align: left;
    order: 1;
}

.popover-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    order: 2;
}

.popover-buttons .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.popover-buttons .btn-blur-green {
    background: rgba(36, 208, 126, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(36, 208, 126, 0.3) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(36, 208, 126, 0.2) !important;
}

.popover-buttons .btn-blur-green:hover {
    background: rgba(31, 168, 106, 0.95) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px rgba(36, 208, 126, 0.3) !important;
    color: white !important;
}

.popover-buttons .btn-blur-lightgray {
    background: rgba(248, 250, 252, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    color: #64748b !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.popover-buttons .btn-blur-lightgray:hover {
    background: rgba(241, 245, 249, 0.95) !important;
    color: #475569 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Popover Arrows - Modern glass style */
.popover-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Arrow positions with class-based positioning */
.popover-container.position-top .popover-arrow,
.popover-arrow.arrow-bottom {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: rgba(255, 255, 255, 0.95);
    border-bottom: none;
}

.popover-container.position-bottom .popover-arrow,
.popover-arrow.arrow-top {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: rgba(255, 255, 255, 0.95);
    border-top: none;
}

.popover-container.position-left .popover-arrow,
.popover-arrow.arrow-right {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: rgba(255, 255, 255, 0.95);
    border-right: none;
}

.popover-container.position-right .popover-arrow,
.popover-arrow.arrow-left {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: rgba(255, 255, 255, 0.95);
    border-left: none;
}

/* Element highlighting - Clean effect without zoom */
.tour-highlight {
    position: relative !important;
    /* Force position for z-index to work */
    z-index: 10003 !important;
    /* Higher than overlay */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 12px !important;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 8px 32px rgba(0, 0, 0, 0.3) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    pointer-events: all !important;
    /* Ensure highlighted elements remain clickable */
}

/* Special highlighting for buttons during tour */
.tour-highlight.catalogue-preview-btn,
.tour-highlight.weekly-summary-btn,
.tour-highlight.control-action-btn {
    position: relative !important;
    /* Force position */
    pointer-events: all !important;
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow:
        0 0 0 3px rgba(87, 75, 224, 0.6),
        0 12px 40px rgba(87, 75, 224, 0.4) !important;
    transform: scale(1.02) !important;
    z-index: 10006 !important;
    /* Even higher for buttons */
}

/* Special highlighting for column containers */
.tour-highlight.weekly-report-column,
.tour-highlight.orders-left-column {
    position: relative !important;
    /* Force position */
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 16px !important;
    box-shadow:
        0 0 0 3px rgba(87, 75, 224, 0.6),
        0 12px 40px rgba(87, 75, 224, 0.4) !important;
    z-index: 10005 !important;
    /* High z-index for columns */
    pointer-events: all !important;
}

.tour-highlight.catalogue-preview-btn:hover,
.tour-highlight.weekly-summary-btn:hover,
.tour-highlight.control-action-btn:hover {
    transform: scale(1.05) !important;
    box-shadow:
        0 0 0 4px rgba(87, 75, 224, 0.8),
        0 16px 50px rgba(87, 75, 224, 0.5) !important;
}

/* Ensure popover elements work */
.popover-container,
.tour-popover,
.popover-buttons .btn,
.popover-close {
    pointer-events: all !important;
}

/* Animations - Modern and smooth */
@keyframes popoverFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Mobile Responsive for Tour Popovers - Mobile First Design */

/* Base mobile styles (320px+) */
.popover-container {
    width: calc(100vw - 24px);
    max-width: 300px;
    position: fixed !important;
}

.tour-popover {
    min-width: unset;
    width: 100%;
    max-width: 300px;
}

.popover-header {
    padding: 18px 18px 12px 18px;
}

.popover-title {
    font-size: 1.1rem;
    line-height: 1.3;
    padding-right: 32px;
    word-wrap: break-word;
}

.popover-close {
    top: 14px;
    right: 14px;
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
}

.popover-body {
    padding: 0 18px 18px 18px;
    max-height: 50vh;
}

.popover-content,
.popover-body p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.popover-footer {
    padding: 14px 18px;
    flex-direction: column;
    gap: 10px;
}

.step-counter {
    font-size: 0.75rem;
    text-align: left;
    order: 1;
}

.popover-buttons {
    order: 2;
    width: 100%;
    gap: 8px;
    justify-content: stretch;
}

.popover-buttons .btn {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.85rem;
    text-align: center;
    min-height: 42px;
    /* Touch-friendly */
    border-radius: 8px;
}

.popover-buttons .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 44px;
    /* Touch-friendly */
    border-radius: 8px;
}

/* Small phones (375px+) */
@media (min-width: 375px) {
    .popover-container {
        max-width: 320px;
        width: calc(100vw - 28px);
    }

    .tour-popover {
        max-width: 320px;
    }

    .popover-title {
        font-size: 1.15rem;
    }

    .popover-content,
    .popover-body p {
        font-size: 0.95rem;
    }

    .popover-header {
        padding: 20px 20px 14px 20px;
    }

    .popover-body {
        padding: 0 20px 20px 20px;
        max-height: 55vh;
    }
}

/* Large phones (480px+) */
@media (min-width: 480px) {
    .popover-container {
        max-width: 360px;
        width: calc(100vw - 32px);
    }

    .tour-popover {
        max-width: 360px;
    }

    .popover-header {
        padding: 22px 22px 16px 22px;
    }

    .popover-body {
        padding: 0 22px 22px 22px;
        max-height: 60vh;
    }

    .popover-footer {
        padding: 18px 22px;
        flex-direction: column;
        gap: 12px;
    }

    .step-counter {
        order: 1;
        text-align: left;
        font-size: 0.8rem;
    }

    .popover-buttons {
        order: 2;
        width: 100%;
        gap: 10px;
        justify-content: stretch;
    }

    .popover-buttons .btn {
        flex: 1;
        min-width: auto;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
    .popover-container {
        width: 400px;
        max-width: 420px;
    }

    .tour-popover {
        max-width: 420px;
    }

    .popover-title {
        font-size: 1.25rem;
    }

    .popover-header {
        padding: 24px 24px 16px 24px;
    }

    .popover-body {
        padding: 0 24px 24px 24px;
        max-height: 65vh;
    }

    .popover-footer {
        padding: 20px 24px;
        gap: 16px;
        flex-direction: column;
    }

    .step-counter {
        order: 1;
        text-align: left;
    }

    .popover-buttons {
        gap: 12px;
        order: 2;
        justify-content: flex-end;
        width: auto;
    }

    .popover-buttons .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        min-width: 90px;
        border-radius: 8px;
        flex: 0 0 auto;
    }
}

/* Large screens (1024px+) */
@media (min-width: 1024px) {
    .popover-container {
        width: 440px;
        max-width: 460px;
    }

    .tour-popover {
        max-width: 460px;
    }

    .popover-body {
        max-height: 70vh;
    }

    .popover-buttons .btn {
        padding: 12px 24px;
        font-size: 1rem;
        min-width: 100px;
        border-radius: 8px;
        flex: 0 0 auto;
    }
}

/* Ultra-wide screens (1440px+) */
@media (min-width: 1440px) {
    .popover-container {
        width: 480px;
        max-width: 500px;
    }

    .tour-popover {
        max-width: 500px;
    }

    .popover-title {
        font-size: 1.3rem;
    }

    .popover-content,
    .popover-body p {
        font-size: 1.05rem;
    }

    .popover-body {
        max-height: 75vh;
    }
}

/* ========================================
   END OF TOUR POPOVER STYLES
   ======================================== */

/* ========================================
   RESPONSIVE BOOKING BANNER STYLES
   ======================================== */

/* Banner miglioramenti aggiuntivi per responsività */
@media (max-width: 768px) {
    .booking-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px 0;
    }

    .banner-actions {
        width: 100%;
    }

    .btn-access-booking {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    .btn-text {
        align-items: center;
    }

    .btn-back-to-dashboard .btn-text {
        display: none;
    }

    .btn-back-to-dashboard {
        padding: 10px 12px;
        min-width: 44px;
        justify-content: center;
    }

    .booking-status-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    /*.booking-management-header .container>div {
        flex-direction: column;
        gap: 16px;
        align-items: stretch !important;
    }*/

    .booking-management-header .d-flex:last-child {
        justify-content: space-between;
    }

    .banner-icon-wrapper .banner-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .banner-title {
        font-size: 1.05rem;
    }

    .banner-subtitle {
        font-size: 0.875rem;
    }
}

/* Tour Element Visibility Override */
.orders-tour-highlight,
.orders-tour-highlight * {
    pointer-events: auto !important;
    visibility: visible !important;
}

/* Ensure modal backdrops don't interfere with tour */
.orders-tour-overlay {
    z-index: 10000 !important;
}

.orders-tour-overlay.step-overlay {
    pointer-events: none;
}

.orders-tour-overlay .orders-popover-container {
    pointer-events: auto;
}

/* Ensure tour highlights are above modals */
.orders-tour-highlight {
    z-index: 10001 !important;
    position: relative !important;
}

/* Ensure weekly report column and its children are always above overlay */
.weekly-report-column {
    position: relative !important;
    z-index: 10005 !important;
    pointer-events: all !important;
}

.weekly-report-column .card,
.weekly-report-column .weekly-card,
.weekly-report-column .weekly-summary-card {
    position: relative !important;
    z-index: 10006 !important;
    pointer-events: all !important;
}

/* Ensure right column is above overlay */
.right-column {
    position: relative !important;
    z-index: 10005 !important;
    pointer-events: all !important;
}

/* Force position for all buttons during tour */
.catalogue-preview-btn,
.weekly-summary-btn,
.control-action-btn {
    position: relative !important;
    z-index: 10006 !important;
    pointer-events: all !important;
}






/* ========================================
   BOOKING ELEMENTS TOUR HIGHLIGHTING
   ======================================== */

/* Special highlighting for booking elements during management tour */
.tour-highlight.booking-item,
.tour-highlight.booking-card,
.tour-highlight.daily-booking-card,
.tour-highlight[data-booking-id] {
    position: relative !important;
    background: rgba(36, 208, 126, 0.05) !important;
    border: 2px solid rgba(36, 208, 126, 0.3) !important;
    border-radius: 12px !important;
    box-shadow:
        0 0 0 2px rgba(36, 208, 126, 0.6),
        0 8px 32px rgba(36, 208, 126, 0.4) !important;
    transform: scale(1.02) !important;
    z-index: 10006 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tour-highlight.booking-item:hover,
.tour-highlight.booking-card:hover,
.tour-highlight.daily-booking-card:hover {
    transform: scale(1.04) !important;
    box-shadow:
        0 0 0 3px rgba(36, 208, 126, 0.8),
        0 12px 40px rgba(36, 208, 126, 0.5) !important;
}

/* Special highlighting for booking actions */
.tour-highlight.booking-actions,
.tour-highlight .booking-actions {
    position: relative !important;
    background: rgba(36, 208, 126, 0.05) !important;
    border-radius: 8px !important;
    box-shadow:
        0 0 0 2px rgba(36, 208, 126, 0.4),
        0 4px 16px rgba(36, 208, 126, 0.3) !important;
    z-index: 10006 !important;
    padding: 0.5rem !important;
}

/* Animazione per il booking che deve essere cliccato */
@keyframes bookingPulse {

    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(36, 208, 126, 0.6), 0 8px 32px rgba(36, 208, 126, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(36, 208, 126, 0.8), 0 12px 40px rgba(36, 208, 126, 0.6);
        transform: scale(1.02);
    }
}

.tour-highlight.booking-item[data-action="click"],
.tour-highlight.booking-card[data-action="click"],
.tour-highlight.daily-booking-card[data-action="click"] {
    animation: bookingPulse 2s infinite !important;
}

/* Management tour specific gradient for accent bar */
.tour-popover .tour-accent-bar.management-tour {
    background: linear-gradient(90deg, #24D07E, #1fa86a, #574BE0) !important;
}

/* Management tour modal gradient override */
.tour-welcome-modal.management-tour h2 {
    background: linear-gradient(135deg, #24D07E, #1fa86a) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Ensure booking elements are above tour overlay */
[data-booking-id].tour-highlight,
.booking-item.tour-highlight,
.booking-card.tour-highlight,
.daily-booking-card.tour-highlight {
    z-index: 10007 !important;
    pointer-events: all !important;
}

/* Mobile responsive adjustments for booking highlights */
@media (max-width: 768px) {

    .tour-highlight.booking-item,
    .tour-highlight.booking-card,
    .tour-highlight.daily-booking-card {
        transform: scale(1.01) !important;
        margin: 0.25rem 0 !important;
    }

    .tour-highlight.booking-item:hover,
    .tour-highlight.booking-card:hover,
    .tour-highlight.daily-booking-card:hover {
        transform: scale(1.02) !important;
    }
}

/* Miglioramenti per il posizionamento del tour di gestione */
@media (max-width: 768px) {
    .popover-container.position-right {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: auto !important;
        bottom: 20px !important;
    }
    
    .popover-container.position-right .popover-arrow {
        display: none !important;
    }
    
    .popover-container.position-bottom {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 20px !important;
    }
}

/* Assicura che il popover non esca dal viewport */
.tour-popover {
    max-width: calc(100vw - 40px) !important;
    word-wrap: break-word !important;
}

/* MOBILE TOUR OVERLAY STYLES */
.mobile-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(79, 70, 229, 0.95) 0%, 
        rgba(59, 130, 246, 0.9) 50%, 
        rgba(16, 185, 129, 0.95) 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-tour-overlay.active {
    opacity: 1;
    transform: scale(1);
}

.mobile-tour-overlay.hiding {
    opacity: 0;
    transform: scale(0.9);
}

.mobile-tour-content {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 90%;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.mobile-tour-content h3 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.mobile-tour-content .step-counter {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.mobile-tour-content .location-hint {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.mobile-tour-content .step-description {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.mobile-tour-content .progress-bar {
    background: #e5e7eb;
    height: 6px;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.mobile-tour-content .progress-fill {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.mobile-tour-navigation {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.mobile-tour-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.mobile-tour-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.mobile-tour-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.mobile-tour-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-tour-btn.primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.mobile-tour-btn.secondary:hover {
    background: #e5e7eb;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .mobile-tour-overlay {
        padding: 15px;
    }
    
    .mobile-tour-content {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .mobile-tour-content h3 {
        font-size: 20px;
    }
    
    .mobile-tour-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-tour-btn {
        width: 100%;
        padding: 14px 20px;
    }
}