/* ═══════════════════════════════════════════════════════
   Profile Edit Form — Horsequip Calm (HQC)
   Tokens: --hq-orange #FF9500, --hq-brown-saddle #8B4513,
           --hq-brown-deep #4f3e2c
   ═══════════════════════════════════════════════════════ */

.profile-edit-heading {
  margin: 0 0 40px 0;
  padding: 40px 20px 0 20px;
}

label.option {
  display: block !important;
  font-weight: 300;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
}

.profile-edit-heading .main-title {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: #4f3e2c;
  margin: 0 0 15px 0;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 1.2;
}

.profile-edit-heading .subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #999;
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
  max-width: 600px;
}

.horsequip-profile-edit-form {
  margin: 0 auto;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background-color: #fff;
}

/* Section Styling */
.profile-section,
.contact-section,
.about-section,
.gallery-section,
.expertise-section,
.pricing-section,
.events-section,
.marketplace-section,
.jobs-section,
.pferde-section {
  border: none;
  border-radius: 0;
  overflow: visible;
  padding: 20px 0;
}

/* Make specific sections collapsed by default */
.about-section:not([open]),
.gallery-section:not([open]),
.expertise-section:not([open]) {
  /* These sections will be collapsed by default */
}

.profile-section > summary,
.contact-section > summary,
.about-section > summary,
.gallery-section > summary,
.expertise-section > summary,
.pricing-section > summary,
.events-section > summary,
.marketplace-section > summary,
.jobs-section > summary,
.pferde-section > summary {
  background-color: transparent;
  padding: 0 20px;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 20px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  color: #333;
  list-style: none;
  font-family: 'Roboto', sans-serif;
}

.profile-section > summary::-webkit-details-marker,
.contact-section > summary::-webkit-details-marker,
.about-section > summary::-webkit-details-marker,
.gallery-section > summary::-webkit-details-marker,
.expertise-section > summary::-webkit-details-marker,
.pricing-section > summary::-webkit-details-marker {
  display: none;
}

.profile-section > summary:before,
.contact-section > summary:before,
.about-section > summary:before,
.gallery-section > summary:before,
.expertise-section > summary:before,
.pricing-section > summary:before,
.events-section > summary:before,
.marketplace-section > summary:before,
.jobs-section > summary:before,
.pferde-section > summary:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f054"; /* fa-chevron-right */
  font-size: 14px;
  margin-right: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #333;
  -webkit-text-stroke: 1.5px #fff;
  font-size: 20px;
}

.profile-section[open] > summary:before,
.contact-section[open] > summary:before,
.about-section[open] > summary:before,
.gallery-section[open] > summary:before,
.expertise-section[open] > summary:before,
.pricing-section[open] > summary:before,
.events-section[open] > summary:before,
.marketplace-section[open] > summary:before,
.jobs-section[open] > summary:before,
.pferde-section[open] > summary:before {
  content: "\f078";
  transform: none;
  color: #8B4513;
}

.profile-section[open] > summary,
.contact-section[open] > summary,
.about-section[open] > summary,
.gallery-section[open] > summary,
.expertise-section[open] > summary,
.pricing-section[open] > summary,
.events-section[open] > summary,
.marketplace-section[open] > summary,
.jobs-section[open] > summary,
.pferde-section[open] > summary {
  color: #8B4513;
}

/* Form Content — aligned with section title text (behind chevron) */
.profile-section > div,
.contact-section > div,
.about-section > div,
.gallery-section > div,
.expertise-section > div,
.pricing-section > div,
.events-section > div,
.marketplace-section > div,
.jobs-section > div,
.pferde-section > div {
  padding: 16px 20px 0 55px;
}

/* ── Sub-headlines inside unified sections (HQC: gray-800, medium) ── */
.hq-sub-headline {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #333;
  margin: 32px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e0d8;
}

.hq-sub-headline:first-of-type {
  margin-top: 8px;
}

.hq-sub-hint {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #999;
  margin: -8px 0 16px 0;
  line-height: 1.5;
}

