/* 
 * Styles for Taxonomy Directory Pages (States, Parties)
 */

.tax-hero {
    background: #04152c;
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
}
.tax-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.tax-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}
.tax-hero p {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 30px;
}
.tax-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.tax-filter-btn {
    background: transparent;
    border: 1px solid #475569;
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.tax-filter-btn:hover, .tax-filter-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Toolbar */
.tax-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}
.tax-count {
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tax-sort select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-weight: 600;
    color: #334155;
    outline: none;
}

/* Grid & Cards */
.tax-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.tax-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}
.tax-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.tax-card-img {
    height: 140px;
    width: 100%;
    object-fit: cover;
    background: #f1f5f9;
}
.tax-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tax-card-content h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}
.tax-card-meta {
    font-size: 12px;
    color: #475569;
    margin-bottom: 16px;
    flex: 1;
}
.tax-card-meta p {
    margin: 0 0 6px;
}
.tax-card-meta strong {
    color: #1e293b;
}
.tax-card-btn {
    display: block;
    text-align: center;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #2563eb;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.tax-card-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Map overlay in state cards */
.tax-card-img-wrapper {
    position: relative;
}
.tax-card-map-icon {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@media(max-width: 950px) {
    .tax-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width: 768px) {
    .tax-grid { grid-template-columns: repeat(2, 1fr); }
    .tax-toolbar { flex-direction: column; gap: 16px; align-items: flex-start; }
}
@media(max-width: 500px) {
    .tax-grid { grid-template-columns: 1fr; }
}
