/* Reservation System - Glassmorphism Design */

/* Animated background for reservation page */
.reservation-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 50%, #0f172a 100%);
    z-index: -10;
}

/* Animated orbs for reservation page */
.reservation-background::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, transparent 70%);
    filter: blur(100px);
    animation: float 22s ease-in-out infinite;
    z-index: -9;
    top: -300px;
    right: -300px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(120px, 120px) scale(1.1); }
    66% { transform: translate(-60px, 180px) scale(0.9); }
}

/* Secondary animated orb */
.reservation-orb-secondary {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.2) 0%, transparent 70%);
    filter: blur(90px);
    animation: float-reverse 20s ease-in-out infinite;
    z-index: -9;
    bottom: -250px;
    left: -250px;
}

@keyframes float-reverse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-100px, -140px) scale(1.15); }
    66% { transform: translate(80px, -100px) scale(0.95); }
}

/* Main reservation wizard container - Glassmorphism style */
#reservation-wizard {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 3rem;
    max-width: 1000px;
    margin: 2rem auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(249, 115, 22, 0.1) inset;
    animation: slideInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

/* Shimmer effect for wizard */
#reservation-wizard::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 4s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wizard Progress Bar - Enhanced Glassmorphism */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 2px;
    z-index: 1;
    transform: translateY(-50%);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 2;
    background: transparent;
    padding: 0 1rem;
    transition: all 0.4s ease;
}

.wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wizard-step.active {
    color: #ffffff;
    font-weight: 600;
}

.wizard-step.active .wizard-step-number {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.7), 
                0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.wizard-step.completed .wizard-step-number {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 0 15px rgba(22, 163, 74, 0.5);
}

/* Step Content Animation */
.wizard-content .step-content {
    display: none;
}

.wizard-content .step-content.active {
    display: block;
    animation: wizard-fade-in 0.7s ease-out;
}

@keyframes wizard-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styling - Glassmorphism */
.form-group-custom {
    margin-bottom: 1.8rem;
    text-align: left;
}

.form-group-custom label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
}

.form-control-custom {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15),
                0 8px 25px rgba(0, 0, 0, 0.2);
    outline: none;
}

.form-control-custom.invalid {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
    background: rgba(239, 68, 68, 0.1);
}

/* Custom Datepicker - Enhanced Glassmorphism */
.custom-datepicker-wrapper {
    position: relative;
}

#styled-datepicker {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

input[type="date"].form-control-custom {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.datepicker-container {
    position: absolute;
    z-index: 3000;
    top: calc(100% + 15px);
    left: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1.5rem;
    color: #ffffff;
    transform-origin: top center;
    transition: all 0.3s ease;
}

.datepicker-container.hidden {
    transform: scale(0.9) translateY(-15px);
    opacity: 0;
    pointer-events: none;
}

.datepicker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.datepicker-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.datepicker-nav:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.datepicker-month-year {
    font-weight: 600;
    font-size: 1.1rem;
}

.datepicker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.datepicker-cell {
    text-align: center;
    padding: 0.75rem 0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.day-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.date-cell {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.date-cell:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(249, 115, 22, 0.4);
    transform: scale(1.05);
}

.date-cell.disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

.date-cell.today {
    border: 2px solid rgba(249, 115, 22, 0.6);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

.date-cell.selected {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transform: scale(1.05);
}

.date-cell.disabled:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: none;
}

.opening-hours-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: left;
}

/* Duration Slider - Enhanced */
.duration-slider-container {
    position: relative;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.duration-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 8px;
    outline: none;
    transition: opacity .2s;
    --slider-progress: 33.3%;
    background: linear-gradient(to right, 
                    linear-gradient(135deg, #f97316 0%, #ea580c 100%) var(--slider-progress), 
                    rgba(255,255,255,0.2) var(--slider-progress));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) inset;
}

.duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transition: all 0.3s ease;
}

.duration-slider:active::-webkit-slider-thumb {
    transform: scale(1.3);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.6);
}