.profile-section > .hq-sub-headline,
.contact-section > .hq-sub-headline,
.about-section > .hq-sub-headline,
.gallery-section > .hq-sub-headline,
.expertise-section > .hq-sub-headline,
.pricing-section > .hq-sub-headline,
.events-section > .hq-sub-headline,
.marketplace-section > .hq-sub-headline,
.jobs-section > .hq-sub-headline,
.pferde-section > .hq-sub-headline,
.profile-section > .hq-sub-hint,
.contact-section > .hq-sub-hint,
.about-section > .hq-sub-hint,
.gallery-section > .hq-sub-hint,
.expertise-section > .hq-sub-hint,
.pricing-section > .hq-sub-hint,
.events-section > .hq-sub-hint,
.marketplace-section > .hq-sub-hint,
.jobs-section > .hq-sub-hint,
.pferde-section > .hq-sub-hint {
  padding-left: 55px;
  padding-right: 20px;
}

/* ── Form Fields (HQC: underline input, transparent bg) ── */
.form-item {
  margin-bottom: 20px;
}

.form-item label {
  display: none;
}

.form-item input[type="text"],
.form-item input[type="email"],
.form-item textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #333;
  border-radius: 0;
  font-size: 14px;
  font-weight: 300;
  background-color: transparent;
  color: #333;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.12em;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-item input[type="text"]::placeholder,
.form-item input[type="email"]::placeholder,
.form-item textarea::placeholder {
  color: #666;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
}

.form-item input[type="text"]:focus,
.form-item input[type="email"]:focus,
.form-item textarea:focus {
  border-bottom-color: #FF9500;
  background-color: transparent;
  outline: none;
}

.form-item textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox styling (HQC) */
.form-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #8B4513;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  margin-right: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-item input[type="checkbox"]:checked {
  background-color: #FF9500;
  border-color: #FF9500;
}

.form-item input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.form-item input[type="checkbox"]:hover {
  border-color: #FF9500;
}

