/**
 * Mentor listing cards: compact circular avatars + identity lines.
 * Also hide ranking / session-type / price filters on browse search forms.
 */

.grads-mentor-card.listing-card-nl,
.new-grid-layout-nl .listing-card-nl,
.elementor-widget-listeo-listings-carousel .listing-card-nl,
.simple-fw-slick-carousel .listing-card-nl {
  flex-direction: column;
  height: 100%;
  max-height: none;
  align-items: stretch;
}

.grads-mentor-card .listing-image-container-nl,
.grads-mentor-card .listing-avatar-container-nl,
.new-grid-layout-nl .listing-image-container-nl,
.elementor-widget-listeo-listings-carousel .listing-image-container-nl,
.simple-fw-slick-carousel .listing-image-container-nl {
  width: 96px;
  height: 96px;
  min-height: 96px;
  max-width: 96px;
  margin: 20px auto 0;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
}

.grads-mentor-card .slider-wrapper-nl,
.new-grid-layout-nl .slider-wrapper-nl,
.elementor-widget-listeo-listings-carousel .slider-wrapper-nl,
.simple-fw-slick-carousel .slider-wrapper-nl {
  width: 100%;
  height: 100%;
}

.grads-mentor-card .slider-image-nl,
.grads-mentor-card .listing-avatar-img-nl,
.new-grid-layout-nl .slider-image-nl,
.elementor-widget-listeo-listings-carousel .slider-image-nl,
.simple-fw-slick-carousel .slider-image-nl {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.grads-mentor-card .slider-arrow-nl,
.grads-mentor-card .listing-category-tag-nl,
.grads-mentor-card .status-button-nl,
.new-grid-layout-nl .slider-arrow-nl,
.elementor-widget-listeo-listings-carousel .slider-arrow-nl,
.simple-fw-slick-carousel .slider-arrow-nl {
  display: none !important;
}

.grads-mentor-card .image-overlay-top-nl {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  inset-inline-start: auto;
  left: auto;
  right: auto;
  width: auto;
}

.grads-mentor-card .favorite-icon-nl {
  position: static;
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.new-grid-layout-nl .listing-details-nl,
.elementor-widget-listeo-listings-carousel .listing-details-nl,
.simple-fw-slick-carousel .listing-details-nl,
.grads-mentor-card .listing-details-nl {
  flex-direction: column;
}

.new-grid-layout-nl .details-main-col-nl,
.elementor-widget-listeo-listings-carousel .details-main-col-nl,
.simple-fw-slick-carousel .details-main-col-nl,
.grads-mentor-card .details-main-col-nl {
  padding: 16px 20px 8px;
}

.new-grid-layout-nl .details-sidebar-col-nl,
.elementor-widget-listeo-listings-carousel .details-sidebar-col-nl,
.simple-fw-slick-carousel .details-sidebar-col-nl,
.grads-mentor-card .details-sidebar-col-nl {
  flex-direction: row;
  padding: 8px 20px 16px;
  border-top: none;
  align-items: center;
  height: auto;
  min-height: 0;
  zoom: 1;
}

.grads-mentor-card .listing-amenities-nl,
.grads-mentor-card .listing-booking-nl,
.grads-mentor-card .listing-title-nl:not(.mentor-name-nl),
.grads-mentor-card .listing-service-title-nl:not(.mentor-name-nl),
.grads-mentor-card .listing-excerpt-nl {
  display: none;
}

.new-grid-layout-nl .details-sidebar-upper-nl,
.elementor-widget-listeo-listings-carousel .details-sidebar-upper-nl,
.simple-fw-slick-carousel .details-sidebar-upper-nl {
  align-items: flex-start;
}

.grads-mentor-card .listing-thanks-nl,
.listing-thanks-nl {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.listing-thanks-nl__count,
.listing-thanks-nl__empty {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f0ec;
  color: #6b635b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.listing-thanks-nl__count {
  background: #f8ece8;
  color: #1a1108;
}

.new-grid-layout-nl .listing-card-nl .listing-badges-nl,
.elementor-widget-listeo-listings-carousel .listing-card-nl .listing-badges-nl,
.simple-fw-slick-carousel .listing-card-nl .listing-badges-nl {
  margin-bottom: 10px;
}

.new-grid-layout-nl .listing-card-nl .listing-location-nl,
.elementor-widget-listeo-listings-carousel .listing-card-nl .listing-location-nl,
.simple-fw-slick-carousel .listing-card-nl .listing-location-nl {
  margin-bottom: 0;
}

.elementor-widget-listeo-listings-carousel .mentor-name-nl,
.simple-fw-slick-carousel .mentor-name-nl,
.grads-mentor-card .mentor-name-nl {
  margin-bottom: 4px;
}

.elementor-widget-listeo-listings-carousel .listing-service-title-nl,
.simple-fw-slick-carousel .listing-service-title-nl,
.grads-mentor-card .listing-service-title-nl.mentor-name-nl,
.grads-mentor-card .listing-title-nl.mentor-name-nl {
  font-weight: 600;
  color: #1a1108;
  font-size: 16px;
  margin: 0 0 4px;
}

.elementor-widget-listeo-listings-carousel .listing-university-nl,
.elementor-widget-listeo-listings-carousel .listing-location-nl,
.elementor-widget-listeo-listings-carousel .listing-mentor-stats-nl,
.simple-fw-slick-carousel .listing-university-nl,
.simple-fw-slick-carousel .listing-location-nl,
.simple-fw-slick-carousel .listing-mentor-stats-nl,
.grads-mentor-card .listing-university-nl,
.grads-mentor-card .listing-location-nl,
.grads-mentor-card .listing-mentor-stats-nl {
  margin: 0 0 5px;
  font-size: 13px;
  color: #4d443c;
}

.elementor-widget-listeo-listings-carousel .listing-mentor-stats-nl,
.simple-fw-slick-carousel .listing-mentor-stats-nl,
.grads-mentor-card .listing-mentor-stats-nl {
  margin-top: 8px;
  font-weight: 500;
}

/* -------------------------------------------------------------------------
   Browse filters: hide ranking, session type, price, and leftover
   keyword / listing-category / geo-location chrome (CSS fallback).
   Study location, field of study, and degree stay.
   ------------------------------------------------------------------------- */

#listeo_core-search-form .rating-filter,
#listeo_core-search-form .listeo-rating-filter,
#listeo_core-search-form .panel-dropdown:has(.rating-filter),
#listeo_core-search-form .panel-dropdown:has(.range-slider-container),
#listeo_core-search-form .main-search-input-item.slider_type,
#listeo_core-search-form .main-search-input-item.listeo-rating-filter,
#listeo_core-search-form #_price-panel,
#listeo_core-search-form #_rating-panel,
#listeo_core-search-form #tax-session_type-panel,
#listeo_core-search-form [id*="session_type"],
#listeo_core-search-form .panel-dropdown:has([id*="session_type"]),
#listeo_core-search-form .panel-dropdown:has([name*="session_type"]),
.main-search-form .rating-filter,
.main-search-form .panel-dropdown:has(.rating-filter),
.main-search-form .panel-dropdown:has(.range-slider-container),
.main-search-form [id*="session_type"],
.grads-mentor-search-ui .rating-filter,
.grads-mentor-search-ui .panel-dropdown:has(.rating-filter),
.grads-mentor-search-ui .panel-dropdown:has(.range-slider-container),
.grads-mentor-search-ui [id*="session_type"],
.listeo-form-search-on-no-map .rating-filter,
.listeo-form-search_on_home_page .rating-filter,
#listeo_core-search-form #listeo-search-form_keyword_search,
#listeo_core-search-form #listeo-search-form_location_search,
#listeo_core-search-form #listeo-search-form_location,
#listeo_core-search-form #listeo-search-form_category,
#listeo_core-search-form #listeo-search-form_tax-listing_category,
#listeo_core-search-form #tax-listing_category-panel,
#listeo_core-search-form .main-search-input-item:has(#keyword_search),
#listeo_core-search-form .main-search-input-item:has(#location_search),
#listeo_core-search-form .main-search-input-item:has([data-name="tax-listing_category"]),
#listeo_core-search-form .split-top-inputs > div:has(#keyword_search),
#listeo_core-search-form .split-top-inputs > div:has(#location_search),
#listeo_core-search-form .split-top-inputs > div:has([data-name="tax-listing_category"]),
.grads-mentor-search .split-top-inputs > div:has(#keyword_search),
.grads-mentor-search .split-top-inputs > div:has(#location_search),
.grads-mentor-search .split-top-inputs > div:has([data-name="tax-listing_category"]),
.grads-mentor-search-ui .split-top-inputs > div:has(#keyword_search),
.grads-mentor-search-ui .split-top-inputs > div:has(#location_search),
.grads-mentor-search-ui .split-top-inputs > div:has([data-name="tax-listing_category"]),
.listeo-form-search_on_home_page .main-search-input-item:has(#keyword_search),
.listeo-form-search_on_home_page .main-search-input-item:has(#location_search),
.listeo-form-search_on_home_page .main-search-input-item:has([data-name="tax-listing_category"]),
.listeo-form-sidebar_search #listeo-search-form_keyword_search,
.listeo-form-sidebar_search #listeo-search-form_location_search,
.listeo-form-sidebar_search #listeo-search-form_category,
.listeo-form-sidebar_search #listeo-search-form_tax-listing_category,
.widget_search_form_listings #listeo-search-form_keyword_search,
.widget_search_form_listings #listeo-search-form_location_search,
.widget_search_form_listings #listeo-search-form_category,
.widget_search_form_listings #listeo-search-form_tax-listing_category,
body.home .main-search-input-item:has(#keyword_search),
body.home .main-search-input-item:has(#location_search),
body.home .main-search-input-item:has([data-name="tax-listing_category"]),
body.grads-mentor-browse .main-search-input-item:has(#keyword_search),
body.grads-mentor-browse .main-search-input-item:has(#location_search),
.widget_search_form_listings:not(:has(#tax-study_location, #tax-field_of_study, #tax-degree_level, [name="tax-study_location"], [name="tax-field_of_study"], [name="tax-degree_level"])) {
  display: none !important;
}

#listeo_core-search-form .panel-wrapper:not(:has(.panel-dropdown)),
.grads-mentor-template .panel-wrapper:not(:has(.panel-dropdown)) {
  display: none !important;
}

/* Field of study: no drill-into-children chevrons */
.grads-fos-parents-only .menu-item .arrow,
#listeo-drilldown-tax-field_of_study .menu-item .arrow,
[id="listeo-drilldown-tax-field_of_study"] .arrow {
  display: none !important;
}

body.rtl .grads-mentor-card .image-overlay-top-nl {
  inset-inline-end: 8px;
  inset-inline-start: auto;
}

#listeo-listings-container:not(.new-grid-layout-nl) .grads-mentor-card .listing-image-container-nl {
  max-width: 96px;
}

#listeo-listings-container:not(.new-grid-layout-nl) .grads-mentor-card.listing-card-nl {
  max-height: none;
}

@container (max-width: 550px) {
  .listing-card-container-nl .grads-mentor-card.listing-card-nl .listing-image-container-nl,
  .listing-card-container-nl .listing-card-nl.grads-mentor-card .listing-avatar-container-nl {
    width: 96px;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
    max-width: 96px;
    border-radius: 50%;
    margin: 20px auto 0;
  }
}