.duration-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
}

.duration-slider:active::-moz-range-thumb {
    transform: scale(1.3);
}

#duration-output {
    font-weight: 700;
    color: #ffffff;
    margin-left: 0.75rem;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.duration-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    font-weight: 500;
}

/* Time Grid - Enhanced Glassmorphism */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-slot {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.time-slot.visible {
    opacity: 1;
    transform: translateY(0);
}

.time-slot:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.2);
}

.time-slot.selected {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.time-slot.selected.visible {
    transform: scale(1.05) translateY(0);
}

.time-grid p {
    color: rgba(255, 255, 255, 0.7);
    grid-column: 1 / -1;
    text-align: center;
    margin: 1rem 0;
    font-style: italic;
}

/* Wizard Navigation - Enhanced Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
}

.wizard-navigation .btn {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.wizard-navigation .btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.wizard-navigation .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.5);
}

.wizard-navigation .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wizard-navigation .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Button shine effect */
.wizard-navigation .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.wizard-navigation .btn:hover::before {
    left: 100%;
}

/* Reservation Summary - Enhanced Glassmorphism */
.reservation-summary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    color: #ffffff;
    text-align: left;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.reservation-summary .summary-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reservation-summary .summary-address {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.reservation-summary #summary-details p {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.reservation-summary #summary-details i {
    color: #f97316;
    margin-right: 12px;
    width: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reservation-summary hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0;
}

.reservation-summary .summary-info-title {
    font-weight: 700;
    margin-top: 1.5rem;
    color: #ffffff;
    font-size: 1.1rem;
}

.reservation-summary .summary-info-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Confirmation Step - Enhanced */
#reservation-confirmation {
    color: #ffffff;
    text-align: center;
}

#reservation-confirmation .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.confirm-circle {
    fill: #16a34a !important;
    filter: drop-shadow(0 8px 25px rgba(22, 163, 74, 0.4));
    transition: transform 0.6s cubic-bezier(.2,.9,.2,1), opacity 0.6s ease;
    transform-origin: 50% 50%;
}

.confirm-check {
    stroke: #ffffff !important;
    stroke-width: 8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    opacity: 0;
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.6s ease 0.1s, opacity 0.4s ease 0.1s, transform 0.6s cubic-bezier(.2,.9,.2,1);
}

.step-content.active #reservation-confirmation .confirm-circle {
    transform: scale(1);
    animation: success-pulse 2s ease-in-out infinite;
}

.step-content.active #reservation-confirmation .confirm-check {
    opacity: 1;
}

@keyframes success-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.confirm-circle { 
    transform: scale(0.8); 
}

.icon svg { 
    filter: drop-shadow(0 12px 30px rgba(22, 163, 74, 0.4)); 
}

/* Messages */
.wizard-message {
    color: #ffffff;
    background: rgba(251, 191, 36, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
}

/* Table Map - Enhanced Glassmorphism */
.table-map {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Table nodes - Enhanced with better glassmorphism */
.table-node {
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

/* Zone-specific colors with glassmorphism effect */
g[data-zone="Podest"] .table-node {
    fill: rgba(183, 214, 230, 0.8);
    backdrop-filter: blur(5px);
}

g[data-zone="Biergarten"] .table-node {
    fill: rgba(191, 232, 191, 0.8);
    backdrop-filter: blur(5px);
}

g[data-zone="Donaublick"] .table-node {
    fill: rgba(234, 213, 140, 0.8);
    backdrop-filter: blur(5px);
}

g[data-zone="Wintergarten"] .table-node {
    fill: rgba(207, 207, 207, 0.8);
    backdrop-filter: blur(5px);
}

.table-node {
    fill: rgba(255, 255, 255, 0.25);
}

.table-node:hover {
    fill: rgba(66, 117, 170, 0.9) !important;
    stroke: rgba(66, 117, 170, 1);
    stroke-width: 3;
    transform: scale(1.08);
    filter: drop-shadow(0 8px 25px rgba(66, 117, 170, 0.5));
}

.table-node.selected {
    fill: rgba(249, 115, 22, 0.95) !important;
    stroke: #f97316 !important;
    stroke-width: 3.5 !important;
    filter: drop-shadow(0 10px 30px rgba(249, 115, 22, 0.7)) !important;
    animation: selected-glow 2.5s ease-in-out infinite;
}

@keyframes selected-glow {
    0%, 100% { 
        filter: drop-shadow(0 10px 30px rgba(249, 115, 22, 0.7));
    }
    50% { 
        filter: drop-shadow(0 10px 30px rgba(249, 115, 22, 0.9));
    }
}

.table-node.reserved {
    fill: rgba(200, 200, 200, 0.95) !important;
    stroke: rgba(100, 100, 100, 0.8) !important;
    stroke-dasharray: 5 4 !important;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6)) !important;
}

.table-node[aria-disabled="true"] {
    fill: rgba(255, 255, 255, 0.2) !important;
    stroke: rgba(255, 255, 255, 0.4) !important;
    stroke-width: 1.5 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    transform: none !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)) !important;
}

