/* Bootstrap Grid Overrides for Teaser Cards */
.view-content .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.view-content .col-lg-6,
.view-content .col-md-6 {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px;
}

/* Ensure proper grid behavior on desktop */
@media (min-width: 992px) {
  .view-content .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .view-content .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Generic Teaser Card Styles */
.teaser-card {
  background: #4f3e2c;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.teaser-card__image {
  position: relative;
  height: 45vh;
  overflow: hidden;
}

.teaser-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teaser-card__content {
  padding: 32px 32px 24px 32px;
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.teaser-card__title {
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 20px 0;
  line-height: 1.1;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Roboto', sans-serif;
}

.teaser-card__location, .teaser-card__date {
  color: #FF9500;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-family: 'Roboto', sans-serif;
}

.teaser-card__description {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  font-weight: 300;
}

.teaser-card__services {
  margin-bottom: 40px;
}

.teaser-card__services .field__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teaser-card__services .field__item {
  color: #FF9500;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Roboto', sans-serif;
}

.teaser-card__service-list {
  list-style: none;
  text-transform: uppercase;
  color: #FF9500;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

.teaser-card__service-item {
  color: #FF9500;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 4px;
}

.teaser-card__price {
  font-size: 18px;
  font-weight: 500;
  color: #FF9500;
  margin-top: 24px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Roboto', sans-serif;
}

.teaser-card__actions {
  position: relative;
  margin-left: -50px;
  margin-top: auto;
  margin-bottom: 30px;
}
.teaser-card__actions.marketplace {
  position: relative;
  margin-left: -50px;
  margin-top: auto;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 180px
}
.teaser-card__cta {
  background: #FF9500;
  color: white;
  padding: 5px 55px;
  text-decoration: none;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  border: none;
  cursor: pointer;
  letter-spacing: 3px;
}

.teaser-card__cta:hover {
  background: #E6850E;
  color: white;
}

/* PayPal button styling */
.teaser-card__cta--paypal {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.teaser-card__cta--paypal .fab.fa-paypal {
  font-size: 16px;
  color: white;
  margin-right: 0;
}

.teaser-card__cta--paypal:hover .fab.fa-paypal {
  color: white;
}

/* Content Type Specific Overrides */
.teaser-card--stable .teaser-card__cta::after {
  content: '\A Stable';
  white-space: pre;
}

/* .teaser-card--event .teaser-card__cta::after {
  content: '\A Event';
  white-space: pre;
} */
#views-bootstrap-events-block-1,
#views-bootstrap-stables-block-1,
#views-bootstrap-jobs-block-1,
#views-bootstrap-marketplace-block-1,
#views-bootstrap-horses-block-1 {
  margin-top: 20px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .teaser-card {
    max-width: 100% !important;
    min-height: 96vh !important;
  }
  .teaser-card__cta.compact {
    padding: 5px 20px !important;
  }
  
  .teaser-card__content {
    padding: 24px !important;
    padding-left: 42px !important;
  }
  .teaser-card__content.compact{
    padding: 20px !important;
  }
  .teaser-card__image.compact {
    height: 40vh !important;
  }
  .teaser-card__title {
    font-size: 18px !important;
    letter-spacing: 1.5px !important;
  }
  .teaser-card--compact {
    min-height: unset !important;
  }
  .teaser-card__actions.compact {
    margin-left: 0 !important;
    margin-bottom: 0 !important;
  }
  .teaser-card__price {
    font-size: 18px !important;
  }
}