/* General layout for the plugin */
.sb-directory-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* Align items at the top */
    gap: 30px;
    /* Space between sidebar and content */
    margin-top: 20px;
    width: 100%;
    /* Ensure the layout spans the full width of the container */
}

/* Sidebar styling */
.sb-sidebar-container {
    flex: 0 0 280px;
    /* Fixed width for the sidebar */
    max-width: 280px;
    /* Ensure the sidebar doesn't grow too large */
    background-color: #ffffff;
    border: none;
    /* Removed border */
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
    /* Rounded corners */
    color: #333;
    /* Ensure text color is readable */
}

/* Sidebar container with background image */
.sb-sidebar-container.custom-sidebar-style {
    background: url('../photos/sidebar.jpg') no-repeat center center fixed;
    background-size: cover;
    /* Ensure the image covers the entire container */
    color: #ffffff;
    /* Make text white for better readability */
}

/* Sidebar links */
.sb-sidebar-container.custom-sidebar-style a {
    color: #ffffff;
    /* White links */
    text-decoration: none;
    /* Remove underline */
}

/* Sidebar links on hover */
.sb-sidebar-container.custom-sidebar-style a:hover {
    color: #ffa500;
    /* Light orange hover effect */
    text-decoration: underline;
    /* Optional: Add underline for hover */
}

/* Search bar inside the sidebar */
.sb-sidebar-container .sb-search-bar input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.sb-sidebar-container .sb-search-bar button {
    width: 100%;
    padding: 10px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.sb-sidebar-container .sb-search-bar button:hover {
    background-color: #004494;
    /* Darker blue on hover */
}

/* Tags section in the sidebar */
.sb-sidebar-container .sb-tags-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
    /* Make "Categories" heading white */
}

.sb-sidebar-container .sb-tags-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sb-sidebar-container .sb-tags-section ul li {
    margin-bottom: 2px;
}

.sb-sidebar-container .sb-tags-section ul li a {
    display: block;
    color: #ffffff;
    /* Active tag links are white */
    text-decoration: none;
    font-size: 14px;
}

.sb-sidebar-container .sb-tags-section ul li a:hover {
    text-decoration: underline;
}

/* Inactive tags (not links) */
.sb-sidebar-container .sb-tags-section ul li {
    color: grey;
    /* Grey for inactive tags */
    font-size: 12px;
}

/* Main content styling */
.sb-main-content {
    flex: 1;
    /* Take up the remaining available space */
    padding: 20px;
    box-sizing: border-box;
    background-color: #ffffff;
    border: none;
    /* Removed border */
    border-radius: 8px;
    /* Rounded corners */
    min-height: 300px;
    /* Ensure the content box has a minimum height */
    color: #333;
    /* Ensure text color is readable */
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .sb-directory-layout {
        flex-direction: column;
        /* Stack sidebar and content vertically */
    }

    .sb-sidebar-container,
    .sb-main-content {
        width: 100%;
        /* Full width for both sections */
        margin-bottom: 20px;
        /* Space between stacked sections */
    }
}

/* Add hover styles for Join and Login links */
.sb-sidebar-container .sb-add-business a {
    color: #0056b3;
    /* Default dark blue color */
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.sb-sidebar-container .sb-add-business a:hover {
    color: #FFA500 !important;
    /* Light orange hover color with !important */
    text-decoration: underline !important;
    /* Ensure underline is applied on hover */
}

/* Display taxonomy pages with forced white background */
#content.site-content,
.ast-container,
.sb-directory-layout {
    background-color: #FFFFFF !important;
}

/* Taxonomy business listing container */
.taxonomy-business-listing {
    margin: 0;
    padding: 0;
}

.taxonomy-business-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #a8d5e3;
    /* Light turquoise border */
    border-radius: 5px;
    background-color: #ffffff;
    /* Ensure white background for contrast */
}

.taxonomy-business-logo img {
    width: 80px;
    /* Adjusted width */
    height: auto;
    margin-right: 15px;
    border-radius: 4px;
    /* Optional rounded corners for logos */
    object-fit: contain;
    /* Ensure the logo maintains its aspect ratio */
}

/* Adjust logo styling for linked logos within taxonomy pages */
.taxonomy-business-logo a img {
    width: 80px;
    /* Ensure consistent width for logos */
    height: auto;
    margin-right: 15px;
    border-radius: 4px;
    object-fit: contain;
    /* Maintain aspect ratio */
}

/* Ensure the logo link doesn’t affect the layout */
.taxonomy-business-logo a {
    display: inline-block;
    /* Adjust the anchor tag to behave like an image container */
}

.taxonomy-business-details {
    flex: 1;
    /* Allow business details to take up remaining space */
}

.taxonomy-business-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.taxonomy-business-title a {
    color: #0056b3;
    text-decoration: none;
}

.taxonomy-business-title a:hover {
    text-decoration: underline;
    color: #ffa500;
    /* Light orange hover effect */
}

.taxonomy-business-description {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.taxonomy-business-description .read-more {
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
}

.taxonomy-business-description .read-more:hover {
    text-decoration: underline;
    color: #ffa500;
}