.table-node[aria-disabled="true"]:hover {
    fill: rgba(255, 255, 255, 0.2) !important;
    stroke: rgba(255, 255, 255, 0.4) !important;
    transform: none !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)) !important;
}

/* Enhanced table labels */
.table-label {
    fill: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.9),
        1px -1px 0 rgba(0, 0, 0, 0.9),
        -1px 1px 0 rgba(0, 0, 0, 0.9),
        1px 1px 0 rgba(0, 0, 0, 0.9),
        0 0 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
}

.table.selected .table-label,
.table-node.selected + .table-label {
    fill: #ffffff !important;
    font-weight: 800 !important;
    font-size: 17px !important;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 1),
        1px -1px 0 rgba(0, 0, 0, 1),
        -1px 1px 0 rgba(0, 0, 0, 1),
        1px 1px 0 rgba(0, 0, 0, 1),
        0 0 6px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(249, 115, 22, 0.6) !important;
}

.table-node[aria-disabled="true"] + .table-label {
    fill: rgba(255, 255, 255, 0.4) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

/* Enhanced map tooltip */
.map-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.map-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-8px);
}

/* Enhanced map controls */
.map-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced toggle switch for flexible seating */
.flexible-control {
    display: flex;
    align-items: center;
    gap: 1rem; /* a bit more breathing room */
}

.flexible-control .cookie-toggle-switch {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px; /* increase track width */
    height: 36px; /* slightly taller for better proportions */
    position: relative;
    --toggle-thumb-size: 26px;
    --toggle-pad-x: 6px;
}

/* Ensure track is fully rounded and label has left padding so switch doesn't overlap text */
.flexible-control .cookie-switch-track {
    border-radius: 9999px !important; /* fully pill-shaped */
}

/* Add left padding to the label so the switch area is reserved and text won't be covered */
.flexible-control .form-check-label {
    padding-left: calc(var(--toggle-thumb-size, 26px) + var(--toggle-pad-x, 6px) + 8px);
}

/* Make sure the switch sits above background but does not cover text due to label padding */
.flexible-control .cookie-toggle-switch {
    z-index: 3; /* on top visually */
}

.flexible-control .form-check-label {
    z-index: 1;
}

.cookie-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.cookie-switch-track {
    display: inline-flex;
    align-items: center;
    width: 68px;
    height: 36px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) inset;
    padding-left: var(--toggle-pad-x) !important;
    padding-right: var(--toggle-pad-x) !important;
    min-width: 68px !important;
}

.cookie-switch-thumb {
    display: block;
    width: var(--toggle-thumb-size) !important;
    height: var(--toggle-thumb-size) !important;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    top: 50%;
    left: var(--toggle-pad-x) !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cookie-toggle-input:checked + .cookie-switch-track {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3) inset;
}

