/*
 * Classes & Events search ([class-events-search]).
 *
 * Cards used to be styled through a repeated ID (#class-event-card) inside Bootstrap
 * columns, with links nested inside the card link (invalid HTML the browser silently
 * rebuilt). These rules reproduce the same look on valid markup. Shared rules in style.css
 * (#main-search, .class-event-main, .card, .card-title, ...) still apply unchanged.
 */

/* Filter dropdowns (style.css styled them through a duplicated id="general-search") */
.site-main .search-panel #primary-class-event-search .dropdown .form-select {
  background: #f5f5f5;
  border-radius: 0;
  height: 65px;
  margin: 0 !important;
  border: 0;
  width: 100%;
  text-align: left;
  color: #4a4a4a;
}

/* Search button: was a link; drop the browser's button chrome so .primary-link styles it the same */
.site-main .class-directory .primary-class-event-search {
  border: 0;
  font-family: inherit;
}

/* Grid: one column, two from 768px, four from 992px (was .col-12 .col-md-6 .col-lg-3) */
.site-main .class-results {
  list-style: none;
  padding: 0;
}

.site-main .class-results__item {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .site-main .class-results__item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .site-main .class-results__item {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Card (was #class-event-card) */
.site-main .class-results .class-card {
  min-height: 96%;
  cursor: pointer;
}

.site-main .class-results .class-card .card-body img {
  width: 20px;
}

.site-main .class-results .class-card .class-times {
  margin-right: 5px;
}

@media only screen and (max-width: 768px) {
  .site-main .class-results .class-card .card-img-top {
    display: none !important;
  }
}

.site-main .class-results .class-card .card-title {
  height: 50px;
  overflow: hidden;
  margin: 0;
}

@media only screen and (max-width: 510px) {
  .site-main .class-results .class-card .card-title {
    font-size: 20px;
    margin: 15px 0 0 0;
  }
}

.site-main .class-results .class-card hr {
  background: #979797;
  width: 30%;
  position: relative;
  display: inline-block;
}

.site-main .class-results .class-card .class-date {
  padding: 0 0 15px 0;
  font-weight: normal;
  display: flex;
  align-items: flex-start;
}

.site-main .class-results .class-card .class-date img {
  margin-right: 10px;
  margin-top: 5px;
}

.site-main .class-results .class-card .service-bubble {
  border: 1px solid #eaeaea;
  border-radius: 15px;
  list-style-type: none;
  font-weight: normal;
  margin-right: 5px;
  color: #646469;
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-size: 14px;
}

.site-main .class-results .class-card .class-location {
  padding: 15px 0;
  font-weight: normal;
  display: flex;
  margin-bottom: 50px;
}

.site-main .class-results .class-card .class-location .location-icon {
  margin-right: 15px;
  position: relative;
  flex: 0 0 16px;
  left: 2px;
}

@media only screen and (max-width: 510px) {
  .site-main .class-results .class-card .class-location .location-icon {
    left: 1px;
  }
}

/* Price button along the bottom of the card */
.site-main .class-results .class-card .btn-primary {
  background: #f2f2f2;
  color: #4a4a4a;
  border: none;
  border-radius: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  width: calc(100% - 20px);
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

/* The whole card links to the class; the price button stays clickable above it. */
.site-main .class-results .class-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
