/* restaurant-tables.css */

* {
    box-sizing: border-box;
}

/* NEW: Initial Modal Styles - HEIGHT-BASED DESIGN */
#initial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    animation: modalFadeIn 0.5s ease-out forwards;
}

#initial-modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    width: 90%;
    max-width: 500px;
    height: 90vh;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    animation: modalSlideIn 0.5s ease-out 0.2s both;
    transform: translateY(30px);
    box-sizing: border-box;
    padding: 4vh 4vw;
    overflow: hidden;
}

#initial-modal-content h2 {
    color: #333;
    font-size: clamp(16px, 4vh, 28px);
    margin: 0 0 2vh 0;
    font-weight: bold;
    line-height: 1.2;
    padding: 0;
    flex-shrink: 0;
}

.welcome-image {
    margin: 0 0 2vh 0;
    text-align: center;
    flex-shrink: 0;
    max-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-image img {
    width: clamp(150px, 40vw, 400px);
    height: auto;
    border-radius: 10px;
    max-height: 20vh;
    object-fit: contain;
}

#initial-modal-content p {
    color: #666;
    font-size: clamp(12px, 2.5vh, 18px);
    margin: 0 0 2vh 0;
    line-height: 1.4;
    padding: 0;
    flex-shrink: 0;
}

.modal-buttons {
    display: flex;
    gap: 2vw;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.modal-btn {
    padding: clamp(10px, 2vh, 15px) clamp(20px, 4vw, 30px);
    border: none;
    border-radius: 50px;
    font-size: clamp(12px, 2.2vh, 16px);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: clamp(120px, 25vw, 180px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1vw;
    position: relative;
    overflow: hidden;
    flex: 1;
    max-width: 200px;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

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

.mesas-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.mesas-btn:hover {
    background: linear-gradient(135deg, #45a049, #388E3C);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.entradas-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.entradas-btn:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

/* Modal animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Mobile responsive - SIMPLIFIED HEIGHT-BASED */
@media (max-width: 768px) {
    #initial-modal {
        padding: 15px;
    }
    
    #initial-modal-content {
        width: 95%;
        height: 95vh;
        border-radius: 15px;
        padding: 3vh 4vw;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 2vh;
        width: 100%;
    }
    
    .modal-btn {
        width: 100%;
        max-width: none;
        flex: none;
    }
}

/* Small screens - HEIGHT-BASED */
@media (max-width: 480px) {
    #initial-modal {
        padding: 10px;
    }
    
    #initial-modal-content {
        width: 98%;
        height: 98vh;
        border-radius: 12px;
        padding: 2.5vh 3vw;
    }
    
    #initial-modal-content h2 {
        font-size: clamp(14px, 3.5vh, 20px);
        margin-bottom: 1.5vh;
    }
    
    #initial-modal-content p {
        font-size: clamp(11px, 2.2vh, 14px);
        margin-bottom: 1.5vh;
    }
    
    .welcome-image {
        margin-bottom: 2vh;
        max-height: 20vh;
    }
    
    .welcome-image img {
        width: clamp(120px, 35vw, 300px);
        max-height: 15vh;
    }
    
    .modal-btn {
        font-size: clamp(11px, 2vh, 15px);
        padding: clamp(8px, 1.8vh, 14px) clamp(16px, 3vw, 18px);
    }
}

/* Extra small screens - HEIGHT-BASED */
@media (max-width: 360px) {
    #initial-modal {
        padding: 8px;
    }
    
    #initial-modal-content {
        width: 99%;
        height: 99vh;
        border-radius: 10px;
        padding: 2vh 2.5vw;
    }
    
    #initial-modal-content h2 {
        font-size: clamp(12px, 3vh, 18px);
        margin-bottom: 1vh;
    }
    
    #initial-modal-content p {
        font-size: clamp(10px, 2vh, 13px);
        margin-bottom: 1vh;
    }
    
    .welcome-image {
        margin-bottom: 1.5vh;
        max-height: 18vh;
    }
    
    .welcome-image img {
        width: clamp(100px, 30vw, 250px);
        max-height: 12vh;
    }
    
    .modal-btn {
        font-size: clamp(10px, 1.8vh, 14px);
        padding: clamp(6px, 1.5vh, 12px) clamp(12px, 2.5vw, 16px);
    }
}

