/* Profile card and actions */
.profile-card {
  background: #121418;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.profile-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}
.profile-card > :not(.card-bg) {
  position: relative;
  z-index: 1;
}
.profile-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.avatar {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  border: 4px solid #2b2f36;
}
.details h2 {
  margin: 0 0 10px 0;
  font-size: 2rem;
}
.details .dl p {
  margin: 4px 0;
  color: #cbd5e1;
}
.chips {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 6px 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}
.bottom-info .chip:hover {
  cursor: pointer;
}
.chip-sale {
  background: #1f2937;
  color: #fbbf24;
  border: 1px solid #374151;
}
.chip-price {
  background: #065f46;
  color: #a7f3d0;
  border: 1px solid #10b981;
}
.actions {
  display: flex;
  gap: 10px;
  margin: 12px 0 0 0;
  flex-wrap: wrap;
}
.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.btn-share {
  background: #1f3a8a;
  color: #e5edff;
  border-color: #1e3a8a;
}
.btn-wa {
  background: #166534;
  color: #dcfce7;
  border-color: #14532d;
}
.btn-contact {
  background: #1f2937;
  color: #e5e7eb;
  border-color: #374151;
}
.btn-chip:hover {
  filter: brightness(1.05);
}
.section-title {
  margin: 26px 0 12px 0;
  font-size: 1.2rem;
}
/* History list */
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #0f1216;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.hi-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f2937;
}
.hi-title {
  margin: 0 0 4px 0;
}
.history-item[data-type="Training"] .hi-icon {
  background: #1e3a8a;
  color: #93c5fd;
}
.history-item[data-type="Event"] .hi-icon {
  background: #7c2d12;
  color: #fbbf24;
}
.history-item[data-type="Health"] .hi-icon {
  background: #7f1d1d;
  color: #fecaca;
}
.history-item[data-type="Nutrition"] .hi-icon {
  background: #064e3b;
  color: #bbf7d0;
}
/* Contact card */
.contact-card {
  background: #0f1216;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.contact-card label {
  color: #cbd5e1;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 6px;
}
.contact-card .form-control {
  width: 100%;
  background: #111827;
  border: 1px solid #374151;
  color: #e5e7eb;
  padding: 10px;
  border-radius: 8px;
}
.contact-card #cf-message {
  max-width: 100%;
}
.contact-actions {
  margin-top: 12px;
}
.btn-primary {
  background: #2563eb;
  color: #e5edff;
  border: 1px solid #1e3a8a;
  padding: 10px 16px;
  border-radius: 8px;
}
.btn-primary:hover {
  filter: brightness(1.05);
}

/* More horses grid */
.more-horses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.horse-card-small {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: rgba(15, 18, 22, 0.8);
  border: 1px solid #1f2937;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  width: 350px;
  flex-shrink: 0;
  height: 450px; /* Adjust as needed */
  margin: 10px;
}

.horse-card-small:hover {
  transform: translateY(-5px);
}

.horse-card-small-img {
  height: 300px;
  background-size: cover;
  background-position: center;
}

.horse-card-small-info {
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  flex-grow: 1;
}

.horse-card-small-name {
  font-weight: bold;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.meta-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
}
