body { font-family: Arial, sans-serif; padding: 15px; }
h1 { text-align: center; margin-bottom: 20px; font-size: 28px; }

.brand-logo {
    position: absolute;
    inset: 0 auto 0 0;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    transition: opacity 160ms ease;
}

/* Filters */
.filter-container {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 30px;
}
.filter-box { display: flex; flex-direction: column; align-items: center; flex: 0 1 200px; }
.filter-box label { margin-bottom: 8px; font-weight: bold; font-size: 14px; text-align: center; }
.filter-box select { min-width: 100px; width: 100%; font-size: 14px; padding: 8px; border-radius: 4px; border: 1px solid #ddd; }
.filter-box input[type="text"] { min-width: 120px; width: 100%; padding: 8px; font-size: 14px; box-sizing: border-box; border-radius: 4px; border: 1px solid #ddd; }

/* Plots */
.subcategory-container { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; width: 100%; }
.subcategory-header {
    text-align: center; font-size: 18px; font-weight: 500;
    position: sticky; top: 0; background: #f8f9fa; z-index: 10; padding: 10px 5px; border-bottom: 1px solid #ccc;
}
.plot-container { position: relative; width: 100%; max-width: 600px; }
.plot-image { width: 100%; max-height: 400px; object-fit: contain; cursor: zoom-in; }
.slider-container { width: 90%; max-width: 600px; margin: 15px auto 30px auto; text-align: center; padding: 10px; box-sizing: border-box; }
.plot-slider { width: 100%; height: 6px; }
.slider-date { font-size: 12px; margin-top: 8px; color: #555; }

/* Skeleton */
#loadingSkeleton { display: none; }

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 18px;
    margin-top: 30px;
}
.no-results p { margin-bottom: 0; }

/* Flatpickr styling */
.flatpickr-disabled { opacity: 0.4; color: #999; pointer-events: none !important; }
.flatpickr-day.flatpickr-disabled { background-color: #f5f5f5; color: #ccc; }

/* Modal buttons */
.prev-plot, .next-plot { 
    z-index: 20; 
    padding: 8px 12px; 
    font-size: 16px; 
    cursor: pointer;
    transition: background-color 0.2s;
}
.prev-plot:hover, .next-plot:hover { background-color: #666; }
.prev-plot:focus, .next-plot:focus { outline: 2px solid #0d6efd; }

.site-footer {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    padding: 68px max(24px, calc((100% - 1180px) / 2));
    color: #fff;
    background: #18221f;
}

.site-footer .eyebrow {
    color: #f1d991;
}

.site-footer h2 {
    max-width: 720px;
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.footer-links a {
    color: #fff;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.footer-note {
    grid-column: 1 / -1;
    max-width: 780px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

/* Responsive */
@media(max-width:768px){
    body { padding: 10px; }
    h1 { font-size: 24px; margin-bottom: 15px; }
    
    .filter-container { 
        flex-direction: column; 
        gap: 12px; 
        margin-bottom: 20px;
    }
    .filter-box { 
        flex: 0 1 auto; 
        width: 100%; 
    }
    .filter-box select,
    .filter-box input[type="text"] { 
        min-width: auto;
        font-size: 16px;
    }
    
    .subcategory-container { margin-bottom: 30px; }
    .subcategory-header { 
        font-size: 16px; 
        padding: 8px; 
        top: 0;
    }
    .plot-image { max-height: 300px; }
    .slider-container { 
        width: 95%; 
        margin: 10px auto 20px auto;
    }
    .plot-slider { height: 5px; }
    .slider-date { font-size: 11px; }
    
    .prev-plot, .next-plot {
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media(max-width:480px){
    body { padding: 8px; }
    h1 { font-size: 20px; }
    
    .filter-container { gap: 10px; }
    .filter-box label { font-size: 13px; }
    .filter-box select,
    .filter-box input[type="text"] { 
        font-size: 16px;
        padding: 10px;
    }
    
    .subcategory-header { font-size: 14px; }
    .plot-image { max-height: 250px; }
    .plot-slider { height: 4px; }
    .slider-date { font-size: 10px; }
}

