/**
 * Listing / profile CTAs: Book (green) and View (red), shared button shape + black hover arrow.
 */

/* Shared listing button base */
.pratst-book-studio-btn,
.pratst-book-engineer-btn,
.path-studios .listings-block-more > a:not(.pratst-book-studio-btn),
.path-sound-engineers .listings-block-more > a:not(.pratst-book-engineer-btn),
.studio-sound-engineers-tab__view-professional a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: 'Poppins-Medium', 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, padding 250ms;
}

/* Book — green / black text */
.pratst-book-studio-btn,
.pratst-book-engineer-btn {
  border: 1px solid #00d26a;
  background: #00d26a;
  color: #04140c !important;
}

.pratst-book-studio-btn:hover,
.pratst-book-studio-btn:focus,
.pratst-book-engineer-btn:hover,
.pratst-book-engineer-btn:focus {
  background: #1ae07d;
  border-color: #1ae07d;
  color: #04140c !important;
  text-decoration: none !important;
}

/* View — red / black text */
.path-studios .listings-block-more > a:not(.pratst-book-studio-btn),
.path-sound-engineers .listings-block-more > a:not(.pratst-book-engineer-btn),
.studio-sound-engineers-tab__view-professional a {
  border: 1px solid #e40046;
  background: #e40046;
  color: #04140c !important;
}

.path-studios .listings-block-more > a:not(.pratst-book-studio-btn):hover,
.path-studios .listings-block-more > a:not(.pratst-book-studio-btn):focus,
.path-sound-engineers .listings-block-more > a:not(.pratst-book-engineer-btn):hover,
.path-sound-engineers .listings-block-more > a:not(.pratst-book-engineer-btn):focus,
.studio-sound-engineers-tab__view-professional a:hover,
.studio-sound-engineers-tab__view-professional a:focus {
  background: #ff3366;
  border-color: #ff3366;
  color: #04140c !important;
  text-decoration: none !important;
  font-weight: 700;
}

.path-studios .listings-block-more,
.path-sound-engineers .listings-block-more {
  height: auto;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.path-studios .listings-block-bio,
.path-sound-engineers .listings-block-bio {
  padding-bottom: 88px;
}

/* Black hover arrow (shared) */
.path-studios .listings-block-more a.pratst-book-studio-btn:before,
.path-sound-engineers .listings-block-more a.pratst-book-engineer-btn:before,
.path-studios .listings-block-more > a:not(.pratst-book-studio-btn):before,
.path-sound-engineers .listings-block-more > a:not(.pratst-book-engineer-btn):before,
.profile-buttons-holder .pratst-book-studio-btn:before,
.profile-buttons-holder .pratst-book-engineer-btn:before,
.studio-sound-engineers-tab__view-professional a:before {
  content: '';
  width: 0;
  height: 13px;
  display: inline-block;
  background-image: url(/themes/custom/pratst/images/arrow-more.png);
  background-repeat: no-repeat;
  background-position: center right;
  background-size: 27px 13px;
  filter: brightness(0);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
  transition: width 250ms;
}

.path-studios .listings-block-more a.pratst-book-studio-btn:hover,
.path-studios .listings-block-more a.pratst-book-studio-btn:focus,
.path-sound-engineers .listings-block-more a.pratst-book-engineer-btn:hover,
.path-sound-engineers .listings-block-more a.pratst-book-engineer-btn:focus,
.path-studios .listings-block-more > a:not(.pratst-book-studio-btn):hover,
.path-studios .listings-block-more > a:not(.pratst-book-studio-btn):focus,
.path-sound-engineers .listings-block-more > a:not(.pratst-book-engineer-btn):hover,
.path-sound-engineers .listings-block-more > a:not(.pratst-book-engineer-btn):focus,
.profile-buttons-holder .pratst-book-studio-btn:hover,
.profile-buttons-holder .pratst-book-studio-btn:focus,
.profile-buttons-holder .pratst-book-engineer-btn:hover,
.profile-buttons-holder .pratst-book-engineer-btn:focus,
.studio-sound-engineers-tab__view-professional a:hover,
.studio-sound-engineers-tab__view-professional a:focus {
  padding-right: 44px;
}

.path-studios .listings-block-more a.pratst-book-studio-btn:hover:before,
.path-studios .listings-block-more a.pratst-book-studio-btn:focus:before,
.path-sound-engineers .listings-block-more a.pratst-book-engineer-btn:hover:before,
.path-sound-engineers .listings-block-more a.pratst-book-engineer-btn:focus:before,
.path-studios .listings-block-more > a:not(.pratst-book-studio-btn):hover:before,
.path-studios .listings-block-more > a:not(.pratst-book-studio-btn):focus:before,
.path-sound-engineers .listings-block-more > a:not(.pratst-book-engineer-btn):hover:before,
.path-sound-engineers .listings-block-more > a:not(.pratst-book-engineer-btn):focus:before,
.profile-buttons-holder .pratst-book-studio-btn:hover:before,
.profile-buttons-holder .pratst-book-studio-btn:focus:before,
.profile-buttons-holder .pratst-book-engineer-btn:hover:before,
.profile-buttons-holder .pratst-book-engineer-btn:focus:before,
.studio-sound-engineers-tab__view-professional a:hover:before,
.studio-sound-engineers-tab__view-professional a:focus:before {
  width: 27px;
}

.studio-map-view-profile .pratst-book-studio-btn,
.geolocation-map-wrapper .pratst-book-studio-btn,
.studio-map-view-profile .pratst-book-engineer-btn,
.geolocation-map-wrapper .pratst-book-engineer-btn {
  display: inline-flex;
  margin-top: 8px;
}

@media screen and (max-width: 767px) {
  .path-studios .listings-block-more,
  .path-sound-engineers .listings-block-more {
    position: relative;
    align-items: flex-start;
    margin-top: 8px;
  }

  .path-studios .listings-block-bio,
  .path-sound-engineers .listings-block-bio {
    padding-bottom: 20px;
  }

  .profile-buttons-holder {
    flex-wrap: wrap;
  }
}