/* Very small height screens - HEIGHT-BASED */
@media (max-height: 400px) {
    #initial-modal-content {
        height: 95vh;
        border-radius: 10px;
        padding: 2vh 3vw;
    }
    
    #initial-modal-content h2 {
        font-size: clamp(12px, 3vh, 16px);
        margin-bottom: 1vh;
    }
    
    #initial-modal-content p {
        font-size: clamp(10px, 2.5vh, 12px);
        margin-bottom: 1vh;
    }
    
    .welcome-image {
        margin-bottom: 1.5vh;
        max-height: 15vh;
    }
    
    .welcome-image img {
        width: clamp(100px, 25vw, 200px);
        max-height: 10vh;
    }
    
    .modal-btn {
        font-size: clamp(9px, 2vh, 13px);
        padding: clamp(5px, 1.2vh, 10px) clamp(10px, 2vw, 14px);
    }
    
    .modal-buttons {
        gap: 1vh;
    }
}

/* Landscape orientation - HEIGHT-BASED */
@media (orientation: landscape) and (max-height: 500px) {
    #initial-modal-content {
        height: 90vh;
        flex-direction: row;
        gap: 3vw;
        padding: 2vh 3vw;
    }
    
    #initial-modal-content h2 {
        font-size: clamp(14px, 3vh, 18px);
        margin-bottom: 1vh;
    }
    
    #initial-modal-content p {
        font-size: clamp(11px, 2.2vh, 14px);
        margin-bottom: 1vh;
    }
    
    .welcome-image {
        margin-bottom: 1vh;
        max-height: 25vh;
    }
    
    .welcome-image img {
        width: clamp(120px, 25vw, 200px);
        max-height: 20vh;
    }
    
    .modal-buttons {
        flex-direction: row;
        gap: 2vw;
        margin: 0;
        padding: 0;
        width: auto;
    }
    
    .modal-btn {
        min-width: clamp(80px, 20vw, 120px);
        padding: clamp(8px, 1.5vh, 12px) clamp(12px, 2.5vw, 20px);
        font-size: clamp(10px, 1.8vh, 14px);
    }
}

/* Map title - Hidden on desktop, shown on mobile */
#map-title {
    display: none; /* Hidden by default on desktop */
    text-align: center;
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
    flex-shrink: 0; /* Don't shrink the title */
}

/* Table Dropdown Styles */
#table-dropdown-container {
    background: #f8f9fa;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 0 0 15px 0; /* Increased bottom margin for better spacing */
    border-top: 2px solid #2196F3;
    border-bottom: 2px solid #FF9800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Don't shrink the dropdown */
    display: none; /* Hidden by default on desktop */
}

#table-dropdown-container label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

#table-selector {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.3s ease;
}

#table-selector:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

#table-selector optgroup {
    font-weight: bold;
    color: #2196F3;
}

#table-selector option {
    padding: 5px;
}

#table-selector option:disabled {
    color: #999;
    font-style: italic;
}

/* Selected table highlighting */
.table-image.selected-table {
    filter: drop-shadow(0px 0px 15px rgba(255, 215, 0, 1)) brightness(1.5);
    animation: selectedTablePulse 1.5s ease-in-out infinite alternate;
}

@keyframes selectedTablePulse {
    0% {
        filter: drop-shadow(0px 0px 15px rgba(255, 215, 0, 0.8)) brightness(1.3);
    }
    100% {
        filter: drop-shadow(0px 0px 20px rgba(255, 215, 0, 1)) brightness(1.6);
    }
}

/* Mobile table info styles */
.mobile-table-info {
    text-align: center;
}

.mobile-table-info h3 {
    color: #2196F3;
    margin-bottom: 15px;
}

.mobile-table-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.mobile-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.mobile-actions p {
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.4;
}

/* Mobile area info styles */
.mobile-area-info {
    text-align: center;
}

.mobile-area-info h3 {
    color: #2196F3;
    margin-bottom: 15px;
}

