/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.search_result.pg-user-custom-search {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease-in-out;

}

.search_result.pg-user-custom-search:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.search_result.pg-user-custom-search a {
    text-decoration: none;
    color: inherit;
}

.user-profile-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #ddd;
}

.pm-user-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.search_result.pg-user-custom-search ul {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0;
    width: 100%;
}

.search_result.pg-user-custom-search ul li {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    display: flex;
    gap: 6px;
    width: 100%;
}

.search_result.pg-user-custom-search ul li a {
    color: #0073aa;
    font-weight: 500;
    word-break: break-all;
}

.pmagic .pm-users-search-page .pm-user a {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: flex-start;
}

.pmagic .pm-users-search-page .pm-user {
    padding-bottom: 0px;
}

.pg-user-directory-type {
    margin-top: 0.5rem;
    border-top: 1px solid #efefef;
    padding: 16px 10px;
    width: 100%;
}

.pmagic .pm-users-search-page .pm-user ul li a {
    color: #111111;
    font-size: 13px;
}

#pm_result_pane .pg-search-result-wrapper .search_result.pg-user-custom-search .directorist-listing-category {
    position: relative;
    display: inline-flex;
    font-size: 0.9rem;
    color: #555;

}

.directorist-listing-category a {
    color: #0073aa;
    font-weight: 500;
}

.directorist-listing-category__popup {
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
    position: relative;
}

.directorist-listing-category__extran-count {
    font-size: 0.8rem;
    color: #393939;
    border-radius: 50%;
    font-weight: 700;
}

.directorist-listing-category__popup__content {
    display: none;
    position: absolute;
    bottom: 22px;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
    width: max-content;
    font-size: 12px;
}

.directorist-listing-category__popup__content a {
    font-size: 12px;
    margin-bottom: 4px;
}

.directorist-listing-category__popup:hover .directorist-listing-category__popup__content {
    display: block;
}

.directorist-listing-category__popup__content a {
    display: block;
    font-size: 0.85rem;
    color: #0073aa;
    padding: 2px 0;
}



#pm_result_pane .pg-search-result-wrapper .search_result.pg-user-custom-search {
    flex: 0 0 calc(25% - 15px);
    box-sizing: border-box;
    margin: 0px;
}

@media (max-width: 1024px) {
    #pm_result_pane .pg-search-result-wrapper .search_result.pg-user-custom-search {
        flex: 0 0 calc(33.333% - 20px);
    }

    /* 3 columns */
}

@media (max-width: 768px) {
    #pm_result_pane .pg-search-result-wrapper .search_result.pg-user-custom-search {
        flex: 0 0 calc(50% - 20px);
    }

    /* 2 columns */
}

@media (max-width: 480px) {
    #pm_result_pane .pg-search-result-wrapper .search_result.pg-user-custom-search {
        flex: 0 0 100%;
    }

    /* 1 column */
}

.pmagic .pm-user-search #pm_result_pane .pm-user .pm-user-profile,
.pm-users-search-page #pm-advance-search-form .search_result img.user-profile-image {
    width: 98px;
    height: 98px;
}

.pg-users-adv-search-page #pm-advance-search-form .pg-form-row {
    padding: 22px 22px 22px 25px;
    border-radius: 10px;
    max-width: 100%;
    background-color: #f0f0f0;
    margin: 30px 0px;
}

.pmagic .pg-users-adv-search-page #pm_result_pane .pm-all-members {
    display: none;
}

.pmagic .pm-users-search-page .pm-user img {
    min-width: 150px !important;
    height: 150px !important;
    border-radius: 0px !important;
    width: 100% !important;
}

.pmagic .pm-users-search-page .pm-user a {
    width: 100%;
}

#pm-advance-search-form .pg-form-group {}

.pmagic .pm-users-search-page.pg-users-adv-search-page #pm_result_pane .search_result .pm-user-name {
    width: 100%;
    text-align: left;
}

.pg-custom-tab-content .pg-card{
    box-shadow: rgba(0, 0, 0, 0.04) 0px 4px 6px 0px;
    border-radius: 12px;
    border: 1px solid #f5f5f5;
} 

.pg-custom-tab-content .pg-card .pg-card__header {
    border-bottom: 1px solid #e9e9e9;
    border-radius: 16px 16px 0 0;
    padding: 20px 30px;
}

.pg-custom-tab-content .pg-card .pg-card__header__title {
    margin: 0px;
    padding: 0px;
    font-size: 16px;
}

.pg-custom-tab-content .pg-card .pg-card__body{
    padding: 30px;
}

.pg-custom-tab-content .pg-card .pg-details-info-wrap {
    gap: 12px;
    display: flex;
    flex-direction: column;
}

