
/* 
 Theme Name:     BMG 24
 Author:         CANI Consulting Group, LLC.
 Author URI:     https://canimarketinggroup.com
 Template:       Divi
 Version:        1.0 
*/ 


/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */ 

/* Masonry Grid Styles */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Consistent column size */
    gap: 20px; /* Space between items */
    margin: 20px 0;
    justify-items: center;
}
/* Responsive Centering */
@media (max-width: 1024px) { /* Tablets */
    .masonry-grid {
        justify-items: center; /* Center items on tablet */
    }
}

@media (max-width: 768px) { /* Mobile */
    .masonry-grid {
        justify-items: center; /* Center items on mobile */
    }
}

/* Building Item */
.building-item {
    position: relative;
    width: 300px; /* Consistent width */
    height: 300px; /* Consistent height */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f4f4f4;
    transition: transform 0.3s, box-shadow 0.3s;
}

.building-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Building Link */
.building-link {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    position: relative;
}

/* Content Overlay */
.building-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6); /* Full box overlay */
    color: #fff;
    text-align: center;
    transition: background 0.3s ease-in-out;
}

.building-link:hover .building-content {
    background: rgba(0, 0, 0, 0.8); /* Darker overlay on hover */
}

h3.building-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color:#fff;
}

.red-line {
    width: 50%;
    height: 2px;
    background: #ed1944;
    margin: 5px 0;
}

.building-address {
    font-size: 14px;
}


/* Filter Dropdown Container */
.building-filter {
    position: relative; /* Establish stacking context */
    text-align: center;
    margin-bottom: 20px;
    z-index: 1000; /* Ensure container is above other elements */
}

/* Button Styling */
#filter-button {
    color: #ed1944 !important;
    border: solid 2px;
    border-color: #ed1944 !important;
    background-color: #FFFFFF;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, padding-right 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 300px; /* Match width of other buttons */
    margin: 0 auto; /* Center the button */
    text-align: center;
}

/* Adjust for Mobile */
@media (max-width: 768px) {
    #filter-button {
        max-width: 100%; /* Full width on smaller screens */
        width: 100%; /* Stretch to container */
    }
}

/* Add dropdown arrow */
#filter-button::after {
    content: '▼'; /* Down arrow */
    font-size: 12px;
    margin-left: 0px; /* No space initially */
    color: #ed1944;
    opacity: 0; /* Hide initially */
    transform: translateX(5px); /* Shift slightly to the right */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, margin-left 0.3s ease-in-out;
}

/* Keep the arrow visible when hovered OR when the dropdown is open */
#filter-button:hover::after,
#filter-options:hover + #filter-button::after,
#filter-options.visible + #filter-button::after {
    color: #b7122b !important; 
    opacity: 1;
    transform: translateX(0px);
    margin-left: 10px;
}

/* Shift text when hovered or dropdown is open */
#filter-button:hover,
#filter-options:hover + #filter-button,
#filter-options.visible + #filter-button {
    padding-right: 30px;
    color: #b7122b !important;
    border-color: #b7122b !important;
}

/* Ensure the dropdown remains open when hovered */
.building-filter {
    position: relative;
}

/* Dropdown Options Styling */
#filter-options {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    list-style: none;
    padding: 10px 0;
    width: 250px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none; /* Initially hidden */
}

/* Show dropdown when visible */
#filter-options.visible,
#filter-options:hover {
    display: block;
}

/* Dropdown Options */
#filter-options li {
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

/* Hover effect for dropdown items */
#filter-options li:hover {
    color: #b7122b !important;
    border-color: #b7122b !important;
}