.mobile-area-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.mobile-area-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.mobile-area-actions p {
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.4;
}

/* Mobile legend styles */
.mobile-legend .legend-section h3 {
    color: #2196F3;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.mobile-instructions {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #2196F3;
}

.mobile-instructions p {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #1565c0;
}

.mobile-instructions p:last-child {
    margin-bottom: 0;
}

/* Main container - 20% 45% 15% 20% */
#restaurant-container {
    display: flex;
    width: 100%;
    height: 600px; /* INCREASED HEIGHT - NO SCROLL NEEDED */
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* Column 1: Left spacing (20%) */
.spacing-left {
    flex: 2;
    background: #f0f0f0;
    border-right: 1px solid #ddd;
}

/* Column 2: Restaurant image (45%) */
#restaurant-layout {
    flex: 4.5;
    background: #f5f5f5;
    border-right: 1px solid #ddd;
    position: relative;
    padding: 0;
    margin: 0;
}

#restaurant-svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    cursor: grab;
}

#restaurant-svg:active {
    cursor: grabbing;
}

/* Column 3: Legend (15%) */
#restaurant-legend {
    flex: 1.5;
    background: #f8f9fa;
    padding: 15px;
    overflow-y: visible;
    font-size: 14px;
    border-right: 1px solid #ddd;
}

/* Column 4: Right spacing (20%) */
.spacing-right {
    flex: 2;
    background: #f0f0f0;
}

