/**
 * Single Anlage Template Styles
 * ArenaStrike Directory v2
 */

/* Main Container */
.arenastrike-single-container {
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Header with Logo */
.header-with-logo {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Premium Logo Container */
.premium-logo-container {
    flex-shrink: 0;
}

.premium-logo {
    max-width: 150px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.premium-logo-container a {
    display: inline-block;
}

.premium-logo-container a:hover .premium-logo {
    transform: scale(1.05);
}

/* Title and Badge Container */
.title-and-badge {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

/* Anlage Title anpassen wenn Logo vorhanden */
.title-and-badge .anlage-title {
    margin: 0;
}

/* Breadcrumbs */
.arenastrike-breadcrumbs {
    margin-bottom: 2rem;
}

.arenastrike-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.arenastrike-breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.arenastrike-breadcrumbs a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s;
}

.arenastrike-breadcrumbs a:hover {
    color: #005a87;
    text-decoration: underline;
}

.arenastrike-breadcrumbs .separator {
    margin: 0 0.25rem;
    color: #9ca3af;
}

/* Two Column Layout */
.single-anlage-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.anlage-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

/* Info Boxes */
.info-box {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.info-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box h3 .icon {
    color: #007cba;
}

/* Contact Info */
.contact-info .info-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info .info-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem !important;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-item .icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #6b7280;
}

.info-item .info-text {
    flex: 1;
    line-height: 1.6;
    color: #374151;
}

.info-item a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.info-item a:hover {
    color: #005a87;
    text-decoration: underline;
}

.external-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Meta Tags */
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
}

.sportart-tag {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.spielfeld-tag {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.tag.groesse-tag {
    background: #e5e7eb;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.tag.price-tag {
    background: #111827;
    color: #ffffff;
    font-weight: 600;
    border: 1px solid #111827;
}

.tag.payment-tag {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.tag.players-tag {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.tag .icon {
    width: 14px;
    height: 14px;
}

/* Payment Methods Section */
.payment-methods {
    margin-top: 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.payment-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.payment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Opening Hours */
.opening-status {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.status-badge.open {
    color: #059669;
}

.status-badge.closed {
    color: #dc2626;
}

.closes-in,
.opens-at {
    color: #6b7280;
    font-size: 0.875rem;
}

.hours-list {
    line-height: 1.8;
    color: #374151;
}

.special-hours {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Features & Ausstattung */
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.feature-pill {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
    line-height: 1;
}

.special-hours strong {
    color: #1f2937;
}

/* Content */
.anlage-content {
    line-height: 1.8;
    color: #374151;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

.anlage-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem 0;
}

.anlage-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 0.75rem 0;
}

.anlage-content p {
    margin: 0 0 1rem 0;
}

.anlage-content ul,
.anlage-content ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}

/* Map */
.anlage-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    background: #f3f4f6;
}

.no-map {
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Nearby Facilities */
.nearby-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
}

.nearby-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nearby-item {
    display: block;
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}

.nearby-item:hover {
    border-color: #0ea5e9;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.12);
    transform: translateY(-2px);
}

.nearby-content {
    margin-bottom: 1rem;
}

.nearby-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
}

.nearby-address {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.nearby-location-icon {
    color: #9ca3af;
    flex-shrink: 0;
}

.nearby-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.85rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
}

.nearby-item:hover .nearby-button {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.nearby-arrow {
    font-size: 1rem;
    line-height: 1;
}

.nearby-distance {
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-anlage-wrapper {
        grid-template-columns: 1fr;
    }
    
    .right-column {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .arenastrike-single-container {
        padding: 1rem !important;
        margin: 0 auto !important;
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .anlage-title {
        font-size: 2rem;
    }
    
    .info-box {
        padding: 1rem;
    }
    
    .meta-tags {
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .anlage-map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .anlage-title {
        font-size: 1.75rem;
    }
    
    .info-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-tags {
        flex-direction: column;
    }
    
    .tag {
        width: 100%;
        justify-content: center;
    }
}

/* Premium Button Detail - identisch zu Grid/Listenansicht */
.premium-button-detail {
    background: #d4af37;
    color: #fff !important;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    align-self: flex-start;
    width: auto;
}

.premium-button-detail:hover {
    background: #c9a428;
    color: #fff !important;
    transform: scale(1.05);
}

.premium-button-detail:visited,
.premium-button-detail:active,
.premium-button-detail:focus {
    color: #fff !important;
}

.premium-button-detail svg {
    width: 10px;
    height: 10px;
    color: #fff;
}

/* Premium Bilder-Galerie */
.premium-gallery {
    display: grid;
    grid-template-columns: repeat(3, 200px);
    gap: 1rem;
    justify-content: start;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #000 !important;
    text-decoration: none !important;
}

.lightbox-close:hover {
    background: #ef4444;
    color: white !important;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 32px;
    font-weight: 300;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #374151;
    line-height: 1;
}

.lightbox-nav:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Responsive */
@media (max-width: 640px) {
    .premium-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}