.pg-custom-tab-content .pg-card .pg-details-info-wrap .pg-single-info{
    display: flex;
    font-size: 15px;
    word-break: break-word;
    flex-wrap: wrap;
    gap: 10px 15px;
    align-items: center;
}

.pg-custom-tab-content .pg-card .pg-details-info-wrap .pg-single-info .pg-single-info__value ul{
    display: flex;
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.pg-custom-tab-content .pg-card span.pg-single-info__label-icon {
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 14px;
    text-align: center;
    background-color: #ededed;
    display: inline-flex;
    align-items: center;
}

.pg-custom-tab-content .pg-card span.pg-single-info__label__text {
    position: relative;
    min-width: 70px;
    margin-top: 5px;
    padding-right: 10px;
}

.pg-custom-tab-content .pg-card span.pg-single-info__label__text:before{
    content: ":";
    position: absolute;
    right: 0;
    top: 0;
}

#map-wrapper #user-address-map .gm-style .location-info p{
    padding: 0px;
    margin: 0px;
    margin-bottom: 10px;
}
#map-wrapper #user-address-map .gm-style .location-info h2{
    margin: 0px;
}

#map-wrapper #user-address-map .gm-style .location-info a{
    font-size: 16px;
}

/* Get directions link */
#map-wrapper #user-address-map .gm-style .location-info a[href*="google.com/maps/dir"] {
    display: inline-block;
    padding: 8px 12px;
    background: #2271b1;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

#map-wrapper #user-address-map .gm-style .location-info a[href*="google.com/maps/dir"]:hover {
    background: #1a5b8c;
}

/*-----New Changes------*/

.pg-search-result-wrapper .pm-user-card .pm-user-description ul{
        margin-left: 0;
    padding-left: 15px;
}

.pg-search-result-wrapper .pm-user-card .pm-user-description ul li{
    list-style: none;
    display: inline-flex;
    width: 100%;
    margin-bottom: 6px;
}

.pg-search-result-wrapper .pm-user-card .pm-user-description ul li a{
    overflow: hidden;
    text-overflow: ellipsis;
    width: 93%;
    display: inline-block;
}

#pm_result_pane .pg-search-result-wrapper {
    display: flex;
    flex-wrap: wrap;
    /* allow multiple rows */
    gap: 20px;
    justify-content: center;
    /* space between items */
    align-items: flex-start !important;
}

#pm_result_pane .pg-search-result-wrapper .pm-user-card {
    flex: 0 0 calc(25% - 20px); /* 4 columns with gap accounted */
    box-sizing: border-box;
}

.pg-search-result-wrapper .pm-user-card .pm-user-description ul li i {
    margin-right: 4px;
}

.pmagic .pm-user-card .pm-user-card-title{
    font-weight: 500;
}

/* Tablet - 2 columns */
@media (max-width: 991px) {
  #pm_result_pane .pg-search-result-wrapper .pm-user-card {
    flex: 0 0 calc(50% - 20px);
  }
}

/* Mobile - 1 column */
@media (max-width: 575px) {
  #pm_result_pane .pg-search-result-wrapper .pm-user-card {
    flex: 0 0 100%;
  }
}

.directorist-listing-category a {
    color: #000;
    font-weight: 300;
}

.pm-group-view.pg-theme-seven .pm-user-name{
    color: #000000;
}

.pm-group-view.pg-theme-seven .pm-user-group-name a span, .pm-group-view.pg-theme-seven .pm-user-group-name a i {
    color: #000000;
}


/* Profile Theme Changes----*/

.pmagic .pm-group-view.pg-theme-seven .pm-user-name{
    color: #212121;
}

.pmagic .pm-group-view.pg-theme-seven .pm-user-group-name a span, 
.pmagic .pm-group-view.pg-theme-seven .pm-user-group-name a i{
    color: #212121;
}
.pg-custom-user-description {
    box-shadow: rgba(0, 0, 0, 0.04) 0px 4px 6px 0px;
    border-radius: 12px;
    border: 1px solid #f5f5f5;
    padding: 30px;
}


/* Responsive */

/* Tablet view */
@media (max-width: 1024px) {
  .pg-form-row {
    flex-wrap: wrap;
    max-width: 90%;
  }

  .pg-form-row .pg-form-group {
    flex: 1 1 calc(50% - 15px); /* two columns */
    min-width: 240px;
  }
}

/* Mobile view */
@media (max-width: 768px) {
  .pg-form-row {
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }

  .pg-form-row .pg-form-group {
    flex: 1 1 100%;
    width: 100%;
  }

  .pg-form-row select,
  .pg-form-row input {
    width: 100%;
  }
}
