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

/* Ensure consistent width for all taxonomy pages */
body.tax-sportart .arenastrike-archive-container,
body.tax-land .arenastrike-archive-container,
body.tax-region .arenastrike-archive-container,
body.tax-stadt .arenastrike-archive-container {
    max-width: 1600px !important;
    width: 100% !important;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 1rem;
}

ol.breadcrumb,
.breadcrumb {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    list-style: none !important;
}

.breadcrumb li.separator {
    color: #9ca3af;
    margin: 0 0.5rem;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #0ea5e9;
}

.breadcrumb .current {
    color: #111827;
    font-weight: 500;
}

/* Archive Header */
.archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
}

.archive-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4b5563;
    margin-top: 1rem;
}

.archive-description.auto-description {
    font-size: 19px;
    text-align: center;
    margin: 1.5rem 0;
    color: #4b5563;
    line-height: 1.6;
}

/* Country Sections */
.country-section {
    margin-bottom: 4rem;
}

.country-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #e5e7eb;
}

.country-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.country-count {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 24px;
}

.country-footer {
    margin-top: 2rem;
    text-align: center;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: #161616;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 24px;
    border: 2px solid #161616;
    text-decoration: none;
    transition: all 0.25s ease;
}

.view-all-button:hover {
    background: #f9fafb;
    color: #161616;
    transform: translateY(-2px);
}

.view-all-button svg {
    transition: transform 0.25s ease;
}

.view-all-button:hover svg {
    transform: translateX(4px);
}

/* Anlagen Grid */
.anlagen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100% !important;
}

/* Results Info Top */
.results-info-top {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.results-info-top strong {
    color: #111827;
    font-weight: 600;
}

/* Anlagen List (Compact View) */
.anlagen-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100% !important;
}

.anlage-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    width: 100% !important;
    box-sizing: border-box !important;
}

.anlage-list-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.list-item-main {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    margin: 0 0 0.5rem 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Premium Badge (List - Inline) */
.premium-badge-inline {
    background: #d4af37;
    color: #fff;
    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;
}

.premium-badge-inline svg {
    width: 10px;
    height: 10px;
    color: #fff;
}

.list-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.list-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #6b7280;
    font-size: 17px;
}

.list-meta-item svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.list-item-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.list-item-price-row {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 16px;
}

.list-item-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.anlage-list-item:hover .list-item-arrow {
    color: #0ea5e9;
    transform: translateX(3px);
}

/* Card */
.anlage-card {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 1.25rem;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}

/* Premium Badge (Grid) */
.premium-badge {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    background: #d4af37;
    color: #fff;
    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);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

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

.anlage-card:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Card Header */
.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.card-title {
    color: #111827;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6b7280;
    font-size: 16px;
}

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

/* Card Meta */
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.meta-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
}

.meta-tag.sportart {
    background: #dbeafe;
    color: #1e40af;
}

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

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

/* Card Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.card-price {
    font-size: 0.95rem;
    color: #374151;
}

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

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

.card-button svg {
    transition: transform 0.2s ease;
}

.card-button:hover svg {
    transform: translateX(3px);
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.anlage-card:hover .card-arrow {
    color: #0ea5e9;
    transform: translateX(3px);
}

/* Facilities Map Section */
.facilities-map-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

.map-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: center;
}

#facilities-map {
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.taxonomy-description {
    font-size: 19px;
    line-height: 1.8;
    color: #4b5563;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 2rem;
}

.taxonomy-description p {
    margin-bottom: 1rem;
}

.taxonomy-description p:last-child {
    margin-bottom: 0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fafb;
    border-radius: 12px;
}

.no-results h2 {
    font-size: 1.75rem;
    color: #374151;
    margin: 0 0 1rem 0;
}

.no-results p {
    color: #6b7280;
    font-size: 1.1rem;
}


/* Pagination Bottom */
.pagination-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.per-page-select-bottom {
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.per-page-select-bottom:hover {
    border-color: #9ca3af;
}

.per-page-select-bottom:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.results-range {
    color: #6b7280;
    font-size: 0.9rem;
}

.results-range strong {
    color: #111827;
    font-weight: 600;
}

.pagination-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-arrow:hover:not(:disabled) {
    border-color: #9ca3af;
    background: #f9fafb;
}

.pagination-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    color: #6b7280;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-color: #0ea5e9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .anlagen-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .country-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .anlagen-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .archive-title {
        font-size: 1.75rem;
    }
    
    .country-title {
        font-size: 1.35rem;
    }
    
    .country-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .country-section {
        margin-bottom: 3rem;
    }
    
    .view-all-button {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .arenastrike-archive-container {
        padding: 1.5rem 1rem;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .card-button {
        width: 100%;
        justify-content: center;
    }
    
    .map-title {
        font-size: 1.25rem;
    }
    
    #facilities-map {
        height: 400px !important;
    }
    
    .taxonomy-description {
        padding: 1.25rem;
        font-size: 17px;
    }
    
    .pagination-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .pagination-left,
    .pagination-right {
        justify-content: space-between;
    }
    
    .pagination-pages .pagination {
        flex-wrap: wrap;
    }
    
    .anlage-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .list-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .list-item-actions {
        gap: 1rem;
    }
    
    .list-item-price {
        text-align: left;
    }
    
    /* Mobile font-size adjustments */
    .list-meta-item {
        font-size: 15px;
    }
    
    .list-item-price-row {
        font-size: 14px;
    }
    
    .card-location {
        font-size: 14px;
    }
    
    .meta-tag {
        font-size: 0.85rem;
    }
}
