/**
 * Enhanced Interactive Maps and Selection Panel CSS
 */

/* Map Layout */
.venue-maps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.map-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Map Header */
.map-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Map Controls */
.map-controls {
    display: flex;
    gap: 0.5rem;
}

.map-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.map-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Map Container */
.map-container {
    position: relative;
    min-height: 400px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container.zoomed {
    cursor: grab;
}

.map-container.zoomed:active {
    cursor: grabbing;
}

.map-container svg {
    width: 100% !important;
    height: auto !important;
    max-height: 500px !important;
    display: block !important;
    transition: transform 0.3s ease;
}

/* Festival Spots */
.festival-spot {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    transform-origin: center !important;
}

.festival-spot:hover {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3)) !important;
    transform: scale(1.02) !important;
}

.festival-spot:focus {
    outline: 3px solid #3182ce !important;
    outline-offset: 2px !important;
}

.festival-spot-available {
    fill: #48bb78 !important;
    opacity: 0.8 !important;
    stroke: #2d5a27 !important;
    stroke-width: 1px !important;
}

.festival-spot-selected {
    fill: #3182ce !important;
    opacity: 1 !important;
    stroke: #2c5aa0 !important;
    stroke-width: 3px !important;
    animation: pulse 2s infinite !important;
}

.festival-spot-reserved {
    fill: #ed8936 !important;
    opacity: 0.8 !important;
    stroke: #c05621 !important;
    stroke-width: 1px !important;
    cursor: not-allowed !important;
}

.festival-spot-booked {
    fill: #e53e3e !important;
    opacity: 0.8 !important;
    stroke: #c53030 !important;
    stroke-width: 1px !important;
    cursor: not-allowed !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Enhanced Selection Panel */
.selection-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    margin: 3rem 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
}

.selection-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #3182ce);
}

.selection-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.selection-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#selected-count {
    font-weight: 400;
    opacity: 0.9;
}

.btn-clear-all {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-clear-all:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Empty State */
.selected-spots-container {
    min-height: 300px;
    padding: 2.5rem;
}

.empty-state {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.empty-state h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-state p {
    color: #718096;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.selection-features {
    display: grid;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    text-align: left;
}

.feature-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Selected Spots List */
.selected-spots-list {
    display: grid;
    gap: 1.25rem;
}

.selected-spot-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.selected-spot-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.selected-spot-card:hover {
    border-color: #3182ce;
    background: linear-gradient(135deg, #ebf8ff 0%, #dbeafe 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(49, 130, 206, 0.2);
}

.spot-details {
    flex: 1;
}

.spot-name {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.spot-info {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 500;
}

.spot-price {
    color: #3182ce;
    font-weight: 700;
    font-size: 1.4rem;
    margin-right: 1rem;
    text-shadow: 0 1px 2px rgba(49, 130, 206, 0.2);
}

.remove-spot-btn {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    border: 1px solid #fc8181;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(197, 48, 48, 0.2);
}

.remove-spot-btn:hover {
    background: linear-gradient(135deg, #feb2b2, #fca5a5);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 8px rgba(197, 48, 48, 0.3);
}

/* Summary Section */
.selection-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-top: 1px solid #bfdbfe;
    padding: 2rem;
}

.summary-details {
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 1.1rem;
}

.summary-item.summary-total {
    border: 2px solid #3182ce;
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: 700;
    background: rgba(49, 130, 206, 0.1);
}

.summary-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-label {
    color: #4a5568;
    flex: 1;
}

.summary-value {
    color: #2d3748;
    font-weight: 700;
}

.summary-total .summary-value {
    color: #3182ce;
    font-size: 1.5rem;
}

/* Proceed Button */
.btn-proceed {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-proceed:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-proceed:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

.btn-icon {
    font-size: 1.3rem;
}

.btn-text {
    flex: 1;
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-proceed:hover .btn-arrow {
    transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .map-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }

    .map-controls {
        justify-content: center;
    }

    .selection-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }

    .selected-spot-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        position: relative;
    }

    .remove-spot-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .selection-features {
        grid-template-columns: 1fr;
    }

    .summary-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .btn-proceed {
        flex-direction: column;
        gap: 0.5rem;
    }
}
