/* A-Z List Page Styles */

/* Multiple selectors to ensure white background */
body.page-template-template-abecedni-seznam,
body.page-template-Abecedni-seznam,
body[class*="abecedni"] {
    background: #fff !important;
}

/* Also target HTML to be safe */
html {
    background: #fff !important;
}

/* Override any wrapper/container from theme */
body.page-template-template-abecedni-seznam #page,
body.page-template-template-abecedni-seznam .site,
body.page-template-template-abecedni-seznam .site-content,
body.page-template-template-abecedni-seznam main {
    max-width: 100% !important;
    width: 100% !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
}

.az-list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px;
    background: #fff;
}

.location-item {
    display: grid;
    grid-template-columns: 2fr 3fr; /* 40/60 split - left 40%, right 60% */
    gap: 60px;
    margin-bottom: 80px;
    padding-bottom: 60px;
    /* Removed border-bottom */
}


/* Left sidebar with expandable sections */
.location-sidebar {
    width: 100%; /* Changed from fixed 200px to fluid 100% */
}

.location-name {
    font-size: 1.3em;
    font-weight: 800;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.3;
    font-family: 'Work Sans', sans-serif;
}

.expandable-section {
    margin-bottom: 2px;
}

.expand-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    width: 100%;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
    font-weight: 800;
}

.expand-toggle:hover {
    color: #333;
}

.expand-toggle::before {
    content: '+';
    font-size: 1.1em;
    font-weight: bold;
    display: inline-block;
    width: 16px;
    flex-shrink: 0;
}

.expand-toggle.active::before {
    content: '−';
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 22px;
}

.expandable-content.active {
    max-height: none !important; /* Remove height limit */
    overflow: visible !important; /* Allow content to show fully */
    margin-top: 12px;
}

.photo-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 8px;
}

.photo-item {
    display: flex;
    flex-direction: column;
}

.photo-grid img {
    width: 100%;
    height: auto;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.photo-grid img:hover {
    opacity: 0.8;
}

/* Photo captions matching map style */
.photo-caption {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #000;
    padding: 8px 0;
    margin: 0;
    text-align: left;
}

/* Lightbox styles matching map page */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #fff;
    padding: 20px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.lightbox-counter {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #fff;
    padding: 10px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #000;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #fff;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.literatura-list {
    font-size: 0.85em;
    line-height: 1.7;
    color: #333;
    font-family: 'Work Sans', sans-serif;
}

.literatura-list p {
    margin-bottom: 12px;
}

/* Right content area */
.location-content {
    min-width: 0;
    font-family: 'Work Sans', sans-serif;
}

.location-content p {
    margin-bottom: 1.2em;
    line-height: 1.7;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
}

.location-content strong {
    font-weight: 600;
}

.location-content em {
    font-style: italic;
}

.location-content sup {
    font-size: 0.7em;
    vertical-align: super;
    margin-left: 1px;
}

.location-content a {
    color: #000;
    text-decoration: underline;
}

.location-content a:hover {
    text-decoration: none;
}

.references {
    margin-top: 25px;
    padding-top: 0;
    /* Removed border-top */
    font-size: 0.8em;
    color: #333;
    font-family: 'Work Sans', sans-serif;
    text-align: left;
}

.reference {
    margin-bottom: 18px;
    line-height: 1.7;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
    padding-left: 20px;
    text-indent: -20px;
}

.reference sup {
    font-weight: 600;
    margin-right: 4px;
}

/* Responsive */
@media (max-width: 900px) {
    .location-item {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .location-sidebar {
        width: 100%;
    }

    .location-name {
        font-size: 1.5em;
    }
}
/* Page Header Styles for Abecedni Seznam */

.page-header {
    margin-bottom: 60px;
    padding-bottom: 0; /* Removed padding since no border */
    /* Removed border-bottom */
}

.page-title {
    font-family: 'Work Sans', sans-serif !important;
    font-size: 20px;
    font-weight: 800 !important; /* Bold like location headings */
    line-height: 1.5;
    color: #000;
    margin: 0;
    text-align: left;
}

.page-authors {
    font-family: 'Work Sans', sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
    margin: 0;
    text-align: left;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .page-header {
        margin-bottom: 40px;
        padding-bottom: 0;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .page-authors {
        font-size: 14px;
    }
}