/* =============================================
   LOCATION DETAIL PAGE
   Orientiert am Event-Detail Design
   ============================================= */

/* Container */
.location-detail-container {
    min-height: 100vh;
    padding: 180px 20px 60px 20px;
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
}

.location-detail-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Back Link - bereits im Header integriert, diese Styles entfernen */

/* Header */
.location-detail-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-bottom: 15px;
}

.back-link:hover {
    color: #dc0000;
    transform: translateX(-5px);
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* Content Row mit Bild/Icon und Text */
.location-detail-header-row {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.location-detail-image-container {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.location-detail-image {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* Bild Style */
.location-detail-image[data-has-image="true"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Icon Style (wenn kein Bild) */
.location-detail-image[data-has-image="false"] {
    background: linear-gradient(135deg, #dc0000 0%, #990000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 0, 0, 0.4);
}

.location-detail-image[data-has-image="false"] svg {
    width: 44px;
    height: 44px;
}

/* Upload Button - nur im Edit Mode sichtbar */
.btn-upload-image {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #dc0000 0%, #990000 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(220, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.btn-upload-image.edit-mode {
    display: flex;
}

.btn-upload-image:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 0, 0, 0.6);
}

.btn-upload-image svg {
    width: 16px;
    height: 16px;
}

.location-detail-header-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: right;
}

.location-detail-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
    transition: background-color 0.2s ease;
    text-align: right;
}

.location-detail-title[contenteditable="true"] {
    background: rgba(220, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid rgba(220, 0, 0, 0.3);
}

.location-detail-address {
    font-size: 18px;
    color: #ccc;
    line-height: 1.5;
    transition: background-color 0.2s ease;
    text-align: right;
}

.location-detail-address[contenteditable="true"] {
    background: rgba(220, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid rgba(220, 0, 0, 0.3);
}

/* Edit Controls */
.location-detail-edit-controls {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
}

.btn-edit-toggle,
.btn-save,
.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-edit-toggle:hover {
    background: rgba(220, 0, 0, 0.1);
    border-color: rgba(220, 0, 0, 0.3);
    color: #dc0000;
}

.btn-save {
    background: linear-gradient(135deg, #00c853 0%, #007a33 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
}

.btn-save:hover {
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
    transform: translateY(-2px);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(220, 0, 0, 0.1);
    border-color: rgba(220, 0, 0, 0.3);
    color: #dc0000;
}

/* Body Layout */
.location-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Map Section */
.location-detail-map-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-detail-map-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.location-map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.location-coordinates {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #bbb;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.coord-label {
    font-weight: 600;
    color: #ccc;
}

.coord-value {
    font-family: 'Courier New', monospace;
    color: #ffffff;
}

/* Events Section */
.location-detail-events-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.location-detail-events-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.location-events-tabs {
    display: flex;
    gap: 8px;
}

.events-tab {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.events-tab:hover {
    background: rgba(220, 0, 0, 0.2);
    color: #dc0000;
}

.events-tab.active {
    background: linear-gradient(135deg, #dc0000 0%, #990000 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 0, 0, 0.3);
}

.events-tab.active:hover {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
}

.location-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-event-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    text-decoration: none;
    align-items: start;
}

.location-event-item:hover {
    background: rgba(220, 0, 0, 0.1);
    border-color: rgba(220, 0, 0, 0.3);
    transform: translateX(5px);
}

.location-event-date {
    background: linear-gradient(135deg, #dc0000 0%, #990000 100%);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220, 0, 0, 0.3);
}

.location-event-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.location-event-month {
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.9;
}

.location-event-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.location-event-time {
    font-size: 12px;
    color: #dc0000;
    font-weight: 600;
}

.location-event-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.location-event-bands {
    font-size: 13px;
    color: #ccc;
    line-height: 1.4;
}

/* Description Section */
.location-detail-description-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-detail-description-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.location-detail-description {
    font-size: 16px;
    color: #ddd;
    line-height: 1.8;
    transition: background-color 0.2s ease;
}

.location-detail-description[contenteditable="true"] {
    background: rgba(220, 0, 0, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid rgba(220, 0, 0, 0.3);
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #ccc;
    font-size: 15px;
}

/* Empty State */
.empty-events {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

.empty-events svg {
    width: 60px;
    height: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-events h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 10px;
}

.empty-events p {
    font-size: 14px;
    color: #ccc;
}

/* Responsive */
@media (max-width: 1024px) {
    .location-detail-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .location-detail-container {
        padding: 100px 15px 40px 15px;
    }
    
    .location-detail-header {
        flex-direction: column;
        padding: 25px;
    }
    
    .location-detail-icon {
        width: 60px;
        height: 60px;
    }
    
    .location-detail-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .location-detail-title {
        font-size: 32px;
    }
    
    .location-detail-address {
        font-size: 15px;
    }
    
    .location-map-container {
        height: 300px;
    }
    
    .location-event-item {
        grid-template-columns: 50px 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .location-event-date {
        padding: 8px;
    }
    
    .location-event-day {
        font-size: 16px;
    }
}
