/* Base Layout */
.layout-container {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* Prevent sidebar stretching to full height */
}

/* Sidebar Styling */
.sidebar-col {
    flex: 0 0 250px;
    width: 250px; /* Explicit width */
}

.filter-sidebar {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* Content Area */
.content-col {
    flex: 1;
    min-width: 0; /* Fix for flexbox child overflow issues */
}

/* Mobile Toggle Button */
.filter-toggle-btn {
    display: none; /* Hidden by default (desktop) */
}

/* Responsive Logic */
@media (max-width: 768px) {
    .layout-container {
        flex-direction: column; /* Stack sidebar on top */
    }

    .sidebar-col {
        flex: none;
        width: 100%;
        position: relative; /* Not sticky on mobile */
    }
    
    .filter-sidebar {
        position: relative;
        top: 0;
    }

    .filter-toggle-btn {
        display: block; /* Visible on mobile */
    }

    .filter-content {
        display: none; /* Hidden by default on mobile */
    }

    .filter-content.show {
        display: block;
    }
}

/* Card Styling (Existing) */
.semental-card {
    background-color: #2c2c2c;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
}

.semental-card.sponsored-card {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.semental-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: #666;
}

.card-image {
    height: 250px; 
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.semental-card:hover .card-image .overlay {
    opacity: 1;
}

.view-profile-btn {
    background-color: rgba(0,0,0,0.6);
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.card-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-details h2 {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #aaa;
}

.badge-raza {
    background-color: #444;
    color: #ccc;
    padding: 2px 6px;
    border-radius: 4px;
}

.maquila-price {
    margin-top: auto;
    border-top: 1px solid #444;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.maquila-price .price {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}
.sementales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