.cookie-toggle-input:checked + .cookie-switch-track .cookie-switch-thumb {
    left: calc(100% - var(--toggle-pad-x) - var(--toggle-thumb-size)) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.cookie-toggle-input:focus + .cookie-switch-track {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}

.flexible-control .form-check-label {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* ensure the toggle stays vertically centered on small screens */
@media (max-width: 480px) {
    .flexible-control { gap: .75rem; }
    .flexible-control .cookie-toggle-switch { width: 60px; height: 32px; }
    .cookie-switch-thumb { width: 22px; height: 22px; left: 5px; }
    .cookie-toggle-input:checked + .cookie-switch-track .cookie-switch-thumb { left: calc(100% - 5px - 22px); }
}

/* Reservation date control - Flexbox alignment for better spacing */
.reservation-date-control {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reservation-date-control input.form-control {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#reservation-reload-day {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto;
    line-height: 1;
}

#reservation-reload-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

#reservation-reload-day:active { 
    transform: translateY(0); 
}

#reservation-reload-day svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

/* Success box styling similar to auth alert-success but tuned for reservation confirmation */
.success-box {
    background: rgba(34, 197, 94, 0.12); /* green tone */
    border: 1px solid rgba(34, 197, 94, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #0b6623; /* dark green text */
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 163, 82, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-box .success-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0b6623;
    margin: 0;
}

.success-box .success-text {
    color: rgba(11, 102, 35, 0.95);
    text-align: center;
    max-width: 900px;
}

/* Reservation alert-success matching auth .glass-form .alert-success */
#reservation-wizard .alert.alert-success,
#reservation-section .alert.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 8px 24px rgba(16, 163, 82, 0.12);
    color: #0b6623;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#reservation-wizard .alert.alert-success i,
#reservation-section .alert.alert-success i {
    font-size: 1.6rem;
    color: #16a34a;
}

#reservation-wizard .alert.alert-success .alert-content,
#reservation-section .alert.alert-success .alert-content {
    line-height: 1.4;
    color: rgba(11,102,35,0.95);
}

/* keep compatibility with previously added .success-box */
.success-box { /* existing rules kept */ }

/* Responsive adjustments */
@media (max-width: 768px) {
    #reservation-wizard {
        margin: 1rem;
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .wizard-progress {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .wizard-progress::before {
        display: none;
    }
    
    .wizard-step {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .wizard-step-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .time-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .reservation-date-control {
        flex-direction: column;
        align-items: stretch;
    }
    
    #reservation-reload-day {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #reservation-wizard {
        padding: 1.5rem 1rem;
    }
    
    .form-control-custom {
        padding: 0.8rem 1rem;
    }
    
    .wizard-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .wizard-navigation .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
}

/* Stronger, scoped rules to ensure toggle aligns with label inside the table map (placed last to increase precedence) */
#table-map .flexible-control,
#table-map .flexible-control * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
#table-map .flexible-control {
    display: flex !important;
    align-items: center !important;
    gap: .75rem !important;
}
#table-map .flexible-control .cookie-toggle-switch {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 68px !important;
    height: 36px !important;
}
#table-map .flexible-control .cookie-switch-track {
    display: inline-flex !important;
    align-items: center !important;
    width: 68px !important;
    height: 36px !important;
    padding: 0 !important;
}
#table-map .flexible-control .cookie-switch-thumb {
    top: 50% !important;
    transform: translateY(-50%) !important;
}
#table-map .flexible-control label.form-check-label {
    margin: 0 !important;
    line-height: 1.05 !important;
}
/* small-screen tweak scoped to table map */
@media (max-width: 480px) {
    #table-map .flexible-control { gap: .5rem !important; }
    #table-map .flexible-control .cookie-toggle-switch { width: 50px !important; height: 28px !important; }
    #table-map .flexible-control .cookie-switch-thumb { width: 22px !important; height: 22px !important; }
}

/* Completely collapse wizard subsections when hidden so they don't affect layout */
.wizard-section.hidden {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Ensure summary and container adapt when subsections are hidden */
#reservation-wizard .wizard-content {
    transition: none !important;
}