/* Show labels for checkboxes and file uploads */
.form-item.form-type-checkbox label,
.form-item.form-type-managed-file label {
  display: inline !important;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

/* Media upload field labels — hidden in HQC box style */
.media-upload-field .form-item.form-type-managed-file label {
  display: none !important;
}

/* Info icons styling */
.info-icon {
  display: inline-block;
  margin-left: 10px;
  color: #666;
  font-size: 16px;
  cursor: help;
  vertical-align: middle;
}

/* Input field with info icon container */
.form-item {
  position: relative;
}

.form-item .info-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

/* File upload styling */
.form-managed-file {
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: left;
  background-color: transparent;
  margin-bottom: 20px;
}

.form-managed-file input[type="file"] {
  display: none;
}

/* Image upload field special styling */
.image-upload-field .form-managed-file {
  background-color: #d3d3d3;
  padding: 15px 20px;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.image-upload-field .form-managed-file:hover {
  background-color: #c0c0c0;
}

/* Gallery Grid for Multiple File Uploads */
.gallery-section .form-managed-file,
.contact-section .form-managed-file {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Action Buttons */
.form-actions {
  margin-top: 40px;
  padding: 40px 20px;
  border-top: none;
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
}
.horsequip-profile-edit-form .form-actions .button-wrapper,
.horsequip-marketplace-product-create-form .form-actions .button-wrapper,
.horsequip-marketplace-product-edit-form .form-actions .button-wrapper,
.horsequip-stable-create-form .form-actions .button-wrapper,
.horsequip-stable-edit-form .form-actions .button-wrapper,
.horsequip-horse-create-form .form-actions .button-wrapper,
.horsequip-horse-edit-form .form-actions .button-wrapper,
.horsequip-event-create-form .form-actions .button-wrapper,
.horsequip-event-edit-form .form-actions .button-wrapper,
.horsequip-job-create-form .form-actions .button-wrapper,
.horsequip-job-edit-form .form-actions .button-wrapper{
  padding-bottom: unset !important;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.btn-primary {
  background-color: #4f3e2c;
  color: white;
}

.btn-primary:hover {
  background-color: #ff940b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* SPEICHERN Submit Button - Using CSS pseudo-elements like login page approach */
input.horsequip-submit-btn,
input.btn-save,
button.horsequip-submit-btn,
button.btn-save,
.form-submit[value="SPEICHERN"],
input[value="SPEICHERN"] {
  background: none;
  border: none;
  color: #333;
  font-size: 0.9rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding-left: 10px; /* Space for the icon */
  font-family: 'Roboto', sans-serif;
  transition: color 0.3s ease;
  position: relative;
}

input.horsequip-submit-btn:hover,
input.btn-save:hover,
button.horsequip-submit-btn:hover,
button.btn-save:hover,
.form-submit[value="SPEICHERN"]:hover,
input[value="SPEICHERN"]:hover {
  color: #8B4513;
}

/* FontAwesome circle arrow icon using CSS before pseudo-element */
input.horsequip-submit-btn:before,
input.btn-save:before,
button.horsequip-submit-btn:before,
button.btn-save:before,
.form-submit[value="SPEICHERN"]:before,
input[value="SPEICHERN"]:before {
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome;
  font-weight: 900;
  content: "\f138"; /* fa-circle-arrow-right */
  -webkit-text-stroke: 0;
  font-size: 24px;
  color: #ff940b;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

/* ABBRECHEN button styling - Common class for cancel links */
.btn-cancel-link,
.btn-abbrechen {
  background-color: transparent;
  color: #666;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: Roboto, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  line-height: 1;
}

.btn-cancel-link:hover,
.btn-abbrechen:hover {
  color: #333;
  text-decoration: none;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
  text-decoration: none;
  color: white;
}

/* Field Groups - Remove grid layout for cleaner design */
.contact-section .form-item,
.expertise-section .form-item {
  width: 100%;
  margin-right: 0;
  display: block;
}

/* Private Toggle Special Styling */
.contact-section .form-item.form-type-checkbox {
  width: 100%;
  margin-bottom: 30px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

/* Add Button Styling for Multiple Fields */
.form-item .add-more-button {
  background-color: #ff940b;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}

.form-item .add-more-button:hover {
  background-color: #218838;
}

/* Info Icons */
.form-item .info-icon {
  display: inline-block;
  margin-left: 5px;
  color: #6c757d;
  cursor: help;
}

/* Responsive Design */
@media (max-width: 768px) {
  .horsequip-profile-edit-form {
    padding: 20px 10px;
  }

  .profile-edit-heading .main-title {
    font-size: 18px;
    letter-spacing: 0.15em;
  }

  .profile-edit-heading .subtitle {
    font-size: 12px;
  }

  .profile-section > div,
  .contact-section > div,
  .about-section > div,
  .gallery-section > div,
  .expertise-section > div,
  .pricing-section > div,
  .events-section > div,
  .marketplace-section > div,
  .jobs-section > div,
  .pferde-section > div {
    padding-left: 20px;
  }

  .form-item input[type="text"],
  .form-item input[type="email"],
  .form-item textarea {
    font-size: 16px;
  }

  .hq-sub-headline,
  .hq-sub-hint {
    padding-left: 20px;
    padding-right: 20px;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Success/Error Messages */
.messages {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.messages--status {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.messages--error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Form validation errors */
.form-item.error input,
.form-item.error textarea {
  border-color: #ff940b;
}

.form-item .error {
  color: #ff940b;
  font-size: 12px;
  margin-top: 5px;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* Debug: ensure container is visible */
.gallery-thumbnails:empty {
  min-height: 50px;
  border: 2px dashed #ccc;
}

.gallery-thumbnails::after {
  content: "";
  clear: both;
  display: table;
}

.gallery-thumbnails h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
  padding: 5px;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure grid items are visible */
.thumbnail-grid .thumbnail-item {
  width: 100%;
  min-width: 150px;
}

/* Scrollbar styling for thumbnail grid */
.thumbnail-grid::-webkit-scrollbar {
  width: 8px;
}

.thumbnail-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.thumbnail-grid::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.thumbnail-grid::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.thumbnail-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  width: 100%;
  height: auto;
}

.thumbnail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
  opacity: 1;
}

.thumbnail-title {
  color: white;
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
  line-height: 1.3;
  margin-bottom: 5px;
}

.thumbnail-filename {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 400;
  margin-top: auto;
  word-break: break-word;
  line-height: 1.2;
  font-style: italic;
}

.remove-thumbnail {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s ease;
}

.remove-thumbnail:hover {
  background: #ff940b;
}

.remove-thumbnail i {
  line-height: 1;
}

/* Empty state for gallery */
.gallery-thumbnails.empty {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.gallery-thumbnails.empty::before {
  content: "📷";
  display: block;
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Responsive gallery grid */
@media (max-width: 768px) {
  .thumbnail-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .thumbnail-overlay {
    padding: 8px;
  }
  
  .thumbnail-filename {
    font-size: 11px;
  }
  
  .remove-thumbnail {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

/* ── Expertise: HQC flat text-field layout (no boxes) ── */
.expertise-items-container {
  margin-bottom: 12px;
}

.expertise-entry {
  position: relative;
  padding: 0 0 20px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #e8e0d8;
}

.expertise-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.expertise-entry .form-item {
  margin-bottom: 12px;
}

.expertise-entry .form-item label {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 4px;
}

.expertise-entry input[type="text"] {
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  padding: 8px 0;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #333;
  width: 100%;
  max-width: 500px;
  transition: border-color 0.2s ease;
}

.expertise-entry input[type="text"]:focus {
  outline: none;
  border-bottom-color: #FF9500;
}

.expertise-entry textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  padding: 8px 0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #333;
  width: 100%;
  max-width: 500px;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s ease;
}

.expertise-entry textarea:focus {
  outline: none;
  border-bottom-color: #FF9500;
}

.expertise-remove-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: #999;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.expertise-remove-btn:hover {
  color: #c82333;
  border-color: #c82333;
}

.expertise-add-btn {
  background: none;
  color: #FF9500;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
  margin-top: 8px;
}

.expertise-add-btn:hover {
  color: #4f3e2c;
}

#expertise-items-wrapper {
  transition: all 0.3s ease;
}

.expertise-items-container:empty::after {
  content: "Noch keine Expertise. Klicken Sie auf '+ Expertise hinzufügen'.";
  display: block;
  padding: 30px 0;
  color: #999;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-style: italic;
}

@media (max-width: 768px) {
  .expertise-entry input[type="text"],
  .expertise-entry textarea {
    max-width: 100%;
  }

  .expertise-remove-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .expertise-add-btn {
    width: 100%;
    text-align: left;
  }
}

/* Media Upload Field Styling */
.media-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 15px;
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
  max-width: 180px;
  aspect-ratio: 1;
}

.media-upload-placeholder:hover {
  border-color: #adb5bd;
  background-color: #f1f3f4;
}

.media-upload-placeholder .camera-icon {
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.6;
}

.media-upload-placeholder .media-label {
  font-size: 14px;
  font-weight: 400;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.media-upload-placeholder .media-message {
  font-size: 11px;
  font-weight: 300;
  color: #868e96;
  text-align: center;
  margin-top: 5px;
  font-style: italic;
}

.media-upload-placeholder.removed {
  border-color: #ffc107;
  background-color: #fff3cd;
}

.media-upload-placeholder.removed .media-label {
  color: #856404;
}

.media-upload-placeholder.removed .media-message {
  color: #856404;
  font-weight: 400;
}

/* Media Preview Styling */
.media-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.media-preview-item {
  position: relative;
  width: 100px;
  border-radius: 6px;
  overflow: visible;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
}

.media-preview-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}

.media-preview-item.video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: #343a40;
  color: white;
}

.media-preview-item .video-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.media-preview-item .filename {
  font-size: 10px;
  text-align: center;
  word-break: break-word;
  line-height: 1.2;
}

/* Media Preview Captions */
.media-preview-caption {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: #333;
  padding: 6px 4px;
  word-break: break-word;
  line-height: 1.2;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  display: block;
  position: relative;
  border-radius: 0 0 6px 6px;
}

.media-preview-title {
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-align: center;
  margin-bottom: 5px;
  word-break: break-word;
  line-height: 1.3;
}

/* Media Preview Remove Buttons */
.remove-media-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ff940b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  transition: background-color 0.2s ease;
  z-index: 10;
}

.remove-media-btn:hover {
  background: #ff940b;
}

.remove-media-btn i {
  line-height: 1;
}

/* Media Upload Field Containers */
.media-upload-field .form-managed-file {
  background-color: transparent;
  border: none;
  padding: 0;
}

.intro-upload .media-upload-placeholder .camera-icon,
.slideshow-upload .media-upload-placeholder .camera-icon,
.profile-upload .media-upload-placeholder .camera-icon {
  filter: grayscale(0);
}

.intro-upload .media-upload-placeholder {
  border-color: #17a2b8;
}

.slideshow-upload .media-upload-placeholder {
  border-color: #ff940b;
}

.profile-upload .media-upload-placeholder {
  border-color: #ffc107;
}

/* ── Media Upload (HQC: square, camera+plus icon, clean) ── */
.media-upload-field {
  margin: 12px 0;
  padding: 0;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  text-align: center;
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.media-upload-field:hover {
  border-color: #FF9500;
  background-color: #fafafa;
}

.media-upload-field::before {
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome;
  font-weight: 900;
  content: "\f030";
  font-size: 32px;
  color: #ccc;
  display: block;
  margin-bottom: 2px;
  pointer-events: none;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.media-upload-field::after {
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome;
  font-weight: 900;
  content: "\f067";
  font-size: 14px;
  color: #ccc;
  display: block;
  pointer-events: none;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.media-upload-field:hover::before,
.media-upload-field:hover::after {
  color: #FF9500;
}

/* Make the entire Drupal file widget cover the box invisibly */
.media-upload-field .form-item,
.media-upload-field .form-managed-file,
.media-upload-field .js-form-managed-file,
.media-upload-field > .form-item {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 3 !important;
  overflow: hidden !important;
}

.media-upload-field input[type="file"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 4 !important;
}

.media-upload-field .description,
.media-upload-field label {
  display: none !important;
}

.media-upload-field .file {
  display: none !important;
}

/* Enhanced Profile Picture Preview Styles */
.profile-picture-preview {
  background-color: #fff !important;
  border: 2px solid #ff940b !important;
  padding: 15px !important;
  margin: 15px 0 !important;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 100 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  max-width: 400px !important;
  clear: both !important;
  float: none !important;
}

.profile-picture-preview:hover {
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
  transform: translateY(-2px);
}

.profile-picture-preview .remove-preview-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s ease;
  z-index: 10;
}

.profile-picture-preview .remove-preview-btn:hover {
  background: #ff940b;
  transform: scale(1.1);
}

.profile-picture-preview .preview-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.profile-picture-preview .preview-image {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.profile-picture-preview .preview-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.profile-picture-preview .file-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  word-break: break-word;
  text-align: center;
}

.profile-picture-preview .file-size {
  font-size: 11px;
  color: #6c757d;
  font-style: italic;
}

/* Standard image preview styles for non-profile uploads */
.image-preview.standard-preview {
  margin-top: 15px;
  padding: 10px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  position: relative;
  max-width: 300px;
}

.image-preview.standard-preview .preview-content {
  position: relative;
  text-align: center;
  margin-bottom: 10px;
}

.image-preview.standard-preview .preview-image-standard {
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.image-preview.standard-preview .video-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #343a40;
  color: white;
  margin: 0 auto;
  max-width: 150px;
}

.image-preview.standard-preview .video-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.image-preview.standard-preview .video-label {
  font-size: 12px;
  font-weight: 500;
}

.image-preview.standard-preview .remove-preview-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.2s ease;
  z-index: 10;
}

.image-preview.standard-preview .remove-preview-btn:hover {
  background: #ff940b;
  transform: scale(1.1);
}

.image-preview.standard-preview .preview-info {
  text-align: center;
}

.image-preview.standard-preview .file-name {
  font-size: 12px;
  color: #495057;
  word-break: break-word;
  font-weight: 500;
}

.image-preview.standard-preview .file-size {
  font-size: 11px;
  color: #6c757d;
  font-style: italic;
}

/* Animation for preview appearance */
.image-preview {
  animation: fadeInScale 0.3s ease-out;
  position: relative !important;
  display: block !important;
  visibility: visible !important;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Ensure previews don't get hidden by Drupal's AJAX updates */
.media-upload-field .image-preview,
.profile-upload .image-preview {
  position: relative !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 50;
  margin-top: 10px;
}

/* Prevent AJAX from hiding our preview */
.form-managed-file + .image-preview {
  display: block !important;
  visibility: visible !important;
}

/* Responsive media uploads */
@media (max-width: 768px) {
  .media-upload-placeholder {
    padding: 20px 15px;
  }
  
  .media-upload-placeholder .camera-icon {
    font-size: 36px;
  }
  
  .media-preview-item {
    width: 80px;
    height: 80px;
  }
  
  .profile-picture-preview {
    padding: 12px;
  }
  
  .profile-picture-preview .preview-image {
    max-width: 150px;
    max-height: 150px;
  }
  
  .profile-picture-preview .preview-label {
    font-size: 12px;
  }
  
  .profile-picture-preview .remove-preview-btn {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
  
  .horsequip-choices__inner {
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
}

/* Choices.js styling for stable selection */
.choices-select + .horsequip-choices {
  margin-bottom: 20px;
}

.horsequip-choices {
  margin-bottom: 25px;
}

.horsequip-choices__inner {
  background-color: #d3d3d3 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 15px 20px !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  color: #333 !important;
  min-height: auto !important;
  font-family: Roboto, sans-serif !important;
  letter-spacing: 0.25em !important;
}

.horsequip-choices__inner:focus {
  background-color: #c0c0c0 !important;
  outline: none !important;
}

.horsequip-choices__placeholder {
  color: #666 !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.25em !important;
  font-size: 14px !important;
  opacity: 1 !important;
}

.horsequip-choices__list--dropdown {
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  margin-top: 5px !important;
}

.horsequip-choices__item--selectable {
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-family: Roboto, sans-serif !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.horsequip-choices__item--selectable:hover,
.horsequip-choices__item--highlighted {
  background-color: #ff940b !important;
  color: white !important;
}

.horsequip-choices__item--selected {
  background-color: #4f3e2c !important;
  color: white !important;
}

.horsequip-choices__input {
  background-color: transparent !important;
  border: none !important;
  font-size: 14px !important;
  font-family: Roboto, sans-serif !important;
  color: #333 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.horsequip-choices__input:focus {
  outline: none !important;
}

.horsequip-choices[data-type="select-one"].is-open .horsequip-choices__inner {
  border-color: #ff940b !important;
}

/* Own Events Subsection */
.own-events-section {
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-top: 1rem;
}

.own-events-section > summary {
  background-color: transparent;
  padding: 0 20px;
  font-weight: 300;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  color: #333;
  list-style: none;
  font-family: Roboto;
}

.own-events-section > summary:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f054"; /* fa-chevron-right */
  font-size: 14px;
  margin-right: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #333;
  -webkit-text-stroke: 1.5px #fff;
  font-size: 18px;
}

.own-events-section[open] > summary:before {
  transform: rotate(90deg);
  color: #8B4513;
}

/* Create Event Button */
.create-event-button {
  margin: 2rem 0 1.5rem 0;
  padding-left: 20px;
}

.btn-create-event {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  color: #333;
  text-decoration: none;
  border: none;
  font-weight: 300;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-family: Roboto, sans-serif;
  transition: color 0.3s ease;
}

.btn-create-event:hover {
  color: #8B4513;
  text-decoration: none;
}

.btn-create-event i {
  font-size: 18px;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 8px;
  transition: border-color 0.3s ease, color 0.3s ease;
  border: 2px solid #333;
  border-radius: 4px;
padding: 6px;
  font-size: 12px;
}

.btn-create-event:hover i {
  border-color: #8B4513;
  color: #8B4513;
}

/* Own Events Header */
.own-events-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 1rem 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 1rem;
}

.own-events-header i {
  color: #4f3e2c;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.own-events-header.expanded i {
  transform: rotate(90deg);
}

.own-events-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Events List */
.events-list-container {
  margin-top: 1rem;
  padding-left: 20px;
}

.event-item {
  margin-bottom: 2rem;
  padding: 0;
  border: none;
  background: transparent;
}

.event-item-content {
  display: block;
}

.event-header {
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.event-details {
  margin-bottom: 1rem;
}

.event-date {
  font-size: 16px;
  color: #333;
  margin-bottom: 0.25rem;
  font-weight: normal;
}

.event-location {
  font-size: 16px;
  color: #333;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.event-footer {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.registration-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.registration-count {
  background: #f0f0f0;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

.registration-label {
  font-size: 14px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: normal;
}

.event-edit {
  display: flex;
  align-items: center;
}

.edit-event-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: normal;
  transition: color 0.3s ease;
}

.edit-event-link:hover {
  color: #8B4513;
  text-decoration: none;
}

.edit-event-link i {
  border: 2px solid #333;
  border-radius: 4px;
  padding: 6px;
  font-size: 12px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.edit-event-link:hover i {
  border-color: #8B4513;
  color: #8B4513;
}


/* Create Marketplace Button */
.create-marketplace-button {
  margin: 2rem 0 1.5rem 0;
  padding-left: 20px;
}

.btn-create-marketplace {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  color: #333;
  text-decoration: none;
  border: none;
  font-weight: 300;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-family: Roboto, sans-serif;
  transition: color 0.3s ease;
}

.btn-create-marketplace:hover {
  color: #8B4513;
  text-decoration: none;
}

.btn-create-marketplace i {
  font-size: 18px;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 6px;
  font-size: 12px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-create-marketplace:hover i {
  border-color: #8B4513;
  color: #8B4513;
}

/* Own Marketplace Subsection */
.own-marketplace-section {
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-top: 1rem;
}

.own-marketplace-section > summary {
  background-color: transparent;
  padding: 0 20px;
  font-weight: 300;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  color: #333;
  list-style: none;
  font-family: Roboto;
}

.own-marketplace-section > summary:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f054"; /* fa-chevron-right */
  font-size: 14px;
  margin-right: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #333;
  -webkit-text-stroke: 1.5px #fff;
  font-size: 18px;
}

.own-marketplace-section[open] > summary:before {
  transform: rotate(90deg);
  color: #8B4513;
}

/* Marketplace List */
.marketplace-list-container {
  margin-top: 1rem;
  padding-left: 20px;
}

.marketplace-item {
  margin-bottom: 2rem;
  padding: 0;
  border: none;
  background: transparent;
}

.marketplace-item-content {
  display: block;
}

.marketplace-header {
  margin-bottom: 0.5rem;
}

.marketplace-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.marketplace-details {
  margin-bottom: 1rem;
}

.marketplace-price {
  font-size: 16px;
  color: #333;
  font-weight: normal;
}

.marketplace-footer {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.marketplace-status {
  display: flex;
  align-items: center;
}

.status-button {
  background: #f0f0f0;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.status-button:not(:disabled) {
  cursor: pointer;
}

.status-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-button:hover {
  background: #e0e0e0;
}

.status-button.status-deactivate {
  background: #f0f0f0;
  color: #333;
}

.status-button.status-activate {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-button.status-activate:hover {
  background: #c3e6cb;
}

.marketplace-edit {
  display: flex;
  align-items: center;
}

.edit-marketplace-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: normal;
  transition: color 0.3s ease;
}

.edit-marketplace-link:hover {
  color: #8B4513;
  text-decoration: none;
}

.edit-marketplace-link i {
  border: 2px solid #333;
  border-radius: 4px;
  padding: 6px;
  font-size: 12px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.edit-marketplace-link:hover i {
  border-color: #8B4513;
  color: #8B4513;
}

.no-marketplace-message {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
  padding-left: 20px;
}

/* Jobs Section Styles */
.jobs-section {
  /* margin-top: 2rem; */
}

/* Create Job Button */
.create-job-button {
  margin: 2rem 0 1.5rem 0;
  padding-left: 20px;
}

.btn-create-job {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  color: #333;
  text-decoration: none;
  border: none;
  font-weight: 300;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-family: Roboto, sans-serif;
  transition: color 0.3s ease;
}

.btn-create-job:hover {
  color: #8B4513;
  text-decoration: none;
}

.btn-create-job i {
  font-size: 18px;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 6px;
  font-size: 12px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-create-job:hover i {
  border-color: #8B4513;
  color: #8B4513;
}

/* Own Jobs Subsection */
.own-jobs-section {
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-top: 1rem;
}

.own-jobs-section > summary {
  background-color: transparent;
  padding: 0 20px;
  font-weight: 300;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  color: #333;
  list-style: none;
  font-family: Roboto;
}

.own-jobs-section > summary:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f054"; /* fa-chevron-right */
  font-size: 14px;
  margin-right: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #333;
  -webkit-text-stroke: 1.5px #fff;
  font-size: 18px;
}

.own-jobs-section[open] > summary:before {
  transform: rotate(90deg);
  color: #8B4513;
}

/* Jobs List */
.jobs-list-container {
  margin-top: 1rem;
  padding-left: 20px;
}

.job-item {
  margin-bottom: 2rem;
  padding: 0;
  border: none;
  background: transparent;
}

.job-item-content {
  display: block;
}

.job-header {
  margin-bottom: 0.5rem;
}

.job-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.job-details {
  margin-bottom: 1rem;
}

.job-salary {
  font-size: 16px;
  color: #333;
  font-weight: normal;
}

.job-footer {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.job-status {
  display: flex;
  align-items: center;
}

.job-edit {
  display: flex;
  align-items: center;
}

.edit-job-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: normal;
  transition: color 0.3s ease;
}

.edit-job-link:hover {
  color: #8B4513;
  text-decoration: none;
}

.edit-job-link i {
  border: 2px solid #333;
  border-radius: 4px;
  padding: 6px;
  font-size: 12px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.edit-job-link:hover i {
  border-color: #8B4513;
  color: #8B4513;
}

.no-jobs-message {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
  padding-left: 20px;
}

/* Pferde Section Styles */


/* Create Pferd Button */
.create-pferd-button {
  margin: 2rem 0 1.5rem 0;
  padding-left: 20px;
}

.btn-create-pferd {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  color: #333;
  text-decoration: none;
  border: none;
  font-weight: 300;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-family: Roboto, sans-serif;
  transition: color 0.3s ease;
}

.btn-create-pferd:hover {
  color: #8B4513;
  text-decoration: none;
}

.btn-create-pferd i {
  font-size: 18px;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 6px;
  font-size: 12px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-create-pferd:hover i {
  border-color: #8B4513;
  color: #8B4513;
}

/* Own Pferde Subsection */
.own-pferde-section {
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-top: 1rem;
}

.own-pferde-section > summary {
  background-color: transparent;
  padding: 0 20px;
  font-weight: 300;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  color: #333;
  list-style: none;
  font-family: Roboto;
}

.own-pferde-section > summary:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f054"; /* fa-chevron-right */
  font-size: 14px;
  margin-right: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #333;
  -webkit-text-stroke: 1.5px #fff;
  font-size: 18px;
}

.own-pferde-section[open] > summary:before {
  transform: rotate(90deg);
  color: #8B4513;
}

/* Pferde List */
.pferde-list-container {
  margin-top: 1rem;
  padding-left: 20px;
}

.horse-item {
  margin-bottom: 2rem;
  padding: 0;
  border: none;
  background: transparent;
}

.horse-item-content {
  display: block;
}

.horse-header {
  margin-bottom: 0.5rem;
}

.horse-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.horse-details {
  margin-bottom: 1rem;
}

.horse-price {
  font-size: 16px;
  color: #333;
  font-weight: normal;
}

.horse-footer {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.horse-status {
  display: flex;
  align-items: center;
}

.horse-edit {
  display: flex;
  align-items: center;
}

.edit-horse-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: normal;
  transition: color 0.3s ease;
}

.edit-horse-link:hover {
  color: #8B4513;
  text-decoration: none;
}

.edit-horse-link i {
  border: 2px solid #333;
  border-radius: 4px;
  padding: 6px;
  font-size: 12px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.edit-horse-link:hover i {
  border-color: #8B4513;
  color: #8B4513;
}

.no-horses-message {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
  padding-left: 20px;
}

/* No Events Message */
.no-events-message {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
  padding-left: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .event-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .event-stats {
    margin: 0;
    align-self: stretch;
    justify-content: center;
  }
  
  .event-actions {
    align-self: stretch;
    justify-content: center;
  }
}

