/*your custom css goes here*/
.accordion .card .card-header .btn-header-link:after {
    content: "\f107";
    font-family: 'Line Awesome Free';
    font-weight: 900;
    float: right;
}

.accordion  .card .card-header .btn-header-link.collapsed:after {
    content: "\f106";
}

/* Modal Changes */
.modal-open .create_update_large_modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-open .create_edit_modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-open .modal-scroll {
    overflow-x: hidden;
    overflow-y: auto;
}

.hamburger-icon {
    width: 1.5em;
    height: 1.5em;
    float: left;
    font-size:32px
}

.ad-status-premium {
    background-color: #edaa00;
    font-size: .875rem;
    letter-spacing: .375em;
    line-height: 1;
    color: #323232;
    padding: .5em 0;
    bottom: 0; /* Stick the label to the bottom of the image */
    left: 0;
    width: 100%; /* Make the label span the full width of the image */
}

.ad-business-name, .ad-business-name_l2 {
    font-size: 1.5625em;
    overflow: hidden;
}

.ad-business-name_sidebar {
    font-size: .750rem;
    overflow: hidden;
}

.ad-business-name a {
    text-decoration: none;
    cursor: pointer;
}

.ad-business-info, .ad-business-info_l2 {
    font-size: 1rem;
    line-height: 1.5;
    color: #000;
    text-rendering: optimizeLegibility;
    font-family: "Open Sans", sans-serif;
    text-overflow: ellipsis;
    white-space: pre;
    overflow: hidden;
}

.ad-social-icon, .ad-social-icon_l3 {
    font-size: 2.5em;
}

.ad-business-short {
    overflow: hidden;
    text-overflow: ellipsis;
    /*padding-top: .25rem;*/
}

.ad-business-info_sidebar {
    font-size: .650rem;
}

.btn-xxs {
    padding: 0.25rem 0.75rem;
    font-size: 0.55rem;
}

.ad-section-row {
    padding-bottom: .5rem;
    padding-top: .5rem;
    margin-bottom: .5rem;
}

/* Basic Tab Styling */
.nav-tabs-custom {
    border-bottom: none; /* Remove default bottom border */
    margin-bottom: 20px;
}

.nav-tabs-custom .nav-item {
    margin-bottom: -1px; /* Align the tab with the content */
}

.nav-tabs-custom .nav-link {
    border: none; /* Remove default borders */
    color: #555; /* Default text color */
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    background: none;
    transition: color 0.3s, background-color 0.3s;
}

.nav-tabs-custom .nav-link:hover {
    color: #007bff; /* Change color on hover */
    background-color: #f8f9fa; /* Light background on hover */
}

.nav-tabs-custom .nav-link.active {
    /*color: #000; /* Active tab text color */
    font-weight: bold;
    background-color: #fff; /* Background for active tab */
    border-bottom: 3px solid #007bff; /* Underline for active tab */
}

.nav-tabs-custom .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.3s;
}

.nav-tabs-custom .nav-link.active::after {
    background-color: #007bff; /* Underline color for active tab */
}

.biz-dir-filter-item {
    margin-bottom: 1rem;
    margin-right: 1rem;
}

/* Sidebar ad design*/

.ad-hov-shadow-md {
    position: relative;
    overflow: hidden;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out content vertically */
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.ad-hov-shadow-md:hover .overlay-content {
    opacity: 1;
}

.ad-name {
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.ad-button-group {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.ad-button-group .btn {
    width: 45px; /* Fixed width for uniformity */
    text-align: center;
    margin: 0 10px;
}

.ad-avatar {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 270px; /* Ensure that the width doesn't exceed the given dimensions */
}

.ad-img {
    max-width: 270px;
    max-height: 270px;
}

.a-disabled {
    opacity: 0.5;
    pointer-events: none; /* Prevents clicking */
}

.biz-dir-l1-right-icons {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.no-results-container {
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.no-results-container .icon {
    font-size: 50px;
    color: #6c757d;
}

.no-results-container h3 {
    font-weight: bold;
    margin-bottom: 15px;
}

.no-results-container .btn {
    padding: 10px 20px;
    font-size: 16px;
}

/* Added more visibility for z index */
.dropdown-menu {
    z-index:1020;
}

.badge-xsm {
    height: 10px;
    width: 10px;
    font-size: 2px;
}

/* 4.5 class which are not available in 5.3.3 bootstrap */
.aiz-navbar .nav-link {
    padding: .5rem 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.media {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
}

.media-body {
    -ms-flex: 1;
    flex: 1;
}

.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.la-1-5x {
    font-size: 1.5rem;
}
/* Pagination */
.aiz-pagination {
    padding-top: 1rem !important;
}

/* In b5.3.3 text decoration added as underline so removing it*/
a {
    text-decoration: none;
}

.member-filter .dropdown-menu {
    z-index: 1081 !important;
}

/* Gallery Image Card */
.gallery-img-card {
    transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-img-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transform: translateY(-4px) scale(1.02);
}
.gallery-img-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}
.gallery-img-card:hover .gallery-img-overlay {
    opacity: 1;
}
.gallery-add-card {
    border: 2px dashed var(--primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gallery-add-card:hover {
    border-color: var(--hov-primary);
    background: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.dropdown-menu-scroll-y {
    max-height: 80vh;
    overflow-y: auto;
}

#galleryCarouselInner .carousel-item img {
    max-height: 80vh;
    object-fit: contain;
    width: 100%;
    margin: 0 auto;
    background: rgba(0,0,0,0.35);
    display: block;
}
/* Large (lg): For laptops and desktops that are 992 pixels and wider */
@media (min-width: 992px) {
    .ad-business-info_l2 {
        font-size: .875rem;
    }
    .ad-business-name_l2 {
        font-size: 1.1rem;
        overflow: hidden;
    }
    .ad-social-icon_l3 {
        font-size: 2rem;
    }
}

/* Extra small (xs): For phones that are less than 768 pixels wide */
@media (max-width: 575.98px) {
    .ad-status-premium  {
        letter-spacing: 0; /* or 0, to remove the spacing */
        font-size: .450rem;
    }
    .ad-phone{
        font-size: 1rem !important;
    }

    /* Apply styles only when the table has the class "table-card" */
    .table-card,
    .table-card thead,
    .table-card tbody,
    .table-card th,
    .table-card td,
    .table-card tr {
        display: block !important;
        width: 100% !important;
    }

    .table-card thead {
        display: none !important; /* Hide table header */
    }

    .table-card tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 5px;
        background: #fff;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    }

    .table-card td {
        display: flex !important;
        justify-content: space-between;
        /*padding: 5px;*/
        border-bottom: 1px solid #ddd;
        border-top: none !important;
    }

    .table-card td:last-child {
        border-bottom: none !important;
    }

    .table-card td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
    }

}

/* Extra large (xl): For large desktops that are 1200 pixels and wider */
@media (min-width: 1200px) {
    .biz-filter {
        position: sticky;
        top: 0;
        z-index: 1020;
    }
}

/* For search bar on scroll - mobile and tablets */
@media (max-width: 992px) {
    #search-header-bar.fixed-top {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 2px 16px rgba(0,0,0,0.08);
        border-radius: 0 0 1rem 1rem;
        z-index: 1034;
        padding: 0.5rem 1rem;
    }
}