/* Legend styling - BIGGER FONTS */
.legend-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.legend-table-type {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 6px 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.legend-table-image {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.table-type-info strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
    color: #333;
    font-weight: 600;
}

.table-capacity {
    display: none;
}

.table-price {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    display: block;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 4px;
    background: white;
    border-radius: 4px;
}

.status-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-item.available .status-color { background: #28a745; }
.status-item.locked-by-other .status-color { background: #ff9800; }
.status-item.reserved .status-color { background: #dc3545; }

.status-item strong {
    font-size: 13px;
    color: #333;
}

.status-info {
    display: none;
}

.lock-explanation {
    background: #e8f4fd;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    border-left: 4px solid #2196F3;
    font-size: 16px;
    line-height: 1.6;
}

.lock-explanation ul {
    margin: 0;
    padding-left: 16px;
}

.lock-explanation li {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.6;
    color: #1565c0;
}

/* NEW: Zoom Legend Styles */
.zoom-legend {
    animation: slideInRight 0.3s ease-out;
}

.zoom-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.zoom-header h3 {
    margin: 0;
    font-size: 16px;
    color: #2196F3;
    font-weight: bold;
}

.zoom-out-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.zoom-out-btn:hover {
    background: #f57c00;
    transform: translateX(-2px);
}

.area-description {
    background: linear-gradient(135deg, #e3f2fd, #f0f7ff);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #2196F3;
}

.area-description p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #1565c0;
    font-weight: 500;
}

.area-stats h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.stat-item:hover {
    border-color: #2196F3;
    box-shadow: 0 2px 5px rgba(33,150,243,0.1);
}

.stat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.stat-item.available .stat-dot { background: #28a745; }
.stat-item.reserved .stat-dot { background: #dc3545; }
.stat-item.locked .stat-dot { background: #ff9800; }

.stat-item span:last-child {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.zoom-tip {
    background: #fff3e0;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #ff9800;
}

.zoom-tip p {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #f57c00;
}

/* Table styling */
.table-image {
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.table-image.table-hover {
    filter: drop-shadow(3px 3px 12px rgba(255,215,0,1)) brightness(1.3);
    cursor: pointer;
}

.table-image.reserved {
    filter: drop-shadow(2px 2px 6px rgba(255,107,107,0.6)) brightness(0.8);
    opacity: 0.8;
}

.table-image.locked-by-me {
    filter: drop-shadow(2px 2px 6px rgba(33,150,243,0.6)) brightness(0.9);
    opacity: 0.9;
    animation: myLockPulse 2s ease-in-out infinite alternate;
}

.table-image.locked-by-other {
    filter: drop-shadow(2px 2px 6px rgba(255,152,0,0.6)) brightness(0.7);
    opacity: 0.7;
}

.table-label {
    font-family: Arial, sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}

.table-label.table-hover {
    text-shadow: 3px 3px 6px rgba(255,215,0,1);
    fill: #FFD700;
    font-weight: bold;
}

.table-label.reserved {
    fill: #ff6b6b !important;
    text-shadow: 1px 1px 2px rgba(255,107,107,0.8);
}

.table-label.locked-by-me {
    fill: #2196F3 !important;
    text-shadow: 1px 1px 2px rgba(33,150,243,0.8);
}

.table-label.locked-by-other {
    fill: #ff9800 !important;
    text-shadow: 1px 1px 2px rgba(255,152,0,0.8);
}

/* Area overlays */
.area-overlay {
    transition: all 0.3s ease;
    cursor: pointer;
}

.area-overlay.area-hover {
    fill: rgba(0,150,255,0.3);
    stroke: rgba(0,200,255,0.9);
    stroke-width: 4;
    filter: drop-shadow(0px 0px 10px rgba(0,150,255,0.8));
}

/* NEW: Zoomed area styling */
.area-overlay.zoomed-area {
    fill: rgba(33,150,243,0.2);
    stroke: rgba(33,150,243,0.9);
    stroke-width: 6;
    filter: drop-shadow(0px 0px 15px rgba(33,150,243,0.9));
    animation: zoomPulse 2s ease-in-out infinite alternate;
}

/* Area backgrounds */
.area-background.arvore-bg {
    fill: rgba(76,175,80,0.15);
}

.area-background.salao-bg {
    fill: rgba(33,150,243,0.15);
}

.area-background.pim-bg {
    fill: rgba(255,152,0,0.15);
}

/* Modal styles */
#table-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Compact modal styling */
#table-modal-content {
    background-color: #fefefe;
    margin: 0;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Ensure modal content is properly scrollable */
#table-info-content {
    min-height: 200px;
    position: relative;
}

/* Keep buttons visible at bottom */
.booking-actions {
    text-align: center;
    margin-top: 15px;
    padding-bottom: 5px;
    position: relative;
    z-index: 1;
    background: #fefefe;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

#table-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

#table-modal-close:hover {
    color: #000;
}

/* Booking interface styles */
.table-booking-info {
    text-align: left;
}

.table-booking-info h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    text-align: center;
}

.table-details {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin: 0 0 15px 0;
    text-align: center;
}

.table-details p {
    margin: 0;
    font-size: 14px;
}

.pricing-info {
    background-color: #e8f5e8;
    padding: 10px;
    border-radius: 5px;
    margin: 0 0 15px 0;
    text-align: center;
}

.pricing-info .price {
    font-size: 1.1em;
    font-weight: bold;
    color: #4CAF50;
}

/* Ensure buttons are always visible */
.booking-actions {
    text-align: center;
    margin-top: 15px;
    padding-bottom: 5px;
    position: relative;
    z-index: 1;
}

.booking-actions p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.reserve-btn, .cancel-btn {
    display: inline-block;
    min-width: 140px;
    margin: 8px;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reserve-btn:hover, .cancel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.reserve-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
}

.reserve-btn:hover {
    background-color: #45a049;
}

.reserve-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.cancel-btn {
    background-color: #f44336;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
}

.cancel-btn:hover {
    background-color: #da190b;
}

.reserved-notice, .locked-notice, .my-lock-notice, .success-notice, .error-notice {
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    margin: 0 0 15px 0;
}

.reserved-notice h3, .locked-notice h3, .my-lock-notice h3, .success-notice h3, .error-notice h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.reserved-notice p, .locked-notice p, .my-lock-notice p, .success-notice p, .error-notice p {
    margin: 0;
    font-size: 14px;
}

.success-actions {
    margin-top: 15px;
}

.goto-cart-btn, .goto-checkout-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.goto-cart-btn {
    background-color: #2196F3;
    color: white;
}

.goto-cart-btn:hover {
    background-color: #1976D2;
    color: white;
    text-decoration: none;
}

.goto-checkout-btn {
    background-color: #FF9800;
    color: white;
}

.goto-checkout-btn:hover {
    background-color: #F57C00;
    color: white;
    text-decoration: none;
}

.reserved-notice {
    background-color: #ffebee;
    border: 2px solid #ff6b6b;
}

.locked-notice {
    background-color: #fff3e0;
    border: 2px solid #ff9800;
}

.my-lock-notice {
    background-color: #e3f2fd;
    border: 2px solid #2196F3;
}

.success-notice {
    background-color: #e8f5e8;
    border: 2px solid #4CAF50;
}

.error-notice {
    background-color: #ffebee;
    border: 2px solid #ff6b6b;
}

.error-actions {
    margin-top: 15px;
    text-align: center;
}

.error-actions .goto-cart-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.error-actions .goto-cart-btn:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
    color: white;
    text-decoration: none;
}

.lock-info {
    background-color: #fff3e0;
    padding: 8px;
    border-radius: 5px;
    margin: 0 0 15px 0;
    text-align: center;
    border-left: 4px solid #ff9800;
}

.lock-info p {
    margin: 0;
    font-size: 13px;
}

.lock-actions {
    margin-top: 15px;
}

.unlock-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.unlock-btn:hover {
    background-color: #f57c00;
}

/* Animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes myLockPulse {
    0% {
        filter: drop-shadow(2px 2px 6px rgba(33,150,243,0.4)) brightness(0.85);
    }
    100% {
        filter: drop-shadow(2px 2px 10px rgba(33,150,243,0.8)) brightness(0.95);
    }
}

/* NEW: Zoom-related animations */
@keyframes zoomPulse {
    0% {
        stroke-width: 4;
        stroke-opacity: 0.7;
    }
    100% {
        stroke-width: 8;
        stroke-opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* NEW: Zoom mode cursor and interaction hints */
.area-overlay:hover {
    stroke-dasharray: 10,5;
    animation: dashMove 1s linear infinite;
}

@keyframes dashMove {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 15;
    }
}

/* NEW: Enhanced responsive design for zoom */
@media (max-width: 768px) {
    .zoom-out-btn {
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Mobile dropdown improvements */
    #table-dropdown-container {
        margin: 10px 0;
        padding: 12px;
    }
    
    #table-selector {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px;
    }
    
    /* Mobile notice improvements - REMOVED since mobile warning is gone */
}

/* Responsive modal improvements */
@media (max-height: 600px) {
    #table-modal {
        padding: 10px;
    }
    
    #table-modal-content {
        max-height: 95vh;
        padding: 15px;
    }
    
    .booking-actions {
        margin-top: 15px;
    }
    
    .reserve-btn, .cancel-btn {
        padding: 10px 20px;
        font-size: 14px;
        margin: 5px;
    }
}

@media (max-width: 480px) {
    #table-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .reserve-btn, .cancel-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
        min-width: auto;
    }
    
    .booking-actions {
        text-align: center;
    }
}

/* Zoom table notice */
.zoom-table-notice {
    text-align: center;
}

.zoom-table-notice h3 {
    color: #2196F3;
    margin-bottom: 15px;
}

.zoom-table-notice p {
    margin-bottom: 10px;
    font-size: 14px;
}

.zoom-actions {
    margin-top: 15px;
}

.zoom-actions button {
    margin: 5px;
}

/* Mobile table click notice */
.mobile-table-click-notice {
    text-align: center;
}

.mobile-table-click-notice h3 {
    color: #2196F3;
    margin-bottom: 15px;
}

.mobile-table-click-notice p {
    margin-bottom: 10px;
    font-size: 14px;
}

.mobile-click-actions {
    margin-top: 15px;
}

.mobile-click-actions button {
    margin: 5px;
}

/* Show mobile elements only on mobile */
@media (max-width: 768px) {
    #map-title {
        display: block !important;
    }
    
    #table-dropdown-container {
        display: block !important;
    }
}

/* Mobile table info styles */
.mobile-table-info {
    text-align: center;
}

.mobile-table-info h3 {
    color: #2196F3;
    margin-bottom: 15px;
}

.mobile-table-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.mobile-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.mobile-actions p {
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.4;
}